@pedidopago/ui 1.7.16 → 1.7.17

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 (398) hide show
  1. package/dist/@types/index.d.ts +6 -6
  2. package/dist/components/Alert/alert.test.d.ts +1 -1
  3. package/dist/components/Alert/index.d.ts +4 -4
  4. package/dist/components/Alert/index.d.ts.map +1 -1
  5. package/dist/components/Alert/index.js +37 -29
  6. package/dist/components/Alert/styles.d.ts +10 -24
  7. package/dist/components/Alert/styles.d.ts.map +1 -1
  8. package/dist/components/Alert/styles.js +19 -19
  9. package/dist/components/Alert/types.d.ts +42 -44
  10. package/dist/components/Alert/types.d.ts.map +1 -1
  11. package/dist/components/Avatar/avatar.test.d.ts +1 -1
  12. package/dist/components/Avatar/index.d.ts +4 -4
  13. package/dist/components/Avatar/styles.d.ts +25 -25
  14. package/dist/components/Avatar/types.d.ts +15 -15
  15. package/dist/components/Badge/badge.test.d.ts +1 -1
  16. package/dist/components/Badge/index.d.ts +4 -4
  17. package/dist/components/Badge/index.js +4 -2
  18. package/dist/components/Badge/styles.d.ts +16 -16
  19. package/dist/components/Badge/styles.d.ts.map +1 -1
  20. package/dist/components/Badge/styles.js +7 -3
  21. package/dist/components/Badge/types.d.ts +12 -11
  22. package/dist/components/Badge/types.d.ts.map +1 -1
  23. package/dist/components/Button/Button.test.d.ts +1 -1
  24. package/dist/components/Button/index.d.ts +3 -3
  25. package/dist/components/Button/styles.d.ts +14 -14
  26. package/dist/components/Button/types.d.ts +92 -92
  27. package/dist/components/Card/card.test.d.ts +1 -1
  28. package/dist/components/Card/index.d.ts +3 -3
  29. package/dist/components/Card/styles.d.ts +6 -6
  30. package/dist/components/Card/types.d.ts +17 -17
  31. package/dist/components/CheckboxInput/checkbox-input.test.d.ts +1 -1
  32. package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
  33. package/dist/components/CheckboxInput/index.d.ts +4 -4
  34. package/dist/components/CheckboxInput/styles.d.ts +31 -31
  35. package/dist/components/CheckboxInput/types.d.ts +27 -27
  36. package/dist/components/CollapseCard/ExpandButton/index.d.ts +3 -3
  37. package/dist/components/CollapseCard/ExpandButton/styles.d.ts +269 -269
  38. package/dist/components/CollapseCard/ExpandButton/types.d.ts +5 -5
  39. package/dist/components/CollapseCard/expand-button.test.d.ts +1 -1
  40. package/dist/components/CollapseCard/index.d.ts +3 -3
  41. package/dist/components/CollapseCard/styles.d.ts +268 -268
  42. package/dist/components/CollapseCard/types.d.ts +12 -12
  43. package/dist/components/ColorPicker/colorpicker.test.d.ts +1 -1
  44. package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
  45. package/dist/components/ColorPicker/components/ColorInput.d.ts +4 -4
  46. package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
  47. package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
  48. package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
  49. package/dist/components/ColorPicker/hooks/useCachedCallback.d.ts +1 -1
  50. package/dist/components/ColorPicker/hooks/useHsva.d.ts +2 -2
  51. package/dist/components/ColorPicker/index.d.ts +4 -4
  52. package/dist/components/ColorPicker/styles.d.ts +44 -44
  53. package/dist/components/ColorPicker/types.d.ts +73 -73
  54. package/dist/components/ColorPicker/utils/checkers.d.ts +7 -7
  55. package/dist/components/ColorPicker/utils/conversors.d.ts +60 -60
  56. package/dist/components/ColorPicker/utils/parsers.d.ts +27 -27
  57. package/dist/components/ComposeIcon/index.d.ts +4 -4
  58. package/dist/components/ComposeIcon/styles.d.ts +10 -10
  59. package/dist/components/ComposeIcon/styles.d.ts.map +1 -1
  60. package/dist/components/ComposeIcon/styles.js +13 -16
  61. package/dist/components/ComposeIcon/types.d.ts +11 -11
  62. package/dist/components/DateInput/DateInput-example.d.ts +5 -5
  63. package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
  64. package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +268 -268
  65. package/dist/components/DateInput/components/ModalWrapper/types.d.ts +15 -15
  66. package/dist/components/DateInput/dateInput.test.d.ts +1 -1
  67. package/dist/components/DateInput/index.d.ts +3 -3
  68. package/dist/components/DateInput/styles.d.ts +10 -10
  69. package/dist/components/DateInput/types.d.ts +18 -18
  70. package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
  71. package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
  72. package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
  73. package/dist/components/DatePicker/index.d.ts +4 -4
  74. package/dist/components/DatePicker/styles.d.ts +77 -77
  75. package/dist/components/DatePicker/types.d.ts +69 -69
  76. package/dist/components/DatePicker/utils/getMonthName.d.ts +1 -1
  77. package/dist/components/Dialog/dialog-example.d.ts +3 -3
  78. package/dist/components/Dialog/dialog.test.d.ts +1 -1
  79. package/dist/components/Dialog/index.d.ts +3 -3
  80. package/dist/components/Dialog/styles.d.ts +25 -25
  81. package/dist/components/Dialog/types.d.ts +30 -30
  82. package/dist/components/Dropzone/dropzone.test.d.ts +1 -1
  83. package/dist/components/Dropzone/index.d.ts +4 -4
  84. package/dist/components/Dropzone/styles.d.ts +60 -60
  85. package/dist/components/Dropzone/types.d.ts +27 -27
  86. package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
  87. package/dist/components/EmojiPicker/Emote/index.d.ts +3 -3
  88. package/dist/components/EmojiPicker/Emote/styles.d.ts +12 -12
  89. package/dist/components/EmojiPicker/Emote/types.d.ts +31 -31
  90. package/dist/components/EmojiPicker/EmotePickerData/constants.d.ts +9 -9
  91. package/dist/components/EmojiPicker/EmotePickerData/index.d.ts +3 -3
  92. package/dist/components/EmojiPicker/EmotePickerData/styles.d.ts +17 -17
  93. package/dist/components/EmojiPicker/EmotePickerData/types.d.ts +9 -9
  94. package/dist/components/EmojiPicker/EmotePickerData/utils.d.ts +4 -4
  95. package/dist/components/EmojiPicker/Example/EmotePickerExample.d.ts +3 -3
  96. package/dist/components/EmojiPicker/animation.d.ts +3 -3
  97. package/dist/components/EmojiPicker/index.d.ts +3 -3
  98. package/dist/components/EmojiPicker/styles.d.ts +517 -517
  99. package/dist/components/EmojiPicker/types.d.ts +20 -20
  100. package/dist/components/Flex/flex.test.d.ts +1 -1
  101. package/dist/components/Flex/index.d.ts +4 -4
  102. package/dist/components/Flex/styles.d.ts +296 -296
  103. package/dist/components/Flex/types.d.ts +175 -175
  104. package/dist/components/Grid/grid.test.d.ts +1 -1
  105. package/dist/components/Grid/index.d.ts +4 -4
  106. package/dist/components/Grid/styles.d.ts +288 -288
  107. package/dist/components/Grid/types.d.ts +88 -88
  108. package/dist/components/Icon/data/beauty.d.ts +8 -8
  109. package/dist/components/Icon/data/dash.d.ts +8 -8
  110. package/dist/components/Icon/data/dash.d.ts.map +1 -1
  111. package/dist/components/Icon/data/dash.js +1 -1
  112. package/dist/components/Icon/data/ecommerce.d.ts +8 -8
  113. package/dist/components/Icon/data/form.d.ts +8 -8
  114. package/dist/components/Icon/data/health.d.ts +8 -8
  115. package/dist/components/Icon/data/illustrations.d.ts +8 -8
  116. package/dist/components/Icon/data/illustrations.d.ts.map +1 -1
  117. package/dist/components/Icon/data/illustrations.js +19 -5
  118. package/dist/components/Icon/data/men.d.ts +8 -8
  119. package/dist/components/Icon/data/payment.d.ts +8 -8
  120. package/dist/components/Icon/data/pedidoPago.d.ts +8 -8
  121. package/dist/components/Icon/data/physicalPerfomance.d.ts +8 -8
  122. package/dist/components/Icon/data/social.d.ts +8 -8
  123. package/dist/components/Icon/data/status.d.ts +8 -8
  124. package/dist/components/Icon/data/summer.d.ts +8 -8
  125. package/dist/components/Icon/data/woman.d.ts +8 -8
  126. package/dist/components/Icon/icon.test.d.ts +1 -1
  127. package/dist/components/Icon/index.d.ts +4 -4
  128. package/dist/components/Icon/scripts/build.d.ts +5 -5
  129. package/dist/components/Icon/scripts/extractor.d.ts +15 -15
  130. package/dist/components/Icon/scripts/run-build.d.ts +1 -1
  131. package/dist/components/Icon/scripts/writers.d.ts +22 -22
  132. package/dist/components/Icon/styles.d.ts +13 -13
  133. package/dist/components/Icon/types.d.ts +8 -8
  134. package/dist/components/Icon/types.d.ts.map +1 -1
  135. package/dist/components/Icon/utils/allIcons.d.ts +8 -8
  136. package/dist/components/Icon/utils/iconExists.d.ts +4 -4
  137. package/dist/components/IconItem/IconItem.test.d.ts +1 -1
  138. package/dist/components/IconItem/index.d.ts +4 -4
  139. package/dist/components/IconItem/styles.d.ts +18 -18
  140. package/dist/components/IconItem/types.d.ts +22 -22
  141. package/dist/components/Illustration/illustration.test.d.ts +1 -1
  142. package/dist/components/Illustration/index.d.ts +4 -4
  143. package/dist/components/Illustration/styles.d.ts +10 -10
  144. package/dist/components/Illustration/types.d.ts +11 -11
  145. package/dist/components/ImageItem/imageFake.d.ts +2 -2
  146. package/dist/components/ImageItem/index.d.ts +4 -4
  147. package/dist/components/ImageItem/input.test.d.ts +1 -1
  148. package/dist/components/ImageItem/styles.d.ts +26 -26
  149. package/dist/components/ImageItem/types.d.ts +25 -25
  150. package/dist/components/Input/index.d.ts +4 -4
  151. package/dist/components/Input/input.test.d.ts +1 -1
  152. package/dist/components/Input/styles.d.ts +69 -69
  153. package/dist/components/Input/types.d.ts +28 -28
  154. package/dist/components/Label/index.d.ts +3 -3
  155. package/dist/components/Label/label.test.d.ts +1 -1
  156. package/dist/components/Label/styles.d.ts +6 -6
  157. package/dist/components/Label/types.d.ts +17 -17
  158. package/dist/components/List/index.d.ts +4 -4
  159. package/dist/components/List/list.test.d.ts +1 -1
  160. package/dist/components/List/styles.d.ts +15 -15
  161. package/dist/components/List/types.d.ts +8 -8
  162. package/dist/components/Modal/ModalExample.d.ts +7 -7
  163. package/dist/components/Modal/index.d.ts +3 -3
  164. package/dist/components/Modal/modal.test.d.ts +1 -1
  165. package/dist/components/Modal/styles.d.ts +538 -538
  166. package/dist/components/Modal/types.d.ts +37 -37
  167. package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +1 -1
  168. package/dist/components/MultipleSelect/animations.d.ts +2 -2
  169. package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
  170. package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts +4 -4
  171. package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +3 -3
  172. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +275 -275
  173. package/dist/components/MultipleSelect/components/OptionsArea/types.d.ts +20 -20
  174. package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +13 -13
  175. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
  176. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +21 -21
  177. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +3 -3
  178. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +18 -18
  179. package/dist/components/MultipleSelect/components/SelectArea/types.d.ts +22 -22
  180. package/dist/components/MultipleSelect/components/index.d.ts +3 -3
  181. package/dist/components/MultipleSelect/index.d.ts +5 -5
  182. package/dist/components/MultipleSelect/types.d.ts +44 -44
  183. package/dist/components/NewSelect/Examples/constants.d.ts +4 -4
  184. package/dist/components/NewSelect/Examples/index.d.ts +4 -4
  185. package/dist/components/NewSelect/components/Chip/index.d.ts +3 -3
  186. package/dist/components/NewSelect/components/Chip/styles.d.ts +5 -5
  187. package/dist/components/NewSelect/components/Chip/types.d.ts +4 -4
  188. package/dist/components/NewSelect/components/OptionsSelect/styles.d.ts +260 -260
  189. package/dist/components/NewSelect/components/OptionsSelect/types.d.ts +22 -22
  190. package/dist/components/NewSelect/components/SelectInputSearch/index.d.ts +3 -3
  191. package/dist/components/NewSelect/components/SelectInputSearch/types.d.ts +3 -3
  192. package/dist/components/NewSelect/components/SelectItem/index.d.ts +3 -3
  193. package/dist/components/NewSelect/components/SelectItem/styles.d.ts +8 -8
  194. package/dist/components/NewSelect/components/SelectItem/types.d.ts +2 -2
  195. package/dist/components/NewSelect/index.d.ts +3 -3
  196. package/dist/components/NewSelect/multiple/index.d.ts +3 -3
  197. package/dist/components/NewSelect/newSelect.test.d.ts +1 -1
  198. package/dist/components/NewSelect/single/index.d.ts +3 -3
  199. package/dist/components/NewSelect/styles.d.ts +24 -24
  200. package/dist/components/NewSelect/types.d.ts +44 -44
  201. package/dist/components/Observer/index.d.ts +6 -6
  202. package/dist/components/Observer/observer.test.d.ts +1 -1
  203. package/dist/components/Observer/types.d.ts +6 -6
  204. package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
  205. package/dist/components/Pagination/index.d.ts +3 -3
  206. package/dist/components/Pagination/pagination.test.d.ts +1 -1
  207. package/dist/components/Pagination/styles.d.ts +34 -34
  208. package/dist/components/Pagination/types.d.ts +28 -28
  209. package/dist/components/Progress/Circle/index.d.ts +3 -3
  210. package/dist/components/Progress/Circle/styles.d.ts +27 -27
  211. package/dist/components/Progress/Circle/types.d.ts +18 -18
  212. package/dist/components/Progress/Linear/index.d.ts +3 -3
  213. package/dist/components/Progress/Linear/styles.d.ts +15 -15
  214. package/dist/components/Progress/Linear/types.d.ts +13 -13
  215. package/dist/components/Progress/getSteps.d.ts +1 -1
  216. package/dist/components/Progress/index.d.ts +4 -4
  217. package/dist/components/Progress/progress.test.d.ts +1 -1
  218. package/dist/components/Progress/types.d.ts +27 -27
  219. package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
  220. package/dist/components/RadioInput/index.d.ts +4 -4
  221. package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
  222. package/dist/components/RadioInput/styles.d.ts +30 -30
  223. package/dist/components/RadioInput/types.d.ts +32 -32
  224. package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
  225. package/dist/components/Rating/index.d.ts +3 -3
  226. package/dist/components/Rating/rating.test.d.ts +1 -1
  227. package/dist/components/Rating/styles.d.ts +18 -18
  228. package/dist/components/Rating/types.d.ts +19 -19
  229. package/dist/components/ReactPortal/index.d.ts +7 -7
  230. package/dist/components/ReactPortal/reactPortal.test.d.ts +1 -1
  231. package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.d.ts +1 -1
  232. package/dist/components/Select/components/OptionsSelect/index.d.ts +3 -3
  233. package/dist/components/Select/components/OptionsSelect/styles.d.ts +268 -268
  234. package/dist/components/Select/components/OptionsSelect/types.d.ts +17 -17
  235. package/dist/components/Select/index.d.ts +4 -4
  236. package/dist/components/Select/select.test.d.ts +1 -1
  237. package/dist/components/Select/styles.d.ts +20 -20
  238. package/dist/components/Select/types.d.ts +26 -26
  239. package/dist/components/Skeleton/index.d.ts +4 -4
  240. package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
  241. package/dist/components/Skeleton/styles.d.ts +7 -7
  242. package/dist/components/Skeleton/types.d.ts +40 -40
  243. package/dist/components/Slider/SliderExample.d.ts +3 -3
  244. package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
  245. package/dist/components/Slider/components/SliderRail.d.ts +3 -3
  246. package/dist/components/Slider/components/SliderSelector.d.ts +17 -17
  247. package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
  248. package/dist/components/Slider/index.d.ts +19 -19
  249. package/dist/components/Slider/slider.test.d.ts +1 -1
  250. package/dist/components/Slider/styles.d.ts +65 -65
  251. package/dist/components/Slider/types.d.ts +40 -40
  252. package/dist/components/Spinner/index.d.ts +4 -4
  253. package/dist/components/Spinner/spinner.test.d.ts +1 -1
  254. package/dist/components/Spinner/styles.d.ts +288 -288
  255. package/dist/components/Spinner/types.d.ts +11 -11
  256. package/dist/components/Steps/components/StepIcon/index.d.ts +3 -3
  257. package/dist/components/Steps/components/StepIconMobile/index.d.ts +3 -3
  258. package/dist/components/Steps/index.d.ts +4 -4
  259. package/dist/components/Steps/index.d.ts.map +1 -1
  260. package/dist/components/Steps/index.js +2 -0
  261. package/dist/components/Steps/steps.test.d.ts +1 -1
  262. package/dist/components/Steps/styles.d.ts +45 -45
  263. package/dist/components/Steps/types.d.ts +20 -20
  264. package/dist/components/Steps/utils.d.ts +8 -7
  265. package/dist/components/Steps/utils.d.ts.map +1 -1
  266. package/dist/components/Steps/utils.js +1 -0
  267. package/dist/components/Switch/index.d.ts +4 -4
  268. package/dist/components/Switch/styles.d.ts +18 -18
  269. package/dist/components/Switch/switch.test.d.ts +1 -1
  270. package/dist/components/Switch/types.d.ts +14 -14
  271. package/dist/components/Table/components/MenuItem.d.ts +3 -3
  272. package/dist/components/Table/components/TableSkeleton.d.ts +3 -3
  273. package/dist/components/Table/index.d.ts +3 -3
  274. package/dist/components/Table/styles.d.ts +34 -34
  275. package/dist/components/Table/table.test.d.ts +1 -1
  276. package/dist/components/Table/types.d.ts +53 -53
  277. package/dist/components/Tabs/TabsExample.d.ts +3 -3
  278. package/dist/components/Tabs/components/Tab.d.ts +3 -3
  279. package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
  280. package/dist/components/Tabs/components/Tabs.d.ts +4 -4
  281. package/dist/components/Tabs/index.d.ts +3 -3
  282. package/dist/components/Tabs/styles.d.ts +41 -41
  283. package/dist/components/Tabs/tabs.test.d.ts +1 -1
  284. package/dist/components/Tabs/types.d.ts +50 -50
  285. package/dist/components/Tag/index.d.ts +4 -4
  286. package/dist/components/Tag/styles.d.ts +869 -869
  287. package/dist/components/Tag/tag.test.d.ts +1 -1
  288. package/dist/components/Tag/types.d.ts +9 -9
  289. package/dist/components/TextAreaInput/index.d.ts +4 -4
  290. package/dist/components/TextAreaInput/styles.d.ts +18 -18
  291. package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
  292. package/dist/components/TextAreaInput/types.d.ts +26 -26
  293. package/dist/components/Thumbnail/index.d.ts +3 -3
  294. package/dist/components/Thumbnail/styles.d.ts +38 -38
  295. package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
  296. package/dist/components/Thumbnail/types.d.ts +28 -28
  297. package/dist/components/Thumbnail/utils/index.d.ts +2 -2
  298. package/dist/components/Thumbnail/utils/validate-file-size.d.ts +1 -1
  299. package/dist/components/Thumbnail/utils/validate-file-type.d.ts +1 -1
  300. package/dist/components/TimeInput/constants.d.ts +4 -4
  301. package/dist/components/TimeInput/index.d.ts +4 -4
  302. package/dist/components/TimeInput/styles.d.ts +16 -16
  303. package/dist/components/TimeInput/types.d.ts +4 -4
  304. package/dist/components/TimeInput/utils.d.ts +8 -8
  305. package/dist/components/Timeline/components/Timeline.d.ts +3 -3
  306. package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
  307. package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
  308. package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
  309. package/dist/components/Timeline/index.d.ts +4 -4
  310. package/dist/components/Timeline/styles.d.ts +31 -31
  311. package/dist/components/Timeline/timeline.test.d.ts +1 -1
  312. package/dist/components/Timeline/types.d.ts +20 -20
  313. package/dist/components/Toast/button-example.d.ts +6 -6
  314. package/dist/components/Toast/components/Toast.d.ts +4 -4
  315. package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
  316. package/dist/components/Toast/hooks/useToast.d.ts +2 -2
  317. package/dist/components/Toast/index.d.ts +3 -3
  318. package/dist/components/Toast/styles.d.ts +22 -22
  319. package/dist/components/Toast/toast.test.d.ts +1 -1
  320. package/dist/components/Toast/types.d.ts +29 -29
  321. package/dist/components/Tooltip/components/TooltipLabel.d.ts +12 -12
  322. package/dist/components/Tooltip/example.d.ts +2 -2
  323. package/dist/components/Tooltip/index.d.ts +4 -4
  324. package/dist/components/Tooltip/styles.d.ts +13 -13
  325. package/dist/components/Tooltip/types.d.ts +26 -26
  326. package/dist/components/Typography/index.d.ts +4 -4
  327. package/dist/components/Typography/styles.d.ts +21 -21
  328. package/dist/components/Typography/types.d.ts +16 -16
  329. package/dist/components/Typography/typography.test.d.ts +1 -1
  330. package/dist/index.d.ts +65 -65
  331. package/dist/shared/animations/opacityAnimation.d.ts +2 -2
  332. package/dist/shared/assets/emotes.d.ts +5007 -5007
  333. package/dist/shared/components/FocusLock/index.d.ts +7 -7
  334. package/dist/shared/formatters/format-number.d.ts +5 -5
  335. package/dist/shared/formatters/types.d.ts +5 -5
  336. package/dist/shared/hooks/devices.d.ts +8 -8
  337. package/dist/shared/hooks/useBreakpoints.d.ts +25 -25
  338. package/dist/shared/hooks/useDebounce.d.ts +1 -1
  339. package/dist/shared/hooks/useDevices.d.ts +8 -8
  340. package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
  341. package/dist/shared/hooks/useDraggableScroll/index.d.ts +9 -9
  342. package/dist/shared/hooks/useDraggableScroll/types.d.ts +5 -5
  343. package/dist/shared/hooks/useKeyPress.d.ts +1 -1
  344. package/dist/shared/hooks/useObserver.d.ts +10 -10
  345. package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
  346. package/dist/shared/hooks/useReposition/index.d.ts +3 -3
  347. package/dist/shared/hooks/useReposition/types.d.ts +29 -29
  348. package/dist/shared/hooks/useWindowSize.d.ts +8 -8
  349. package/dist/shared/tests/test-utils.d.ts +4 -4
  350. package/dist/shared/tests/types.d.ts +4 -4
  351. package/dist/shared/theme/button-example.d.ts +2 -2
  352. package/dist/shared/theme/contexts/ThemeContext.d.ts +15 -15
  353. package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
  354. package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
  355. package/dist/shared/theme/hooks/useTheme.d.ts +284 -284
  356. package/dist/shared/theme/index.d.ts +7 -7
  357. package/dist/shared/theme/theme.d.ts +282 -282
  358. package/dist/shared/theme/theme.test.d.ts +1 -1
  359. package/dist/shared/theme/theme.types.d.ts +14 -14
  360. package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
  361. package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
  362. package/dist/shared/types/credit-card.d.ts +5 -5
  363. package/dist/shared/types/file.d.ts +11 -11
  364. package/dist/shared/types/name.d.ts +3 -3
  365. package/dist/shared/types/phone.d.ts +8 -0
  366. package/dist/shared/types/phone.d.ts.map +1 -0
  367. package/dist/shared/types/phone.js +1 -0
  368. package/dist/utils/GenerateKey.d.ts +10 -10
  369. package/dist/utils/brightnessColorChange.d.ts +8 -8
  370. package/dist/utils/colorCheck.d.ts +40 -40
  371. package/dist/utils/colorFunctions.d.ts +2 -2
  372. package/dist/utils/colorToGray.d.ts +5 -5
  373. package/dist/utils/file.d.ts +26 -26
  374. package/dist/utils/formatters/bytes.d.ts +7 -7
  375. package/dist/utils/formatters/capitalize.d.ts +6 -6
  376. package/dist/utils/formatters/cep.d.ts +12 -12
  377. package/dist/utils/formatters/cnpj.d.ts +18 -18
  378. package/dist/utils/formatters/color.d.ts +15 -15
  379. package/dist/utils/formatters/cpf.d.ts +18 -18
  380. package/dist/utils/formatters/credit-card.d.ts +26 -26
  381. package/dist/utils/formatters/email.d.ts +1 -1
  382. package/dist/utils/formatters/index.d.ts +15 -15
  383. package/dist/utils/formatters/name.d.ts +20 -20
  384. package/dist/utils/formatters/number.d.ts +6 -6
  385. package/dist/utils/formatters/passport.d.ts +24 -24
  386. package/dist/utils/formatters/phone.d.ts +71 -59
  387. package/dist/utils/formatters/phone.d.ts.map +1 -1
  388. package/dist/utils/formatters/phone.js +76 -19
  389. package/dist/utils/formatters/price.d.ts +11 -11
  390. package/dist/utils/formatters/rg.d.ts +12 -12
  391. package/dist/utils/formatters/strings.d.ts +19 -19
  392. package/dist/utils/fuctionsColors.d.ts +2 -2
  393. package/dist/utils/generateUUID.d.ts +1 -1
  394. package/dist/utils/getColorValue.d.ts +12 -12
  395. package/dist/utils/getSvg.d.ts +10 -10
  396. package/dist/utils/getValuesBySize.d.ts +6 -6
  397. package/dist/utils/invertColor.d.ts +7 -7
  398. package/package.json +2 -1
@@ -1,60 +1,72 @@
1
- /**
2
- * Formats phone numbers with a default ddi of +55.
3
- * @param {string} phone - The phone number to be formatted.
4
- * @param {string} [ddi='+55'] - The default ddi to use.
5
- * @returns {string} The formatted phone number.
6
- */
7
- export declare function formatPhone(phone: string, ddi?: string): string;
8
- /**
9
- * Formats phone numbers with a default ddi of +55 and adds a country prefix if needed.
10
- * @param {string} phone - The phone number to be formatted.
11
- * @param {string} [ddi='+55'] - The default ddi to use.
12
- * @returns {string} The formatted phone number with prefix.
13
- */
14
- export declare function formatPhoneWithPrefix(phone?: string, ddi?: string): string;
15
- /**
16
- * Sanitizes phone numbers by removing all non-digit characters and leading zeroes.
17
- * @param {string} phone - The phone number to be sanitized.
18
- * @returns {string} The sanitized phone number.
19
- */
20
- export declare function sanitizePhone(phone: string): string;
21
- /**
22
- * Validates if a phone number is valid according to Brazilian phone number rules.
23
- * @param {string} phone - The phone number to be validated.
24
- * @returns {boolean} - Returns true if the phone number is valid or false otherwise.
25
- */
26
- export declare function phoneValidator(phone: string): boolean;
27
- /**
28
- * Parses a Brazilian phone number to add the ninth digit if needed or removes it if specified.
29
- * @param {string} phone - The phone number to be parsed.
30
- * @param {boolean} [remove] - If true, removes the ninth digit from the phone number. Defaults to false.
31
- * @returns {string} - Returns the parsed phone number.
32
- */
33
- export declare function phoneNineDigitParser(phone: string, remove?: boolean): string;
34
- /**
35
- * Verifies if a Brazilian phone number has the ninth digit added.
36
- * @param {string} phone - The phone number to be verified.
37
- * @param {object} [options] - The options to customize the error message. Default values: { errorMessage: 'Please include the digit "9" at the beginning of the number' }.
38
- * @returns {boolean|string} - Returns true if first digit is nine, or an error message if the phone number is invalid.
39
- */
40
- export declare function verifyNineDigit(phone: string, { errorMessage, }: {
41
- errorMessage?: string;
42
- }): boolean | string;
43
- /**
44
- * Returns the DDI (international dialing code) of a phone number.
45
- * @param {string} number - The phone number to get the DDI from.
46
- * @returns {string|null} The DDI.
47
- */
48
- export declare function getDDI(number?: string): string | undefined;
49
- /**
50
- * Returns a formatted phone number based on provided options.
51
- * @param {string} phone - The phone number to be formatted.
52
- * @param {object} options - The options to customize the format. Default values: { ddi: undefined, withDDI: false, keepDDI: false }.
53
- * @returns {string} The formatted phone number.
54
- */
55
- export declare function formatedPhone(phone: string, options?: {
56
- ddi?: string;
57
- withDDI?: boolean;
58
- keepDDI?: boolean;
59
- }): string;
1
+ import { FormatPhoneProps } from '../../shared/types/phone';
2
+ /**
3
+ * Formats phone numbers with a default ddi of +55 and adds a country prefix if needed.
4
+ * @param {string} phone - The phone number to be formatted.
5
+ * @param {string} [ddi='+55'] - The default ddi to use.
6
+ * @returns {string} The formatted phone number with prefix.
7
+ */
8
+ export declare function formatPhoneWithPrefix(phone?: string, ddi?: string): string;
9
+ /**
10
+ * Sanitizes phone numbers by removing all non-digit characters and leading zeroes.
11
+ * @param {string} phone - The phone number to be sanitized.
12
+ * @returns {string} The sanitized phone number.
13
+ */
14
+ export declare function sanitizePhone(phone: string): string;
15
+ /**
16
+ * Validates if a phone number is valid according to Brazilian phone number rules.
17
+ * @param {string} phone - The phone number to be validated.
18
+ * @returns {boolean} - Returns true if the phone number is valid or false otherwise.
19
+ */
20
+ export declare function phoneValidator(phone: string): boolean;
21
+ /**
22
+ * Parses a Brazilian phone number to add the ninth digit if needed or removes it if specified.
23
+ * @param {string} phone - The phone number to be parsed.
24
+ * @param {boolean} [remove] - If true, removes the ninth digit from the phone number. Defaults to false.
25
+ * @returns {string} - Returns the parsed phone number.
26
+ */
27
+ export declare function phoneNineDigitParser(phone: string, remove?: boolean): string;
28
+ /**
29
+ * Verifies if a Brazilian phone number has the ninth digit added.
30
+ * @param {string} phone - The phone number to be verified.
31
+ * @param {object} [options] - The options to customize the error message. Default values: { errorMessage: 'Please include the digit "9" at the beginning of the number' }.
32
+ * @returns {boolean|string} - Returns true if first digit is nine, or an error message if the phone number is invalid.
33
+ */
34
+ export declare function verifyNineDigit(phone: string, { errorMessage, }: {
35
+ errorMessage?: string;
36
+ }): boolean | string;
37
+ /**
38
+ * Returns the DDI (international dialing code) of a phone number.
39
+ * @param {string} number - The phone number to get the DDI from.
40
+ * @returns {string|null} The DDI.
41
+ */
42
+ export declare function getDDI(number?: string): string | undefined;
43
+ /**
44
+ * Returns a formatted phone number based on provided options.
45
+ * @param {string} phone - The phone number to be formatted.
46
+ * @param {object} options - The options to customize the format. Default values: { ddi: undefined, withDDI: false, keepDDI: false }.
47
+ * @returns {string} The formatted phone number.
48
+ */
49
+ export declare function formatedPhone(phone: string, options?: {
50
+ ddi?: string;
51
+ withDDI?: boolean;
52
+ keepDDI?: boolean;
53
+ }): string;
54
+ /**
55
+ * Returns an object containing various formatted representations of a phone number.
56
+ * @param {string} phoneNumber - The phone number to be formatted.
57
+ * @returns {FormatPhoneProps | null} - An object containing different formats of the phone number or null if the number cannot be parsed.
58
+ */
59
+ export declare function formatPhone(phoneNumber: string): FormatPhoneProps | null;
60
+ /**
61
+ * Formats a guest phone number by masking digits except the last four digits for each format.
62
+ * @param phoneNumber - The phone number to be formatted.
63
+ * @returns The formatted phone number object, or null if the formatting is not possible.
64
+ */
65
+ export declare function formatGuestPhone(phoneNumber: string): FormatPhoneProps | null;
66
+ /**
67
+ * Validates if a phone number is valid.
68
+ * @param {string | undefined} phoneNumber - The phone number to be validated.
69
+ * @returns {boolean} - A boolean indicating whether the phone number is valid or not.
70
+ */
71
+ export declare function validatePhone(phoneNumber?: string): boolean;
60
72
  //# sourceMappingURL=phone.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"phone.d.ts","sourceRoot":"","sources":["../../../src/utils/formatters/phone.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,MAAc,GAAG,MAAM,CAetE;AACD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,MAAc,GAAG,MAAM,CAkCjF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAerD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,MAAM,CAmB1E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,EACE,YAA4E,GAC7E,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3B,OAAO,GAAG,MAAM,CAQlB;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,sBAWrC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IACP,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACd,UA2BP"}
1
+ {"version":3,"file":"phone.d.ts","sourceRoot":"","sources":["../../../src/utils/formatters/phone.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,MAAc,GAAG,MAAM,CAkCjF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAerD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,MAAM,CAmB1E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,EACE,YAA4E,GAC7E,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3B,OAAO,GAAG,MAAM,CAQlB;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,sBAWrC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IACP,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACd,UA2BP;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CA6BxE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAkC7E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAU3D"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.formatGuestPhone = formatGuestPhone;
6
7
  exports.formatPhone = formatPhone;
7
8
  exports.formatPhoneWithPrefix = formatPhoneWithPrefix;
8
9
  exports.formatedPhone = formatedPhone;
@@ -10,28 +11,17 @@ exports.getDDI = getDDI;
10
11
  exports.phoneNineDigitParser = phoneNineDigitParser;
11
12
  exports.phoneValidator = phoneValidator;
12
13
  exports.sanitizePhone = sanitizePhone;
14
+ exports.validatePhone = validatePhone;
13
15
  exports.verifyNineDigit = verifyNineDigit;
14
16
  var _phone = _interopRequireDefault(require("phone"));
17
+ var _max = require("libphonenumber-js/max");
15
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
- /**
17
- * Formats phone numbers with a default ddi of +55.
18
- * @param {string} phone - The phone number to be formatted.
19
- * @param {string} [ddi='+55'] - The default ddi to use.
20
- * @returns {string} The formatted phone number.
21
- */
22
- function formatPhone(phone) {
23
- var ddi = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '+55';
24
- if (phone) {
25
- var sanitizedPhone = phone.replace(/[^\d]/g, '').replace(/^0/, '');
26
- switch (ddi) {
27
- case '+55':
28
- return sanitizedPhone.replace(/^(\d{2}|\d{2})\B/, '($1) ').replace(/(\d{1}|\d{1})?(\d{4}|\d{4})(\d{4}|\d{4})/, '$1$2-$3');
29
- default:
30
- return sanitizedPhone;
31
- }
32
- }
33
- return '';
34
- }
19
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
20
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
22
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
24
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
35
25
  /**
36
26
  * Formats phone numbers with a default ddi of +55 and adds a country prefix if needed.
37
27
  * @param {string} phone - The phone number to be formatted.
@@ -178,4 +168,71 @@ function formatedPhone(phone) {
178
168
 
179
169
  // If keepDDI option is enabled, returns the formatted phone number with the DDI.
180
170
  return options.keepDDI ? "".concat(options.ddi, " ").concat(result) : result;
171
+ }
172
+
173
+ /**
174
+ * Returns an object containing various formatted representations of a phone number.
175
+ * @param {string} phoneNumber - The phone number to be formatted.
176
+ * @returns {FormatPhoneProps | null} - An object containing different formats of the phone number or null if the number cannot be parsed.
177
+ */
178
+ function formatPhone(phoneNumber) {
179
+ if (phoneNumber.includes('*')) return formatGuestPhone(phoneNumber);
180
+
181
+ // Parses the phone number
182
+ var parsedNumber = (0, _max.parsePhoneNumberFromString)(phoneNumber);
183
+ if (!parsedNumber) {
184
+ return null;
185
+ }
186
+ var hasDDI = parsedNumber.countryCallingCode !== undefined;
187
+ var isInternational = hasDDI && parsedNumber.countryCallingCode !== '55';
188
+ var formattedNumber = isInternational ? parsedNumber.formatInternational().replace("+".concat(parsedNumber.countryCallingCode, " "), '') : parsedNumber.formatNational();
189
+ return {
190
+ formattedNumber: formattedNumber,
191
+ ddi: hasDDI ? "+".concat(parsedNumber.countryCallingCode) : undefined,
192
+ formattedNumberWithDDI: hasDDI ? "+".concat(parsedNumber.countryCallingCode, " ").concat(formattedNumber) : formattedNumber,
193
+ unformattedNumber: parsedNumber.nationalNumber,
194
+ unformattedNumberWithDDI: hasDDI ? "+".concat(parsedNumber.countryCallingCode).concat(parsedNumber.nationalNumber) : parsedNumber.nationalNumber
195
+ };
196
+ }
197
+
198
+ /**
199
+ * Formats a guest phone number by masking digits except the last four digits for each format.
200
+ * @param phoneNumber - The phone number to be formatted.
201
+ * @returns The formatted phone number object, or null if the formatting is not possible.
202
+ */
203
+ function formatGuestPhone(phoneNumber) {
204
+ var phone = phoneNumber.replace(/\*/g, '9');
205
+ var phoneFormatter = formatPhone(phone);
206
+ if (!phoneFormatter) {
207
+ return null;
208
+ }
209
+ return Object.keys(phoneFormatter).reduce(function (acc, key) {
210
+ var currentKey = key;
211
+ if (currentKey === 'ddi') {
212
+ return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, currentKey, phoneFormatter[currentKey]));
213
+ }
214
+ var hasDdi = phoneFormatter[currentKey].startsWith((phoneFormatter === null || phoneFormatter === void 0 ? void 0 : phoneFormatter.ddi) || '');
215
+ var lastFourDigits = phoneFormatter[currentKey].slice(-4);
216
+ if (hasDdi) {
217
+ var _phoneFormatter$ddi;
218
+ var numberPart = phoneFormatter[currentKey].slice(phoneFormatter === null || phoneFormatter === void 0 ? void 0 : (_phoneFormatter$ddi = phoneFormatter.ddi) === null || _phoneFormatter$ddi === void 0 ? void 0 : _phoneFormatter$ddi.length, -4);
219
+ return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, currentKey, (phoneFormatter === null || phoneFormatter === void 0 ? void 0 : phoneFormatter.ddi) + numberPart.replace(/\d/g, '*') + lastFourDigits));
220
+ }
221
+ return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, currentKey, phoneFormatter[currentKey].replace(/\d/g, '*').slice(0, -4) + lastFourDigits));
222
+ }, {});
223
+ }
224
+
225
+ /**
226
+ * Validates if a phone number is valid.
227
+ * @param {string | undefined} phoneNumber - The phone number to be validated.
228
+ * @returns {boolean} - A boolean indicating whether the phone number is valid or not.
229
+ */
230
+ function validatePhone(phoneNumber) {
231
+ if (!phoneNumber) return false;
232
+ // Parses the phone number
233
+ var parsedNumber = (0, _max.parsePhoneNumberFromString)(phoneNumber);
234
+ if (!parsedNumber) {
235
+ return false;
236
+ }
237
+ return parsedNumber.isValid();
181
238
  }
@@ -1,12 +1,12 @@
1
- /**
2
- * Formats a number or string into Brazilian Real currency format.
3
- * @param {number | string} value - The value to format.
4
- * @returns {string} The formatted value in BRL currency format.
5
- */
6
- export declare function formatPrice(value: number | string): string;
7
- /**
8
- * Converts a number of cents to a string representation of a price with the Brazilian Real currency symbol and format.
9
- * @param {number} cents - The amount of cents to format.
10
- */
11
- export declare function localeCents(cents: number): string;
1
+ /**
2
+ * Formats a number or string into Brazilian Real currency format.
3
+ * @param {number | string} value - The value to format.
4
+ * @returns {string} The formatted value in BRL currency format.
5
+ */
6
+ export declare function formatPrice(value: number | string): string;
7
+ /**
8
+ * Converts a number of cents to a string representation of a price with the Brazilian Real currency symbol and format.
9
+ * @param {number} cents - The amount of cents to format.
10
+ */
11
+ export declare function localeCents(cents: number): string;
12
12
  //# sourceMappingURL=price.d.ts.map
@@ -1,13 +1,13 @@
1
- /**
2
- * Formats the given RG string by removing any character that is not a number, comma, dot or space.
3
- * @param {string} rg - The RG string to be formatted.
4
- * @returns {string} - The formatted RG string.
5
- */
6
- export declare function formatRG(rg: string): string;
7
- /**
8
- * Sanitizes the given RG string by removing dots and dashes and converting all characters to uppercase.
9
- * @param {string} rg - The RG string to be sanitized.
10
- * @returns {string} - The sanitized RG string.
11
- */
12
- export declare function sanitizeRG(rg: string): string;
1
+ /**
2
+ * Formats the given RG string by removing any character that is not a number, comma, dot or space.
3
+ * @param {string} rg - The RG string to be formatted.
4
+ * @returns {string} - The formatted RG string.
5
+ */
6
+ export declare function formatRG(rg: string): string;
7
+ /**
8
+ * Sanitizes the given RG string by removing dots and dashes and converting all characters to uppercase.
9
+ * @param {string} rg - The RG string to be sanitized.
10
+ * @returns {string} - The sanitized RG string.
11
+ */
12
+ export declare function sanitizeRG(rg: string): string;
13
13
  //# sourceMappingURL=rg.d.ts.map
@@ -1,20 +1,20 @@
1
- /**
2
- * Truncates a string to a given character limit and adds ellipses at the end if necessary.
3
- * @param {string} data - The string to truncate.
4
- * @param {number} limit - The maximum number of characters the string can have.
5
- * @returns {string} The truncated string.
6
- */
7
- export declare function truncateString(data: string, limit: number): string;
8
- /**
9
- * Removes line breaks from a given string.
10
- * @param {string} lineBreaks - The string to remove line breaks from.
11
- * @returns {string} The string without line breaks.
12
- */
13
- export declare function removeLineBreaks(lineBreaks: string): string;
14
- /**
15
- * Replaces multiple consecutive spaces in a string with a single space and trims the string.
16
- * @param {string} string - The string to replace unnecessary spaces in.
17
- * @returns {string} The string without unnecessary spaces.
18
- */
19
- export declare function replaceUnecessarySpaces(string: string): string;
1
+ /**
2
+ * Truncates a string to a given character limit and adds ellipses at the end if necessary.
3
+ * @param {string} data - The string to truncate.
4
+ * @param {number} limit - The maximum number of characters the string can have.
5
+ * @returns {string} The truncated string.
6
+ */
7
+ export declare function truncateString(data: string, limit: number): string;
8
+ /**
9
+ * Removes line breaks from a given string.
10
+ * @param {string} lineBreaks - The string to remove line breaks from.
11
+ * @returns {string} The string without line breaks.
12
+ */
13
+ export declare function removeLineBreaks(lineBreaks: string): string;
14
+ /**
15
+ * Replaces multiple consecutive spaces in a string with a single space and trims the string.
16
+ * @param {string} string - The string to replace unnecessary spaces in.
17
+ * @returns {string} The string without unnecessary spaces.
18
+ */
19
+ export declare function replaceUnecessarySpaces(string: string): string;
20
20
  //# sourceMappingURL=strings.d.ts.map
@@ -1,3 +1,3 @@
1
- export declare function hoverFunction(col: string, amt?: number): string;
2
- export declare function focusFunction(col: string, amt?: number): string;
1
+ export declare function hoverFunction(col: string, amt?: number): string;
2
+ export declare function focusFunction(col: string, amt?: number): string;
3
3
  //# sourceMappingURL=fuctionsColors.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare function generateUUID(): string;
1
+ export declare function generateUUID(): string;
2
2
  //# sourceMappingURL=generateUUID.d.ts.map
@@ -1,13 +1,13 @@
1
- import { ExtendThemeProps } from '../shared/theme';
2
- /**
3
- * This function takes a color string and returns the color value related to the theme or the original color string
4
- * @param color : color value;
5
- * @param theme : theme object;
6
- * @param defaultValue : default value if color is not valid;
7
- * @returns color value;
8
- * @example
9
- * getColorValue('primary.default', props.theme); // returns '#22E0A1'
10
- */
11
- export declare const getColorValue: (color: string, theme?: ExtendThemeProps, defaultValue?: string) => string;
12
- export declare const getThemeHex: (path: string, obj: object, separator?: string) => any;
1
+ import { ExtendThemeProps } from '../shared/theme';
2
+ /**
3
+ * This function takes a color string and returns the color value related to the theme or the original color string
4
+ * @param color : color value;
5
+ * @param theme : theme object;
6
+ * @param defaultValue : default value if color is not valid;
7
+ * @returns color value;
8
+ * @example
9
+ * getColorValue('primary.default', props.theme); // returns '#22E0A1'
10
+ */
11
+ export declare const getColorValue: (color: string, theme?: ExtendThemeProps, defaultValue?: string) => string;
12
+ export declare const getThemeHex: (path: string, obj: object, separator?: string) => any;
13
13
  //# sourceMappingURL=getColorValue.d.ts.map
@@ -1,11 +1,11 @@
1
- type IconsObject = {
2
- name: string;
3
- width: number;
4
- height: number;
5
- viewBox: string;
6
- html: string;
7
- xmlns: string;
8
- };
9
- export declare const getSvg: (name: string, allIcons: IconsObject[]) => IconsObject;
10
- export {};
1
+ type IconsObject = {
2
+ name: string;
3
+ width: number;
4
+ height: number;
5
+ viewBox: string;
6
+ html: string;
7
+ xmlns: string;
8
+ };
9
+ export declare const getSvg: (name: string, allIcons: IconsObject[]) => IconsObject;
10
+ export {};
11
11
  //# sourceMappingURL=getSvg.d.ts.map
@@ -1,7 +1,7 @@
1
- type SizeName = 'base' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | string;
2
- type Sizes = {
3
- [key in SizeName | string]: string | number;
4
- };
5
- export declare function getValuesBySize(sizes: Sizes, conditional?: SizeName): string | number;
6
- export {};
1
+ type SizeName = 'base' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | string;
2
+ type Sizes = {
3
+ [key in SizeName | string]: string | number;
4
+ };
5
+ export declare function getValuesBySize(sizes: Sizes, conditional?: SizeName): string | number;
6
+ export {};
7
7
  //# sourceMappingURL=getValuesBySize.d.ts.map
@@ -1,8 +1,8 @@
1
- /**
2
- * Invert the provided color or return black or white if the color is darken or lighten
3
- * @param hex : hex color
4
- * @param bw : black or white
5
- * @returns : hex color
6
- */
7
- export declare const invertColor: (hex: string, bw: boolean) => string;
1
+ /**
2
+ * Invert the provided color or return black or white if the color is darken or lighten
3
+ * @param hex : hex color
4
+ * @param bw : black or white
5
+ * @returns : hex color
6
+ */
7
+ export declare const invertColor: (hex: string, bw: boolean) => string;
8
8
  //# sourceMappingURL=invertColor.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedidopago/ui",
3
- "version": "1.7.16",
3
+ "version": "1.7.17",
4
4
  "description": "Quick build beatiful Pedido Pago apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,6 +26,7 @@
26
26
  "@tanstack/react-virtual": "^3.0.0-beta.54",
27
27
  "classnames": "^2.3.2",
28
28
  "framer-motion": "^10.10.0",
29
+ "libphonenumber-js": "^1.10.34",
29
30
  "phone": "^3.1.33",
30
31
  "react": "^18.2.0",
31
32
  "react-dom": "^18.2.0"