@tecsinapse/react-core 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (687) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/babel.config.esm.js +34 -0
  3. package/dist/components/atoms/Avatar/Avatar.js +12 -8
  4. package/dist/components/atoms/Avatar/Avatar.js.map +1 -1
  5. package/dist/components/atoms/Avatar/helpers.js +3 -1
  6. package/dist/components/atoms/Avatar/helpers.js.map +1 -1
  7. package/dist/components/atoms/Avatar/index.d.ts +2 -1
  8. package/dist/components/atoms/Avatar/index.js +11 -9
  9. package/dist/components/atoms/Avatar/index.js.map +1 -1
  10. package/dist/components/atoms/Avatar/styled.js +38 -39
  11. package/dist/components/atoms/Avatar/styled.js.map +1 -1
  12. package/dist/components/atoms/Badge/Badge.js +11 -8
  13. package/dist/components/atoms/Badge/Badge.js.map +1 -1
  14. package/dist/components/atoms/Badge/index.d.ts +2 -1
  15. package/dist/components/atoms/Badge/index.js +11 -9
  16. package/dist/components/atoms/Badge/index.js.map +1 -1
  17. package/dist/components/atoms/Badge/styled.js +15 -24
  18. package/dist/components/atoms/Badge/styled.js.map +1 -1
  19. package/dist/components/atoms/BoxContent/BoxContent.js +8 -5
  20. package/dist/components/atoms/BoxContent/BoxContent.js.map +1 -1
  21. package/dist/components/atoms/BoxContent/index.d.ts +2 -1
  22. package/dist/components/atoms/BoxContent/index.js +11 -9
  23. package/dist/components/atoms/BoxContent/index.js.map +1 -1
  24. package/dist/components/atoms/BoxContent/styled.js +62 -57
  25. package/dist/components/atoms/BoxContent/styled.js.map +1 -1
  26. package/dist/components/atoms/Button/Button.js +19 -16
  27. package/dist/components/atoms/Button/Button.js.map +1 -1
  28. package/dist/components/atoms/Button/States/BaseState.js +11 -8
  29. package/dist/components/atoms/Button/States/BaseState.js.map +1 -1
  30. package/dist/components/atoms/Button/States/Error.js +3 -1
  31. package/dist/components/atoms/Button/States/Error.js.map +1 -1
  32. package/dist/components/atoms/Button/States/Loading.js +10 -7
  33. package/dist/components/atoms/Button/States/Loading.js.map +1 -1
  34. package/dist/components/atoms/Button/States/Success.js +3 -1
  35. package/dist/components/atoms/Button/States/Success.js.map +1 -1
  36. package/dist/components/atoms/Button/States/index.js +21 -8
  37. package/dist/components/atoms/Button/States/index.js.map +1 -1
  38. package/dist/components/atoms/Button/States/styled.js +31 -19
  39. package/dist/components/atoms/Button/States/styled.js.map +1 -1
  40. package/dist/components/atoms/Button/index.d.ts +2 -1
  41. package/dist/components/atoms/Button/index.js +29 -16
  42. package/dist/components/atoms/Button/index.js.map +1 -1
  43. package/dist/components/atoms/Button/styled.js +33 -36
  44. package/dist/components/atoms/Button/styled.js.map +1 -1
  45. package/dist/components/atoms/Card/Card.js +11 -7
  46. package/dist/components/atoms/Card/Card.js.map +1 -1
  47. package/dist/components/atoms/Card/Footer/Footer.js +12 -7
  48. package/dist/components/atoms/Card/Footer/Footer.js.map +1 -1
  49. package/dist/components/atoms/Card/Footer/index.d.ts +2 -1
  50. package/dist/components/atoms/Card/Footer/index.js +11 -9
  51. package/dist/components/atoms/Card/Footer/index.js.map +1 -1
  52. package/dist/components/atoms/Card/Header/Header.js +12 -7
  53. package/dist/components/atoms/Card/Header/Header.js.map +1 -1
  54. package/dist/components/atoms/Card/Header/index.d.ts +2 -1
  55. package/dist/components/atoms/Card/Header/index.js +11 -9
  56. package/dist/components/atoms/Card/Header/index.js.map +1 -1
  57. package/dist/components/atoms/Card/index.d.ts +2 -1
  58. package/dist/components/atoms/Card/index.js +11 -9
  59. package/dist/components/atoms/Card/index.js.map +1 -1
  60. package/dist/components/atoms/Card/styled.js +8 -5
  61. package/dist/components/atoms/Card/styled.js.map +1 -1
  62. package/dist/components/atoms/Checkbox/Checkbox.js +15 -11
  63. package/dist/components/atoms/Checkbox/Checkbox.js.map +1 -1
  64. package/dist/components/atoms/Checkbox/index.d.ts +2 -1
  65. package/dist/components/atoms/Checkbox/index.js +11 -9
  66. package/dist/components/atoms/Checkbox/index.js.map +1 -1
  67. package/dist/components/atoms/Checkbox/styled.js +62 -44
  68. package/dist/components/atoms/Checkbox/styled.js.map +1 -1
  69. package/dist/components/atoms/Divider/Divider.js +8 -5
  70. package/dist/components/atoms/Divider/Divider.js.map +1 -1
  71. package/dist/components/atoms/Divider/index.d.ts +2 -1
  72. package/dist/components/atoms/Divider/index.js +11 -9
  73. package/dist/components/atoms/Divider/index.js.map +1 -1
  74. package/dist/components/atoms/Divider/styled.js +33 -26
  75. package/dist/components/atoms/Divider/styled.js.map +1 -1
  76. package/dist/components/atoms/GroupButton/GroupButton.js +24 -20
  77. package/dist/components/atoms/GroupButton/GroupButton.js.map +1 -1
  78. package/dist/components/atoms/GroupButton/GroupButtonOption.js +9 -6
  79. package/dist/components/atoms/GroupButton/GroupButtonOption.js.map +1 -1
  80. package/dist/components/atoms/GroupButton/index.d.ts +4 -2
  81. package/dist/components/atoms/GroupButton/index.js +18 -14
  82. package/dist/components/atoms/GroupButton/index.js.map +1 -1
  83. package/dist/components/atoms/GroupButton/styled.js +97 -100
  84. package/dist/components/atoms/GroupButton/styled.js.map +1 -1
  85. package/dist/components/atoms/Icon/Icon.js +14 -11
  86. package/dist/components/atoms/Icon/Icon.js.map +1 -1
  87. package/dist/components/atoms/Icon/helpers.js +13 -7
  88. package/dist/components/atoms/Icon/helpers.js.map +1 -1
  89. package/dist/components/atoms/Icon/index.d.ts +2 -1
  90. package/dist/components/atoms/Icon/index.js +11 -9
  91. package/dist/components/atoms/Icon/index.js.map +1 -1
  92. package/dist/components/atoms/Input/Hint.js +9 -6
  93. package/dist/components/atoms/Input/Hint.js.map +1 -1
  94. package/dist/components/atoms/Input/InputContainer/InputContainer.js +22 -19
  95. package/dist/components/atoms/Input/InputContainer/InputContainer.js.map +1 -1
  96. package/dist/components/atoms/Input/InputElement/InputElement.js +12 -9
  97. package/dist/components/atoms/Input/InputElement/InputElement.js.map +1 -1
  98. package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js +16 -13
  99. package/dist/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +1 -1
  100. package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +11 -8
  101. package/dist/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +1 -1
  102. package/dist/components/atoms/Input/PressableInputContainer/index.d.ts +2 -1
  103. package/dist/components/atoms/Input/PressableInputContainer/index.js +11 -9
  104. package/dist/components/atoms/Input/PressableInputContainer/index.js.map +1 -1
  105. package/dist/components/atoms/Input/PressableInputContainer/styled.js +9 -4
  106. package/dist/components/atoms/Input/PressableInputContainer/styled.js.map +1 -1
  107. package/dist/components/atoms/Input/hooks/useInputFocus.js +5 -2
  108. package/dist/components/atoms/Input/hooks/useInputFocus.js.map +1 -1
  109. package/dist/components/atoms/Input/hooks/useNumberMask.js +7 -4
  110. package/dist/components/atoms/Input/hooks/useNumberMask.js.map +1 -1
  111. package/dist/components/atoms/Input/hooks/useStringMask.js +10 -5
  112. package/dist/components/atoms/Input/hooks/useStringMask.js.map +1 -1
  113. package/dist/components/atoms/Input/index.d.ts +8 -4
  114. package/dist/components/atoms/Input/index.js +66 -35
  115. package/dist/components/atoms/Input/index.js.map +1 -1
  116. package/dist/components/atoms/Input/styled.js +119 -106
  117. package/dist/components/atoms/Input/styled.js.map +1 -1
  118. package/dist/components/atoms/Paper/Paper.js +13 -8
  119. package/dist/components/atoms/Paper/Paper.js.map +1 -1
  120. package/dist/components/atoms/Paper/index.d.ts +2 -1
  121. package/dist/components/atoms/Paper/index.js +11 -9
  122. package/dist/components/atoms/Paper/index.js.map +1 -1
  123. package/dist/components/atoms/Paper/styled.js +8 -5
  124. package/dist/components/atoms/Paper/styled.js.map +1 -1
  125. package/dist/components/atoms/PressableSurface/PressableSurface.js +27 -18
  126. package/dist/components/atoms/PressableSurface/PressableSurface.js.map +1 -1
  127. package/dist/components/atoms/PressableSurface/index.d.ts +2 -1
  128. package/dist/components/atoms/PressableSurface/index.js +11 -9
  129. package/dist/components/atoms/PressableSurface/index.js.map +1 -1
  130. package/dist/components/atoms/ProgressBar/ProgressBar.js +20 -15
  131. package/dist/components/atoms/ProgressBar/ProgressBar.js.map +1 -1
  132. package/dist/components/atoms/ProgressBar/index.d.ts +2 -1
  133. package/dist/components/atoms/ProgressBar/index.js +11 -9
  134. package/dist/components/atoms/ProgressBar/index.js.map +1 -1
  135. package/dist/components/atoms/ProgressBar/styled.js +38 -29
  136. package/dist/components/atoms/ProgressBar/styled.js.map +1 -1
  137. package/dist/components/atoms/RadioButton/RadioButton.js +15 -11
  138. package/dist/components/atoms/RadioButton/RadioButton.js.map +1 -1
  139. package/dist/components/atoms/RadioButton/index.d.ts +2 -1
  140. package/dist/components/atoms/RadioButton/index.js +11 -9
  141. package/dist/components/atoms/RadioButton/index.js.map +1 -1
  142. package/dist/components/atoms/RadioButton/styled.js +38 -29
  143. package/dist/components/atoms/RadioButton/styled.js.map +1 -1
  144. package/dist/components/atoms/Switch/Switch.js +15 -12
  145. package/dist/components/atoms/Switch/Switch.js.map +1 -1
  146. package/dist/components/atoms/Switch/animation.js +3 -1
  147. package/dist/components/atoms/Switch/animation.js.map +1 -1
  148. package/dist/components/atoms/Switch/index.d.ts +2 -1
  149. package/dist/components/atoms/Switch/index.js +11 -9
  150. package/dist/components/atoms/Switch/index.js.map +1 -1
  151. package/dist/components/atoms/Switch/styled.js +29 -22
  152. package/dist/components/atoms/Switch/styled.js.map +1 -1
  153. package/dist/components/atoms/Tag/Tag.js +14 -11
  154. package/dist/components/atoms/Tag/Tag.js.map +1 -1
  155. package/dist/components/atoms/Tag/index.d.ts +2 -1
  156. package/dist/components/atoms/Tag/index.js +11 -9
  157. package/dist/components/atoms/Tag/index.js.map +1 -1
  158. package/dist/components/atoms/Tag/styled.js +47 -43
  159. package/dist/components/atoms/Tag/styled.js.map +1 -1
  160. package/dist/components/atoms/Text/Text.js +18 -15
  161. package/dist/components/atoms/Text/Text.js.map +1 -1
  162. package/dist/components/atoms/Text/functions.js +3 -1
  163. package/dist/components/atoms/Text/functions.js.map +1 -1
  164. package/dist/components/atoms/Text/index.d.ts +2 -1
  165. package/dist/components/atoms/Text/index.js +11 -9
  166. package/dist/components/atoms/Text/index.js.map +1 -1
  167. package/dist/components/atoms/Text/styled.js +51 -33
  168. package/dist/components/atoms/Text/styled.js.map +1 -1
  169. package/dist/components/atoms/shared/PaperAndCard.js +29 -20
  170. package/dist/components/atoms/shared/PaperAndCard.js.map +1 -1
  171. package/dist/components/molecules/Calendar/Calendar.js +20 -16
  172. package/dist/components/molecules/Calendar/Calendar.js.map +1 -1
  173. package/dist/components/molecules/Calendar/components/MonthWeek.js +16 -12
  174. package/dist/components/molecules/Calendar/components/MonthWeek.js.map +1 -1
  175. package/dist/components/molecules/Calendar/components/Weekdays.js +9 -6
  176. package/dist/components/molecules/Calendar/components/Weekdays.js.map +1 -1
  177. package/dist/components/molecules/Calendar/components/index.js +15 -6
  178. package/dist/components/molecules/Calendar/components/index.js.map +1 -1
  179. package/dist/components/molecules/Calendar/index.d.ts +2 -1
  180. package/dist/components/molecules/Calendar/index.js +11 -12
  181. package/dist/components/molecules/Calendar/index.js.map +1 -1
  182. package/dist/components/molecules/Calendar/styled.js +58 -70
  183. package/dist/components/molecules/Calendar/styled.js.map +1 -1
  184. package/dist/components/molecules/DatePicker/DatePicker.js +33 -30
  185. package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
  186. package/dist/components/molecules/DatePicker/index.d.ts +2 -1
  187. package/dist/components/molecules/DatePicker/index.js +11 -9
  188. package/dist/components/molecules/DatePicker/index.js.map +1 -1
  189. package/dist/components/molecules/DatePicker/styled.js +19 -13
  190. package/dist/components/molecules/DatePicker/styled.js.map +1 -1
  191. package/dist/components/molecules/DateTimePicker/DateTimePicker.js +42 -39
  192. package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
  193. package/dist/components/molecules/DateTimePicker/index.d.ts +2 -1
  194. package/dist/components/molecules/DateTimePicker/index.js +11 -9
  195. package/dist/components/molecules/DateTimePicker/index.js.map +1 -1
  196. package/dist/components/molecules/DateTimePicker/styled.js +13 -6
  197. package/dist/components/molecules/DateTimePicker/styled.js.map +1 -1
  198. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js +28 -26
  199. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -1
  200. package/dist/components/molecules/DateTimeSelector/Selector.js +18 -14
  201. package/dist/components/molecules/DateTimeSelector/Selector.js.map +1 -1
  202. package/dist/components/molecules/DateTimeSelector/index.d.ts +2 -1
  203. package/dist/components/molecules/DateTimeSelector/index.js +11 -10
  204. package/dist/components/molecules/DateTimeSelector/index.js.map +1 -1
  205. package/dist/components/molecules/DateTimeSelector/styled.js +88 -68
  206. package/dist/components/molecules/DateTimeSelector/styled.js.map +1 -1
  207. package/dist/components/molecules/Grid/functions.js +6 -2
  208. package/dist/components/molecules/Grid/functions.js.map +1 -1
  209. package/dist/components/molecules/Grid/index.js +15 -5
  210. package/dist/components/molecules/Grid/index.js.map +1 -1
  211. package/dist/components/molecules/HintInputContainer/HintInputContainer.js +18 -14
  212. package/dist/components/molecules/HintInputContainer/HintInputContainer.js.map +1 -1
  213. package/dist/components/molecules/HintInputContainer/index.js +9 -4
  214. package/dist/components/molecules/HintInputContainer/index.js.map +1 -1
  215. package/dist/components/molecules/IconTextButton/IconComponent.js +13 -8
  216. package/dist/components/molecules/IconTextButton/IconComponent.js.map +1 -1
  217. package/dist/components/molecules/IconTextButton/IconTextButton.js +3 -1
  218. package/dist/components/molecules/IconTextButton/index.d.ts +1 -1
  219. package/dist/components/molecules/IconTextButton/index.js +9 -9
  220. package/dist/components/molecules/IconTextButton/index.js.map +1 -1
  221. package/dist/components/molecules/IconTextButton/styled.js +15 -14
  222. package/dist/components/molecules/IconTextButton/styled.js.map +1 -1
  223. package/dist/components/molecules/InputPassword/InputPasswordIcon.js +9 -6
  224. package/dist/components/molecules/InputPassword/InputPasswordIcon.js.map +1 -1
  225. package/dist/components/molecules/InputPassword/index.js +9 -4
  226. package/dist/components/molecules/InputPassword/index.js.map +1 -1
  227. package/dist/components/molecules/InputPassword/styled.js +13 -6
  228. package/dist/components/molecules/InputPassword/styled.js.map +1 -1
  229. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +3 -1
  230. package/dist/components/molecules/LabeledSwitch/index.d.ts +1 -1
  231. package/dist/components/molecules/LabeledSwitch/index.js +3 -7
  232. package/dist/components/molecules/LabeledSwitch/index.js.map +1 -1
  233. package/dist/components/molecules/Snackbar/Snackbar.js +24 -20
  234. package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
  235. package/dist/components/molecules/Snackbar/index.d.ts +2 -1
  236. package/dist/components/molecules/Snackbar/index.js +11 -9
  237. package/dist/components/molecules/Snackbar/index.js.map +1 -1
  238. package/dist/components/molecules/Snackbar/styled.js +52 -76
  239. package/dist/components/molecules/Snackbar/styled.js.map +1 -1
  240. package/dist/components/molecules/TextArea/TextArea.js +29 -26
  241. package/dist/components/molecules/TextArea/TextArea.js.map +1 -1
  242. package/dist/components/molecules/TextArea/index.d.ts +2 -1
  243. package/dist/components/molecules/TextArea/index.js +17 -11
  244. package/dist/components/molecules/TextArea/index.js.map +1 -1
  245. package/dist/components/molecules/TextArea/styled.js +15 -13
  246. package/dist/components/molecules/TextArea/styled.js.map +1 -1
  247. package/dist/hooks/index.js +15 -6
  248. package/dist/hooks/index.js.map +1 -1
  249. package/dist/hooks/useDebouncedState.js +5 -2
  250. package/dist/hooks/useDebouncedState.js.map +1 -1
  251. package/dist/hooks/useTheme.js +3 -1
  252. package/dist/hooks/useTheme.js.map +1 -1
  253. package/dist/index.d.ts +57 -29
  254. package/dist/index.js +303 -187
  255. package/dist/index.js.map +1 -1
  256. package/dist/styles/ThemeProvider.js +8 -5
  257. package/dist/styles/ThemeProvider.js.map +1 -1
  258. package/dist/styles/definitions.js +6 -3
  259. package/dist/styles/definitions.js.map +1 -1
  260. package/dist/styles/light.js +3 -1
  261. package/dist/styles/light.js.map +1 -1
  262. package/dist/types/defaults.js +3 -1
  263. package/dist/utils/IPhoneXHelper.js +3 -1
  264. package/dist/utils/IPhoneXHelper.js.map +1 -1
  265. package/dist/utils/ResponsiveFontSize.js +6 -3
  266. package/dist/utils/ResponsiveFontSize.js.map +1 -1
  267. package/dist/utils/extractNumbersFromString.js +3 -1
  268. package/dist/utils/extractNumbersFromString.js.map +1 -1
  269. package/dist/utils/formatWithMask.js +3 -1
  270. package/dist/utils/formatWithMask.js.map +1 -1
  271. package/dist/utils/index.js +51 -12
  272. package/dist/utils/index.js.map +1 -1
  273. package/dist/utils/lightenDarkenColor.js +3 -1
  274. package/dist/utils/lightenDarkenColor.js.map +1 -1
  275. package/dist/utils/masks.js +5 -3
  276. package/dist/utils/masks.js.map +1 -1
  277. package/dist/utils/variantComplement.js +3 -1
  278. package/dist/utils/variantComplement.js.map +1 -1
  279. package/esm/components/atoms/Avatar/Avatar.d.ts +14 -0
  280. package/esm/components/atoms/Avatar/Avatar.js +50 -0
  281. package/esm/components/atoms/Avatar/Avatar.js.map +1 -0
  282. package/esm/components/atoms/Avatar/helpers.d.ts +1 -0
  283. package/esm/components/atoms/Avatar/helpers.js +12 -0
  284. package/esm/components/atoms/Avatar/helpers.js.map +1 -0
  285. package/esm/components/atoms/Avatar/index.d.ts +2 -0
  286. package/esm/components/atoms/Avatar/index.js +2 -0
  287. package/esm/components/atoms/Avatar/index.js.map +1 -0
  288. package/esm/components/atoms/Avatar/styled.d.ts +28 -0
  289. package/esm/components/atoms/Avatar/styled.js +33 -0
  290. package/esm/components/atoms/Avatar/styled.js.map +1 -0
  291. package/esm/components/atoms/Badge/Badge.d.ts +11 -0
  292. package/esm/components/atoms/Badge/Badge.js +20 -0
  293. package/esm/components/atoms/Badge/Badge.js.map +1 -0
  294. package/esm/components/atoms/Badge/index.d.ts +2 -0
  295. package/esm/components/atoms/Badge/index.js +2 -0
  296. package/esm/components/atoms/Badge/index.js.map +1 -0
  297. package/esm/components/atoms/Badge/styled.d.ts +15 -0
  298. package/esm/components/atoms/Badge/styled.js +20 -0
  299. package/esm/components/atoms/Badge/styled.js.map +1 -0
  300. package/esm/components/atoms/BoxContent/BoxContent.d.ts +7 -0
  301. package/esm/components/atoms/BoxContent/BoxContent.js +18 -0
  302. package/esm/components/atoms/BoxContent/BoxContent.js.map +1 -0
  303. package/esm/components/atoms/BoxContent/index.d.ts +2 -0
  304. package/esm/components/atoms/BoxContent/index.js +2 -0
  305. package/esm/components/atoms/BoxContent/index.js.map +1 -0
  306. package/esm/components/atoms/BoxContent/styled.d.ts +24 -0
  307. package/esm/components/atoms/BoxContent/styled.js +55 -0
  308. package/esm/components/atoms/BoxContent/styled.js.map +1 -0
  309. package/esm/components/atoms/Button/Button.d.ts +28 -0
  310. package/esm/components/atoms/Button/Button.js +76 -0
  311. package/esm/components/atoms/Button/Button.js.map +1 -0
  312. package/esm/components/atoms/Button/States/BaseState.d.ts +7 -0
  313. package/esm/components/atoms/Button/States/BaseState.js +29 -0
  314. package/esm/components/atoms/Button/States/BaseState.js.map +1 -0
  315. package/esm/components/atoms/Button/States/Error.d.ts +4 -0
  316. package/esm/components/atoms/Button/States/Error.js +11 -0
  317. package/esm/components/atoms/Button/States/Error.js.map +1 -0
  318. package/esm/components/atoms/Button/States/Loading.d.ts +4 -0
  319. package/esm/components/atoms/Button/States/Loading.js +26 -0
  320. package/esm/components/atoms/Button/States/Loading.js.map +1 -0
  321. package/esm/components/atoms/Button/States/Success.d.ts +4 -0
  322. package/esm/components/atoms/Button/States/Success.js +11 -0
  323. package/esm/components/atoms/Button/States/Success.js.map +1 -0
  324. package/esm/components/atoms/Button/States/index.d.ts +3 -0
  325. package/esm/components/atoms/Button/States/index.js +4 -0
  326. package/esm/components/atoms/Button/States/index.js.map +1 -0
  327. package/esm/components/atoms/Button/States/styled.d.ts +16 -0
  328. package/esm/components/atoms/Button/States/styled.js +25 -0
  329. package/esm/components/atoms/Button/States/styled.js.map +1 -0
  330. package/esm/components/atoms/Button/index.d.ts +3 -0
  331. package/esm/components/atoms/Button/index.js +3 -0
  332. package/esm/components/atoms/Button/index.js.map +1 -0
  333. package/esm/components/atoms/Button/styled.d.ts +8 -0
  334. package/esm/components/atoms/Button/styled.js +42 -0
  335. package/esm/components/atoms/Button/styled.js.map +1 -0
  336. package/esm/components/atoms/Card/Card.d.ts +9 -0
  337. package/esm/components/atoms/Card/Card.js +33 -0
  338. package/esm/components/atoms/Card/Card.js.map +1 -0
  339. package/esm/components/atoms/Card/Footer/Footer.d.ts +7 -0
  340. package/esm/components/atoms/Card/Footer/Footer.js +13 -0
  341. package/esm/components/atoms/Card/Footer/Footer.js.map +1 -0
  342. package/esm/components/atoms/Card/Footer/index.d.ts +2 -0
  343. package/esm/components/atoms/Card/Footer/index.js +2 -0
  344. package/esm/components/atoms/Card/Footer/index.js.map +1 -0
  345. package/esm/components/atoms/Card/Header/Header.d.ts +7 -0
  346. package/esm/components/atoms/Card/Header/Header.js +13 -0
  347. package/esm/components/atoms/Card/Header/Header.js.map +1 -0
  348. package/esm/components/atoms/Card/Header/index.d.ts +2 -0
  349. package/esm/components/atoms/Card/Header/index.js +2 -0
  350. package/esm/components/atoms/Card/Header/index.js.map +1 -0
  351. package/esm/components/atoms/Card/index.d.ts +2 -0
  352. package/esm/components/atoms/Card/index.js +2 -0
  353. package/esm/components/atoms/Card/index.js.map +1 -0
  354. package/esm/components/atoms/Card/styled.d.ts +8 -0
  355. package/esm/components/atoms/Card/styled.js +11 -0
  356. package/esm/components/atoms/Card/styled.js.map +1 -0
  357. package/esm/components/atoms/Checkbox/Checkbox.d.ts +14 -0
  358. package/esm/components/atoms/Checkbox/Checkbox.js +56 -0
  359. package/esm/components/atoms/Checkbox/Checkbox.js.map +1 -0
  360. package/esm/components/atoms/Checkbox/index.d.ts +2 -0
  361. package/esm/components/atoms/Checkbox/index.js +2 -0
  362. package/esm/components/atoms/Checkbox/index.js.map +1 -0
  363. package/esm/components/atoms/Checkbox/styled.d.ts +27 -0
  364. package/esm/components/atoms/Checkbox/styled.js +50 -0
  365. package/esm/components/atoms/Checkbox/styled.js.map +1 -0
  366. package/esm/components/atoms/Divider/Divider.d.ts +8 -0
  367. package/esm/components/atoms/Divider/Divider.js +18 -0
  368. package/esm/components/atoms/Divider/Divider.js.map +1 -0
  369. package/esm/components/atoms/Divider/index.d.ts +2 -0
  370. package/esm/components/atoms/Divider/index.js +2 -0
  371. package/esm/components/atoms/Divider/index.js.map +1 -0
  372. package/esm/components/atoms/Divider/styled.d.ts +13 -0
  373. package/esm/components/atoms/Divider/styled.js +28 -0
  374. package/esm/components/atoms/Divider/styled.js.map +1 -0
  375. package/esm/components/atoms/GroupButton/GroupButton.d.ts +32 -0
  376. package/esm/components/atoms/GroupButton/GroupButton.js +78 -0
  377. package/esm/components/atoms/GroupButton/GroupButton.js.map +1 -0
  378. package/esm/components/atoms/GroupButton/GroupButtonOption.d.ts +9 -0
  379. package/esm/components/atoms/GroupButton/GroupButtonOption.js +19 -0
  380. package/esm/components/atoms/GroupButton/GroupButtonOption.js.map +1 -0
  381. package/esm/components/atoms/GroupButton/index.d.ts +4 -0
  382. package/esm/components/atoms/GroupButton/index.js +3 -0
  383. package/esm/components/atoms/GroupButton/index.js.map +1 -0
  384. package/esm/components/atoms/GroupButton/styled.d.ts +42 -0
  385. package/esm/components/atoms/GroupButton/styled.js +97 -0
  386. package/esm/components/atoms/GroupButton/styled.js.map +1 -0
  387. package/esm/components/atoms/Icon/Icon.d.ts +14 -0
  388. package/esm/components/atoms/Icon/Icon.js +37 -0
  389. package/esm/components/atoms/Icon/Icon.js.map +1 -0
  390. package/esm/components/atoms/Icon/helpers.d.ts +4 -0
  391. package/esm/components/atoms/Icon/helpers.js +78 -0
  392. package/esm/components/atoms/Icon/helpers.js.map +1 -0
  393. package/esm/components/atoms/Icon/index.d.ts +2 -0
  394. package/esm/components/atoms/Icon/index.js +2 -0
  395. package/esm/components/atoms/Icon/index.js.map +1 -0
  396. package/esm/components/atoms/Input/Hint.d.ts +10 -0
  397. package/esm/components/atoms/Input/Hint.js +41 -0
  398. package/esm/components/atoms/Input/Hint.js.map +1 -0
  399. package/esm/components/atoms/Input/InputContainer/InputContainer.d.ts +29 -0
  400. package/esm/components/atoms/Input/InputContainer/InputContainer.js +66 -0
  401. package/esm/components/atoms/Input/InputContainer/InputContainer.js.map +1 -0
  402. package/esm/components/atoms/Input/InputElement/InputElement.d.ts +13 -0
  403. package/esm/components/atoms/Input/InputElement/InputElement.js +37 -0
  404. package/esm/components/atoms/Input/InputElement/InputElement.js.map +1 -0
  405. package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.d.ts +16 -0
  406. package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +92 -0
  407. package/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js.map +1 -0
  408. package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +10 -0
  409. package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +30 -0
  410. package/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js.map +1 -0
  411. package/esm/components/atoms/Input/PressableInputContainer/index.d.ts +2 -0
  412. package/esm/components/atoms/Input/PressableInputContainer/index.js +2 -0
  413. package/esm/components/atoms/Input/PressableInputContainer/index.js.map +1 -0
  414. package/esm/components/atoms/Input/PressableInputContainer/styled.d.ts +5 -0
  415. package/esm/components/atoms/Input/PressableInputContainer/styled.js +7 -0
  416. package/esm/components/atoms/Input/PressableInputContainer/styled.js.map +1 -0
  417. package/esm/components/atoms/Input/hooks/useInputFocus.d.ts +5 -0
  418. package/esm/components/atoms/Input/hooks/useInputFocus.js +40 -0
  419. package/esm/components/atoms/Input/hooks/useInputFocus.js.map +1 -0
  420. package/esm/components/atoms/Input/hooks/useNumberMask.d.ts +8 -0
  421. package/esm/components/atoms/Input/hooks/useNumberMask.js +108 -0
  422. package/esm/components/atoms/Input/hooks/useNumberMask.js.map +1 -0
  423. package/esm/components/atoms/Input/hooks/useStringMask.d.ts +8 -0
  424. package/esm/components/atoms/Input/hooks/useStringMask.js +116 -0
  425. package/esm/components/atoms/Input/hooks/useStringMask.js.map +1 -0
  426. package/esm/components/atoms/Input/index.d.ts +13 -0
  427. package/esm/components/atoms/Input/index.js +10 -0
  428. package/esm/components/atoms/Input/index.js.map +1 -0
  429. package/esm/components/atoms/Input/styled.d.ts +64 -0
  430. package/esm/components/atoms/Input/styled.js +93 -0
  431. package/esm/components/atoms/Input/styled.js.map +1 -0
  432. package/esm/components/atoms/Paper/Paper.d.ts +8 -0
  433. package/esm/components/atoms/Paper/Paper.js +24 -0
  434. package/esm/components/atoms/Paper/Paper.js.map +1 -0
  435. package/esm/components/atoms/Paper/index.d.ts +2 -0
  436. package/esm/components/atoms/Paper/index.js +2 -0
  437. package/esm/components/atoms/Paper/index.js.map +1 -0
  438. package/esm/components/atoms/Paper/styled.d.ts +9 -0
  439. package/esm/components/atoms/Paper/styled.js +11 -0
  440. package/esm/components/atoms/Paper/styled.js.map +1 -0
  441. package/esm/components/atoms/PressableSurface/PressableSurface.d.ts +10 -0
  442. package/esm/components/atoms/PressableSurface/PressableSurface.js +86 -0
  443. package/esm/components/atoms/PressableSurface/PressableSurface.js.map +1 -0
  444. package/esm/components/atoms/PressableSurface/index.d.ts +2 -0
  445. package/esm/components/atoms/PressableSurface/index.js +2 -0
  446. package/esm/components/atoms/PressableSurface/index.js.map +1 -0
  447. package/esm/components/atoms/ProgressBar/ProgressBar.d.ts +18 -0
  448. package/esm/components/atoms/ProgressBar/ProgressBar.js +90 -0
  449. package/esm/components/atoms/ProgressBar/ProgressBar.js.map +1 -0
  450. package/esm/components/atoms/ProgressBar/index.d.ts +2 -0
  451. package/esm/components/atoms/ProgressBar/index.js +2 -0
  452. package/esm/components/atoms/ProgressBar/index.js.map +1 -0
  453. package/esm/components/atoms/ProgressBar/styled.d.ts +20 -0
  454. package/esm/components/atoms/ProgressBar/styled.js +26 -0
  455. package/esm/components/atoms/ProgressBar/styled.js.map +1 -0
  456. package/esm/components/atoms/RadioButton/RadioButton.d.ts +14 -0
  457. package/esm/components/atoms/RadioButton/RadioButton.js +51 -0
  458. package/esm/components/atoms/RadioButton/RadioButton.js.map +1 -0
  459. package/esm/components/atoms/RadioButton/index.d.ts +2 -0
  460. package/esm/components/atoms/RadioButton/index.js +2 -0
  461. package/esm/components/atoms/RadioButton/index.js.map +1 -0
  462. package/esm/components/atoms/RadioButton/styled.d.ts +27 -0
  463. package/esm/components/atoms/RadioButton/styled.js +30 -0
  464. package/esm/components/atoms/RadioButton/styled.js.map +1 -0
  465. package/esm/components/atoms/Switch/Switch.d.ts +16 -0
  466. package/esm/components/atoms/Switch/Switch.js +87 -0
  467. package/esm/components/atoms/Switch/Switch.js.map +1 -0
  468. package/esm/components/atoms/Switch/animation.d.ts +2 -0
  469. package/esm/components/atoms/Switch/animation.js +33 -0
  470. package/esm/components/atoms/Switch/animation.js.map +1 -0
  471. package/esm/components/atoms/Switch/index.d.ts +2 -0
  472. package/esm/components/atoms/Switch/index.js +2 -0
  473. package/esm/components/atoms/Switch/index.js.map +1 -0
  474. package/esm/components/atoms/Switch/styled.d.ts +16 -0
  475. package/esm/components/atoms/Switch/styled.js +24 -0
  476. package/esm/components/atoms/Switch/styled.js.map +1 -0
  477. package/esm/components/atoms/Tag/Tag.d.ts +12 -0
  478. package/esm/components/atoms/Tag/Tag.js +80 -0
  479. package/esm/components/atoms/Tag/Tag.js.map +1 -0
  480. package/esm/components/atoms/Tag/index.d.ts +2 -0
  481. package/esm/components/atoms/Tag/index.js +2 -0
  482. package/esm/components/atoms/Tag/index.js.map +1 -0
  483. package/esm/components/atoms/Tag/styled.d.ts +24 -0
  484. package/esm/components/atoms/Tag/styled.js +39 -0
  485. package/esm/components/atoms/Tag/styled.js.map +1 -0
  486. package/esm/components/atoms/Text/Text.d.ts +19 -0
  487. package/esm/components/atoms/Text/Text.js +47 -0
  488. package/esm/components/atoms/Text/Text.js.map +1 -0
  489. package/esm/components/atoms/Text/functions.d.ts +2 -0
  490. package/esm/components/atoms/Text/functions.js +7 -0
  491. package/esm/components/atoms/Text/functions.js.map +1 -0
  492. package/esm/components/atoms/Text/index.d.ts +2 -0
  493. package/esm/components/atoms/Text/index.js +2 -0
  494. package/esm/components/atoms/Text/index.js.map +1 -0
  495. package/esm/components/atoms/Text/styled.d.ts +20 -0
  496. package/esm/components/atoms/Text/styled.js +46 -0
  497. package/esm/components/atoms/Text/styled.js.map +1 -0
  498. package/esm/components/atoms/shared/PaperAndCard.d.ts +5 -0
  499. package/esm/components/atoms/shared/PaperAndCard.js +25 -0
  500. package/esm/components/atoms/shared/PaperAndCard.js.map +1 -0
  501. package/esm/components/molecules/Calendar/Calendar.d.ts +20 -0
  502. package/esm/components/molecules/Calendar/Calendar.js +144 -0
  503. package/esm/components/molecules/Calendar/Calendar.js.map +1 -0
  504. package/esm/components/molecules/Calendar/components/MonthWeek.d.ts +13 -0
  505. package/esm/components/molecules/Calendar/components/MonthWeek.js +128 -0
  506. package/esm/components/molecules/Calendar/components/MonthWeek.js.map +1 -0
  507. package/esm/components/molecules/Calendar/components/Weekdays.d.ts +8 -0
  508. package/esm/components/molecules/Calendar/components/Weekdays.js +29 -0
  509. package/esm/components/molecules/Calendar/components/Weekdays.js.map +1 -0
  510. package/esm/components/molecules/Calendar/components/index.d.ts +2 -0
  511. package/esm/components/molecules/Calendar/components/index.js +3 -0
  512. package/esm/components/molecules/Calendar/components/index.js.map +1 -0
  513. package/esm/components/molecules/Calendar/index.d.ts +2 -0
  514. package/esm/components/molecules/Calendar/index.js +2 -0
  515. package/esm/components/molecules/Calendar/index.js.map +1 -0
  516. package/esm/components/molecules/Calendar/styled.d.ts +61 -0
  517. package/esm/components/molecules/Calendar/styled.js +56 -0
  518. package/esm/components/molecules/Calendar/styled.js.map +1 -0
  519. package/esm/components/molecules/DatePicker/DatePicker.d.ts +19 -0
  520. package/esm/components/molecules/DatePicker/DatePicker.js +120 -0
  521. package/esm/components/molecules/DatePicker/DatePicker.js.map +1 -0
  522. package/esm/components/molecules/DatePicker/index.d.ts +2 -0
  523. package/esm/components/molecules/DatePicker/index.js +2 -0
  524. package/esm/components/molecules/DatePicker/index.js.map +1 -0
  525. package/esm/components/molecules/DatePicker/styled.d.ts +15 -0
  526. package/esm/components/molecules/DatePicker/styled.js +22 -0
  527. package/esm/components/molecules/DatePicker/styled.js.map +1 -0
  528. package/esm/components/molecules/DateTimePicker/DateTimePicker.d.ts +17 -0
  529. package/esm/components/molecules/DateTimePicker/DateTimePicker.js +122 -0
  530. package/esm/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -0
  531. package/esm/components/molecules/DateTimePicker/index.d.ts +2 -0
  532. package/esm/components/molecules/DateTimePicker/index.js +2 -0
  533. package/esm/components/molecules/DateTimePicker/index.js.map +1 -0
  534. package/esm/components/molecules/DateTimePicker/styled.d.ts +8 -0
  535. package/esm/components/molecules/DateTimePicker/styled.js +12 -0
  536. package/esm/components/molecules/DateTimePicker/styled.js.map +1 -0
  537. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.d.ts +28 -0
  538. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +219 -0
  539. package/esm/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -0
  540. package/esm/components/molecules/DateTimeSelector/Selector.d.ts +17 -0
  541. package/esm/components/molecules/DateTimeSelector/Selector.js +113 -0
  542. package/esm/components/molecules/DateTimeSelector/Selector.js.map +1 -0
  543. package/esm/components/molecules/DateTimeSelector/index.d.ts +2 -0
  544. package/esm/components/molecules/DateTimeSelector/index.js +2 -0
  545. package/esm/components/molecules/DateTimeSelector/index.js.map +1 -0
  546. package/esm/components/molecules/DateTimeSelector/styled.d.ts +52 -0
  547. package/esm/components/molecules/DateTimeSelector/styled.js +54 -0
  548. package/esm/components/molecules/DateTimeSelector/styled.js.map +1 -0
  549. package/esm/components/molecules/Grid/functions.d.ts +3 -0
  550. package/esm/components/molecules/Grid/functions.js +16 -0
  551. package/esm/components/molecules/Grid/functions.js.map +1 -0
  552. package/esm/components/molecules/Grid/index.d.ts +42 -0
  553. package/esm/components/molecules/Grid/index.js +2 -0
  554. package/esm/components/molecules/Grid/index.js.map +1 -0
  555. package/esm/components/molecules/HintInputContainer/HintInputContainer.d.ts +17 -0
  556. package/esm/components/molecules/HintInputContainer/HintInputContainer.js +46 -0
  557. package/esm/components/molecules/HintInputContainer/HintInputContainer.js.map +1 -0
  558. package/esm/components/molecules/HintInputContainer/index.d.ts +2 -0
  559. package/esm/components/molecules/HintInputContainer/index.js +2 -0
  560. package/esm/components/molecules/HintInputContainer/index.js.map +1 -0
  561. package/esm/components/molecules/HintInputContainer/styled.d.ts +0 -0
  562. package/esm/components/molecules/HintInputContainer/styled.js +2 -0
  563. package/esm/components/molecules/HintInputContainer/styled.js.map +1 -0
  564. package/esm/components/molecules/IconTextButton/IconComponent.d.ts +9 -0
  565. package/esm/components/molecules/IconTextButton/IconComponent.js +20 -0
  566. package/esm/components/molecules/IconTextButton/IconComponent.js.map +1 -0
  567. package/esm/components/molecules/IconTextButton/IconTextButton.d.ts +8 -0
  568. package/esm/components/molecules/IconTextButton/IconTextButton.js +2 -0
  569. package/esm/components/molecules/IconTextButton/IconTextButton.js.map +1 -0
  570. package/esm/components/molecules/IconTextButton/index.d.ts +2 -0
  571. package/esm/components/molecules/IconTextButton/index.js +2 -0
  572. package/esm/components/molecules/IconTextButton/index.js.map +1 -0
  573. package/esm/components/molecules/IconTextButton/styled.d.ts +11 -0
  574. package/esm/components/molecules/IconTextButton/styled.js +14 -0
  575. package/esm/components/molecules/IconTextButton/styled.js.map +1 -0
  576. package/esm/components/molecules/InputPassword/InputPasswordIcon.d.ts +8 -0
  577. package/esm/components/molecules/InputPassword/InputPasswordIcon.js +33 -0
  578. package/esm/components/molecules/InputPassword/InputPasswordIcon.js.map +1 -0
  579. package/esm/components/molecules/InputPassword/index.d.ts +1 -0
  580. package/esm/components/molecules/InputPassword/index.js +2 -0
  581. package/esm/components/molecules/InputPassword/index.js.map +1 -0
  582. package/esm/components/molecules/InputPassword/styled.d.ts +7 -0
  583. package/esm/components/molecules/InputPassword/styled.js +11 -0
  584. package/esm/components/molecules/InputPassword/styled.js.map +1 -0
  585. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +7 -0
  586. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +2 -0
  587. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -0
  588. package/esm/components/molecules/LabeledSwitch/index.d.ts +1 -0
  589. package/esm/components/molecules/LabeledSwitch/index.js +2 -0
  590. package/esm/components/molecules/LabeledSwitch/index.js.map +1 -0
  591. package/esm/components/molecules/Snackbar/Snackbar.d.ts +19 -0
  592. package/esm/components/molecules/Snackbar/Snackbar.js +103 -0
  593. package/esm/components/molecules/Snackbar/Snackbar.js.map +1 -0
  594. package/esm/components/molecules/Snackbar/index.d.ts +2 -0
  595. package/esm/components/molecules/Snackbar/index.js +2 -0
  596. package/esm/components/molecules/Snackbar/index.js.map +1 -0
  597. package/esm/components/molecules/Snackbar/styled.d.ts +47 -0
  598. package/esm/components/molecules/Snackbar/styled.js +54 -0
  599. package/esm/components/molecules/Snackbar/styled.js.map +1 -0
  600. package/esm/components/molecules/TextArea/TextArea.d.ts +14 -0
  601. package/esm/components/molecules/TextArea/TextArea.js +77 -0
  602. package/esm/components/molecules/TextArea/TextArea.js.map +1 -0
  603. package/esm/components/molecules/TextArea/index.d.ts +3 -0
  604. package/esm/components/molecules/TextArea/index.js +3 -0
  605. package/esm/components/molecules/TextArea/index.js.map +1 -0
  606. package/esm/components/molecules/TextArea/styled.d.ts +12 -0
  607. package/esm/components/molecules/TextArea/styled.js +14 -0
  608. package/esm/components/molecules/TextArea/styled.js.map +1 -0
  609. package/esm/hooks/index.d.ts +2 -0
  610. package/esm/hooks/index.js +3 -0
  611. package/esm/hooks/index.js.map +1 -0
  612. package/esm/hooks/useDebouncedState.d.ts +2 -0
  613. package/esm/hooks/useDebouncedState.js +31 -0
  614. package/esm/hooks/useDebouncedState.js.map +1 -0
  615. package/esm/hooks/useTheme.d.ts +2 -0
  616. package/esm/hooks/useTheme.js +5 -0
  617. package/esm/hooks/useTheme.js.map +1 -0
  618. package/esm/index.d.ts +64 -0
  619. package/esm/index.js +36 -0
  620. package/esm/index.js.map +1 -0
  621. package/esm/styles/ThemeProvider.d.ts +4 -0
  622. package/esm/styles/ThemeProvider.js +13 -0
  623. package/esm/styles/ThemeProvider.js.map +1 -0
  624. package/esm/styles/definitions.d.ts +45 -0
  625. package/esm/styles/definitions.js +168 -0
  626. package/esm/styles/definitions.js.map +1 -0
  627. package/esm/styles/light.d.ts +2 -0
  628. package/esm/styles/light.js +42 -0
  629. package/esm/styles/light.js.map +1 -0
  630. package/esm/types/defaults.d.ts +134 -0
  631. package/esm/types/defaults.js +2 -0
  632. package/esm/types/defaults.js.map +1 -0
  633. package/esm/utils/IPhoneXHelper.d.ts +4 -0
  634. package/esm/utils/IPhoneXHelper.js +23 -0
  635. package/esm/utils/IPhoneXHelper.js.map +1 -0
  636. package/esm/utils/ResponsiveFontSize.d.ts +3 -0
  637. package/esm/utils/ResponsiveFontSize.js +37 -0
  638. package/esm/utils/ResponsiveFontSize.js.map +1 -0
  639. package/esm/utils/extractNumbersFromString.d.ts +2 -0
  640. package/esm/utils/extractNumbersFromString.js +7 -0
  641. package/esm/utils/extractNumbersFromString.js.map +1 -0
  642. package/esm/utils/formatWithMask.d.ts +3 -0
  643. package/esm/utils/formatWithMask.js +19 -0
  644. package/esm/utils/formatWithMask.js.map +1 -0
  645. package/esm/utils/index.d.ts +7 -0
  646. package/esm/utils/index.js +8 -0
  647. package/esm/utils/index.js.map +1 -0
  648. package/esm/utils/lightenDarkenColor.d.ts +1 -0
  649. package/esm/utils/lightenDarkenColor.js +18 -0
  650. package/esm/utils/lightenDarkenColor.js.map +1 -0
  651. package/esm/utils/masks.d.ts +11 -0
  652. package/esm/utils/masks.js +19 -0
  653. package/esm/utils/masks.js.map +1 -0
  654. package/esm/utils/variantComplement.d.ts +6 -0
  655. package/esm/utils/variantComplement.js +26 -0
  656. package/esm/utils/variantComplement.js.map +1 -0
  657. package/package.json +9 -4
  658. package/src/components/atoms/Avatar/index.ts +2 -1
  659. package/src/components/atoms/Badge/index.ts +2 -1
  660. package/src/components/atoms/BoxContent/index.ts +2 -1
  661. package/src/components/atoms/Button/index.ts +3 -3
  662. package/src/components/atoms/Card/Footer/index.ts +2 -1
  663. package/src/components/atoms/Card/Header/index.ts +2 -1
  664. package/src/components/atoms/Card/index.ts +2 -1
  665. package/src/components/atoms/Checkbox/index.ts +2 -1
  666. package/src/components/atoms/Divider/index.ts +2 -1
  667. package/src/components/atoms/GroupButton/index.ts +4 -9
  668. package/src/components/atoms/Icon/index.ts +2 -1
  669. package/src/components/atoms/Input/PressableInputContainer/index.ts +2 -4
  670. package/src/components/atoms/Input/index.ts +8 -14
  671. package/src/components/atoms/Paper/index.ts +2 -1
  672. package/src/components/atoms/PressableSurface/index.ts +2 -4
  673. package/src/components/atoms/ProgressBar/index.ts +2 -1
  674. package/src/components/atoms/RadioButton/index.ts +2 -1
  675. package/src/components/atoms/Switch/index.ts +2 -1
  676. package/src/components/atoms/Tag/index.ts +2 -1
  677. package/src/components/atoms/Text/index.ts +2 -1
  678. package/src/components/molecules/Calendar/index.ts +2 -2
  679. package/src/components/molecules/DatePicker/index.ts +2 -1
  680. package/src/components/molecules/DateTimePicker/index.ts +2 -4
  681. package/src/components/molecules/DateTimeSelector/index.ts +2 -2
  682. package/src/components/molecules/IconTextButton/index.ts +4 -1
  683. package/src/components/molecules/LabeledSwitch/index.ts +1 -1
  684. package/src/components/molecules/Snackbar/index.ts +2 -1
  685. package/src/components/molecules/TextArea/index.ts +2 -1
  686. package/src/index.ts +64 -56
  687. package/tsconfig.build.esm.json +10 -0
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.TextContainer = exports.StyledProgressBar = exports.StyledContainerFlexRow = exports.SnackbarContainer = exports.IconContainer = exports.DismissContainer = exports.ContentContainer = void 0;
5
7
 
6
8
  var _native = _interopRequireWildcard(require("@emotion/native"));
@@ -15,95 +17,69 @@ var _PressableSurface = require("../../atoms/PressableSurface");
15
17
 
16
18
  var _ProgressBar = require("../../atoms/ProgressBar");
17
19
 
20
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
21
+
18
22
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
23
 
20
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
25
 
22
- const baseStyles = ({
23
- theme,
24
- colorTone = 'xlight',
25
- colorVariant = 'primary',
26
- visible
27
- }) => (0, _native.css)`
28
- padding: 0;
29
- border-radius: ${theme.borderRadius.mili};
30
- background-color: ${theme.color[colorVariant][colorTone]};
31
- position: absolute;
32
- z-index: ${theme.zIndex.modal};
33
- display: ${visible ? 'flex' : 'none'};
34
- flex-direction: column;
35
- justify-content: space-between;
36
- align-items: stretch;
37
- `;
26
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
27
+
28
+ const baseStyles = _ref => {
29
+ let {
30
+ theme,
31
+ colorTone = 'xlight',
32
+ colorVariant = 'primary',
33
+ visible
34
+ } = _ref;
35
+ return (0, _native.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 0;\n border-radius: ", ";\n background-color: ", ";\n position: absolute;\n z-index: ", ";\n display: ", ";\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n"])), theme.borderRadius.mili, theme.color[colorVariant][colorTone], theme.zIndex.modal, visible ? 'flex' : 'none');
36
+ };
38
37
 
39
- const anchorTop = ({
40
- theme,
41
- anchor,
42
- anchorDistance
43
- }) => {
44
- return anchor === 'top' && (0, _native.css)`
45
- top: ${anchorDistance ? `${(0, _utils.RFValue)(anchorDistance)}px` : theme.spacing.deca};
46
- `;
38
+ const anchorTop = _ref2 => {
39
+ let {
40
+ theme,
41
+ anchor,
42
+ anchorDistance
43
+ } = _ref2;
44
+ return anchor === 'top' && (0, _native.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n top: ", ";\n "])), anchorDistance ? "".concat((0, _utils.RFValue)(anchorDistance), "px") : theme.spacing.deca);
47
45
  };
48
46
 
49
- const anchorBottom = ({
50
- theme,
51
- anchor,
52
- anchorDistance
53
- }) => {
54
- return anchor === 'bottom' && (0, _native.css)`
55
- bottom: ${anchorDistance ? `${(0, _utils.RFValue)(anchorDistance)}px` : theme.spacing.deca};
56
- `;
47
+ const anchorBottom = _ref3 => {
48
+ let {
49
+ theme,
50
+ anchor,
51
+ anchorDistance
52
+ } = _ref3;
53
+ return anchor === 'bottom' && (0, _native.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n bottom: ", ";\n "])), anchorDistance ? "".concat((0, _utils.RFValue)(anchorDistance), "px") : theme.spacing.deca);
57
54
  };
58
55
 
59
- const SnackbarContainer = (0, _native.default)(_Paper.Paper)(props => (0, _native.css)`
60
- ${baseStyles(props)}
61
- ${anchorBottom(props)}
62
- ${anchorTop(props)}
63
- `);
56
+ const SnackbarContainer = (0, _native.default)(_Paper.Paper)(props => (0, _native.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n "])), baseStyles(props), anchorBottom(props), anchorTop(props)));
64
57
  exports.SnackbarContainer = SnackbarContainer;
65
- const ContentContainer = (0, _native.default)(_reactNative.View)`
66
- flex-direction: row;
67
- display: flex;
68
- align-items: center;
69
- flex-shrink: 1;
70
- `;
58
+ const ContentContainer = (0, _native.default)(_reactNative.View)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n flex-direction: row;\n display: flex;\n align-items: center;\n flex-shrink: 1;\n"])));
71
59
  exports.ContentContainer = ContentContainer;
72
- const IconContainer = (0, _native.default)(_reactNative.View)`
73
- flex-direction: row;
74
- display: flex;
75
- align-items: center;
76
- margin-right: ${({
77
- theme
78
- }) => theme.spacing.mili};
79
- `;
60
+ const IconContainer = (0, _native.default)(_reactNative.View)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-right: ", ";\n"])), _ref4 => {
61
+ let {
62
+ theme
63
+ } = _ref4;
64
+ return theme.spacing.mili;
65
+ });
80
66
  exports.IconContainer = IconContainer;
81
- const DismissContainer = (0, _native.default)(_PressableSurface.PressableSurface)`
82
- flex-direction: row;
83
- display: flex;
84
- align-items: center;
85
- margin-left: ${({
86
- theme
87
- }) => theme.spacing.mili};
88
- `;
67
+ const DismissContainer = (0, _native.default)(_PressableSurface.PressableSurface)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-left: ", ";\n"])), _ref5 => {
68
+ let {
69
+ theme
70
+ } = _ref5;
71
+ return theme.spacing.mili;
72
+ });
89
73
  exports.DismissContainer = DismissContainer;
90
- const StyledProgressBar = (0, _native.default)(_ProgressBar.ProgressBar)`
91
- border-top-left-radius: 0;
92
- border-top-right-radius: 0;
93
- `;
74
+ const StyledProgressBar = (0, _native.default)(_ProgressBar.ProgressBar)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n"])));
94
75
  exports.StyledProgressBar = StyledProgressBar;
95
- const StyledContainerFlexRow = (0, _native.default)(_reactNative.View)`
96
- display: flex;
97
- flex-direction: row;
98
- justify-content: space-between;
99
- padding: ${({
100
- theme
101
- }) => theme.spacing.mili};
102
- `;
76
+ const StyledContainerFlexRow = (0, _native.default)(_reactNative.View)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: ", ";\n"])), _ref6 => {
77
+ let {
78
+ theme
79
+ } = _ref6;
80
+ return theme.spacing.mili;
81
+ });
103
82
  exports.StyledContainerFlexRow = StyledContainerFlexRow;
104
- const TextContainer = (0, _native.default)(_reactNative.View)`
105
- display: flex;
106
- flex-shrink: 1;
107
- `;
83
+ const TextContainer = (0, _native.default)(_reactNative.View)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n flex-shrink: 1;\n"])));
108
84
  exports.TextContainer = TextContainer;
109
85
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["baseStyles","theme","colorTone","colorVariant","visible","css","borderRadius","mili","color","zIndex","modal","anchorTop","anchor","anchorDistance","RFValue","spacing","deca","anchorBottom","SnackbarContainer","styled","Paper","props","ContentContainer","View","IconContainer","DismissContainer","PressableSurface","StyledProgressBar","ProgressBar","StyledContainerFlexRow","TextContainer"],"sources":["../../../../src/components/molecules/Snackbar/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { View } from 'react-native';\nimport { StyleProps } from '../../../types/defaults';\nimport { RFValue } from '../../../utils';\nimport { Paper } from '../../atoms/Paper';\nimport { PressableSurface } from '../../atoms/PressableSurface';\nimport { ProgressBar } from '../../atoms/ProgressBar';\nimport { SnackbarProps } from './Snackbar';\n\nconst baseStyles = ({\n theme,\n colorTone = 'xlight',\n colorVariant = 'primary',\n visible,\n}: StyleProps & Partial<SnackbarProps> & { visible: boolean }) => css`\n padding: 0;\n border-radius: ${theme.borderRadius.mili};\n background-color: ${theme.color[colorVariant][colorTone]};\n position: absolute;\n z-index: ${theme.zIndex.modal};\n display: ${visible ? 'flex' : 'none'};\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n`;\n\nconst anchorTop = ({\n theme,\n anchor,\n anchorDistance,\n}: Partial<SnackbarProps> & StyleProps) => {\n return (\n anchor === 'top' &&\n css`\n top: ${anchorDistance\n ? `${RFValue(anchorDistance)}px`\n : theme.spacing.deca};\n `\n );\n};\n\nconst anchorBottom = ({\n theme,\n anchor,\n anchorDistance,\n}: Partial<SnackbarProps> & StyleProps) => {\n return (\n anchor === 'bottom' &&\n css`\n bottom: ${anchorDistance\n ? `${RFValue(anchorDistance)}px`\n : theme.spacing.deca};\n `\n );\n};\n\nexport const SnackbarContainer = styled(Paper)<\n Partial<SnackbarProps & StyleProps> & { visible: boolean }\n>(\n props => css`\n ${baseStyles(props)}\n ${anchorBottom(props)}\n ${anchorTop(props)}\n `\n);\n\nexport const ContentContainer = styled(View)`\n flex-direction: row;\n display: flex;\n align-items: center;\n flex-shrink: 1;\n`;\n\nexport const IconContainer = styled(View)<Partial<StyleProps>>`\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-right: ${({ theme }) => theme.spacing.mili};\n`;\n\nexport const DismissContainer = styled(PressableSurface)<Partial<StyleProps>>`\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-left: ${({ theme }) => theme.spacing.mili};\n`;\n\nexport const StyledProgressBar = styled(ProgressBar)<Partial<StyleProps>>`\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n`;\n\nexport const StyledContainerFlexRow = styled(View)<Partial<StyleProps>>`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: ${({ theme }) => theme.spacing.mili};\n`;\n\nexport const TextContainer = styled(View)`\n display: flex;\n flex-shrink: 1;\n`;\n"],"mappings":";;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;AAGA,MAAMA,UAAU,GAAG,CAAC;EAClBC,KADkB;EAElBC,SAAS,GAAG,QAFM;EAGlBC,YAAY,GAAG,SAHG;EAIlBC;AAJkB,CAAD,KAK+C,IAAAC,WAAA,CAAI;AACtE;AACA,mBAAmBJ,KAAK,CAACK,YAAN,CAAmBC,IAAK;AAC3C,sBAAsBN,KAAK,CAACO,KAAN,CAAYL,YAAZ,EAA0BD,SAA1B,CAAqC;AAC3D;AACA,aAAaD,KAAK,CAACQ,MAAN,CAAaC,KAAM;AAChC,aAAaN,OAAO,GAAG,MAAH,GAAY,MAAO;AACvC;AACA;AACA;AACA,CAfA;;AAiBA,MAAMO,SAAS,GAAG,CAAC;EACjBV,KADiB;EAEjBW,MAFiB;EAGjBC;AAHiB,CAAD,KAIyB;EACzC,OACED,MAAM,KAAK,KAAX,IACA,IAAAP,WAAA,CAAI;AACR,aAAaQ,cAAc,GAChB,GAAE,IAAAC,cAAA,EAAQD,cAAR,CAAwB,IADV,GAEjBZ,KAAK,CAACc,OAAN,CAAcC,IAAK;AAC7B,KANE;AAQD,CAbD;;AAeA,MAAMC,YAAY,GAAG,CAAC;EACpBhB,KADoB;EAEpBW,MAFoB;EAGpBC;AAHoB,CAAD,KAIsB;EACzC,OACED,MAAM,KAAK,QAAX,IACA,IAAAP,WAAA,CAAI;AACR,gBAAgBQ,cAAc,GACnB,GAAE,IAAAC,cAAA,EAAQD,cAAR,CAAwB,IADP,GAEpBZ,KAAK,CAACc,OAAN,CAAcC,IAAK;AAC7B,KANE;AAQD,CAbD;;AAeO,MAAME,iBAAiB,GAAG,IAAAC,eAAA,EAAOC,YAAP,EAG/BC,KAAK,IAAI,IAAAhB,WAAA,CAAI;AACf,MAAML,UAAU,CAACqB,KAAD,CAAQ;AACxB,MAAMJ,YAAY,CAACI,KAAD,CAAQ;AAC1B,MAAMV,SAAS,CAACU,KAAD,CAAQ;AACvB,GAPiC,CAA1B;;AAUA,MAAMC,gBAAgB,GAAG,IAAAH,eAAA,EAAOI,iBAAP,CAAa;AAC7C;AACA;AACA;AACA;AACA,CALO;;AAOA,MAAMC,aAAa,GAAG,IAAAL,eAAA,EAAOI,iBAAP,CAAkC;AAC/D;AACA;AACA;AACA,kBAAkB,CAAC;EAAEtB;AAAF,CAAD,KAAeA,KAAK,CAACc,OAAN,CAAcR,IAAK;AACpD,CALO;;AAOA,MAAMkB,gBAAgB,GAAG,IAAAN,eAAA,EAAOO,kCAAP,CAA8C;AAC9E;AACA;AACA;AACA,iBAAiB,CAAC;EAAEzB;AAAF,CAAD,KAAeA,KAAK,CAACc,OAAN,CAAcR,IAAK;AACnD,CALO;;AAOA,MAAMoB,iBAAiB,GAAG,IAAAR,eAAA,EAAOS,wBAAP,CAAyC;AAC1E;AACA;AACA,CAHO;;AAKA,MAAMC,sBAAsB,GAAG,IAAAV,eAAA,EAAOI,iBAAP,CAAkC;AACxE;AACA;AACA;AACA,aAAa,CAAC;EAAEtB;AAAF,CAAD,KAAeA,KAAK,CAACc,OAAN,CAAcR,IAAK;AAC/C,CALO;;AAOA,MAAMuB,aAAa,GAAG,IAAAX,eAAA,EAAOI,iBAAP,CAAa;AAC1C;AACA;AACA,CAHO"}
1
+ {"version":3,"file":"styled.js","names":["baseStyles","theme","colorTone","colorVariant","visible","css","borderRadius","mili","color","zIndex","modal","anchorTop","anchor","anchorDistance","RFValue","spacing","deca","anchorBottom","SnackbarContainer","styled","Paper","props","ContentContainer","View","IconContainer","DismissContainer","PressableSurface","StyledProgressBar","ProgressBar","StyledContainerFlexRow","TextContainer"],"sources":["../../../../src/components/molecules/Snackbar/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { View } from 'react-native';\nimport { StyleProps } from '../../../types/defaults';\nimport { RFValue } from '../../../utils';\nimport { Paper } from '../../atoms/Paper';\nimport { PressableSurface } from '../../atoms/PressableSurface';\nimport { ProgressBar } from '../../atoms/ProgressBar';\nimport { SnackbarProps } from './Snackbar';\n\nconst baseStyles = ({\n theme,\n colorTone = 'xlight',\n colorVariant = 'primary',\n visible,\n}: StyleProps & Partial<SnackbarProps> & { visible: boolean }) => css`\n padding: 0;\n border-radius: ${theme.borderRadius.mili};\n background-color: ${theme.color[colorVariant][colorTone]};\n position: absolute;\n z-index: ${theme.zIndex.modal};\n display: ${visible ? 'flex' : 'none'};\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n`;\n\nconst anchorTop = ({\n theme,\n anchor,\n anchorDistance,\n}: Partial<SnackbarProps> & StyleProps) => {\n return (\n anchor === 'top' &&\n css`\n top: ${anchorDistance\n ? `${RFValue(anchorDistance)}px`\n : theme.spacing.deca};\n `\n );\n};\n\nconst anchorBottom = ({\n theme,\n anchor,\n anchorDistance,\n}: Partial<SnackbarProps> & StyleProps) => {\n return (\n anchor === 'bottom' &&\n css`\n bottom: ${anchorDistance\n ? `${RFValue(anchorDistance)}px`\n : theme.spacing.deca};\n `\n );\n};\n\nexport const SnackbarContainer = styled(Paper)<\n Partial<SnackbarProps & StyleProps> & { visible: boolean }\n>(\n props => css`\n ${baseStyles(props)}\n ${anchorBottom(props)}\n ${anchorTop(props)}\n `\n);\n\nexport const ContentContainer = styled(View)`\n flex-direction: row;\n display: flex;\n align-items: center;\n flex-shrink: 1;\n`;\n\nexport const IconContainer = styled(View)<Partial<StyleProps>>`\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-right: ${({ theme }) => theme.spacing.mili};\n`;\n\nexport const DismissContainer = styled(PressableSurface)<Partial<StyleProps>>`\n flex-direction: row;\n display: flex;\n align-items: center;\n margin-left: ${({ theme }) => theme.spacing.mili};\n`;\n\nexport const StyledProgressBar = styled(ProgressBar)<Partial<StyleProps>>`\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n`;\n\nexport const StyledContainerFlexRow = styled(View)<Partial<StyleProps>>`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: ${({ theme }) => theme.spacing.mili};\n`;\n\nexport const TextContainer = styled(View)`\n display: flex;\n flex-shrink: 1;\n`;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;AAGA,MAAMA,UAAU,GAAG;EAAA,IAAC;IAClBC,KADkB;IAElBC,SAAS,GAAG,QAFM;IAGlBC,YAAY,GAAG,SAHG;IAIlBC;EAJkB,CAAD;EAAA,WAK+CC,WAL/C,6RAOAJ,KAAK,CAACK,YAAN,CAAmBC,IAPnB,EAQGN,KAAK,CAACO,KAAN,CAAYL,YAAZ,EAA0BD,SAA1B,CARH,EAUND,KAAK,CAACQ,MAAN,CAAaC,KAVP,EAWNN,OAAO,GAAG,MAAH,GAAY,MAXb;AAAA,CAAnB;;AAiBA,MAAMO,SAAS,GAAG,SAIyB;EAAA,IAJxB;IACjBV,KADiB;IAEjBW,MAFiB;IAGjBC;EAHiB,CAIwB;EACzC,OACED,MAAM,KAAK,KAAX,QACAP,WADA,iGAESQ,cAAc,aACd,IAAAC,cAAA,EAAQD,cAAR,CADc,UAEjBZ,KAAK,CAACc,OAAN,CAAcC,IAJpB,CADF;AAQD,CAbD;;AAeA,MAAMC,YAAY,GAAG,SAIsB;EAAA,IAJrB;IACpBhB,KADoB;IAEpBW,MAFoB;IAGpBC;EAHoB,CAIqB;EACzC,OACED,MAAM,KAAK,QAAX,QACAP,WADA,oGAEYQ,cAAc,aACjB,IAAAC,cAAA,EAAQD,cAAR,CADiB,UAEpBZ,KAAK,CAACc,OAAN,CAAcC,IAJpB,CADF;AAQD,CAbD;;AAeO,MAAME,iBAAiB,GAAG,IAAAC,eAAA,EAAOC,YAAP,EAG/BC,KAAK,QAAIhB,WAAJ,2GACDL,UAAU,CAACqB,KAAD,CADT,EAEDJ,YAAY,CAACI,KAAD,CAFX,EAGDV,SAAS,CAACU,KAAD,CAHR,CAH0B,CAA1B;;AAUA,MAAMC,gBAAgB,GAAG,IAAAH,eAAA,EAAOI,iBAAP,CAAH,8JAAtB;;AAOA,MAAMC,aAAa,GAAG,IAAAL,eAAA,EAAOI,iBAAP,CAAH,mKAIR;EAAA,IAAC;IAAEtB;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACc,OAAN,CAAcR,IAA7B;AAAA,CAJQ,CAAnB;;AAOA,MAAMkB,gBAAgB,GAAG,IAAAN,eAAA,EAAOO,kCAAP,CAAH,kKAIZ;EAAA,IAAC;IAAEzB;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACc,OAAN,CAAcR,IAA7B;AAAA,CAJY,CAAtB;;AAOA,MAAMoB,iBAAiB,GAAG,IAAAR,eAAA,EAAOS,wBAAP,CAAH,sIAAvB;;AAKA,MAAMC,sBAAsB,GAAG,IAAAV,eAAA,EAAOI,iBAAP,CAAH,yKAItB;EAAA,IAAC;IAAEtB;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACc,OAAN,CAAcR,IAA7B;AAAA,CAJsB,CAA5B;;AAOA,MAAMuB,aAAa,GAAG,IAAAX,eAAA,EAAOI,iBAAP,CAAH,gHAAnB"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _react = _interopRequireDefault(require("react"));
@@ -15,30 +17,31 @@ var _styled = require("./styled");
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
- const TextArea = ({
19
- label,
20
- labelColor,
21
- labelColorVariant,
22
- labelColorTone,
23
- labelTypography,
24
- labelStack,
25
- labelWeight,
26
- leftComponent,
27
- rightComponent,
28
- disabled,
29
- style,
30
- borderColor,
31
- borderColorGradation,
32
- inputContainerStyle,
33
- variant = 'default',
34
- hintComponent,
35
- hint,
36
- TextComponent = _Text.Text,
37
- focused,
38
- children,
39
- maxLength: _maxLenght,
40
- value: _value
41
- }) => {
20
+ const TextArea = _ref => {
21
+ let {
22
+ label,
23
+ labelColor,
24
+ labelColorVariant,
25
+ labelColorTone,
26
+ labelTypography,
27
+ labelStack,
28
+ labelWeight,
29
+ leftComponent,
30
+ rightComponent,
31
+ disabled,
32
+ style,
33
+ borderColor,
34
+ borderColorGradation,
35
+ inputContainerStyle,
36
+ variant = 'default',
37
+ hintComponent,
38
+ hint,
39
+ TextComponent = _Text.Text,
40
+ focused,
41
+ children,
42
+ maxLength: _maxLenght,
43
+ value: _value
44
+ } = _ref;
42
45
  let length = _value.length;
43
46
  const maxLength = _maxLenght;
44
47
 
@@ -80,7 +83,7 @@ const TextArea = ({
80
83
  style: {
81
84
  textAlign: 'right'
82
85
  }
83
- }, `${length}/${maxLength}`)), hint && _hint);
86
+ }, "".concat(length, "/").concat(maxLength))), hint && _hint);
84
87
  };
85
88
 
86
89
  var _default = TextArea;
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","names":["TextArea","label","labelColor","labelColorVariant","labelColorTone","labelTypography","labelStack","labelWeight","leftComponent","rightComponent","disabled","style","borderColor","borderColorGradation","inputContainerStyle","variant","hintComponent","hint","TextComponent","Text","focused","children","maxLength","_maxLenght","value","_value","length","_hint","textAlign"],"sources":["../../../../src/components/molecules/TextArea/TextArea.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { View } from 'react-native';\nimport { FontStackType, FontWeightType } from '@tecsinapse/react-core';\nimport {\n Hint,\n InputContainerProps,\n InputElementProps,\n} from '../../atoms/Input';\nimport { Text, TextProps } from '../../atoms/Text';\nimport { StyledInputContainer } from './styled';\n\nexport interface TextAreaProps\n extends Omit<InputElementProps, 'style' | 'multiline' | 'value'>,\n InputContainerProps {\n inputFontStack?: FontStackType;\n inputFontWeight?: FontWeightType;\n maxCharCount?: number;\n value: string;\n // Omit below\n TextComponent?: FC<TextProps>;\n focused?: boolean;\n}\n\nconst TextArea: FC<TextAreaProps> = ({\n label,\n labelColor,\n labelColorVariant,\n labelColorTone,\n labelTypography,\n labelStack,\n labelWeight,\n leftComponent,\n rightComponent,\n disabled,\n style,\n borderColor,\n borderColorGradation,\n inputContainerStyle,\n variant = 'default',\n hintComponent,\n hint,\n TextComponent = Text,\n focused,\n children,\n maxLength: _maxLenght,\n value: _value,\n}) => {\n let length = _value.length;\n const maxLength = _maxLenght;\n if (maxLength && length > maxLength) {\n length = maxLength;\n }\n\n const _hint = hintComponent || (\n <Hint TextComponent={TextComponent} text={hint} variant={variant} />\n );\n\n return (\n <View style={style}>\n <StyledInputContainer\n label={label}\n labelColor={labelColor}\n labelColorVariant={labelColorVariant}\n labelColorTone={labelColorTone}\n labelTypography={labelTypography}\n labelStack={labelStack}\n labelWeight={labelWeight}\n LabelComponent={TextComponent}\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n borderColor={borderColor}\n borderColorGradation={borderColorGradation}\n inputContainerStyle={inputContainerStyle}\n focused={focused}\n disabled={disabled}\n variant={variant}\n >\n {children}\n {maxLength && (\n <TextComponent\n colorVariant={'secondary'}\n colorTone={'medium'}\n typography={'label'}\n fontStack={'default'}\n fontWeight={'bold'}\n style={{ textAlign: 'right' }}\n >\n {`${length}/${maxLength}`}\n </TextComponent>\n )}\n </StyledInputContainer>\n {hint && _hint}\n </View>\n );\n};\n\nexport default TextArea;\n"],"mappings":";;;;;AAAA;;AACA;;AAEA;;AAKA;;AACA;;;;AAcA,MAAMA,QAA2B,GAAG,CAAC;EACnCC,KADmC;EAEnCC,UAFmC;EAGnCC,iBAHmC;EAInCC,cAJmC;EAKnCC,eALmC;EAMnCC,UANmC;EAOnCC,WAPmC;EAQnCC,aARmC;EASnCC,cATmC;EAUnCC,QAVmC;EAWnCC,KAXmC;EAYnCC,WAZmC;EAanCC,oBAbmC;EAcnCC,mBAdmC;EAenCC,OAAO,GAAG,SAfyB;EAgBnCC,aAhBmC;EAiBnCC,IAjBmC;EAkBnCC,aAAa,GAAGC,UAlBmB;EAmBnCC,OAnBmC;EAoBnCC,QApBmC;EAqBnCC,SAAS,EAAEC,UArBwB;EAsBnCC,KAAK,EAAEC;AAtB4B,CAAD,KAuB9B;EACJ,IAAIC,MAAM,GAAGD,MAAM,CAACC,MAApB;EACA,MAAMJ,SAAS,GAAGC,UAAlB;;EACA,IAAID,SAAS,IAAII,MAAM,GAAGJ,SAA1B,EAAqC;IACnCI,MAAM,GAAGJ,SAAT;EACD;;EAED,MAAMK,KAAK,GAAGX,aAAa,IACzB,6BAAC,WAAD;IAAM,aAAa,EAAEE,aAArB;IAAoC,IAAI,EAAED,IAA1C;IAAgD,OAAO,EAAEF;EAAzD,EADF;;EAIA,OACE,6BAAC,iBAAD;IAAM,KAAK,EAAEJ;EAAb,GACE,6BAAC,4BAAD;IACE,KAAK,EAAEV,KADT;IAEE,UAAU,EAAEC,UAFd;IAGE,iBAAiB,EAAEC,iBAHrB;IAIE,cAAc,EAAEC,cAJlB;IAKE,eAAe,EAAEC,eALnB;IAME,UAAU,EAAEC,UANd;IAOE,WAAW,EAAEC,WAPf;IAQE,cAAc,EAAEW,aARlB;IASE,aAAa,EAAEV,aATjB;IAUE,cAAc,EAAEC,cAVlB;IAWE,WAAW,EAAEG,WAXf;IAYE,oBAAoB,EAAEC,oBAZxB;IAaE,mBAAmB,EAAEC,mBAbvB;IAcE,OAAO,EAAEM,OAdX;IAeE,QAAQ,EAAEV,QAfZ;IAgBE,OAAO,EAAEK;EAhBX,GAkBGM,QAlBH,EAmBGC,SAAS,IACR,6BAAC,aAAD;IACE,YAAY,EAAE,WADhB;IAEE,SAAS,EAAE,QAFb;IAGE,UAAU,EAAE,OAHd;IAIE,SAAS,EAAE,SAJb;IAKE,UAAU,EAAE,MALd;IAME,KAAK,EAAE;MAAEM,SAAS,EAAE;IAAb;EANT,GAQI,GAAEF,MAAO,IAAGJ,SAAU,EAR1B,CApBJ,CADF,EAiCGL,IAAI,IAAIU,KAjCX,CADF;AAqCD,CAvED;;eAyEe3B,Q"}
1
+ {"version":3,"file":"TextArea.js","names":["TextArea","label","labelColor","labelColorVariant","labelColorTone","labelTypography","labelStack","labelWeight","leftComponent","rightComponent","disabled","style","borderColor","borderColorGradation","inputContainerStyle","variant","hintComponent","hint","TextComponent","Text","focused","children","maxLength","_maxLenght","value","_value","length","_hint","textAlign"],"sources":["../../../../src/components/molecules/TextArea/TextArea.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { View } from 'react-native';\nimport { FontStackType, FontWeightType } from '@tecsinapse/react-core';\nimport {\n Hint,\n InputContainerProps,\n InputElementProps,\n} from '../../atoms/Input';\nimport { Text, TextProps } from '../../atoms/Text';\nimport { StyledInputContainer } from './styled';\n\nexport interface TextAreaProps\n extends Omit<InputElementProps, 'style' | 'multiline' | 'value'>,\n InputContainerProps {\n inputFontStack?: FontStackType;\n inputFontWeight?: FontWeightType;\n maxCharCount?: number;\n value: string;\n // Omit below\n TextComponent?: FC<TextProps>;\n focused?: boolean;\n}\n\nconst TextArea: FC<TextAreaProps> = ({\n label,\n labelColor,\n labelColorVariant,\n labelColorTone,\n labelTypography,\n labelStack,\n labelWeight,\n leftComponent,\n rightComponent,\n disabled,\n style,\n borderColor,\n borderColorGradation,\n inputContainerStyle,\n variant = 'default',\n hintComponent,\n hint,\n TextComponent = Text,\n focused,\n children,\n maxLength: _maxLenght,\n value: _value,\n}) => {\n let length = _value.length;\n const maxLength = _maxLenght;\n if (maxLength && length > maxLength) {\n length = maxLength;\n }\n\n const _hint = hintComponent || (\n <Hint TextComponent={TextComponent} text={hint} variant={variant} />\n );\n\n return (\n <View style={style}>\n <StyledInputContainer\n label={label}\n labelColor={labelColor}\n labelColorVariant={labelColorVariant}\n labelColorTone={labelColorTone}\n labelTypography={labelTypography}\n labelStack={labelStack}\n labelWeight={labelWeight}\n LabelComponent={TextComponent}\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n borderColor={borderColor}\n borderColorGradation={borderColorGradation}\n inputContainerStyle={inputContainerStyle}\n focused={focused}\n disabled={disabled}\n variant={variant}\n >\n {children}\n {maxLength && (\n <TextComponent\n colorVariant={'secondary'}\n colorTone={'medium'}\n typography={'label'}\n fontStack={'default'}\n fontWeight={'bold'}\n style={{ textAlign: 'right' }}\n >\n {`${length}/${maxLength}`}\n </TextComponent>\n )}\n </StyledInputContainer>\n {hint && _hint}\n </View>\n );\n};\n\nexport default TextArea;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AAKA;;AACA;;;;AAcA,MAAMA,QAA2B,GAAG,QAuB9B;EAAA,IAvB+B;IACnCC,KADmC;IAEnCC,UAFmC;IAGnCC,iBAHmC;IAInCC,cAJmC;IAKnCC,eALmC;IAMnCC,UANmC;IAOnCC,WAPmC;IAQnCC,aARmC;IASnCC,cATmC;IAUnCC,QAVmC;IAWnCC,KAXmC;IAYnCC,WAZmC;IAanCC,oBAbmC;IAcnCC,mBAdmC;IAenCC,OAAO,GAAG,SAfyB;IAgBnCC,aAhBmC;IAiBnCC,IAjBmC;IAkBnCC,aAAa,GAAGC,UAlBmB;IAmBnCC,OAnBmC;IAoBnCC,QApBmC;IAqBnCC,SAAS,EAAEC,UArBwB;IAsBnCC,KAAK,EAAEC;EAtB4B,CAuB/B;EACJ,IAAIC,MAAM,GAAGD,MAAM,CAACC,MAApB;EACA,MAAMJ,SAAS,GAAGC,UAAlB;;EACA,IAAID,SAAS,IAAII,MAAM,GAAGJ,SAA1B,EAAqC;IACnCI,MAAM,GAAGJ,SAAT;EACD;;EAED,MAAMK,KAAK,GAAGX,aAAa,IACzB,6BAAC,WAAD;IAAM,aAAa,EAAEE,aAArB;IAAoC,IAAI,EAAED,IAA1C;IAAgD,OAAO,EAAEF;EAAzD,EADF;;EAIA,OACE,6BAAC,iBAAD;IAAM,KAAK,EAAEJ;EAAb,GACE,6BAAC,4BAAD;IACE,KAAK,EAAEV,KADT;IAEE,UAAU,EAAEC,UAFd;IAGE,iBAAiB,EAAEC,iBAHrB;IAIE,cAAc,EAAEC,cAJlB;IAKE,eAAe,EAAEC,eALnB;IAME,UAAU,EAAEC,UANd;IAOE,WAAW,EAAEC,WAPf;IAQE,cAAc,EAAEW,aARlB;IASE,aAAa,EAAEV,aATjB;IAUE,cAAc,EAAEC,cAVlB;IAWE,WAAW,EAAEG,WAXf;IAYE,oBAAoB,EAAEC,oBAZxB;IAaE,mBAAmB,EAAEC,mBAbvB;IAcE,OAAO,EAAEM,OAdX;IAeE,QAAQ,EAAEV,QAfZ;IAgBE,OAAO,EAAEK;EAhBX,GAkBGM,QAlBH,EAmBGC,SAAS,IACR,6BAAC,aAAD;IACE,YAAY,EAAE,WADhB;IAEE,SAAS,EAAE,QAFb;IAGE,UAAU,EAAE,OAHd;IAIE,SAAS,EAAE,SAJb;IAKE,UAAU,EAAE,MALd;IAME,KAAK,EAAE;MAAEM,SAAS,EAAE;IAAb;EANT,aAQMF,MARN,cAQgBJ,SARhB,EApBJ,CADF,EAiCGL,IAAI,IAAIU,KAjCX,CADF;AAqCD,CAvED;;eAyEe3B,Q"}
@@ -1,2 +1,3 @@
1
- export { default as TextArea, TextAreaProps } from './TextArea';
1
+ export { default as TextArea } from './TextArea';
2
+ export type { TextAreaProps } from './TextArea';
2
3
  export { TextAreaInputBase } from './styled';
@@ -1,18 +1,24 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.TextAreaProps = exports.TextAreaInputBase = exports.TextArea = void 0;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "TextArea", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _TextArea.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "TextAreaInputBase", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _styled.TextAreaInputBase;
16
+ }
17
+ });
5
18
 
6
- var _TextArea = _interopRequireWildcard(require("./TextArea"));
7
-
8
- exports.TextArea = _TextArea.default;
9
- exports.TextAreaProps = _TextArea.TextAreaProps;
19
+ var _TextArea = _interopRequireDefault(require("./TextArea"));
10
20
 
11
21
  var _styled = require("./styled");
12
22
 
13
- exports.TextAreaInputBase = _styled.TextAreaInputBase;
14
-
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
-
17
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/molecules/TextArea/index.ts"],"sourcesContent":["export { default as TextArea, TextAreaProps } from './TextArea';\nexport { TextAreaInputBase } from './styled';\n"],"mappings":";;;;;AAAA;;;;;AACA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/molecules/TextArea/index.ts"],"sourcesContent":["export { default as TextArea } from './TextArea';\nexport type { TextAreaProps } from './TextArea';\nexport { TextAreaInputBase } from './styled';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AAEA"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.TextAreaInputBase = exports.StyledInputContainer = void 0;
5
7
 
6
8
  var _native = _interopRequireDefault(require("@emotion/native"));
@@ -9,20 +11,20 @@ var _utils = require("../../../utils");
9
11
 
10
12
  var _Input = require("../../atoms/Input");
11
13
 
14
+ var _templateObject, _templateObject2;
15
+
12
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
17
 
14
- const StyledInputContainer = (0, _native.default)(_Input.InputContainer)`
15
- min-height: ${(0, _utils.RFValueStr)('50px')};
16
- `;
18
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
+
20
+ const StyledInputContainer = (0, _native.default)(_Input.InputContainer)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-height: ", ";\n"])), (0, _utils.RFValueStr)('50px'));
17
21
  exports.StyledInputContainer = StyledInputContainer;
18
- const TextAreaInputBase = (0, _native.default)(_Input.InputElement)`
19
- max-height: ${({
20
- theme,
21
- numberOfLines
22
- }) => `${(0, _utils.RFValue)((0, _utils.extractNumbersFromString)(theme.typography.h5.lineHeight) * (numberOfLines || 1))}px`};
23
- width: 100%;
24
- padding: 0;
25
- margin: ${(0, _utils.RFValueStr)('3px')} 0;
26
- `;
22
+ const TextAreaInputBase = (0, _native.default)(_Input.InputElement)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-height: ", ";\n width: 100%;\n padding: 0;\n margin: ", " 0;\n"])), _ref => {
23
+ let {
24
+ theme,
25
+ numberOfLines
26
+ } = _ref;
27
+ return "".concat((0, _utils.RFValue)((0, _utils.extractNumbersFromString)(theme.typography.h5.lineHeight) * (numberOfLines || 1)), "px");
28
+ }, (0, _utils.RFValueStr)('3px'));
27
29
  exports.TextAreaInputBase = TextAreaInputBase;
28
30
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["StyledInputContainer","styled","InputContainer","RFValueStr","TextAreaInputBase","InputElement","theme","numberOfLines","RFValue","extractNumbersFromString","typography","h5","lineHeight"],"sources":["../../../../src/components/molecules/TextArea/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport { StyleProps } from '@tecsinapse/react-core';\nimport { extractNumbersFromString, RFValue, RFValueStr } from '../../../utils';\nimport { InputContainer, InputElement } from '../../atoms/Input';\nimport { TextAreaProps } from './TextArea';\n\nexport const StyledInputContainer = styled(InputContainer)<Partial<StyleProps>>`\n min-height: ${RFValueStr('50px')};\n`;\n\nexport const TextAreaInputBase = styled(InputElement)<\n Partial<TextAreaProps> & Partial<StyleProps>\n>`\n max-height: ${({ theme, numberOfLines }) =>\n `${RFValue(\n extractNumbersFromString(theme.typography.h5.lineHeight) *\n (numberOfLines || 1)\n )}px`};\n width: 100%;\n padding: 0;\n margin: ${RFValueStr('3px')} 0;\n`;\n"],"mappings":";;;;;AAAA;;AAEA;;AACA;;;;AAGO,MAAMA,oBAAoB,GAAG,IAAAC,eAAA,EAAOC,qBAAP,CAA4C;AAChF,gBAAgB,IAAAC,iBAAA,EAAW,MAAX,CAAmB;AACnC,CAFO;;AAIA,MAAMC,iBAAiB,GAAG,IAAAH,eAAA,EAAOI,mBAAP,CAE/B;AACF,gBAAgB,CAAC;EAAEC,KAAF;EAASC;AAAT,CAAD,KACX,GAAE,IAAAC,cAAA,EACD,IAAAC,+BAAA,EAAyBH,KAAK,CAACI,UAAN,CAAiBC,EAAjB,CAAoBC,UAA7C,KACGL,aAAa,IAAI,CADpB,CADC,CAGD,IAAI;AACV;AACA;AACA,YAAY,IAAAJ,iBAAA,EAAW,KAAX,CAAkB;AAC9B,CAXO"}
1
+ {"version":3,"file":"styled.js","names":["StyledInputContainer","styled","InputContainer","RFValueStr","TextAreaInputBase","InputElement","theme","numberOfLines","RFValue","extractNumbersFromString","typography","h5","lineHeight"],"sources":["../../../../src/components/molecules/TextArea/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport { StyleProps } from '@tecsinapse/react-core';\nimport { extractNumbersFromString, RFValue, RFValueStr } from '../../../utils';\nimport { InputContainer, InputElement } from '../../atoms/Input';\nimport { TextAreaProps } from './TextArea';\n\nexport const StyledInputContainer = styled(InputContainer)<Partial<StyleProps>>`\n min-height: ${RFValueStr('50px')};\n`;\n\nexport const TextAreaInputBase = styled(InputElement)<\n Partial<TextAreaProps> & Partial<StyleProps>\n>`\n max-height: ${({ theme, numberOfLines }) =>\n `${RFValue(\n extractNumbersFromString(theme.typography.h5.lineHeight) *\n (numberOfLines || 1)\n )}px`};\n width: 100%;\n padding: 0;\n margin: ${RFValueStr('3px')} 0;\n`;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;;;;;;;AAGO,MAAMA,oBAAoB,GAAG,IAAAC,eAAA,EAAOC,qBAAP,CAAH,6FACjB,IAAAC,iBAAA,EAAW,MAAX,CADiB,CAA1B;;AAIA,MAAMC,iBAAiB,GAAG,IAAAH,eAAA,EAAOI,mBAAP,CAAH,iJAGd;EAAA,IAAC;IAAEC,KAAF;IAASC;EAAT,CAAD;EAAA,iBACT,IAAAC,cAAA,EACD,IAAAC,+BAAA,EAAyBH,KAAK,CAACI,UAAN,CAAiBC,EAAjB,CAAoBC,UAA7C,KACGL,aAAa,IAAI,CADpB,CADC,CADS;AAAA,CAHc,EAUlB,IAAAJ,iBAAA,EAAW,KAAX,CAVkB,CAAvB"}
@@ -1,13 +1,22 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.useTheme = exports.useDebouncedState = void 0;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "useDebouncedState", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _useDebouncedState.useDebouncedState;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "useTheme", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _useTheme.useTheme;
16
+ }
17
+ });
5
18
 
6
19
  var _useDebouncedState = require("./useDebouncedState");
7
20
 
8
- exports.useDebouncedState = _useDebouncedState.useDebouncedState;
9
-
10
21
  var _useTheme = require("./useTheme");
11
-
12
- exports.useTheme = _useTheme.useTheme;
13
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/hooks/index.ts"],"sourcesContent":["export { useDebouncedState } from './useDebouncedState';\nexport { useTheme } from './useTheme';\n"],"mappings":";;;;;AAAA;;;;AACA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/hooks/index.ts"],"sourcesContent":["export { useDebouncedState } from './useDebouncedState';\nexport { useTheme } from './useTheme';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AACA"}
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.useDebouncedState = useDebouncedState;
5
7
 
6
8
  var _react = require("react");
7
9
 
8
- function useDebouncedState(initialState, timeoutCallback, timeoutMs = 166) {
10
+ function useDebouncedState(initialState, timeoutCallback) {
11
+ let timeoutMs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 166;
9
12
  const timeoutId = (0, _react.useRef)();
10
13
  const [state, setState] = (0, _react.useState)(initialState);
11
14
  (0, _react.useEffect)(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"useDebouncedState.js","names":["useDebouncedState","initialState","timeoutCallback","timeoutMs","timeoutId","useRef","state","setState","useState","useEffect","current","clearTimeout","setTimeout"],"sources":["../../src/hooks/useDebouncedState.ts"],"sourcesContent":["import { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react';\n\n/**\n * @param initialState\n * @param timeoutCallback callback to be called after bouncing ends. Should be memoized.\n * @param timeoutMs\n */\nexport function useDebouncedState<S>(\n initialState: S | (() => S),\n timeoutCallback?: (state: S) => void,\n timeoutMs = 166\n): [S, Dispatch<SetStateAction<S>>] {\n const timeoutId = useRef<number>();\n\n const [state, setState] = useState<S>(initialState);\n\n useEffect(() => {\n if (timeoutId.current) clearTimeout(timeoutId.current);\n if (timeoutCallback)\n timeoutId.current = setTimeout(() => timeoutCallback(state), timeoutMs);\n }, [state]);\n\n return [state, setState];\n}\n"],"mappings":";;;;;AAAA;;AAOO,SAASA,iBAAT,CACLC,YADK,EAELC,eAFK,EAGLC,SAAS,GAAG,GAHP,EAI6B;EAClC,MAAMC,SAAS,GAAG,IAAAC,aAAA,GAAlB;EAEA,MAAM,CAACC,KAAD,EAAQC,QAAR,IAAoB,IAAAC,eAAA,EAAYP,YAAZ,CAA1B;EAEA,IAAAQ,gBAAA,EAAU,MAAM;IACd,IAAIL,SAAS,CAACM,OAAd,EAAuBC,YAAY,CAACP,SAAS,CAACM,OAAX,CAAZ;IACvB,IAAIR,eAAJ,EACEE,SAAS,CAACM,OAAV,GAAoBE,UAAU,CAAC,MAAMV,eAAe,CAACI,KAAD,CAAtB,EAA+BH,SAA/B,CAA9B;EACH,CAJD,EAIG,CAACG,KAAD,CAJH;EAMA,OAAO,CAACA,KAAD,EAAQC,QAAR,CAAP;AACD"}
1
+ {"version":3,"file":"useDebouncedState.js","names":["useDebouncedState","initialState","timeoutCallback","timeoutMs","timeoutId","useRef","state","setState","useState","useEffect","current","clearTimeout","setTimeout"],"sources":["../../src/hooks/useDebouncedState.ts"],"sourcesContent":["import { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react';\n\n/**\n * @param initialState\n * @param timeoutCallback callback to be called after bouncing ends. Should be memoized.\n * @param timeoutMs\n */\nexport function useDebouncedState<S>(\n initialState: S | (() => S),\n timeoutCallback?: (state: S) => void,\n timeoutMs = 166\n): [S, Dispatch<SetStateAction<S>>] {\n const timeoutId = useRef<number>();\n\n const [state, setState] = useState<S>(initialState);\n\n useEffect(() => {\n if (timeoutId.current) clearTimeout(timeoutId.current);\n if (timeoutCallback)\n timeoutId.current = setTimeout(() => timeoutCallback(state), timeoutMs);\n }, [state]);\n\n return [state, setState];\n}\n"],"mappings":";;;;;;;AAAA;;AAOO,SAASA,iBAAT,CACLC,YADK,EAELC,eAFK,EAI6B;EAAA,IADlCC,SACkC,uEADtB,GACsB;EAClC,MAAMC,SAAS,GAAG,IAAAC,aAAA,GAAlB;EAEA,MAAM,CAACC,KAAD,EAAQC,QAAR,IAAoB,IAAAC,eAAA,EAAYP,YAAZ,CAA1B;EAEA,IAAAQ,gBAAA,EAAU,MAAM;IACd,IAAIL,SAAS,CAACM,OAAd,EAAuBC,YAAY,CAACP,SAAS,CAACM,OAAX,CAAZ;IACvB,IAAIR,eAAJ,EACEE,SAAS,CAACM,OAAV,GAAoBE,UAAU,CAAC,MAAMV,eAAe,CAACI,KAAD,CAAtB,EAA+BH,SAA/B,CAA9B;EACH,CAJD,EAIG,CAACG,KAAD,CAJH;EAMA,OAAO,CAACA,KAAD,EAAQC,QAAR,CAAP;AACD"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.useTheme = void 0;
5
7
 
6
8
  var _react = require("@emotion/react");
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.js","names":["useTheme","useEmotionTheme"],"sources":["../../src/hooks/useTheme.ts"],"sourcesContent":["import { useTheme as useEmotionTheme } from '@emotion/react';\nimport { ThemeProp } from '../types/defaults';\n\nexport const useTheme = (): ThemeProp => useEmotionTheme() as ThemeProp;\n"],"mappings":";;;;;AAAA;;AAGO,MAAMA,QAAQ,GAAG,MAAiB,IAAAC,eAAA,GAAlC"}
1
+ {"version":3,"file":"useTheme.js","names":["useTheme","useEmotionTheme"],"sources":["../../src/hooks/useTheme.ts"],"sourcesContent":["import { useTheme as useEmotionTheme } from '@emotion/react';\nimport { ThemeProp } from '../types/defaults';\n\nexport const useTheme = (): ThemeProp => useEmotionTheme() as ThemeProp;\n"],"mappings":";;;;;;;AAAA;;AAGO,MAAMA,QAAQ,GAAG,MAAiB,IAAAC,eAAA,GAAlC"}
package/dist/index.d.ts CHANGED
@@ -1,33 +1,61 @@
1
- export { Avatar, AvatarProps } from './components/atoms/Avatar';
2
- export { Badge, BadgeProps } from './components/atoms/Badge';
3
- export { BoxContent, BoxContentProps } from './components/atoms/BoxContent';
4
- export { Button, ButtonProps, ButtonSizeType, ButtonStateProps, ButtonStateType, Error, Loading, Success, } from './components/atoms/Button';
5
- export { Card, CardProps } from './components/atoms/Card';
6
- export { Footer, FooterProps } from './components/atoms/Card/Footer';
7
- export { Header, HeaderProps } from './components/atoms/Card/Header';
8
- export { Checkbox, CheckboxProps } from './components/atoms/Checkbox';
9
- export { Divider, DividerProps } from './components/atoms/Divider';
10
- export { GroupButton, GroupButtonOption, GroupButtonOptionProps, GroupButtonProps, GroupButtonValue, } from './components/atoms/GroupButton';
11
- export { Icon, IconProps } from './components/atoms/Icon';
12
- export { disabledInputStyles, Hint, InputContainer, InputContainerProps, InputElement, InputElementProps, InputMaskElement, InputMaskElementProps, InputVariantType, PressableInputContainer, PressableInputContainerProps, StyledBorderKeeper, useInputFocus, useNumberMask, useStringMask, } from './components/atoms/Input';
13
- export { Paper, PaperProps } from './components/atoms/Paper';
14
- export { PressableSurface, PressableSurfaceProps, } from './components/atoms/PressableSurface';
15
- export { ProgressBar, ProgressBarProps } from './components/atoms/ProgressBar';
16
- export { RadioButton, RadioButtonProps } from './components/atoms/RadioButton';
17
- export { Switch, SwitchProps } from './components/atoms/Switch';
18
- export { Tag, TagProps } from './components/atoms/Tag';
19
- export { Text, TextProps } from './components/atoms/Text';
20
- export { Calendar, CalendarProps, DateRange, SelectionType, Value, } from './components/molecules/Calendar';
21
- export { DatePicker, DatePickerProps } from './components/molecules/DatePicker';
22
- export { DateTimePicker, DateTimePickerProps, } from './components/molecules/DateTimePicker';
23
- export { DateTimeSelector, DateTimeSelectorMode, DateTimeSelectorProps, } from './components/molecules/DateTimeSelector';
24
- export { GridSpacing, IGridItem, getGridItemPadding, getGridItemColumSpan, IGrid, FlexAlignBase, FlexAlignType, FlexPositioning, FlexSpacing, PaddingPosition, } from './components/molecules/Grid';
25
- export { HintInputContainer, HintInputContainerProps, } from './components/molecules/HintInputContainer';
26
- export { IconComponent, IconPositionOptions, IconTextButtonProps, } from './components/molecules/IconTextButton';
1
+ export { Avatar } from './components/atoms/Avatar';
2
+ export type { AvatarProps } from './components/atoms/Avatar';
3
+ export { Badge } from './components/atoms/Badge';
4
+ export type { BadgeProps } from './components/atoms/Badge';
5
+ export { BoxContent } from './components/atoms/BoxContent';
6
+ export type { BoxContentProps } from './components/atoms/BoxContent';
7
+ export { Button, Error, Loading, Success } from './components/atoms/Button';
8
+ export type { ButtonProps, ButtonSizeType, ButtonStateProps, ButtonStateType, } from './components/atoms/Button';
9
+ export { Card } from './components/atoms/Card';
10
+ export type { CardProps } from './components/atoms/Card';
11
+ export { Footer } from './components/atoms/Card/Footer';
12
+ export type { FooterProps } from './components/atoms/Card/Footer';
13
+ export { Header } from './components/atoms/Card/Header';
14
+ export type { HeaderProps } from './components/atoms/Card/Header';
15
+ export { Checkbox } from './components/atoms/Checkbox';
16
+ export type { CheckboxProps } from './components/atoms/Checkbox';
17
+ export { Divider } from './components/atoms/Divider';
18
+ export type { DividerProps } from './components/atoms/Divider';
19
+ export { GroupButton, GroupButtonOption } from './components/atoms/GroupButton';
20
+ export type { GroupButtonOptionProps, GroupButtonProps, GroupButtonValue, } from './components/atoms/GroupButton';
21
+ export { Icon } from './components/atoms/Icon';
22
+ export type { IconProps } from './components/atoms/Icon';
23
+ export { disabledInputStyles, Hint, InputContainer, InputElement, InputMaskElement, PressableInputContainer, StyledBorderKeeper, useInputFocus, useNumberMask, useStringMask, } from './components/atoms/Input';
24
+ export type { InputContainerProps, InputElementProps, InputMaskElementProps, InputVariantType, PressableInputContainerProps, } from './components/atoms/Input';
25
+ export { Paper } from './components/atoms/Paper';
26
+ export type { PaperProps } from './components/atoms/Paper';
27
+ export { PressableSurface } from './components/atoms/PressableSurface';
28
+ export type { PressableSurfaceProps } from './components/atoms/PressableSurface';
29
+ export { ProgressBar } from './components/atoms/ProgressBar';
30
+ export type { ProgressBarProps } from './components/atoms/ProgressBar';
31
+ export { RadioButton } from './components/atoms/RadioButton';
32
+ export type { RadioButtonProps } from './components/atoms/RadioButton';
33
+ export { Switch } from './components/atoms/Switch';
34
+ export type { SwitchProps } from './components/atoms/Switch';
35
+ export { Tag } from './components/atoms/Tag';
36
+ export type { TagProps } from './components/atoms/Tag';
37
+ export { Text } from './components/atoms/Text';
38
+ export type { TextProps } from './components/atoms/Text';
39
+ export { Calendar } from './components/molecules/Calendar';
40
+ export type { CalendarProps, DateRange, SelectionType, Value, } from './components/molecules/Calendar';
41
+ export { DatePicker } from './components/molecules/DatePicker';
42
+ export type { DatePickerProps } from './components/molecules/DatePicker';
43
+ export { DateTimePicker } from './components/molecules/DateTimePicker';
44
+ export type { DateTimePickerProps } from './components/molecules/DateTimePicker';
45
+ export { DateTimeSelector } from './components/molecules/DateTimeSelector';
46
+ export type { DateTimeSelectorMode, DateTimeSelectorProps, } from './components/molecules/DateTimeSelector';
47
+ export { getGridItemPadding, getGridItemColumSpan, } from './components/molecules/Grid';
48
+ export type { GridSpacing, IGridItem, IGrid, FlexAlignBase, FlexAlignType, FlexPositioning, FlexSpacing, PaddingPosition, } from './components/molecules/Grid';
49
+ export { HintInputContainer } from './components/molecules/HintInputContainer';
50
+ export type { HintInputContainerProps } from './components/molecules/HintInputContainer';
51
+ export { IconComponent } from './components/molecules/IconTextButton';
52
+ export type { IconPositionOptions, IconTextButtonProps, } from './components/molecules/IconTextButton';
27
53
  export { InputPasswordIcon } from './components/molecules/InputPassword';
28
- export { LabeledSwitchProps, LabelPositionOptions, } from './components/molecules/LabeledSwitch';
29
- export { Snackbar, SnackbarProps } from './components/molecules/Snackbar';
30
- export { TextArea, TextAreaInputBase, TextAreaProps, } from './components/molecules/TextArea';
54
+ export type { LabeledSwitchProps, LabelPositionOptions, } from './components/molecules/LabeledSwitch';
55
+ export { Snackbar } from './components/molecules/Snackbar';
56
+ export type { SnackbarProps } from './components/molecules/Snackbar';
57
+ export { TextArea, TextAreaInputBase } from './components/molecules/TextArea';
58
+ export type { TextAreaProps } from './components/molecules/TextArea';
31
59
  export * from './hooks';
32
60
  export * from './styles/definitions';
33
61
  export * from './styles/light';