@pedidopago/ui 1.6.12 → 1.7.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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/styles.d.ts +24 -24
  5. package/dist/components/Alert/types.d.ts +44 -44
  6. package/dist/components/Avatar/avatar.test.d.ts +1 -1
  7. package/dist/components/Avatar/index.d.ts +4 -4
  8. package/dist/components/Avatar/styles.d.ts +25 -25
  9. package/dist/components/Avatar/types.d.ts +15 -15
  10. package/dist/components/Badge/badge.test.d.ts +1 -1
  11. package/dist/components/Badge/index.d.ts +4 -4
  12. package/dist/components/Badge/styles.d.ts +16 -16
  13. package/dist/components/Badge/types.d.ts +11 -11
  14. package/dist/components/Button/Button.test.d.ts +1 -1
  15. package/dist/components/Button/index.d.ts +3 -3
  16. package/dist/components/Button/styles.d.ts +14 -14
  17. package/dist/components/Button/types.d.ts +92 -92
  18. package/dist/components/Card/card.test.d.ts +1 -1
  19. package/dist/components/Card/index.d.ts +3 -3
  20. package/dist/components/Card/styles.d.ts +6 -6
  21. package/dist/components/Card/types.d.ts +17 -17
  22. package/dist/components/CheckboxInput/checkbox-input.test.d.ts +1 -1
  23. package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
  24. package/dist/components/CheckboxInput/index.d.ts +4 -4
  25. package/dist/components/CheckboxInput/styles.d.ts +31 -31
  26. package/dist/components/CheckboxInput/types.d.ts +27 -27
  27. package/dist/components/CollapseCard/ExpandButton/index.d.ts +3 -3
  28. package/dist/components/CollapseCard/ExpandButton/styles.d.ts +269 -269
  29. package/dist/components/CollapseCard/ExpandButton/types.d.ts +5 -5
  30. package/dist/components/CollapseCard/expand-button.test.d.ts +1 -1
  31. package/dist/components/CollapseCard/index.d.ts +3 -3
  32. package/dist/components/CollapseCard/styles.d.ts +268 -268
  33. package/dist/components/CollapseCard/types.d.ts +12 -12
  34. package/dist/components/ColorPicker/colorpicker.test.d.ts +1 -1
  35. package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
  36. package/dist/components/ColorPicker/components/ColorInput.d.ts +4 -4
  37. package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
  38. package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
  39. package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
  40. package/dist/components/ColorPicker/hooks/useCachedCallback.d.ts +1 -1
  41. package/dist/components/ColorPicker/hooks/useHsva.d.ts +2 -2
  42. package/dist/components/ColorPicker/index.d.ts +4 -4
  43. package/dist/components/ColorPicker/styles.d.ts +44 -44
  44. package/dist/components/ColorPicker/types.d.ts +73 -73
  45. package/dist/components/ColorPicker/utils/checkers.d.ts +7 -7
  46. package/dist/components/ColorPicker/utils/conversors.d.ts +60 -60
  47. package/dist/components/ColorPicker/utils/parsers.d.ts +27 -27
  48. package/dist/components/ComposeIcon/index.d.ts +5 -0
  49. package/dist/components/ComposeIcon/index.d.ts.map +1 -0
  50. package/dist/components/ComposeIcon/index.js +45 -0
  51. package/dist/components/ComposeIcon/styles.d.ts +11 -0
  52. package/dist/components/ComposeIcon/styles.d.ts.map +1 -0
  53. package/dist/components/ComposeIcon/styles.js +64 -0
  54. package/dist/components/ComposeIcon/types.d.ts +10 -0
  55. package/dist/components/ComposeIcon/types.d.ts.map +1 -0
  56. package/dist/components/ComposeIcon/types.js +1 -0
  57. package/dist/components/DateInput/DateInput-example.d.ts +5 -5
  58. package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
  59. package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +268 -268
  60. package/dist/components/DateInput/components/ModalWrapper/types.d.ts +15 -15
  61. package/dist/components/DateInput/dateInput.test.d.ts +1 -1
  62. package/dist/components/DateInput/index.d.ts +3 -3
  63. package/dist/components/DateInput/styles.d.ts +10 -10
  64. package/dist/components/DateInput/types.d.ts +18 -18
  65. package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
  66. package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
  67. package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
  68. package/dist/components/DatePicker/index.d.ts +4 -4
  69. package/dist/components/DatePicker/styles.d.ts +77 -77
  70. package/dist/components/DatePicker/types.d.ts +69 -69
  71. package/dist/components/DatePicker/utils/getMonthName.d.ts +1 -1
  72. package/dist/components/Dialog/dialog-example.d.ts +3 -3
  73. package/dist/components/Dialog/dialog.test.d.ts +1 -1
  74. package/dist/components/Dialog/index.d.ts +3 -3
  75. package/dist/components/Dialog/styles.d.ts +25 -25
  76. package/dist/components/Dialog/types.d.ts +30 -30
  77. package/dist/components/Dropzone/dropzone.test.d.ts +1 -1
  78. package/dist/components/Dropzone/index.d.ts +4 -4
  79. package/dist/components/Dropzone/styles.d.ts +60 -60
  80. package/dist/components/Dropzone/types.d.ts +27 -27
  81. package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
  82. package/dist/components/Flex/flex.test.d.ts +1 -1
  83. package/dist/components/Flex/index.d.ts +4 -4
  84. package/dist/components/Flex/styles.d.ts +296 -296
  85. package/dist/components/Flex/types.d.ts +175 -175
  86. package/dist/components/Grid/grid.test.d.ts +1 -1
  87. package/dist/components/Grid/index.d.ts +4 -4
  88. package/dist/components/Grid/styles.d.ts +288 -288
  89. package/dist/components/Grid/types.d.ts +88 -88
  90. package/dist/components/Icon/data/beauty.d.ts +8 -8
  91. package/dist/components/Icon/data/dash.d.ts +8 -8
  92. package/dist/components/Icon/data/dash.d.ts.map +1 -1
  93. package/dist/components/Icon/data/dash.js +1 -1
  94. package/dist/components/Icon/data/ecommerce.d.ts +8 -8
  95. package/dist/components/Icon/data/form.d.ts +8 -8
  96. package/dist/components/Icon/data/health.d.ts +8 -8
  97. package/dist/components/Icon/data/illustrations.d.ts +8 -8
  98. package/dist/components/Icon/data/illustrations.d.ts.map +1 -1
  99. package/dist/components/Icon/data/illustrations.js +140 -0
  100. package/dist/components/Icon/data/men.d.ts +8 -8
  101. package/dist/components/Icon/data/payment.d.ts +8 -8
  102. package/dist/components/Icon/data/pedidoPago.d.ts +8 -8
  103. package/dist/components/Icon/data/physicalPerfomance.d.ts +8 -8
  104. package/dist/components/Icon/data/social.d.ts +8 -8
  105. package/dist/components/Icon/data/status.d.ts +8 -8
  106. package/dist/components/Icon/data/summer.d.ts +8 -8
  107. package/dist/components/Icon/data/woman.d.ts +8 -8
  108. package/dist/components/Icon/icon.test.d.ts +1 -1
  109. package/dist/components/Icon/index.d.ts +4 -4
  110. package/dist/components/Icon/scripts/build.d.ts +5 -5
  111. package/dist/components/Icon/scripts/extractor.d.ts +15 -15
  112. package/dist/components/Icon/scripts/run-build.d.ts +1 -1
  113. package/dist/components/Icon/scripts/writers.d.ts +22 -22
  114. package/dist/components/Icon/styles.d.ts +13 -13
  115. package/dist/components/Icon/styles.d.ts.map +1 -1
  116. package/dist/components/Icon/styles.js +1 -1
  117. package/dist/components/Icon/types.d.ts +8 -8
  118. package/dist/components/Icon/types.d.ts.map +1 -1
  119. package/dist/components/Icon/utils/allIcons.d.ts +8 -8
  120. package/dist/components/Icon/utils/iconExists.d.ts +4 -4
  121. package/dist/components/IconItem/IconItem.test.d.ts +1 -1
  122. package/dist/components/IconItem/index.d.ts +4 -4
  123. package/dist/components/IconItem/styles.d.ts +18 -18
  124. package/dist/components/IconItem/types.d.ts +22 -22
  125. package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts +4 -4
  126. package/dist/components/Illustration/AlternativeOrderSvg/index.js +2 -0
  127. package/dist/components/Illustration/BoletoSvg/index.d.ts +4 -4
  128. package/dist/components/Illustration/BoletoSvg/index.js +2 -0
  129. package/dist/components/Illustration/BoxClosedSvg/index.d.ts +4 -4
  130. package/dist/components/Illustration/BoxClosedSvg/index.js +2 -0
  131. package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +4 -4
  132. package/dist/components/Illustration/BoxDeliverySvg/index.js +2 -0
  133. package/dist/components/Illustration/BoxOpenSvg/index.d.ts +4 -4
  134. package/dist/components/Illustration/BoxOpenSvg/index.js +2 -0
  135. package/dist/components/Illustration/CalendarSvg/index.d.ts +4 -4
  136. package/dist/components/Illustration/CalendarSvg/index.js +2 -0
  137. package/dist/components/Illustration/CardSvg/index.d.ts +4 -4
  138. package/dist/components/Illustration/CardSvg/index.js +2 -0
  139. package/dist/components/Illustration/CollaboratorSvg/index.d.ts +4 -4
  140. package/dist/components/Illustration/CollaboratorSvg/index.js +2 -0
  141. package/dist/components/Illustration/InquirySvg/index.d.ts +4 -4
  142. package/dist/components/Illustration/InquirySvg/index.js +2 -0
  143. package/dist/components/Illustration/OrderSvg/index.d.ts +4 -4
  144. package/dist/components/Illustration/OrderSvg/index.js +2 -0
  145. package/dist/components/Illustration/PixSvg/index.d.ts +4 -4
  146. package/dist/components/Illustration/PixSvg/index.js +2 -0
  147. package/dist/components/Illustration/PrescriptionSvg/index.d.ts +4 -4
  148. package/dist/components/Illustration/PrescriptionSvg/index.js +2 -0
  149. package/dist/components/Illustration/TransportSvg/index.d.ts +4 -4
  150. package/dist/components/Illustration/TransportSvg/index.js +2 -0
  151. package/dist/components/Illustration/illustration.test.d.ts +1 -1
  152. package/dist/components/Illustration/index.d.ts +4 -4
  153. package/dist/components/Illustration/index.d.ts.map +1 -1
  154. package/dist/components/Illustration/index.js +31 -79
  155. package/dist/components/Illustration/styles.d.ts +10 -10
  156. package/dist/components/Illustration/styles.d.ts.map +1 -1
  157. package/dist/components/Illustration/styles.js +51 -17
  158. package/dist/components/Illustration/types.d.ts +11 -6
  159. package/dist/components/Illustration/types.d.ts.map +1 -1
  160. package/dist/components/ImageItem/imageFake.d.ts +2 -2
  161. package/dist/components/ImageItem/index.d.ts +4 -4
  162. package/dist/components/ImageItem/input.test.d.ts +1 -1
  163. package/dist/components/ImageItem/styles.d.ts +26 -26
  164. package/dist/components/ImageItem/types.d.ts +25 -25
  165. package/dist/components/Input/index.d.ts +4 -4
  166. package/dist/components/Input/input.test.d.ts +1 -1
  167. package/dist/components/Input/styles.d.ts +69 -69
  168. package/dist/components/Input/types.d.ts +28 -28
  169. package/dist/components/Label/index.d.ts +3 -3
  170. package/dist/components/Label/label.test.d.ts +1 -1
  171. package/dist/components/Label/styles.d.ts +6 -6
  172. package/dist/components/Label/types.d.ts +17 -17
  173. package/dist/components/List/index.d.ts +4 -4
  174. package/dist/components/List/list.test.d.ts +1 -1
  175. package/dist/components/List/styles.d.ts +15 -15
  176. package/dist/components/List/types.d.ts +8 -8
  177. package/dist/components/Modal/ModalExample.d.ts +7 -7
  178. package/dist/components/Modal/index.d.ts +3 -3
  179. package/dist/components/Modal/modal.test.d.ts +1 -1
  180. package/dist/components/Modal/styles.d.ts +538 -538
  181. package/dist/components/Modal/types.d.ts +37 -37
  182. package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +1 -1
  183. package/dist/components/MultipleSelect/animations.d.ts +2 -2
  184. package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
  185. package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts +4 -4
  186. package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +3 -3
  187. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +275 -275
  188. package/dist/components/MultipleSelect/components/OptionsArea/types.d.ts +20 -20
  189. package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +13 -13
  190. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
  191. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +21 -21
  192. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +3 -3
  193. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +18 -18
  194. package/dist/components/MultipleSelect/components/SelectArea/types.d.ts +22 -22
  195. package/dist/components/MultipleSelect/components/index.d.ts +3 -3
  196. package/dist/components/MultipleSelect/index.d.ts +5 -5
  197. package/dist/components/MultipleSelect/types.d.ts +44 -44
  198. package/dist/components/Observer/index.d.ts +6 -6
  199. package/dist/components/Observer/observer.test.d.ts +1 -1
  200. package/dist/components/Observer/types.d.ts +6 -6
  201. package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
  202. package/dist/components/Pagination/index.d.ts +3 -3
  203. package/dist/components/Pagination/pagination.test.d.ts +1 -1
  204. package/dist/components/Pagination/styles.d.ts +34 -34
  205. package/dist/components/Pagination/types.d.ts +28 -28
  206. package/dist/components/Progress/Circle/index.d.ts +3 -3
  207. package/dist/components/Progress/Circle/styles.d.ts +27 -27
  208. package/dist/components/Progress/Circle/types.d.ts +18 -18
  209. package/dist/components/Progress/Linear/index.d.ts +3 -3
  210. package/dist/components/Progress/Linear/styles.d.ts +15 -15
  211. package/dist/components/Progress/Linear/types.d.ts +13 -13
  212. package/dist/components/Progress/getSteps.d.ts +1 -1
  213. package/dist/components/Progress/index.d.ts +4 -4
  214. package/dist/components/Progress/progress.test.d.ts +1 -1
  215. package/dist/components/Progress/types.d.ts +27 -27
  216. package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
  217. package/dist/components/RadioInput/index.d.ts +4 -4
  218. package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
  219. package/dist/components/RadioInput/styles.d.ts +30 -30
  220. package/dist/components/RadioInput/types.d.ts +32 -32
  221. package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
  222. package/dist/components/Rating/index.d.ts +3 -3
  223. package/dist/components/Rating/rating.test.d.ts +1 -1
  224. package/dist/components/Rating/styles.d.ts +18 -18
  225. package/dist/components/Rating/types.d.ts +19 -19
  226. package/dist/components/ReactPortal/index.d.ts +7 -7
  227. package/dist/components/ReactPortal/reactPortal.test.d.ts +1 -1
  228. package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.d.ts +1 -1
  229. package/dist/components/Select/components/OptionsSelect/index.d.ts +3 -3
  230. package/dist/components/Select/components/OptionsSelect/styles.d.ts +268 -268
  231. package/dist/components/Select/components/OptionsSelect/types.d.ts +17 -17
  232. package/dist/components/Select/index.d.ts +4 -4
  233. package/dist/components/Select/select.test.d.ts +1 -1
  234. package/dist/components/Select/styles.d.ts +20 -20
  235. package/dist/components/Select/types.d.ts +26 -26
  236. package/dist/components/Skeleton/index.d.ts +4 -4
  237. package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
  238. package/dist/components/Skeleton/styles.d.ts +7 -7
  239. package/dist/components/Skeleton/types.d.ts +40 -40
  240. package/dist/components/Slider/SliderExample.d.ts +3 -3
  241. package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
  242. package/dist/components/Slider/components/SliderRail.d.ts +3 -3
  243. package/dist/components/Slider/components/SliderSelector.d.ts +17 -17
  244. package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
  245. package/dist/components/Slider/index.d.ts +19 -19
  246. package/dist/components/Slider/slider.test.d.ts +1 -1
  247. package/dist/components/Slider/styles.d.ts +65 -65
  248. package/dist/components/Slider/types.d.ts +40 -40
  249. package/dist/components/Spinner/index.d.ts +4 -4
  250. package/dist/components/Spinner/spinner.test.d.ts +1 -1
  251. package/dist/components/Spinner/styles.d.ts +288 -288
  252. package/dist/components/Spinner/types.d.ts +11 -11
  253. package/dist/components/Steps/components/StepIcon/index.d.ts +3 -3
  254. package/dist/components/Steps/components/StepIconMobile/index.d.ts +3 -3
  255. package/dist/components/Steps/index.d.ts +4 -4
  256. package/dist/components/Steps/steps.test.d.ts +1 -1
  257. package/dist/components/Steps/styles.d.ts +45 -45
  258. package/dist/components/Steps/types.d.ts +20 -20
  259. package/dist/components/Steps/utils.d.ts +7 -7
  260. package/dist/components/Switch/index.d.ts +4 -4
  261. package/dist/components/Switch/styles.d.ts +18 -18
  262. package/dist/components/Switch/switch.test.d.ts +1 -1
  263. package/dist/components/Switch/types.d.ts +14 -14
  264. package/dist/components/Table/components/MenuItem.d.ts +3 -3
  265. package/dist/components/Table/components/TableSkeleton.d.ts +3 -3
  266. package/dist/components/Table/index.d.ts +3 -3
  267. package/dist/components/Table/styles.d.ts +34 -34
  268. package/dist/components/Table/table.test.d.ts +1 -1
  269. package/dist/components/Table/types.d.ts +53 -53
  270. package/dist/components/Tabs/TabsExample.d.ts +3 -3
  271. package/dist/components/Tabs/components/Tab.d.ts +3 -3
  272. package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
  273. package/dist/components/Tabs/components/Tabs.d.ts +4 -4
  274. package/dist/components/Tabs/index.d.ts +3 -3
  275. package/dist/components/Tabs/styles.d.ts +41 -41
  276. package/dist/components/Tabs/tabs.test.d.ts +1 -1
  277. package/dist/components/Tabs/types.d.ts +50 -50
  278. package/dist/components/Tag/index.d.ts +4 -4
  279. package/dist/components/Tag/styles.d.ts +869 -869
  280. package/dist/components/Tag/tag.test.d.ts +1 -1
  281. package/dist/components/Tag/types.d.ts +9 -9
  282. package/dist/components/TextAreaInput/index.d.ts +4 -4
  283. package/dist/components/TextAreaInput/styles.d.ts +18 -18
  284. package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
  285. package/dist/components/TextAreaInput/types.d.ts +26 -26
  286. package/dist/components/Thumbnail/index.d.ts +3 -3
  287. package/dist/components/Thumbnail/styles.d.ts +38 -38
  288. package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
  289. package/dist/components/Thumbnail/types.d.ts +28 -28
  290. package/dist/components/Thumbnail/utils/index.d.ts +2 -2
  291. package/dist/components/Thumbnail/utils/validate-file-size.d.ts +1 -1
  292. package/dist/components/Thumbnail/utils/validate-file-type.d.ts +1 -1
  293. package/dist/components/TimeInput/constants.d.ts +5 -0
  294. package/dist/components/TimeInput/constants.d.ts.map +1 -0
  295. package/dist/components/TimeInput/constants.js +29 -0
  296. package/dist/components/TimeInput/index.d.ts +5 -0
  297. package/dist/components/TimeInput/index.d.ts.map +1 -0
  298. package/dist/components/TimeInput/index.js +303 -0
  299. package/dist/components/TimeInput/styles.d.ts +17 -0
  300. package/dist/components/TimeInput/styles.d.ts.map +1 -0
  301. package/dist/components/TimeInput/styles.js +28 -0
  302. package/dist/components/TimeInput/types.d.ts +5 -0
  303. package/dist/components/TimeInput/types.d.ts.map +1 -0
  304. package/dist/components/TimeInput/types.js +1 -0
  305. package/dist/components/TimeInput/utils.d.ts +9 -0
  306. package/dist/components/TimeInput/utils.d.ts.map +1 -0
  307. package/dist/components/TimeInput/utils.js +61 -0
  308. package/dist/components/Timeline/components/Timeline.d.ts +3 -3
  309. package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
  310. package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
  311. package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
  312. package/dist/components/Timeline/index.d.ts +4 -4
  313. package/dist/components/Timeline/styles.d.ts +31 -31
  314. package/dist/components/Timeline/timeline.test.d.ts +1 -1
  315. package/dist/components/Timeline/types.d.ts +20 -20
  316. package/dist/components/Toast/button-example.d.ts +6 -6
  317. package/dist/components/Toast/components/Toast.d.ts +4 -4
  318. package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
  319. package/dist/components/Toast/hooks/useToast.d.ts +2 -2
  320. package/dist/components/Toast/index.d.ts +3 -3
  321. package/dist/components/Toast/styles.d.ts +22 -22
  322. package/dist/components/Toast/toast.test.d.ts +1 -1
  323. package/dist/components/Toast/types.d.ts +29 -29
  324. package/dist/components/Tooltip/components/TooltipLabel.d.ts +12 -12
  325. package/dist/components/Tooltip/example.d.ts +2 -2
  326. package/dist/components/Tooltip/index.d.ts +4 -4
  327. package/dist/components/Tooltip/styles.d.ts +13 -13
  328. package/dist/components/Tooltip/types.d.ts +26 -26
  329. package/dist/components/Typography/index.d.ts +4 -4
  330. package/dist/components/Typography/styles.d.ts +21 -21
  331. package/dist/components/Typography/types.d.ts +16 -16
  332. package/dist/components/Typography/typography.test.d.ts +1 -1
  333. package/dist/index.d.ts +60 -57
  334. package/dist/index.d.ts.map +1 -1
  335. package/dist/index.js +24 -0
  336. package/dist/shared/components/FocusLock/index.d.ts +7 -7
  337. package/dist/shared/formatters/format-number.d.ts +5 -5
  338. package/dist/shared/formatters/types.d.ts +5 -5
  339. package/dist/shared/hooks/devices.d.ts +8 -8
  340. package/dist/shared/hooks/useBreakpoints.d.ts +25 -25
  341. package/dist/shared/hooks/useDebounce.d.ts +1 -1
  342. package/dist/shared/hooks/useDevices.d.ts +8 -8
  343. package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
  344. package/dist/shared/hooks/useDraggableScroll/index.d.ts +10 -0
  345. package/dist/shared/hooks/useDraggableScroll/index.d.ts.map +1 -0
  346. package/dist/shared/hooks/useDraggableScroll/index.js +65 -0
  347. package/dist/shared/hooks/useDraggableScroll/types.d.ts +6 -0
  348. package/dist/shared/hooks/useDraggableScroll/types.d.ts.map +1 -0
  349. package/dist/shared/hooks/useDraggableScroll/types.js +1 -0
  350. package/dist/shared/hooks/useKeyPress.d.ts +1 -1
  351. package/dist/shared/hooks/useObserver.d.ts +10 -10
  352. package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
  353. package/dist/shared/hooks/useWindowSize.d.ts +8 -8
  354. package/dist/shared/tests/test-utils.d.ts +4 -4
  355. package/dist/shared/tests/types.d.ts +4 -4
  356. package/dist/shared/theme/button-example.d.ts +2 -2
  357. package/dist/shared/theme/contexts/ThemeContext.d.ts +15 -15
  358. package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
  359. package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
  360. package/dist/shared/theme/hooks/useTheme.d.ts +284 -284
  361. package/dist/shared/theme/index.d.ts +7 -7
  362. package/dist/shared/theme/theme.d.ts +282 -282
  363. package/dist/shared/theme/theme.test.d.ts +1 -1
  364. package/dist/shared/theme/theme.types.d.ts +14 -14
  365. package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
  366. package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
  367. package/dist/shared/types/credit-card.d.ts +5 -5
  368. package/dist/shared/types/file.d.ts +11 -11
  369. package/dist/shared/types/name.d.ts +3 -3
  370. package/dist/utils/GenerateKey.d.ts +10 -10
  371. package/dist/utils/brightnessColorChange.d.ts +8 -8
  372. package/dist/utils/colorCheck.d.ts +40 -40
  373. package/dist/utils/colorFunctions.d.ts +2 -2
  374. package/dist/utils/colorToGray.d.ts +5 -5
  375. package/dist/utils/file.d.ts +26 -26
  376. package/dist/utils/formatters/bytes.d.ts +7 -7
  377. package/dist/utils/formatters/capitalize.d.ts +6 -6
  378. package/dist/utils/formatters/cep.d.ts +12 -12
  379. package/dist/utils/formatters/cnpj.d.ts +18 -18
  380. package/dist/utils/formatters/color.d.ts +15 -15
  381. package/dist/utils/formatters/cpf.d.ts +18 -18
  382. package/dist/utils/formatters/credit-card.d.ts +26 -26
  383. package/dist/utils/formatters/email.d.ts +1 -1
  384. package/dist/utils/formatters/index.d.ts +15 -15
  385. package/dist/utils/formatters/name.d.ts +20 -20
  386. package/dist/utils/formatters/number.d.ts +6 -6
  387. package/dist/utils/formatters/passport.d.ts +24 -24
  388. package/dist/utils/formatters/phone.d.ts +59 -59
  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 +1 -1
@@ -1,16 +1,16 @@
1
- import { HTMLAttributes } from 'react';
2
- export interface ModalWrapperProps extends HTMLAttributes<HTMLDivElement> {
3
- /** If the modal is open or not. */
4
- open: boolean;
5
- /** Optional. Sets the left position where the modal will be shown. */
6
- left?: string;
7
- /** Optional. Sets the right position where the modal will be shown. */
8
- right?: string;
9
- /** Optional. Sets the top position where the modal will be shown. */
10
- top?: string;
11
- /** Optional. Offsets the Modal horizontally. */
12
- offsetX?: string;
13
- /** The max width of the Modal. */
14
- maxWidth?: string | number;
15
- }
1
+ import { HTMLAttributes } from 'react';
2
+ export interface ModalWrapperProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** If the modal is open or not. */
4
+ open: boolean;
5
+ /** Optional. Sets the left position where the modal will be shown. */
6
+ left?: string;
7
+ /** Optional. Sets the right position where the modal will be shown. */
8
+ right?: string;
9
+ /** Optional. Sets the top position where the modal will be shown. */
10
+ top?: string;
11
+ /** Optional. Offsets the Modal horizontally. */
12
+ offsetX?: string;
13
+ /** The max width of the Modal. */
14
+ maxWidth?: string | number;
15
+ }
16
16
  //# sourceMappingURL=types.d.ts.map
@@ -1,2 +1,2 @@
1
- import '@testing-library/jest-dom';
1
+ import '@testing-library/jest-dom';
2
2
  //# sourceMappingURL=dateInput.test.d.ts.map
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { DateInputProps } from './types';
3
- export declare function DateInput({ label, placeholder, alert, helperText, value, locales, localeOptions, onChange, disabled, disableWeekendDays, iconColor, ...rest }: DateInputProps): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { DateInputProps } from './types';
3
+ export declare function DateInput({ label, placeholder, alert, helperText, value, locales, localeOptions, onChange, disabled, disableWeekendDays, iconColor, ...rest }: DateInputProps): JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
2
- import { Theme } from '@emotion/react';
3
- export declare const DateInputContainer: import("@emotion/styled").StyledComponent<{
4
- theme?: Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
6
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
- export declare const Overlay: import("@emotion/styled").StyledComponent<{
8
- theme?: Theme | undefined;
9
- as?: import("react").ElementType<any> | undefined;
10
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1
+ /// <reference types="react" />
2
+ import { Theme } from '@emotion/react';
3
+ export declare const DateInputContainer: import("@emotion/styled").StyledComponent<{
4
+ theme?: Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const Overlay: import("@emotion/styled").StyledComponent<{
8
+ theme?: Theme | undefined;
9
+ as?: import("react").ElementType<any> | undefined;
10
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
11
  //# sourceMappingURL=styles.d.ts.map
@@ -1,19 +1,19 @@
1
- import { GlobalColorsProps } from '../../shared/theme';
2
- import { DatePickerProps } from '../DatePicker/types';
3
- import { InputAlertTypes } from '../Input/types';
4
- export type ValueDate = Date | [Date, Date] | number | [number, number];
5
- export interface DateInputProps extends DatePickerProps {
6
- onChange?: (value: ValueDate) => void;
7
- label?: string;
8
- placeholder?: string;
9
- helperText?: string;
10
- alert?: InputAlertTypes;
11
- disabled?: boolean;
12
- locales?: string | string[];
13
- localeOptions?: Intl.DateTimeFormatOptions;
14
- minDate?: Date | number;
15
- maxDate?: Date | number;
16
- disableWeekendDays?: boolean;
17
- iconColor?: GlobalColorsProps | (string & {});
18
- }
1
+ import { GlobalColorsProps } from '../../shared/theme';
2
+ import { DatePickerProps } from '../DatePicker/types';
3
+ import { InputAlertTypes } from '../Input/types';
4
+ export type ValueDate = Date | [Date, Date] | number | [number, number];
5
+ export interface DateInputProps extends DatePickerProps {
6
+ onChange?: (value: ValueDate) => void;
7
+ label?: string;
8
+ placeholder?: string;
9
+ helperText?: string;
10
+ alert?: InputAlertTypes;
11
+ disabled?: boolean;
12
+ locales?: string | string[];
13
+ localeOptions?: Intl.DateTimeFormatOptions;
14
+ minDate?: Date | number;
15
+ maxDate?: Date | number;
16
+ disableWeekendDays?: boolean;
17
+ iconColor?: GlobalColorsProps | (string & {});
18
+ }
19
19
  //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { DatePickerContentProps } from '../types';
3
- export declare const DatePickerContent: ({ type, date: dateProp, startDate, endDate, isInTheRange, maxDate, minDate, handleChange, handleMouseOver, handleChangeDate, variant, enableYearPicker, handleToggleYearPicker, hideNextMonthButton, hidePrevMonthButton, disableWeekendDays, showSelectedDate, }: DatePickerContentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { DatePickerContentProps } from '../types';
3
+ export declare const DatePickerContent: ({ type, date: dateProp, startDate, endDate, isInTheRange, maxDate, minDate, handleChange, handleMouseOver, handleChangeDate, variant, enableYearPicker, handleToggleYearPicker, hideNextMonthButton, hidePrevMonthButton, disableWeekendDays, showSelectedDate, }: DatePickerContentProps) => JSX.Element;
4
4
  //# sourceMappingURL=DatePickerContent.d.ts.map
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { DateYearPickerProps } from '../types';
3
- export declare const DateYearPicker: ({ date, handleChangeDate, maxDate, minDate, }: DateYearPickerProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { DateYearPickerProps } from '../types';
3
+ export declare const DateYearPicker: ({ date, handleChangeDate, maxDate, minDate, }: DateYearPickerProps) => JSX.Element;
4
4
  //# sourceMappingURL=DateYearPicker.d.ts.map
@@ -1,2 +1,2 @@
1
- import '@testing-library/jest-dom';
1
+ import '@testing-library/jest-dom';
2
2
  //# sourceMappingURL=datepicker.test.d.ts.map
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { DatePickerProps } from './types';
3
- declare const DatePicker: ({ value, onChange, minDate: minDateProp, maxDate: maxDateProp, variant, color, type, disableWeekendDays, isFirstClickDateInput, setIsFirstClickDateInput, enableYearPicker, }: DatePickerProps) => JSX.Element;
4
- export default DatePicker;
1
+ /// <reference types="react" />
2
+ import { DatePickerProps } from './types';
3
+ declare const DatePicker: ({ value, onChange, minDate: minDateProp, maxDate: maxDateProp, variant, color, type, disableWeekendDays, isFirstClickDateInput, setIsFirstClickDateInput, enableYearPicker, }: DatePickerProps) => JSX.Element;
4
+ export default DatePicker;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,78 +1,78 @@
1
- /// <reference types="react" />
2
- import { GenericStyledProps } from './types';
3
- export declare const DatePickerContentContainer: import("@emotion/styled").StyledComponent<{
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
6
- } & {
7
- isExtended: boolean;
8
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
- export declare const DatePickerContainer: import("@emotion/styled").StyledComponent<{
10
- theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any> | undefined;
12
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
- export declare const DatePickerHeader: import("@emotion/styled").StyledComponent<{
14
- theme?: import("@emotion/react").Theme | undefined;
15
- as?: import("react").ElementType<any> | undefined;
16
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
- export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<{
18
- theme?: import("@emotion/react").Theme | undefined;
19
- as?: import("react").ElementType<any> | undefined;
20
- } & GenericStyledProps & {
21
- enableYearPicker?: boolean | undefined;
22
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
- export declare const DatePickerHeaderButton: import("@emotion/styled").StyledComponent<{
24
- theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
26
- } & GenericStyledProps & {
27
- isHidden?: boolean | undefined;
28
- }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
29
- export declare const DatePickerBody: import("@emotion/styled").StyledComponent<{
30
- theme?: import("@emotion/react").Theme | undefined;
31
- as?: import("react").ElementType<any> | undefined;
32
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
- export declare const DatePickerBodyTable: import("@emotion/styled").StyledComponent<{
34
- theme?: import("@emotion/react").Theme | undefined;
35
- as?: import("react").ElementType<any> | undefined;
36
- } & GenericStyledProps, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
37
- export declare const DatePickerTableRow: import("@emotion/styled").StyledComponent<{
38
- theme?: import("@emotion/react").Theme | undefined;
39
- as?: import("react").ElementType<any> | undefined;
40
- } & GenericStyledProps & {
41
- isRange?: boolean | undefined;
42
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
43
- export declare const DatePickerTableCell: import("@emotion/styled").StyledComponent<{
44
- theme?: import("@emotion/react").Theme | undefined;
45
- as?: import("react").ElementType<any> | undefined;
46
- } & GenericStyledProps & {
47
- isPrevNextMonth?: boolean | undefined;
48
- isSelected?: boolean | undefined;
49
- isToday?: boolean | undefined;
50
- isInTheRange?: boolean | undefined;
51
- isEndDateOfRange?: boolean | undefined;
52
- isStartDateOfRange?: boolean | undefined;
53
- isFirstDayOfMonth?: boolean | undefined;
54
- isLastDayOfMonth?: boolean | undefined;
55
- isTheSameDate?: boolean | undefined;
56
- disabled?: boolean | undefined;
57
- showSelectedDate?: boolean | undefined;
58
- }, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
59
- export declare const DatePickerTableCellSpan: import("@emotion/styled").StyledComponent<{
60
- theme?: import("@emotion/react").Theme | undefined;
61
- as?: import("react").ElementType<any> | undefined;
62
- } & GenericStyledProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
63
- export declare const DateYearPickerContainer: import("@emotion/styled").StyledComponent<{
64
- theme?: import("@emotion/react").Theme | undefined;
65
- as?: import("react").ElementType<any> | undefined;
66
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
67
- export declare const DateYearPickerBody: import("@emotion/styled").StyledComponent<{
68
- theme?: import("@emotion/react").Theme | undefined;
69
- as?: import("react").ElementType<any> | undefined;
70
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
71
- export declare const DateYearPickerCell: import("@emotion/styled").StyledComponent<{
72
- theme?: import("@emotion/react").Theme | undefined;
73
- as?: import("react").ElementType<any> | undefined;
74
- } & GenericStyledProps & {
75
- isSelected?: boolean | undefined;
76
- disabled?: boolean | undefined;
77
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1
+ /// <reference types="react" />
2
+ import { GenericStyledProps } from './types';
3
+ export declare const DatePickerContentContainer: import("@emotion/styled").StyledComponent<{
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & {
7
+ isExtended: boolean;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const DatePickerContainer: import("@emotion/styled").StyledComponent<{
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export declare const DatePickerHeader: import("@emotion/styled").StyledComponent<{
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any> | undefined;
16
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
+ export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<{
18
+ theme?: import("@emotion/react").Theme | undefined;
19
+ as?: import("react").ElementType<any> | undefined;
20
+ } & GenericStyledProps & {
21
+ enableYearPicker?: boolean | undefined;
22
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
23
+ export declare const DatePickerHeaderButton: import("@emotion/styled").StyledComponent<{
24
+ theme?: import("@emotion/react").Theme | undefined;
25
+ as?: import("react").ElementType<any> | undefined;
26
+ } & GenericStyledProps & {
27
+ isHidden?: boolean | undefined;
28
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
29
+ export declare const DatePickerBody: import("@emotion/styled").StyledComponent<{
30
+ theme?: import("@emotion/react").Theme | undefined;
31
+ as?: import("react").ElementType<any> | undefined;
32
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
+ export declare const DatePickerBodyTable: import("@emotion/styled").StyledComponent<{
34
+ theme?: import("@emotion/react").Theme | undefined;
35
+ as?: import("react").ElementType<any> | undefined;
36
+ } & GenericStyledProps, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
37
+ export declare const DatePickerTableRow: import("@emotion/styled").StyledComponent<{
38
+ theme?: import("@emotion/react").Theme | undefined;
39
+ as?: import("react").ElementType<any> | undefined;
40
+ } & GenericStyledProps & {
41
+ isRange?: boolean | undefined;
42
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
43
+ export declare const DatePickerTableCell: import("@emotion/styled").StyledComponent<{
44
+ theme?: import("@emotion/react").Theme | undefined;
45
+ as?: import("react").ElementType<any> | undefined;
46
+ } & GenericStyledProps & {
47
+ isPrevNextMonth?: boolean | undefined;
48
+ isSelected?: boolean | undefined;
49
+ isToday?: boolean | undefined;
50
+ isInTheRange?: boolean | undefined;
51
+ isEndDateOfRange?: boolean | undefined;
52
+ isStartDateOfRange?: boolean | undefined;
53
+ isFirstDayOfMonth?: boolean | undefined;
54
+ isLastDayOfMonth?: boolean | undefined;
55
+ isTheSameDate?: boolean | undefined;
56
+ disabled?: boolean | undefined;
57
+ showSelectedDate?: boolean | undefined;
58
+ }, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
59
+ export declare const DatePickerTableCellSpan: import("@emotion/styled").StyledComponent<{
60
+ theme?: import("@emotion/react").Theme | undefined;
61
+ as?: import("react").ElementType<any> | undefined;
62
+ } & GenericStyledProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
63
+ export declare const DateYearPickerContainer: import("@emotion/styled").StyledComponent<{
64
+ theme?: import("@emotion/react").Theme | undefined;
65
+ as?: import("react").ElementType<any> | undefined;
66
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
67
+ export declare const DateYearPickerBody: import("@emotion/styled").StyledComponent<{
68
+ theme?: import("@emotion/react").Theme | undefined;
69
+ as?: import("react").ElementType<any> | undefined;
70
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
71
+ export declare const DateYearPickerCell: import("@emotion/styled").StyledComponent<{
72
+ theme?: import("@emotion/react").Theme | undefined;
73
+ as?: import("react").ElementType<any> | undefined;
74
+ } & GenericStyledProps & {
75
+ isSelected?: boolean | undefined;
76
+ disabled?: boolean | undefined;
77
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
78
78
  //# sourceMappingURL=styles.d.ts.map
@@ -1,70 +1,70 @@
1
- import { ExtendThemeProps, GlobalColorsProps } from '../../shared/theme/theme.types';
2
- import { ValueDate } from '../DateInput/types';
3
- export type DatePickerProps = {
4
- /**
5
- * Sets the date picker's type.
6
- * @default 'date'
7
- */
8
- type?: 'date' | 'range';
9
- /**
10
- * Sets the date container type.
11
- * @default 'compact'
12
- */
13
- variant?: 'compact' | 'extended';
14
- /**
15
- * Sets the date picker's current/initial value.
16
- */
17
- value?: ValueDate;
18
- /**
19
- * Sets the date picker's minimum month and year.
20
- * @summary To set the minimum date, the date needs to be the first day of the month.
21
- */
22
- minDate?: Date | number | string;
23
- /**
24
- * Sets the date picker's maximum month and year.
25
- * @summary To set the maximum date, the date needs to be the first day of the month.
26
- */
27
- maxDate?: Date | number | string;
28
- /**
29
- * Callback function that is called when the date picker's value changes.
30
- * @param {Date} date - The new date.
31
- */
32
- onChange?: (date: Date | [Date, Date]) => void;
33
- color?: GlobalColorsProps | (string & {});
34
- disableWeekendDays?: boolean;
35
- setIsFirstClickDateInput?: (prev: boolean) => void;
36
- isFirstClickDateInput?: boolean;
37
- enableYearPicker?: boolean;
38
- };
39
- export type GenericStyledProps = {
40
- theme?: ExtendThemeProps & {
41
- colorSelected: GlobalColorsProps | (string & {});
42
- };
43
- };
44
- export type DatePickerContentProps = {
45
- variant?: 'compact' | 'extended';
46
- startDate: Date | null;
47
- date: Date | null;
48
- endDate: Date | null;
49
- isInTheRange: (currentDate: Date) => boolean;
50
- handleMouseOver: (currentDate: Date) => void;
51
- handleChange: (newDate: Date) => void;
52
- handleChangeDate: (newDate: Date) => void;
53
- handleToggleYearPicker?: () => void;
54
- enableYearPicker?: boolean;
55
- minDate?: Date;
56
- maxDate?: Date;
57
- showSelectedDate?: boolean;
58
- type?: 'date' | 'range';
59
- color?: 'primary' | 'secondary' | 'tertiary';
60
- hideNextMonthButton?: boolean;
61
- hidePrevMonthButton?: boolean;
62
- disableWeekendDays?: boolean;
63
- };
64
- export type DateYearPickerProps = {
65
- date: Date;
66
- handleChangeDate: (newDate: Date) => void;
67
- minDate: Date | number | string;
68
- maxDate: Date | number | string;
69
- };
1
+ import { ExtendThemeProps, GlobalColorsProps } from '../../shared/theme/theme.types';
2
+ import { ValueDate } from '../DateInput/types';
3
+ export type DatePickerProps = {
4
+ /**
5
+ * Sets the date picker's type.
6
+ * @default 'date'
7
+ */
8
+ type?: 'date' | 'range';
9
+ /**
10
+ * Sets the date container type.
11
+ * @default 'compact'
12
+ */
13
+ variant?: 'compact' | 'extended';
14
+ /**
15
+ * Sets the date picker's current/initial value.
16
+ */
17
+ value?: ValueDate;
18
+ /**
19
+ * Sets the date picker's minimum month and year.
20
+ * @summary To set the minimum date, the date needs to be the first day of the month.
21
+ */
22
+ minDate?: Date | number | string;
23
+ /**
24
+ * Sets the date picker's maximum month and year.
25
+ * @summary To set the maximum date, the date needs to be the first day of the month.
26
+ */
27
+ maxDate?: Date | number | string;
28
+ /**
29
+ * Callback function that is called when the date picker's value changes.
30
+ * @param {Date} date - The new date.
31
+ */
32
+ onChange?: (date: Date | [Date, Date]) => void;
33
+ color?: GlobalColorsProps | (string & {});
34
+ disableWeekendDays?: boolean;
35
+ setIsFirstClickDateInput?: (prev: boolean) => void;
36
+ isFirstClickDateInput?: boolean;
37
+ enableYearPicker?: boolean;
38
+ };
39
+ export type GenericStyledProps = {
40
+ theme?: ExtendThemeProps & {
41
+ colorSelected: GlobalColorsProps | (string & {});
42
+ };
43
+ };
44
+ export type DatePickerContentProps = {
45
+ variant?: 'compact' | 'extended';
46
+ startDate: Date | null;
47
+ date: Date | null;
48
+ endDate: Date | null;
49
+ isInTheRange: (currentDate: Date) => boolean;
50
+ handleMouseOver: (currentDate: Date) => void;
51
+ handleChange: (newDate: Date) => void;
52
+ handleChangeDate: (newDate: Date) => void;
53
+ handleToggleYearPicker?: () => void;
54
+ enableYearPicker?: boolean;
55
+ minDate?: Date;
56
+ maxDate?: Date;
57
+ showSelectedDate?: boolean;
58
+ type?: 'date' | 'range';
59
+ color?: 'primary' | 'secondary' | 'tertiary';
60
+ hideNextMonthButton?: boolean;
61
+ hidePrevMonthButton?: boolean;
62
+ disableWeekendDays?: boolean;
63
+ };
64
+ export type DateYearPickerProps = {
65
+ date: Date;
66
+ handleChangeDate: (newDate: Date) => void;
67
+ minDate: Date | number | string;
68
+ maxDate: Date | number | string;
69
+ };
70
70
  //# sourceMappingURL=types.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const getMonthName: (month: number) => string;
1
+ export declare const getMonthName: (month: number) => string;
2
2
  //# sourceMappingURL=getMonthName.d.ts.map
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { IDialogProps } from './types';
3
- export default function DialogExample(props: IDialogProps): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { IDialogProps } from './types';
3
+ export default function DialogExample(props: IDialogProps): JSX.Element;
4
4
  //# sourceMappingURL=dialog-example.d.ts.map
@@ -1,2 +1,2 @@
1
- import '@testing-library/jest-dom';
1
+ import '@testing-library/jest-dom';
2
2
  //# sourceMappingURL=dialog.test.d.ts.map
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { IDialogProps } from './types';
3
- export declare function Dialog({ open, illustration, title, message, closeButton, confirmationButton, cancelButton, backgroundColor, contentColor, onClose, }: IDialogProps): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { IDialogProps } from './types';
3
+ export declare function Dialog({ open, illustration, title, message, closeButton, confirmationButton, cancelButton, backgroundColor, contentColor, onClose, }: IDialogProps): JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,26 +1,26 @@
1
- /// <reference types="react" />
2
- import { GenericStyledProps } from '../../@types';
3
- export declare const Container: import("@emotion/styled").StyledComponent<{
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
6
- } & {
7
- isMobile: boolean;
8
- illustration: boolean;
9
- backgroundColor: string;
10
- contentColor: string;
11
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
- export declare const CloseButton: import("@emotion/styled").StyledComponent<{
13
- theme?: import("@emotion/react").Theme | undefined;
14
- as?: import("react").ElementType<any> | undefined;
15
- }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
16
- export declare const PrimaryButton: import("@emotion/styled").StyledComponent<{
17
- theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
19
- } & GenericStyledProps, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
20
- export declare const SecondaryButton: import("@emotion/styled").StyledComponent<{
21
- theme?: import("@emotion/react").Theme | undefined;
22
- as?: import("react").ElementType<any> | undefined;
23
- } & GenericStyledProps & {
24
- secondaryButtonColor?: string | undefined;
25
- }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
1
+ /// <reference types="react" />
2
+ import { GenericStyledProps } from '../../@types';
3
+ export declare const Container: import("@emotion/styled").StyledComponent<{
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & {
7
+ isMobile: boolean;
8
+ illustration: boolean;
9
+ backgroundColor: string;
10
+ contentColor: string;
11
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const CloseButton: import("@emotion/styled").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any> | undefined;
15
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
16
+ export declare const PrimaryButton: import("@emotion/styled").StyledComponent<{
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any> | undefined;
19
+ } & GenericStyledProps, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
20
+ export declare const SecondaryButton: import("@emotion/styled").StyledComponent<{
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: import("react").ElementType<any> | undefined;
23
+ } & GenericStyledProps & {
24
+ secondaryButtonColor?: string | undefined;
25
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
26
26
  //# sourceMappingURL=styles.d.ts.map
@@ -1,31 +1,31 @@
1
- import { IconName } from '../Icon/types';
2
- import { GlobalColorsProps } from './../../shared/theme/theme.types';
3
- export interface DialogButton {
4
- /** The label visible in the button. */
5
- label: string;
6
- /** The handler called once the button is clicked. */
7
- handler: () => void;
8
- }
9
- export interface IDialogProps {
10
- /** If the modal is open or not. */
11
- open: boolean;
12
- /** Optional. The name of the illustration displayed in the Dialog as listed in the Icon component. */
13
- illustration?: IconName;
14
- /** Optional. The title displayed in the Dialog. */
15
- title?: string;
16
- /** The message displayed in the Dialog. */
17
- message: string;
18
- /** Optional. The color of the background */
19
- backgroundColor?: GlobalColorsProps | (string & {});
20
- /** Optional. The color of the content */
21
- contentColor?: GlobalColorsProps | (string & {});
22
- /** Optional. If a close button is displayed in the Dialog. */
23
- closeButton?: boolean;
24
- /** Optional. The data for a confirmation button in the Dialog. */
25
- confirmationButton?: DialogButton;
26
- /** Optional. The data for a cancel button in the Dialog. */
27
- cancelButton?: DialogButton;
28
- /** Handler called once the Modal is triggered to close. */
29
- onClose: () => void;
30
- }
1
+ import { IconName } from '../Icon/types';
2
+ import { GlobalColorsProps } from './../../shared/theme/theme.types';
3
+ export interface DialogButton {
4
+ /** The label visible in the button. */
5
+ label: string;
6
+ /** The handler called once the button is clicked. */
7
+ handler: () => void;
8
+ }
9
+ export interface IDialogProps {
10
+ /** If the modal is open or not. */
11
+ open: boolean;
12
+ /** Optional. The name of the illustration displayed in the Dialog as listed in the Icon component. */
13
+ illustration?: IconName;
14
+ /** Optional. The title displayed in the Dialog. */
15
+ title?: string;
16
+ /** The message displayed in the Dialog. */
17
+ message: string;
18
+ /** Optional. The color of the background */
19
+ backgroundColor?: GlobalColorsProps | (string & {});
20
+ /** Optional. The color of the content */
21
+ contentColor?: GlobalColorsProps | (string & {});
22
+ /** Optional. If a close button is displayed in the Dialog. */
23
+ closeButton?: boolean;
24
+ /** Optional. The data for a confirmation button in the Dialog. */
25
+ confirmationButton?: DialogButton;
26
+ /** Optional. The data for a cancel button in the Dialog. */
27
+ cancelButton?: DialogButton;
28
+ /** Handler called once the Modal is triggered to close. */
29
+ onClose: () => void;
30
+ }
31
31
  //# sourceMappingURL=types.d.ts.map
@@ -1,2 +1,2 @@
1
- import '@testing-library/jest-dom';
1
+ import '@testing-library/jest-dom';
2
2
  //# sourceMappingURL=dropzone.test.d.ts.map
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { DropzoneProps } from './types';
3
- declare const Dropzone: ({ icon, title, disabledButton, buttonText, alert, helperText, multiple, onChange, onDropAccepted, onDropRejected, accept, onDragEnter, onDragLeave, disabled, ...rest }: DropzoneProps) => JSX.Element;
4
- export default Dropzone;
1
+ /// <reference types="react" />
2
+ import { DropzoneProps } from './types';
3
+ declare const Dropzone: ({ icon, title, disabledButton, buttonText, alert, helperText, multiple, onChange, onDropAccepted, onDropRejected, accept, onDragEnter, onDragLeave, disabled, ...rest }: DropzoneProps) => JSX.Element;
4
+ export default Dropzone;
5
5
  //# sourceMappingURL=index.d.ts.map