@pedidopago/ui 1.5.21 → 1.5.24

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 (470) hide show
  1. package/dist/@types/index.d.ts +6 -6
  2. package/dist/components/Alert/alert.test.d.ts +2 -0
  3. package/dist/components/Alert/alert.test.d.ts.map +1 -0
  4. package/dist/components/Alert/alert.test.js +92 -0
  5. package/dist/components/Alert/index.d.ts +4 -4
  6. package/dist/components/Alert/styles.d.ts +24 -24
  7. package/dist/components/Alert/types.d.ts +44 -44
  8. package/dist/components/Alert/types.d.ts.map +1 -1
  9. package/dist/components/Avatar/avatar.test.d.ts +2 -0
  10. package/dist/components/Avatar/avatar.test.d.ts.map +1 -0
  11. package/dist/components/Avatar/avatar.test.js +74 -0
  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/Avatar/types.d.ts.map +1 -1
  16. package/dist/components/Badge/badge.test.d.ts +2 -0
  17. package/dist/components/Badge/badge.test.d.ts.map +1 -0
  18. package/dist/components/Badge/badge.test.js +82 -0
  19. package/dist/components/Badge/index.d.ts +4 -4
  20. package/dist/components/Badge/styles.d.ts +16 -16
  21. package/dist/components/Badge/types.d.ts +11 -11
  22. package/dist/components/Button/Button.test.d.ts +2 -0
  23. package/dist/components/Button/Button.test.d.ts.map +1 -0
  24. package/dist/components/Button/Button.test.js +172 -0
  25. package/dist/components/Button/index.d.ts +3 -3
  26. package/dist/components/Button/styles.d.ts +14 -14
  27. package/dist/components/Button/types.d.ts +92 -92
  28. package/dist/components/Card/card.test.d.ts +2 -0
  29. package/dist/components/Card/card.test.d.ts.map +1 -0
  30. package/dist/components/Card/card.test.js +37 -0
  31. package/dist/components/Card/index.d.ts +3 -3
  32. package/dist/components/Card/styles.d.ts +6 -6
  33. package/dist/components/Card/types.d.ts +17 -17
  34. package/dist/components/CheckboxInput/checkbox-input.test.d.ts +2 -0
  35. package/dist/components/CheckboxInput/checkbox-input.test.d.ts.map +1 -0
  36. package/dist/components/CheckboxInput/checkbox-input.test.js +194 -0
  37. package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
  38. package/dist/components/CheckboxInput/index.d.ts +4 -4
  39. package/dist/components/CheckboxInput/styles.d.ts +31 -31
  40. package/dist/components/CheckboxInput/types.d.ts +26 -26
  41. package/dist/components/CollapseCard/ExpandButton/index.d.ts +3 -3
  42. package/dist/components/CollapseCard/ExpandButton/styles.d.ts +267 -267
  43. package/dist/components/CollapseCard/ExpandButton/types.d.ts +5 -5
  44. package/dist/components/CollapseCard/expand-button.test.d.ts +2 -0
  45. package/dist/components/CollapseCard/expand-button.test.d.ts.map +1 -0
  46. package/dist/components/CollapseCard/expand-button.test.js +200 -0
  47. package/dist/components/CollapseCard/index.d.ts +3 -3
  48. package/dist/components/CollapseCard/styles.d.ts +265 -265
  49. package/dist/components/CollapseCard/types.d.ts +12 -12
  50. package/dist/components/ColorPicker/colorpicker.test.d.ts +2 -0
  51. package/dist/components/ColorPicker/colorpicker.test.d.ts.map +1 -0
  52. package/dist/components/ColorPicker/colorpicker.test.js +74 -0
  53. package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
  54. package/dist/components/ColorPicker/components/ColorInput.d.ts +4 -4
  55. package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
  56. package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
  57. package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
  58. package/dist/components/ColorPicker/hooks/useCachedCallback.d.ts +1 -1
  59. package/dist/components/ColorPicker/hooks/useHsva.d.ts +2 -2
  60. package/dist/components/ColorPicker/index.d.ts +4 -4
  61. package/dist/components/ColorPicker/styles.d.ts +44 -44
  62. package/dist/components/ColorPicker/types.d.ts +73 -73
  63. package/dist/components/ColorPicker/utils/checkers.d.ts +7 -7
  64. package/dist/components/ColorPicker/utils/conversors.d.ts +60 -60
  65. package/dist/components/ColorPicker/utils/parsers.d.ts +27 -27
  66. package/dist/components/DateInput/DateInput-example.d.ts +5 -5
  67. package/dist/components/DateInput/DateInput-example.js +1 -1
  68. package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
  69. package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +265 -265
  70. package/dist/components/DateInput/components/ModalWrapper/types.d.ts +15 -15
  71. package/dist/components/DateInput/dateInput.test.d.ts +2 -0
  72. package/dist/components/DateInput/dateInput.test.d.ts.map +1 -0
  73. package/dist/components/DateInput/dateInput.test.js +52 -0
  74. package/dist/components/DateInput/index.d.ts +3 -3
  75. package/dist/components/DateInput/styles.d.ts +10 -10
  76. package/dist/components/DateInput/types.d.ts +18 -18
  77. package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
  78. package/dist/components/DatePicker/components/DatePickerContent.d.ts.map +1 -1
  79. package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
  80. package/dist/components/DatePicker/datepicker.test.d.ts +2 -0
  81. package/dist/components/DatePicker/datepicker.test.d.ts.map +1 -0
  82. package/dist/components/DatePicker/datepicker.test.js +138 -0
  83. package/dist/components/DatePicker/index.d.ts +4 -4
  84. package/dist/components/DatePicker/index.d.ts.map +1 -1
  85. package/dist/components/DatePicker/styles.d.ts +77 -77
  86. package/dist/components/DatePicker/types.d.ts +69 -69
  87. package/dist/components/DatePicker/utils/getMonthName.d.ts +1 -1
  88. package/dist/components/Dialog/dialog-example.d.ts +3 -3
  89. package/dist/components/Dialog/dialog.test.d.ts +2 -0
  90. package/dist/components/Dialog/dialog.test.d.ts.map +1 -0
  91. package/dist/components/Dialog/dialog.test.js +81 -0
  92. package/dist/components/Dialog/index.d.ts +3 -3
  93. package/dist/components/Dialog/styles.d.ts +25 -25
  94. package/dist/components/Dialog/types.d.ts +30 -30
  95. package/dist/components/Dropzone/dropzone.test.d.ts +2 -0
  96. package/dist/components/Dropzone/dropzone.test.d.ts.map +1 -0
  97. package/dist/components/Dropzone/dropzone.test.js +79 -0
  98. package/dist/components/Dropzone/index.d.ts +4 -4
  99. package/dist/components/Dropzone/styles.d.ts +60 -60
  100. package/dist/components/Dropzone/types.d.ts +27 -27
  101. package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
  102. package/dist/components/Flex/flex.test.d.ts +2 -0
  103. package/dist/components/Flex/flex.test.d.ts.map +1 -0
  104. package/dist/components/Flex/flex.test.js +355 -0
  105. package/dist/components/Flex/index.d.ts +4 -4
  106. package/dist/components/Flex/styles.d.ts +296 -296
  107. package/dist/components/Flex/styles.js +1 -1
  108. package/dist/components/Flex/types.d.ts +175 -175
  109. package/dist/components/Flex/types.d.ts.map +1 -1
  110. package/dist/components/Grid/grid.test.d.ts +2 -0
  111. package/dist/components/Grid/grid.test.d.ts.map +1 -0
  112. package/dist/components/Grid/grid.test.js +140 -0
  113. package/dist/components/Grid/index.d.ts +4 -4
  114. package/dist/components/Grid/styles.d.ts +288 -288
  115. package/dist/components/Grid/types.d.ts +88 -88
  116. package/dist/components/Icon/data/beauty.d.ts +8 -8
  117. package/dist/components/Icon/data/dash.d.ts +8 -8
  118. package/dist/components/Icon/data/ecommerce.d.ts +8 -8
  119. package/dist/components/Icon/data/form.d.ts +8 -8
  120. package/dist/components/Icon/data/health.d.ts +8 -8
  121. package/dist/components/Icon/data/illustrations.d.ts +8 -8
  122. package/dist/components/Icon/data/men.d.ts +8 -8
  123. package/dist/components/Icon/data/payment.d.ts +8 -8
  124. package/dist/components/Icon/data/pedidoPago.d.ts +8 -8
  125. package/dist/components/Icon/data/physicalPerfomance.d.ts +8 -8
  126. package/dist/components/Icon/data/social.d.ts +8 -8
  127. package/dist/components/Icon/data/status.d.ts +8 -8
  128. package/dist/components/Icon/data/summer.d.ts +8 -8
  129. package/dist/components/Icon/data/woman.d.ts +8 -8
  130. package/dist/components/Icon/icon.test.d.ts +2 -0
  131. package/dist/components/Icon/icon.test.d.ts.map +1 -0
  132. package/dist/components/Icon/icon.test.js +70 -0
  133. package/dist/components/Icon/index.d.ts +4 -4
  134. package/dist/components/Icon/scripts/build.d.ts +5 -5
  135. package/dist/components/Icon/scripts/extractor.d.ts +15 -15
  136. package/dist/components/Icon/scripts/run-build.d.ts +1 -1
  137. package/dist/components/Icon/scripts/writers.d.ts +22 -22
  138. package/dist/components/Icon/styles.d.ts +13 -13
  139. package/dist/components/Icon/types.d.ts +8 -8
  140. package/dist/components/Icon/utils/allIcons.d.ts +8 -8
  141. package/dist/components/Icon/utils/iconExists.d.ts +5 -0
  142. package/dist/components/Icon/utils/iconExists.d.ts.map +1 -0
  143. package/dist/components/Icon/utils/iconExists.js +16 -0
  144. package/dist/components/IconItem/IconItem.test.d.ts +2 -0
  145. package/dist/components/IconItem/IconItem.test.d.ts.map +1 -0
  146. package/dist/components/IconItem/IconItem.test.js +68 -0
  147. package/dist/components/IconItem/index.d.ts +4 -4
  148. package/dist/components/IconItem/styles.d.ts +18 -18
  149. package/dist/components/IconItem/types.d.ts +22 -22
  150. package/dist/components/IconItem/types.d.ts.map +1 -1
  151. package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts +4 -4
  152. package/dist/components/Illustration/BoletoSvg/index.d.ts +4 -4
  153. package/dist/components/Illustration/BoxClosedSvg/index.d.ts +4 -4
  154. package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +4 -4
  155. package/dist/components/Illustration/BoxOpenSvg/index.d.ts +4 -4
  156. package/dist/components/Illustration/CalendarSvg/index.d.ts +4 -4
  157. package/dist/components/Illustration/CardSvg/index.d.ts +4 -4
  158. package/dist/components/Illustration/CollaboratorSvg/index.d.ts +4 -4
  159. package/dist/components/Illustration/InquirySvg/index.d.ts +4 -4
  160. package/dist/components/Illustration/OrderSvg/index.d.ts +4 -4
  161. package/dist/components/Illustration/PixSvg/index.d.ts +4 -4
  162. package/dist/components/Illustration/PrescriptionSvg/index.d.ts +4 -4
  163. package/dist/components/Illustration/TransportSvg/index.d.ts +4 -4
  164. package/dist/components/Illustration/illustration.test.d.ts +2 -0
  165. package/dist/components/Illustration/illustration.test.d.ts.map +1 -0
  166. package/dist/components/Illustration/illustration.test.js +61 -0
  167. package/dist/components/Illustration/index.d.ts +4 -4
  168. package/dist/components/Illustration/styles.d.ts +10 -10
  169. package/dist/components/Illustration/types.d.ts +6 -6
  170. package/dist/components/ImageItem/imageFake.d.ts +2 -2
  171. package/dist/components/ImageItem/index.d.ts +4 -4
  172. package/dist/components/ImageItem/input.test.d.ts +2 -0
  173. package/dist/components/ImageItem/input.test.d.ts.map +1 -0
  174. package/dist/components/ImageItem/input.test.js +105 -0
  175. package/dist/components/ImageItem/styles.d.ts +26 -26
  176. package/dist/components/ImageItem/types.d.ts +25 -25
  177. package/dist/components/Input/index.d.ts +4 -4
  178. package/dist/components/Input/input.test.d.ts +2 -0
  179. package/dist/components/Input/input.test.d.ts.map +1 -0
  180. package/dist/components/Input/input.test.js +144 -0
  181. package/dist/components/Input/styles.d.ts +69 -69
  182. package/dist/components/Input/types.d.ts +28 -28
  183. package/dist/components/Label/index.d.ts +3 -3
  184. package/dist/components/Label/label.test.d.ts +2 -0
  185. package/dist/components/Label/label.test.d.ts.map +1 -0
  186. package/dist/components/Label/label.test.js +109 -0
  187. package/dist/components/Label/styles.d.ts +6 -6
  188. package/dist/components/Label/types.d.ts +17 -17
  189. package/dist/components/List/index.d.ts +4 -4
  190. package/dist/components/List/list.test.d.ts +2 -0
  191. package/dist/components/List/list.test.d.ts.map +1 -0
  192. package/dist/components/List/list.test.js +71 -0
  193. package/dist/components/List/styles.d.ts +15 -15
  194. package/dist/components/List/types.d.ts +8 -7
  195. package/dist/components/List/types.d.ts.map +1 -1
  196. package/dist/components/Modal/ModalExample.d.ts +7 -7
  197. package/dist/components/Modal/index.d.ts +3 -3
  198. package/dist/components/Modal/modal.test.d.ts +2 -0
  199. package/dist/components/Modal/modal.test.d.ts.map +1 -0
  200. package/dist/components/Modal/modal.test.js +197 -0
  201. package/dist/components/Modal/styles.d.ts +532 -532
  202. package/dist/components/Modal/types.d.ts +37 -37
  203. package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +2 -0
  204. package/dist/components/MultipleSelect/MultipleSelect.test.d.ts.map +1 -0
  205. package/dist/components/MultipleSelect/MultipleSelect.test.js +451 -0
  206. package/dist/components/MultipleSelect/animations.d.ts +2 -2
  207. package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
  208. package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts +4 -4
  209. package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +3 -3
  210. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +272 -272
  211. package/dist/components/MultipleSelect/components/OptionsArea/types.d.ts +20 -20
  212. package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +13 -13
  213. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
  214. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +21 -21
  215. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +3 -3
  216. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +18 -18
  217. package/dist/components/MultipleSelect/components/SelectArea/types.d.ts +22 -22
  218. package/dist/components/MultipleSelect/components/index.d.ts +3 -3
  219. package/dist/components/MultipleSelect/index.d.ts +5 -5
  220. package/dist/components/MultipleSelect/types.d.ts +44 -44
  221. package/dist/components/MultipleSelect/types.d.ts.map +1 -1
  222. package/dist/components/Observer/index.d.ts +7 -0
  223. package/dist/components/Observer/index.d.ts.map +1 -0
  224. package/dist/components/Observer/index.js +74 -0
  225. package/dist/components/Observer/observer.test.d.ts +2 -0
  226. package/dist/components/Observer/observer.test.d.ts.map +1 -0
  227. package/dist/components/Observer/observer.test.js +47 -0
  228. package/dist/components/Observer/types.d.ts +7 -0
  229. package/dist/components/Observer/types.d.ts.map +1 -0
  230. package/dist/components/Observer/types.js +1 -0
  231. package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
  232. package/dist/components/Pagination/index.d.ts +3 -3
  233. package/dist/components/Pagination/pagination.test.d.ts +2 -0
  234. package/dist/components/Pagination/pagination.test.d.ts.map +1 -0
  235. package/dist/components/Pagination/pagination.test.js +152 -0
  236. package/dist/components/Pagination/styles.d.ts +34 -34
  237. package/dist/components/Pagination/types.d.ts +28 -28
  238. package/dist/components/Pagination/types.d.ts.map +1 -1
  239. package/dist/components/Progress/Circle/index.d.ts +3 -3
  240. package/dist/components/Progress/Circle/styles.d.ts +27 -27
  241. package/dist/components/Progress/Circle/types.d.ts +18 -18
  242. package/dist/components/Progress/Linear/index.d.ts +3 -3
  243. package/dist/components/Progress/Linear/styles.d.ts +15 -15
  244. package/dist/components/Progress/Linear/types.d.ts +13 -13
  245. package/dist/components/Progress/getSteps.d.ts +1 -1
  246. package/dist/components/Progress/index.d.ts +4 -4
  247. package/dist/components/Progress/progress.test.d.ts +2 -0
  248. package/dist/components/Progress/progress.test.d.ts.map +1 -0
  249. package/dist/components/Progress/progress.test.js +126 -0
  250. package/dist/components/Progress/types.d.ts +27 -27
  251. package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
  252. package/dist/components/RadioInput/index.d.ts +4 -4
  253. package/dist/components/RadioInput/radio-input.test.d.ts +2 -0
  254. package/dist/components/RadioInput/radio-input.test.d.ts.map +1 -0
  255. package/dist/components/RadioInput/radio-input.test.js +208 -0
  256. package/dist/components/RadioInput/styles.d.ts +30 -30
  257. package/dist/components/RadioInput/types.d.ts +32 -32
  258. package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
  259. package/dist/components/Rating/index.d.ts +3 -3
  260. package/dist/components/Rating/rating.test.d.ts +2 -0
  261. package/dist/components/Rating/rating.test.d.ts.map +1 -0
  262. package/dist/components/Rating/rating.test.js +79 -0
  263. package/dist/components/Rating/styles.d.ts +18 -18
  264. package/dist/components/Rating/types.d.ts +19 -19
  265. package/dist/components/ReactPortal/index.d.ts +7 -7
  266. package/dist/components/ReactPortal/reactPortal.test.d.ts +2 -0
  267. package/dist/components/ReactPortal/reactPortal.test.d.ts.map +1 -0
  268. package/dist/components/ReactPortal/reactPortal.test.js +26 -0
  269. package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.d.ts +1 -1
  270. package/dist/components/Select/components/OptionsSelect/index.d.ts +3 -3
  271. package/dist/components/Select/components/OptionsSelect/styles.d.ts +265 -265
  272. package/dist/components/Select/components/OptionsSelect/types.d.ts +17 -17
  273. package/dist/components/Select/index.d.ts +4 -4
  274. package/dist/components/Select/select.test.d.ts +2 -0
  275. package/dist/components/Select/select.test.d.ts.map +1 -0
  276. package/dist/components/Select/select.test.js +67 -0
  277. package/dist/components/Select/styles.d.ts +20 -22
  278. package/dist/components/Select/styles.d.ts.map +1 -1
  279. package/dist/components/Select/types.d.ts +26 -26
  280. package/dist/components/Skeleton/index.d.ts +4 -4
  281. package/dist/components/Skeleton/skeleton.test.d.ts +2 -0
  282. package/dist/components/Skeleton/skeleton.test.d.ts.map +1 -0
  283. package/dist/components/Skeleton/skeleton.test.js +106 -0
  284. package/dist/components/Skeleton/styles.d.ts +7 -7
  285. package/dist/components/Skeleton/types.d.ts +40 -40
  286. package/dist/components/Slider/SliderExample.d.ts +3 -3
  287. package/dist/components/Slider/SliderExample.js +1 -1
  288. package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
  289. package/dist/components/Slider/components/SliderRail.d.ts +3 -3
  290. package/dist/components/Slider/components/SliderSelector.d.ts +17 -17
  291. package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
  292. package/dist/components/Slider/hooks/useEventCallback.d.ts.map +1 -1
  293. package/dist/components/Slider/index.d.ts +19 -19
  294. package/dist/components/Slider/slider.test.d.ts +2 -0
  295. package/dist/components/Slider/slider.test.d.ts.map +1 -0
  296. package/dist/components/Slider/slider.test.js +134 -0
  297. package/dist/components/Slider/styles.d.ts +65 -65
  298. package/dist/components/Slider/types.d.ts +40 -40
  299. package/dist/components/Spinner/index.d.ts +4 -4
  300. package/dist/components/Spinner/spinner.test.d.ts +2 -0
  301. package/dist/components/Spinner/spinner.test.d.ts.map +1 -0
  302. package/dist/components/Spinner/spinner.test.js +55 -0
  303. package/dist/components/Spinner/styles.d.ts +288 -288
  304. package/dist/components/Spinner/types.d.ts +11 -11
  305. package/dist/components/Spinner/types.d.ts.map +1 -1
  306. package/dist/components/Steps/components/StepIcon/index.d.ts +3 -3
  307. package/dist/components/Steps/components/StepIconMobile/index.d.ts +3 -3
  308. package/dist/components/Steps/index.d.ts +4 -4
  309. package/dist/components/Steps/steps.test.d.ts +2 -0
  310. package/dist/components/Steps/steps.test.d.ts.map +1 -0
  311. package/dist/components/Steps/steps.test.js +63 -0
  312. package/dist/components/Steps/styles.d.ts +45 -45
  313. package/dist/components/Steps/types.d.ts +20 -20
  314. package/dist/components/Steps/utils.d.ts +7 -7
  315. package/dist/components/Switch/index.d.ts +4 -4
  316. package/dist/components/Switch/styles.d.ts +18 -18
  317. package/dist/components/Switch/switch.test.d.ts +2 -0
  318. package/dist/components/Switch/switch.test.d.ts.map +1 -0
  319. package/dist/components/Switch/switch.test.js +253 -0
  320. package/dist/components/Switch/types.d.ts +14 -14
  321. package/dist/components/Table/components/MenuItem.d.ts +3 -3
  322. package/dist/components/Table/components/TableSkeleton.d.ts +4 -0
  323. package/dist/components/Table/components/TableSkeleton.d.ts.map +1 -0
  324. package/dist/components/Table/components/TableSkeleton.js +45 -0
  325. package/dist/components/Table/index.d.ts +3 -3
  326. package/dist/components/Table/index.d.ts.map +1 -1
  327. package/dist/components/Table/index.js +14 -2
  328. package/dist/components/Table/styles.d.ts +34 -34
  329. package/dist/components/Table/table.test.d.ts +2 -0
  330. package/dist/components/Table/table.test.d.ts.map +1 -0
  331. package/dist/components/Table/table.test.js +130 -0
  332. package/dist/components/Table/types.d.ts +53 -39
  333. package/dist/components/Table/types.d.ts.map +1 -1
  334. package/dist/components/Tabs/TabsExample.d.ts +3 -3
  335. package/dist/components/Tabs/TabsExample.js +1 -1
  336. package/dist/components/Tabs/components/Tab.d.ts +3 -3
  337. package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
  338. package/dist/components/Tabs/components/Tabs.d.ts +4 -4
  339. package/dist/components/Tabs/index.d.ts +3 -3
  340. package/dist/components/Tabs/styles.d.ts +41 -41
  341. package/dist/components/Tabs/tabs.test.d.ts +2 -0
  342. package/dist/components/Tabs/tabs.test.d.ts.map +1 -0
  343. package/dist/components/Tabs/tabs.test.js +159 -0
  344. package/dist/components/Tabs/types.d.ts +50 -50
  345. package/dist/components/Tag/index.d.ts +4 -4
  346. package/dist/components/Tag/styles.d.ts +869 -869
  347. package/dist/components/Tag/tag.test.d.ts +2 -0
  348. package/dist/components/Tag/tag.test.d.ts.map +1 -0
  349. package/dist/components/Tag/tag.test.js +78 -0
  350. package/dist/components/Tag/types.d.ts +9 -9
  351. package/dist/components/TextAreaInput/index.d.ts +4 -4
  352. package/dist/components/TextAreaInput/styles.d.ts +18 -18
  353. package/dist/components/TextAreaInput/text-area-input.test.d.ts +2 -0
  354. package/dist/components/TextAreaInput/text-area-input.test.d.ts.map +1 -0
  355. package/dist/components/TextAreaInput/text-area-input.test.js +96 -0
  356. package/dist/components/TextAreaInput/types.d.ts +26 -26
  357. package/dist/components/Thumbnail/index.d.ts +3 -3
  358. package/dist/components/Thumbnail/styles.d.ts +38 -42
  359. package/dist/components/Thumbnail/styles.d.ts.map +1 -1
  360. package/dist/components/Thumbnail/thumbnail.test.d.ts +2 -0
  361. package/dist/components/Thumbnail/thumbnail.test.d.ts.map +1 -0
  362. package/dist/components/Thumbnail/thumbnail.test.js +82 -0
  363. package/dist/components/Thumbnail/types.d.ts +28 -28
  364. package/dist/components/Thumbnail/utils/index.d.ts +2 -2
  365. package/dist/components/Thumbnail/utils/validate-file-size.d.ts +1 -1
  366. package/dist/components/Thumbnail/utils/validate-file-type.d.ts +1 -1
  367. package/dist/components/Timeline/components/Timeline.d.ts +3 -3
  368. package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
  369. package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
  370. package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
  371. package/dist/components/Timeline/index.d.ts +4 -4
  372. package/dist/components/Timeline/styles.d.ts +31 -31
  373. package/dist/components/Timeline/timeline.test.d.ts +2 -0
  374. package/dist/components/Timeline/timeline.test.d.ts.map +1 -0
  375. package/dist/components/Timeline/timeline.test.js +152 -0
  376. package/dist/components/Timeline/types.d.ts +20 -20
  377. package/dist/components/Toast/button-example.d.ts +6 -6
  378. package/dist/components/Toast/components/Toast.d.ts +4 -4
  379. package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
  380. package/dist/components/Toast/contexts/ToastProvider.d.ts.map +1 -1
  381. package/dist/components/Toast/hooks/useToast.d.ts +2 -2
  382. package/dist/components/Toast/index.d.ts +3 -3
  383. package/dist/components/Toast/styles.d.ts +22 -22
  384. package/dist/components/Toast/toast.test.d.ts +2 -0
  385. package/dist/components/Toast/toast.test.d.ts.map +1 -0
  386. package/dist/components/Toast/toast.test.js +139 -0
  387. package/dist/components/Toast/types.d.ts +29 -26
  388. package/dist/components/Toast/types.d.ts.map +1 -1
  389. package/dist/components/Tooltip/components/TooltipLabel.d.ts +12 -12
  390. package/dist/components/Tooltip/example.d.ts +2 -2
  391. package/dist/components/Tooltip/index.d.ts +4 -4
  392. package/dist/components/Tooltip/styles.d.ts +13 -13
  393. package/dist/components/Tooltip/types.d.ts +26 -26
  394. package/dist/components/Typography/index.d.ts +4 -4
  395. package/dist/components/Typography/styles.d.ts +21 -21
  396. package/dist/components/Typography/types.d.ts +16 -16
  397. package/dist/components/Typography/typography.test.d.ts +2 -0
  398. package/dist/components/Typography/typography.test.d.ts.map +1 -0
  399. package/dist/components/Typography/typography.test.js +325 -0
  400. package/dist/index.d.ts +57 -55
  401. package/dist/index.d.ts.map +1 -1
  402. package/dist/index.js +19 -1
  403. package/dist/shared/components/FocusLock/index.d.ts +7 -7
  404. package/dist/shared/formatters/format-number.d.ts +5 -5
  405. package/dist/shared/formatters/types.d.ts +5 -5
  406. package/dist/shared/hooks/devices.d.ts +8 -8
  407. package/dist/shared/hooks/useBreakpoints.d.ts +25 -25
  408. package/dist/shared/hooks/useBreakpoints.d.ts.map +1 -1
  409. package/dist/shared/hooks/useDebounce.d.ts +1 -1
  410. package/dist/shared/hooks/useDevices.d.ts +8 -8
  411. package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
  412. package/dist/shared/hooks/useKeyPress.d.ts +1 -1
  413. package/dist/shared/hooks/useObserver.d.ts +10 -10
  414. package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
  415. package/dist/shared/hooks/useWindowSize.d.ts +8 -8
  416. package/dist/shared/tests/test-utils.d.ts +4 -4
  417. package/dist/shared/tests/test-utils.d.ts.map +1 -1
  418. package/dist/shared/tests/types.d.ts +5 -0
  419. package/dist/shared/tests/types.d.ts.map +1 -0
  420. package/dist/shared/tests/types.js +1 -0
  421. package/dist/shared/theme/button-example.d.ts +2 -2
  422. package/dist/shared/theme/contexts/ThemeContext.d.ts +15 -15
  423. package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
  424. package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
  425. package/dist/shared/theme/hooks/useTheme.d.ts +284 -284
  426. package/dist/shared/theme/index.d.ts +7 -7
  427. package/dist/shared/theme/theme.d.ts +282 -282
  428. package/dist/shared/theme/theme.test.d.ts +2 -0
  429. package/dist/shared/theme/theme.test.d.ts.map +1 -0
  430. package/dist/shared/theme/theme.test.js +120 -0
  431. package/dist/shared/theme/theme.types.d.ts +14 -14
  432. package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
  433. package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
  434. package/dist/shared/types/credit-card.d.ts +5 -5
  435. package/dist/shared/types/file.d.ts +11 -11
  436. package/dist/shared/types/name.d.ts +3 -3
  437. package/dist/utils/GenerateKey.d.ts +10 -10
  438. package/dist/utils/brightnessColorChange.d.ts +8 -8
  439. package/dist/utils/colorCheck.d.ts +40 -40
  440. package/dist/utils/colorFunctions.d.ts +2 -2
  441. package/dist/utils/colorToGray.d.ts +5 -5
  442. package/dist/utils/file.d.ts +26 -26
  443. package/dist/utils/file.js +8 -4
  444. package/dist/utils/formatters/bytes.d.ts +7 -7
  445. package/dist/utils/formatters/capitalize.d.ts +6 -6
  446. package/dist/utils/formatters/cep.d.ts +12 -12
  447. package/dist/utils/formatters/cnpj.d.ts +18 -18
  448. package/dist/utils/formatters/color.d.ts +15 -15
  449. package/dist/utils/formatters/cpf.d.ts +18 -18
  450. package/dist/utils/formatters/credit-card.d.ts +26 -26
  451. package/dist/utils/formatters/email.d.ts +1 -1
  452. package/dist/utils/formatters/index.d.ts +15 -15
  453. package/dist/utils/formatters/name.d.ts +20 -20
  454. package/dist/utils/formatters/number.d.ts +6 -6
  455. package/dist/utils/formatters/passport.d.ts +24 -24
  456. package/dist/utils/formatters/phone.d.ts +59 -59
  457. package/dist/utils/formatters/price.d.ts +11 -11
  458. package/dist/utils/formatters/rg.d.ts +12 -12
  459. package/dist/utils/formatters/strings.d.ts +19 -19
  460. package/dist/utils/fuctionsColors.d.ts +2 -2
  461. package/dist/utils/generateUUID.d.ts +1 -1
  462. package/dist/utils/getColorValue.d.ts +12 -292
  463. package/dist/utils/getColorValue.d.ts.map +1 -1
  464. package/dist/utils/getSvg.d.ts +10 -10
  465. package/dist/utils/getSvg.js +1 -1
  466. package/dist/utils/getValuesBySize.d.ts +6 -6
  467. package/dist/utils/invertColor.d.ts +7 -7
  468. package/package.json +6 -9
  469. package/dist/shared/global.d.ts +0 -2
  470. package/dist/shared/global.d.ts.map +0 -1
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+
3
+ 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); }
4
+
5
+ var _react = require("@testing-library/react");
6
+
7
+ require("@testing-library/jest-dom");
8
+
9
+ var _ = require(".");
10
+
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+
13
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
14
+
15
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
16
+
17
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
18
+
19
+ 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; }
20
+
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
+
23
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24
+
25
+ var setup = function setup(props) {
26
+ var utils = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.PPUIThemeProvider, _objectSpread(_objectSpread({}, props), {}, {
27
+ children: props.children
28
+ })));
29
+ return utils;
30
+ };
31
+
32
+ describe('Theme', function () {
33
+ it('should extend the default theme and pass it to pp provider', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
34
+ var newTheme, TestComponent, utils;
35
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
36
+ while (1) {
37
+ switch (_context.prev = _context.next) {
38
+ case 0:
39
+ newTheme = (0, _.extendTheme)({
40
+ colors: {
41
+ primary: '#ff0000'
42
+ }
43
+ });
44
+
45
+ TestComponent = function TestComponent() {
46
+ var _useTheme = (0, _.useTheme)(),
47
+ theme = _useTheme.theme;
48
+
49
+ var color = theme.colors.primary;
50
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
51
+ children: color
52
+ });
53
+ };
54
+
55
+ utils = setup({
56
+ theme: newTheme,
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TestComponent, {})
58
+ });
59
+ _context.t0 = expect;
60
+ _context.next = 6;
61
+ return utils.findByText('#ff0000');
62
+
63
+ case 6:
64
+ _context.t1 = _context.sent;
65
+ (0, _context.t0)(_context.t1).toBeInTheDocument();
66
+
67
+ case 8:
68
+ case "end":
69
+ return _context.stop();
70
+ }
71
+ }
72
+ }, _callee);
73
+ })));
74
+ it('should to apply the dark mode for child components and switch that to light mode', function () {
75
+ var ChildComponent = function ChildComponent() {
76
+ var _useColorMode = (0, _.useColorMode)(),
77
+ colorMode = _useColorMode.colorMode,
78
+ switchColorMode = _useColorMode.switchColorMode;
79
+
80
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
81
+ "data-testid": "button-child",
82
+ onClick: switchColorMode,
83
+ children: colorMode === 'light' ? 'Light mode' : 'Dark mode'
84
+ });
85
+ };
86
+
87
+ var utils = setup({
88
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ChildComponent, {})
89
+ });
90
+ expect(utils.getByTestId('button-child')).toHaveTextContent('Light mode');
91
+
92
+ _react.fireEvent.click(utils.getByTestId('button-child'));
93
+
94
+ expect(utils.getByTestId('button-child')).toHaveTextContent('Dark mode');
95
+
96
+ _react.fireEvent.click(utils.getByTestId('button-child'));
97
+ });
98
+ it('should to switch between two colors according to color mode', function () {
99
+ var ChildComponent = function ChildComponent() {
100
+ var _useColorMode2 = (0, _.useColorMode)(),
101
+ switchColorMode = _useColorMode2.switchColorMode;
102
+
103
+ var color = (0, _.useColorModeValue)('#ff0000', '#0000ff');
104
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
105
+ "data-testid": "button-child",
106
+ onClick: switchColorMode,
107
+ children: color
108
+ });
109
+ };
110
+
111
+ var utils = setup({
112
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ChildComponent, {})
113
+ });
114
+ expect(utils.getByTestId('button-child')).toHaveTextContent('#ff0000');
115
+
116
+ _react.fireEvent.click(utils.getByTestId('button-child'));
117
+
118
+ expect(utils.getByTestId('button-child')).toHaveTextContent('#0000ff');
119
+ });
120
+ });
@@ -1,15 +1,15 @@
1
- import { defaultTheme } from '.';
2
- export declare type ExtendThemeProps = typeof defaultTheme;
3
- export declare type ThemeProps = ExtendThemeProps & {
4
- [key: string]: any;
5
- };
6
- export declare type CustomThemeProps = {
7
- [Key in keyof ExtendThemeProps]?: Partial<ExtendThemeProps[Key] | {
8
- [Key2 in keyof ExtendThemeProps[Key]]: Partial<ExtendThemeProps[Key][Key2]> | string;
9
- }>;
10
- };
11
- export declare type ExtendMethodProps = (customTheme: (CustomThemeProps & {
12
- [key: string]: any;
13
- })) => ExtendThemeProps;
14
- export declare type GlobalColorsProps = 'body.light' | 'body.dark' | 'primary.alert' | 'primary.alert' | 'primary.disabled' | 'primary.default' | 'primary.hover' | 'primary.focus' | 'secondary.disabled' | 'secondary.default' | 'secondary.hover' | 'secondary.focus' | 'tertiary.disabled' | 'tertiary.default' | 'tertiary.hover' | 'tertiary.focus' | 'neutral.white' | 'neutral.neutral1' | 'neutral.neutral2' | 'neutral.neutral3' | 'neutral.neutral4' | 'neutral.neutral5' | 'neutral.neutral6' | 'neutral.black' | 'background.linear1' | 'background.linear2' | 'background.linear3' | 'background.light' | 'informative.default' | 'informative.blurred' | 'informative.gradient' | 'success.default' | 'success.blurred' | 'success.gradient' | 'success_secondary.default' | 'success_secondary.blurred' | 'success_secondary.gradient' | 'warning.default' | 'warning.blurred' | 'warning.gradient' | 'warning_secondary.default' | 'warning_secondary.blurred' | 'warning_secondary.gradient' | 'error.default' | 'error.blurred' | 'error.gradient' | 'critical.default' | 'critical.blurred' | 'critical.gradient';
1
+ import { defaultTheme } from '.';
2
+ export declare type ExtendThemeProps = typeof defaultTheme;
3
+ export declare type ThemeProps = ExtendThemeProps & {
4
+ [key: string]: any;
5
+ };
6
+ export declare type CustomThemeProps = {
7
+ [Key in keyof ExtendThemeProps]?: Partial<ExtendThemeProps[Key] | {
8
+ [Key2 in keyof ExtendThemeProps[Key]]: Partial<ExtendThemeProps[Key][Key2]> | string;
9
+ }>;
10
+ };
11
+ export declare type ExtendMethodProps = (customTheme: (CustomThemeProps & {
12
+ [key: string]: any;
13
+ })) => ExtendThemeProps;
14
+ export declare type GlobalColorsProps = 'body.light' | 'body.dark' | 'primary.alert' | 'primary.alert' | 'primary.disabled' | 'primary.default' | 'primary.hover' | 'primary.focus' | 'secondary.disabled' | 'secondary.default' | 'secondary.hover' | 'secondary.focus' | 'tertiary.disabled' | 'tertiary.default' | 'tertiary.hover' | 'tertiary.focus' | 'neutral.white' | 'neutral.neutral1' | 'neutral.neutral2' | 'neutral.neutral3' | 'neutral.neutral4' | 'neutral.neutral5' | 'neutral.neutral6' | 'neutral.black' | 'background.linear1' | 'background.linear2' | 'background.linear3' | 'background.light' | 'informative.default' | 'informative.blurred' | 'informative.gradient' | 'success.default' | 'success.blurred' | 'success.gradient' | 'success_secondary.default' | 'success_secondary.blurred' | 'success_secondary.gradient' | 'warning.default' | 'warning.blurred' | 'warning.gradient' | 'warning_secondary.default' | 'warning_secondary.blurred' | 'warning_secondary.gradient' | 'error.default' | 'error.blurred' | 'error.gradient' | 'critical.default' | 'critical.blurred' | 'critical.gradient';
15
15
  //# sourceMappingURL=theme.types.d.ts.map
@@ -1,3 +1,3 @@
1
- import { ExtendMethodProps } from '..';
2
- export declare const extendTheme: ExtendMethodProps;
1
+ import { ExtendMethodProps } from '..';
2
+ export declare const extendTheme: ExtendMethodProps;
3
3
  //# sourceMappingURL=extendTheme.d.ts.map
@@ -1,7 +1,7 @@
1
- export declare const localStorageController: {
2
- get(key: string): "light" | "dark";
3
- set(key: string, value: string): void;
4
- remove(key: string): void;
5
- clear(): void;
6
- };
1
+ export declare const localStorageController: {
2
+ get(key: string): "light" | "dark";
3
+ set(key: string, value: string): void;
4
+ remove(key: string): void;
5
+ clear(): void;
6
+ };
7
7
  //# sourceMappingURL=localStorageController.d.ts.map
@@ -1,6 +1,6 @@
1
- export declare type CreditCardOptions = {
2
- monthErrorMessage: string;
3
- yearErrorMessage: string;
4
- dateErrorMessage: string;
5
- };
1
+ export declare type CreditCardOptions = {
2
+ monthErrorMessage: string;
3
+ yearErrorMessage: string;
4
+ dateErrorMessage: string;
5
+ };
6
6
  //# sourceMappingURL=credit-card.d.ts.map
@@ -1,12 +1,12 @@
1
- export declare type FormattedFile = {
2
- url: string;
3
- name: string;
4
- type: string;
5
- size: number;
6
- file: Blob;
7
- };
8
- export declare type UrlProps = {
9
- url: string;
10
- name?: string;
11
- };
1
+ export declare type FormattedFile = {
2
+ url: string;
3
+ name: string;
4
+ type: string;
5
+ size: number;
6
+ file: Blob;
7
+ };
8
+ export declare type UrlProps = {
9
+ url: string;
10
+ name?: string;
11
+ };
12
12
  //# sourceMappingURL=file.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare type NameOptions = {
2
- errorMessage: string;
3
- };
1
+ export declare type NameOptions = {
2
+ errorMessage: string;
3
+ };
4
4
  //# sourceMappingURL=name.d.ts.map
@@ -1,11 +1,11 @@
1
- /**
2
- * Generates a random hexadecimal string with length 4.
3
- * @returns hexadecimal string.
4
- */
5
- export declare function s4(): string;
6
- /**
7
- * Generates a unique key using Date and pseudo random numbers.
8
- * @returns A unique key.
9
- */
10
- export declare function generateKey(): string;
1
+ /**
2
+ * Generates a random hexadecimal string with length 4.
3
+ * @returns hexadecimal string.
4
+ */
5
+ export declare function s4(): string;
6
+ /**
7
+ * Generates a unique key using Date and pseudo random numbers.
8
+ * @returns A unique key.
9
+ */
10
+ export declare function generateKey(): string;
11
11
  //# sourceMappingURL=GenerateKey.d.ts.map
@@ -1,9 +1,9 @@
1
- /**
2
- * Change the brightness of a color
3
- * @param color : color to change;
4
- * @param percent : percent of brightness;
5
- * @returns : new color with changed brightness;
6
- * @see https://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors
7
- */
8
- export declare function brightnessColorChange(color: string, percent: number): string;
1
+ /**
2
+ * Change the brightness of a color
3
+ * @param color : color to change;
4
+ * @param percent : percent of brightness;
5
+ * @returns : new color with changed brightness;
6
+ * @see https://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors
7
+ */
8
+ export declare function brightnessColorChange(color: string, percent: number): string;
9
9
  //# sourceMappingURL=brightnessColorChange.d.ts.map
@@ -1,41 +1,41 @@
1
- declare type StripThemeColorsProps = {
2
- [key: string]: {
3
- [key: string]: string;
4
- };
5
- };
6
- /**
7
- * Verifies if the provided color is a valid hex color.
8
- * @param color : color value;
9
- * @returns : true if color is valid, false otherwise;
10
- * @see https://stackoverflow.com/questions/8027423/how-to-check-if-a-string-is-a-valid-hex-color-representation/8027444#8027444
11
- */
12
- export declare const isHexColor: (color: string) => boolean;
13
- /**
14
- * Verifies if the provided color is a valid rgb or hsl color.
15
- * @param color : color value;
16
- * @returns : true if color is valid, false otherwise;
17
- * @see https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion
18
- */
19
- export declare const isRgbHslColor: (color: string) => boolean;
20
- /**
21
- * Verifies if the provided color is a valid theme color and returns the theme color value.
22
- * @param color : theme color tag value;
23
- * @param themeColors : theme colors object;
24
- * @returns : theme color value if color is valid, null otherwise;
25
- */
26
- export declare const stripThemeColors: (color: string, themeColors: StripThemeColorsProps) => string | null;
27
- /**
28
- * Convert a hex color to rgba color.
29
- * @param color : hex color value;
30
- * @param opacity : opacity value;
31
- * @returns : rgba color value;
32
- */
33
- export declare const parseHexColorToRgba: (color: string, opacity: number) => string;
34
- /**
35
- * Convert a hsl array color to string
36
- * @param color : hsl color array;
37
- * @returns : hsl color value;
38
- */
39
- export declare const parseHslColorToString: (color: number[]) => string;
40
- export {};
1
+ declare type StripThemeColorsProps = {
2
+ [key: string]: {
3
+ [key: string]: string;
4
+ };
5
+ };
6
+ /**
7
+ * Verifies if the provided color is a valid hex color.
8
+ * @param color : color value;
9
+ * @returns : true if color is valid, false otherwise;
10
+ * @see https://stackoverflow.com/questions/8027423/how-to-check-if-a-string-is-a-valid-hex-color-representation/8027444#8027444
11
+ */
12
+ export declare const isHexColor: (color: string) => boolean;
13
+ /**
14
+ * Verifies if the provided color is a valid rgb or hsl color.
15
+ * @param color : color value;
16
+ * @returns : true if color is valid, false otherwise;
17
+ * @see https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion
18
+ */
19
+ export declare const isRgbHslColor: (color: string) => boolean;
20
+ /**
21
+ * Verifies if the provided color is a valid theme color and returns the theme color value.
22
+ * @param color : theme color tag value;
23
+ * @param themeColors : theme colors object;
24
+ * @returns : theme color value if color is valid, null otherwise;
25
+ */
26
+ export declare const stripThemeColors: (color: string, themeColors: StripThemeColorsProps) => string | null;
27
+ /**
28
+ * Convert a hex color to rgba color.
29
+ * @param color : hex color value;
30
+ * @param opacity : opacity value;
31
+ * @returns : rgba color value;
32
+ */
33
+ export declare const parseHexColorToRgba: (color: string, opacity: number) => string;
34
+ /**
35
+ * Convert a hsl array color to string
36
+ * @param color : hsl color array;
37
+ * @returns : hsl color value;
38
+ */
39
+ export declare const parseHslColorToString: (color: number[]) => string;
40
+ export {};
41
41
  //# sourceMappingURL=colorCheck.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=colorFunctions.d.ts.map
@@ -1,6 +1,6 @@
1
- import { ArrayColor, objectGray } from '../components/Progress/types';
2
- export declare function numberToHex(c: number): string;
3
- export declare function rgbToHex(color: ArrayColor): string;
4
- export declare function convertColor(color: string | ArrayColor): objectGray;
5
- export declare const parseHslColorToString: (color: number[]) => string;
1
+ import { ArrayColor, objectGray } from '../components/Progress/types';
2
+ export declare function numberToHex(c: number): string;
3
+ export declare function rgbToHex(color: ArrayColor): string;
4
+ export declare function convertColor(color: string | ArrayColor): objectGray;
5
+ export declare const parseHslColorToString: (color: number[]) => string;
6
6
  //# sourceMappingURL=colorToGray.d.ts.map
@@ -1,27 +1,27 @@
1
- import { FormattedFile } from '../shared/types/file';
2
- /**
3
- * Converts an array of File objects to an array of base64-encoded files with additional information.
4
- * @param {File[]} files Array of File objects.
5
- * @returns {Promise<FormattedFile[]>} Promise that resolves with an array of FormattedFile objects.
6
- */
7
- export declare function filesToBase64(files: File[]): Promise<FormattedFile[]>;
8
- /**
9
- * Converts a single File object to a base64-encoded file with additional information.
10
- * @param {File} file File object to be converted.
11
- * @returns {Promise<FormattedFile>} Promise that resolves with a FormattedFile object.
12
- */
13
- export declare function convertFileToBase64(file: File): Promise<FormattedFile>;
14
- /**
15
- * Downloads a file from a given URL and converts it to a base64-encoded file with additional information.
16
- * @param {string} url URL of the file to be downloaded.
17
- * @param {string} name Optional name of the downloaded file.
18
- * @returns {Promise<FormattedFile | null>} Promise that resolves with a FormattedFile object or null if the URL is not valid.
19
- */
20
- export declare function urlToBase64(url: string, name?: string): Promise<FormattedFile | null>;
21
- /**
22
- * Downloads a file from a given URL and opens the download prompt.
23
- * @param {string} url URL of the file to be downloaded.
24
- * @returns {Promise<boolean>} Promise that resolves with a boolean indicating whether the download was successful.
25
- */
26
- export declare function downloadUrlToFile(url: string): Promise<boolean>;
1
+ import { FormattedFile } from '../shared/types/file';
2
+ /**
3
+ * Converts an array of File objects to an array of base64-encoded files with additional information.
4
+ * @param {File[]} files Array of File objects.
5
+ * @returns {Promise<FormattedFile[]>} Promise that resolves with an array of FormattedFile objects.
6
+ */
7
+ export declare function filesToBase64(files: File[]): Promise<FormattedFile[]>;
8
+ /**
9
+ * Converts a single File object to a base64-encoded file with additional information.
10
+ * @param {File} file File object to be converted.
11
+ * @returns {Promise<FormattedFile>} Promise that resolves with a FormattedFile object.
12
+ */
13
+ export declare function convertFileToBase64(file: File): Promise<FormattedFile>;
14
+ /**
15
+ * Downloads a file from a given URL and converts it to a base64-encoded file with additional information.
16
+ * @param {string} url URL of the file to be downloaded.
17
+ * @param {string} name Optional name of the downloaded file.
18
+ * @returns {Promise<FormattedFile | null>} Promise that resolves with a FormattedFile object or null if the URL is not valid.
19
+ */
20
+ export declare function urlToBase64(url: string, name?: string): Promise<FormattedFile | null>;
21
+ /**
22
+ * Downloads a file from a given URL and opens the download prompt.
23
+ * @param {string} url URL of the file to be downloaded.
24
+ * @returns {Promise<boolean>} Promise that resolves with a boolean indicating whether the download was successful.
25
+ */
26
+ export declare function downloadUrlToFile(url: string): Promise<boolean>;
27
27
  //# sourceMappingURL=file.d.ts.map
@@ -8,6 +8,10 @@ exports.downloadUrlToFile = downloadUrlToFile;
8
8
  exports.filesToBase64 = filesToBase64;
9
9
  exports.urlToBase64 = urlToBase64;
10
10
 
11
+ 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); }
12
+
13
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
14
+
11
15
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
12
16
 
13
17
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -68,9 +72,9 @@ function urlToBase64(_x, _x2) {
68
72
 
69
73
 
70
74
  function _urlToBase() {
71
- _urlToBase = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, name) {
75
+ _urlToBase = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, name) {
72
76
  var blob, file;
73
- return regeneratorRuntime.wrap(function _callee$(_context) {
77
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
74
78
  while (1) {
75
79
  switch (_context.prev = _context.next) {
76
80
  case 0:
@@ -116,11 +120,11 @@ function downloadUrlToFile(_x3) {
116
120
  }
117
121
 
118
122
  function _downloadUrlToFile() {
119
- _downloadUrlToFile = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(url) {
123
+ _downloadUrlToFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(url) {
120
124
  var _url$split$pop;
121
125
 
122
126
  var blob, fileName, urlBlob, link;
123
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
127
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
124
128
  while (1) {
125
129
  switch (_context2.prev = _context2.next) {
126
130
  case 0:
@@ -1,8 +1,8 @@
1
- /**
2
- * This function takes in a number of bytes and an optional number of decimal places and converts the number of bytes into a more readable format.
3
- * @param {number} bytes - The number of bytes to be formatted.
4
- * @param {number} decimals - Optional number of decimal places to round the result to. Default value is 2.
5
- * @returns {string} - A string representing the formatted bytes with the appropriate unit (e.g. "10.24 KB").
6
- */
7
- export declare function formatBytes(bytes: number, decimals?: number): string;
1
+ /**
2
+ * This function takes in a number of bytes and an optional number of decimal places and converts the number of bytes into a more readable format.
3
+ * @param {number} bytes - The number of bytes to be formatted.
4
+ * @param {number} decimals - Optional number of decimal places to round the result to. Default value is 2.
5
+ * @returns {string} - A string representing the formatted bytes with the appropriate unit (e.g. "10.24 KB").
6
+ */
7
+ export declare function formatBytes(bytes: number, decimals?: number): string;
8
8
  //# sourceMappingURL=bytes.d.ts.map
@@ -1,7 +1,7 @@
1
- /**
2
- * This function takes in a string and returns a new string with the first letter capitalized.
3
- * @param {string} string - The string to be capitalized.
4
- * @returns {string} - A new string with the first letter capitalized.
5
- */
6
- export declare function capitalize(string: string): string;
1
+ /**
2
+ * This function takes in a string and returns a new string with the first letter capitalized.
3
+ * @param {string} string - The string to be capitalized.
4
+ * @returns {string} - A new string with the first letter capitalized.
5
+ */
6
+ export declare function capitalize(string: string): string;
7
7
  //# sourceMappingURL=capitalize.d.ts.map
@@ -1,13 +1,13 @@
1
- /**
2
- * This function takes in a string representing a Brazilian postal code (CEP) and returns a formatted string in the standard CEP format (e.g. "12345-678").
3
- * @param {string} cep - The string representing the Brazilian postal code (CEP).
4
- * @returns {string} - A formatted string in the standard CEP format.
5
- */
6
- export declare function formatCep(cep: string): string;
7
- /**
8
- * This function takes in a string representing a Brazilian postal code (CEP) and returns a sanitized string without any non-numeric characters, with a maximum length of 8 characters.
9
- * @param {string} cep - The string representing the Brazilian postal code (CEP).
10
- * @returns {string} - A sanitized string without any non-numeric characters, with a maximum length of 8 characters.
11
- */
12
- export declare function sanitizeCep(cep: string): string;
1
+ /**
2
+ * This function takes in a string representing a Brazilian postal code (CEP) and returns a formatted string in the standard CEP format (e.g. "12345-678").
3
+ * @param {string} cep - The string representing the Brazilian postal code (CEP).
4
+ * @returns {string} - A formatted string in the standard CEP format.
5
+ */
6
+ export declare function formatCep(cep: string): string;
7
+ /**
8
+ * This function takes in a string representing a Brazilian postal code (CEP) and returns a sanitized string without any non-numeric characters, with a maximum length of 8 characters.
9
+ * @param {string} cep - The string representing the Brazilian postal code (CEP).
10
+ * @returns {string} - A sanitized string without any non-numeric characters, with a maximum length of 8 characters.
11
+ */
12
+ export declare function sanitizeCep(cep: string): string;
13
13
  //# sourceMappingURL=cep.d.ts.map
@@ -1,19 +1,19 @@
1
- /**
2
- * This function takes in a string representing a Brazilian CNPJ number and returns a formatted string in the standard CNPJ format (e.g. "12.345.678/0001-90").
3
- * @param {string} text - The string representing the Brazilian CNPJ number.
4
- * @returns {string} - A formatted string in the standard CNPJ format.
5
- */
6
- export declare function formatCnpj(text: string): string;
7
- /**
8
- * This function takes in a string representing a Brazilian CNPJ number and returns a sanitized string without any non-numeric characters, with a maximum length of 14 characters.
9
- * @param {string} cnpj - The string representing the Brazilian CNPJ number.
10
- * @returns {string} - A sanitized string without any non-numeric characters, with a maximum length of 14 characters.
11
- */
12
- export declare function sanitizeCNPJ(cnpj: string): string;
13
- /**
14
- * This function takes in a string representing a Brazilian CNPJ number and returns a boolean indicating whether the number is valid or not.
15
- * @param {string} cnpj - The string representing the Brazilian CNPJ number.
16
- * @returns {boolean} - A boolean indicating whether the CNPJ number is valid or not.
17
- */
18
- export declare function validateCNPJ(cnpj: string): boolean;
1
+ /**
2
+ * This function takes in a string representing a Brazilian CNPJ number and returns a formatted string in the standard CNPJ format (e.g. "12.345.678/0001-90").
3
+ * @param {string} text - The string representing the Brazilian CNPJ number.
4
+ * @returns {string} - A formatted string in the standard CNPJ format.
5
+ */
6
+ export declare function formatCnpj(text: string): string;
7
+ /**
8
+ * This function takes in a string representing a Brazilian CNPJ number and returns a sanitized string without any non-numeric characters, with a maximum length of 14 characters.
9
+ * @param {string} cnpj - The string representing the Brazilian CNPJ number.
10
+ * @returns {string} - A sanitized string without any non-numeric characters, with a maximum length of 14 characters.
11
+ */
12
+ export declare function sanitizeCNPJ(cnpj: string): string;
13
+ /**
14
+ * This function takes in a string representing a Brazilian CNPJ number and returns a boolean indicating whether the number is valid or not.
15
+ * @param {string} cnpj - The string representing the Brazilian CNPJ number.
16
+ * @returns {boolean} - A boolean indicating whether the CNPJ number is valid or not.
17
+ */
18
+ export declare function validateCNPJ(cnpj: string): boolean;
19
19
  //# sourceMappingURL=cnpj.d.ts.map