@pedidopago/ui 1.7.20 → 1.7.22

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 (570) 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 +10 -10
  5. package/dist/components/Alert/styles.d.ts.map +1 -1
  6. package/dist/components/Alert/styles.js +1 -1
  7. package/dist/components/Alert/types.d.ts +42 -42
  8. package/dist/components/Avatar/avatar.test.d.ts +1 -1
  9. package/dist/components/Avatar/index.d.ts +4 -4
  10. package/dist/components/Avatar/styles.d.ts +25 -25
  11. package/dist/components/Avatar/styles.d.ts.map +1 -1
  12. package/dist/components/Avatar/styles.js +3 -3
  13. package/dist/components/Avatar/types.d.ts +15 -15
  14. package/dist/components/Badge/badge.test.d.ts +1 -1
  15. package/dist/components/Badge/index.d.ts +4 -4
  16. package/dist/components/Badge/styles.d.ts +16 -16
  17. package/dist/components/Badge/types.d.ts +12 -12
  18. package/dist/components/Button/Button.test.d.ts +1 -1
  19. package/dist/components/Button/index.d.ts +3 -3
  20. package/dist/components/Button/index.d.ts.map +1 -1
  21. package/dist/components/Button/index.js +1 -1
  22. package/dist/components/Button/styles.d.ts +14 -14
  23. package/dist/components/Button/styles.d.ts.map +1 -1
  24. package/dist/components/Button/styles.js +3 -5
  25. package/dist/components/Button/types.d.ts +92 -92
  26. package/dist/components/Card/card.test.d.ts +1 -1
  27. package/dist/components/Card/index.d.ts +3 -3
  28. package/dist/components/Card/styles.d.ts +6 -6
  29. package/dist/components/Card/types.d.ts +17 -17
  30. package/dist/components/CheckboxInput/checkbox-input.test.d.ts +1 -1
  31. package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
  32. package/dist/components/CheckboxInput/index.d.ts +4 -4
  33. package/dist/components/CheckboxInput/styles.d.ts +30 -31
  34. package/dist/components/CheckboxInput/styles.d.ts.map +1 -1
  35. package/dist/components/CheckboxInput/styles.js +13 -35
  36. package/dist/components/CheckboxInput/types.d.ts +27 -27
  37. package/dist/components/CollapseCard/ExpandButton/index.d.ts +3 -3
  38. package/dist/components/CollapseCard/ExpandButton/styles.d.ts +269 -269
  39. package/dist/components/CollapseCard/ExpandButton/types.d.ts +5 -5
  40. package/dist/components/CollapseCard/expand-button.test.d.ts +1 -1
  41. package/dist/components/CollapseCard/index.d.ts +3 -3
  42. package/dist/components/CollapseCard/styles.d.ts +268 -268
  43. package/dist/components/CollapseCard/styles.d.ts.map +1 -1
  44. package/dist/components/CollapseCard/styles.js +4 -1
  45. package/dist/components/CollapseCard/types.d.ts +12 -12
  46. package/dist/components/ColorPicker/colorpicker.test.d.ts +1 -1
  47. package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
  48. package/dist/components/ColorPicker/components/ColorInput.d.ts +4 -4
  49. package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
  50. package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
  51. package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
  52. package/dist/components/ColorPicker/hooks/useCachedCallback.d.ts +1 -1
  53. package/dist/components/ColorPicker/hooks/useHsva.d.ts +2 -2
  54. package/dist/components/ColorPicker/index.d.ts +4 -4
  55. package/dist/components/ColorPicker/styles.d.ts +44 -44
  56. package/dist/components/ColorPicker/styles.d.ts.map +1 -1
  57. package/dist/components/ColorPicker/styles.js +5 -5
  58. package/dist/components/ColorPicker/types.d.ts +73 -73
  59. package/dist/components/ColorPicker/utils/checkers.d.ts +7 -7
  60. package/dist/components/ColorPicker/utils/conversors.d.ts +60 -60
  61. package/dist/components/ColorPicker/utils/parsers.d.ts +27 -27
  62. package/dist/components/ComposeIcon/index.d.ts +4 -4
  63. package/dist/components/ComposeIcon/styles.d.ts +10 -10
  64. package/dist/components/ComposeIcon/styles.d.ts.map +1 -1
  65. package/dist/components/ComposeIcon/styles.js +2 -2
  66. package/dist/components/ComposeIcon/types.d.ts +11 -11
  67. package/dist/components/DateInput/DateInput-example.d.ts +5 -5
  68. package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
  69. package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +268 -268
  70. package/dist/components/DateInput/components/ModalWrapper/types.d.ts +15 -15
  71. package/dist/components/DateInput/dateInput.test.d.ts +1 -1
  72. package/dist/components/DateInput/index.d.ts +3 -3
  73. package/dist/components/DateInput/styles.d.ts +10 -10
  74. package/dist/components/DateInput/types.d.ts +18 -18
  75. package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
  76. package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
  77. package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
  78. package/dist/components/DatePicker/index.d.ts +4 -4
  79. package/dist/components/DatePicker/styles.d.ts +77 -77
  80. package/dist/components/DatePicker/styles.d.ts.map +1 -1
  81. package/dist/components/DatePicker/styles.js +4 -5
  82. package/dist/components/DatePicker/types.d.ts +69 -69
  83. package/dist/components/DatePicker/utils/getMonthName.d.ts +1 -1
  84. package/dist/components/Dialog/dialog-example.d.ts +3 -3
  85. package/dist/components/Dialog/dialog.test.d.ts +1 -1
  86. package/dist/components/Dialog/index.d.ts +3 -3
  87. package/dist/components/Dialog/index.d.ts.map +1 -1
  88. package/dist/components/Dialog/index.js +7 -8
  89. package/dist/components/Dialog/styles.d.ts +23 -25
  90. package/dist/components/Dialog/styles.d.ts.map +1 -1
  91. package/dist/components/Dialog/styles.js +4 -6
  92. package/dist/components/Dialog/types.d.ts +30 -30
  93. package/dist/components/Dropzone/dropzone.test.d.ts +1 -1
  94. package/dist/components/Dropzone/index.d.ts +4 -4
  95. package/dist/components/Dropzone/styles.d.ts +55 -55
  96. package/dist/components/Dropzone/styles.js +1 -1
  97. package/dist/components/Dropzone/types.d.ts +27 -27
  98. package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
  99. package/dist/components/EmojiPicker/Emote/index.d.ts +3 -3
  100. package/dist/components/EmojiPicker/Emote/styles.d.ts +12 -12
  101. package/dist/components/EmojiPicker/Emote/types.d.ts +31 -31
  102. package/dist/components/EmojiPicker/EmotePickerData/constants.d.ts +9 -9
  103. package/dist/components/EmojiPicker/EmotePickerData/index.d.ts +3 -3
  104. package/dist/components/EmojiPicker/EmotePickerData/index.js +1 -1
  105. package/dist/components/EmojiPicker/EmotePickerData/styles.d.ts +17 -17
  106. package/dist/components/EmojiPicker/EmotePickerData/styles.d.ts.map +1 -1
  107. package/dist/components/EmojiPicker/EmotePickerData/styles.js +20 -14
  108. package/dist/components/EmojiPicker/EmotePickerData/types.d.ts +9 -9
  109. package/dist/components/EmojiPicker/EmotePickerData/utils.d.ts +4 -4
  110. package/dist/components/EmojiPicker/Example/EmotePickerExample.d.ts +3 -3
  111. package/dist/components/EmojiPicker/animation.d.ts +3 -3
  112. package/dist/components/EmojiPicker/index.d.ts +3 -3
  113. package/dist/components/EmojiPicker/styles.d.ts +517 -517
  114. package/dist/components/EmojiPicker/styles.d.ts.map +1 -1
  115. package/dist/components/EmojiPicker/styles.js +3 -6
  116. package/dist/components/EmojiPicker/types.d.ts +20 -20
  117. package/dist/components/Flex/flex.test.d.ts +1 -1
  118. package/dist/components/Flex/index.d.ts +4 -4
  119. package/dist/components/Flex/styles.d.ts +464 -296
  120. package/dist/components/Flex/styles.d.ts.map +1 -1
  121. package/dist/components/Flex/types.d.ts +175 -175
  122. package/dist/components/Grid/grid.test.d.ts +1 -1
  123. package/dist/components/Grid/index.d.ts +4 -4
  124. package/dist/components/Grid/styles.d.ts +456 -288
  125. package/dist/components/Grid/styles.d.ts.map +1 -1
  126. package/dist/components/Grid/types.d.ts +88 -88
  127. package/dist/components/Icon/data/beauty.d.ts +8 -8
  128. package/dist/components/Icon/data/dash.d.ts +8 -8
  129. package/dist/components/Icon/data/dash.d.ts.map +1 -1
  130. package/dist/components/Icon/data/dash.js +1 -1
  131. package/dist/components/Icon/data/ecommerce.d.ts +8 -8
  132. package/dist/components/Icon/data/form.d.ts +8 -8
  133. package/dist/components/Icon/data/health.d.ts +8 -8
  134. package/dist/components/Icon/data/illustrations.d.ts +8 -8
  135. package/dist/components/Icon/data/illustrations.js +43 -43
  136. package/dist/components/Icon/data/men.d.ts +8 -8
  137. package/dist/components/Icon/data/payment.d.ts +8 -8
  138. package/dist/components/Icon/data/pedidoPago.d.ts +8 -8
  139. package/dist/components/Icon/data/physicalPerfomance.d.ts +8 -8
  140. package/dist/components/Icon/data/social.d.ts +8 -8
  141. package/dist/components/Icon/data/status.d.ts +8 -8
  142. package/dist/components/Icon/data/summer.d.ts +8 -8
  143. package/dist/components/Icon/data/woman.d.ts +8 -8
  144. package/dist/components/Icon/icon.test.d.ts +1 -1
  145. package/dist/components/Icon/index.d.ts +4 -4
  146. package/dist/components/Icon/scripts/build.d.ts +5 -5
  147. package/dist/components/Icon/scripts/extractor.d.ts +15 -15
  148. package/dist/components/Icon/scripts/run-build.d.ts +1 -1
  149. package/dist/components/Icon/scripts/writers.d.ts +22 -22
  150. package/dist/components/Icon/styles.d.ts +13 -13
  151. package/dist/components/Icon/types.d.ts +8 -8
  152. package/dist/components/Icon/types.d.ts.map +1 -1
  153. package/dist/components/Icon/utils/allIcons.d.ts +8 -8
  154. package/dist/components/Icon/utils/iconExists.d.ts +4 -4
  155. package/dist/components/IconItem/IconItem.test.d.ts +1 -1
  156. package/dist/components/IconItem/index.d.ts +4 -4
  157. package/dist/components/IconItem/styles.d.ts +18 -18
  158. package/dist/components/IconItem/types.d.ts +22 -22
  159. package/dist/components/Illustration/illustration.test.d.ts +1 -1
  160. package/dist/components/Illustration/index.d.ts +4 -4
  161. package/dist/components/Illustration/styles.d.ts +10 -10
  162. package/dist/components/Illustration/styles.d.ts.map +1 -1
  163. package/dist/components/Illustration/styles.js +4 -3
  164. package/dist/components/Illustration/types.d.ts +11 -11
  165. package/dist/components/ImageItem/imageFake.d.ts +2 -2
  166. package/dist/components/ImageItem/index.d.ts +4 -4
  167. package/dist/components/ImageItem/input.test.d.ts +1 -1
  168. package/dist/components/ImageItem/styles.d.ts +26 -26
  169. package/dist/components/ImageItem/styles.d.ts.map +1 -1
  170. package/dist/components/ImageItem/styles.js +3 -4
  171. package/dist/components/ImageItem/types.d.ts +25 -25
  172. package/dist/components/Input/index.d.ts +4 -4
  173. package/dist/components/Input/index.js +3 -1
  174. package/dist/components/Input/input.test.d.ts +1 -1
  175. package/dist/components/Input/styles.d.ts +65 -69
  176. package/dist/components/Input/styles.d.ts.map +1 -1
  177. package/dist/components/Input/styles.js +44 -82
  178. package/dist/components/Input/types.d.ts +30 -30
  179. package/dist/components/Label/index.d.ts +3 -3
  180. package/dist/components/Label/label.test.d.ts +1 -1
  181. package/dist/components/Label/styles.d.ts +6 -6
  182. package/dist/components/Label/types.d.ts +17 -17
  183. package/dist/components/List/index.d.ts +4 -4
  184. package/dist/components/List/list.test.d.ts +1 -1
  185. package/dist/components/List/styles.d.ts +15 -15
  186. package/dist/components/List/styles.d.ts.map +1 -1
  187. package/dist/components/List/styles.js +3 -9
  188. package/dist/components/List/types.d.ts +8 -8
  189. package/dist/components/Modal/ModalExample.d.ts +7 -7
  190. package/dist/components/Modal/index.d.ts +3 -3
  191. package/dist/components/Modal/modal.test.d.ts +1 -1
  192. package/dist/components/Modal/styles.d.ts +538 -538
  193. package/dist/components/Modal/styles.d.ts.map +1 -1
  194. package/dist/components/Modal/styles.js +1 -1
  195. package/dist/components/Modal/types.d.ts +37 -37
  196. package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +1 -1
  197. package/dist/components/MultipleSelect/animations.d.ts +2 -2
  198. package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
  199. package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts +4 -4
  200. package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +3 -3
  201. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +275 -275
  202. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
  203. package/dist/components/MultipleSelect/components/OptionsArea/styles.js +17 -7
  204. package/dist/components/MultipleSelect/components/OptionsArea/types.d.ts +20 -20
  205. package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +13 -13
  206. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
  207. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +21 -21
  208. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
  209. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +1 -4
  210. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +3 -3
  211. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +18 -18
  212. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -1
  213. package/dist/components/MultipleSelect/components/SelectArea/styles.js +3 -3
  214. package/dist/components/MultipleSelect/components/SelectArea/types.d.ts +22 -22
  215. package/dist/components/MultipleSelect/components/index.d.ts +3 -3
  216. package/dist/components/MultipleSelect/index.d.ts +5 -5
  217. package/dist/components/MultipleSelect/types.d.ts +44 -44
  218. package/dist/components/NewSelect/Examples/constants.d.ts +4 -4
  219. package/dist/components/NewSelect/Examples/index.d.ts +4 -4
  220. package/dist/components/NewSelect/components/Chip/index.d.ts +3 -3
  221. package/dist/components/NewSelect/components/Chip/styles.d.ts +5 -5
  222. package/dist/components/NewSelect/components/Chip/types.d.ts +4 -4
  223. package/dist/components/NewSelect/components/OptionsSelect/styles.d.ts +260 -260
  224. package/dist/components/NewSelect/components/OptionsSelect/styles.js +1 -1
  225. package/dist/components/NewSelect/components/OptionsSelect/types.d.ts +22 -22
  226. package/dist/components/NewSelect/components/SelectInputSearch/index.d.ts +3 -3
  227. package/dist/components/NewSelect/components/SelectInputSearch/types.d.ts +3 -3
  228. package/dist/components/NewSelect/components/SelectItem/index.d.ts +3 -3
  229. package/dist/components/NewSelect/components/SelectItem/styles.d.ts +8 -8
  230. package/dist/components/NewSelect/components/SelectItem/types.d.ts +2 -2
  231. package/dist/components/NewSelect/index.d.ts +3 -3
  232. package/dist/components/NewSelect/multiple/index.d.ts +3 -3
  233. package/dist/components/NewSelect/newSelect.test.d.ts +1 -1
  234. package/dist/components/NewSelect/single/index.d.ts +3 -3
  235. package/dist/components/NewSelect/styles.d.ts +24 -24
  236. package/dist/components/NewSelect/styles.d.ts.map +1 -1
  237. package/dist/components/NewSelect/styles.js +1 -4
  238. package/dist/components/NewSelect/types.d.ts +44 -44
  239. package/dist/components/Observer/index.d.ts +6 -6
  240. package/dist/components/Observer/observer.test.d.ts +1 -1
  241. package/dist/components/Observer/types.d.ts +6 -6
  242. package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
  243. package/dist/components/Pagination/index.d.ts +3 -3
  244. package/dist/components/Pagination/index.d.ts.map +1 -1
  245. package/dist/components/Pagination/index.js +2 -9
  246. package/dist/components/Pagination/pagination.test.d.ts +1 -1
  247. package/dist/components/Pagination/styles.d.ts +34 -34
  248. package/dist/components/Pagination/types.d.ts +28 -28
  249. package/dist/components/Progress/Circle/index.d.ts +3 -3
  250. package/dist/components/Progress/Circle/styles.d.ts +27 -27
  251. package/dist/components/Progress/Circle/types.d.ts +18 -18
  252. package/dist/components/Progress/Linear/index.d.ts +3 -3
  253. package/dist/components/Progress/Linear/styles.d.ts +15 -15
  254. package/dist/components/Progress/Linear/types.d.ts +13 -13
  255. package/dist/components/Progress/getSteps.d.ts +1 -1
  256. package/dist/components/Progress/index.d.ts +4 -4
  257. package/dist/components/Progress/progress.test.d.ts +1 -1
  258. package/dist/components/Progress/types.d.ts +27 -27
  259. package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
  260. package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
  261. package/dist/components/RadioInput/components/ChoiceList/index.js +3 -2
  262. package/dist/components/RadioInput/index.d.ts +4 -4
  263. package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
  264. package/dist/components/RadioInput/styles.d.ts +33 -30
  265. package/dist/components/RadioInput/styles.d.ts.map +1 -1
  266. package/dist/components/RadioInput/styles.js +16 -5
  267. package/dist/components/RadioInput/types.d.ts +27 -26
  268. package/dist/components/RadioInput/types.d.ts.map +1 -1
  269. package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
  270. package/dist/components/Rating/index.d.ts +3 -3
  271. package/dist/components/Rating/rating.test.d.ts +1 -1
  272. package/dist/components/Rating/styles.d.ts +18 -18
  273. package/dist/components/Rating/types.d.ts +19 -19
  274. package/dist/components/ReactPortal/index.d.ts +7 -7
  275. package/dist/components/ReactPortal/reactPortal.test.d.ts +1 -1
  276. package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.d.ts +1 -1
  277. package/dist/components/Select/components/OptionsSelect/index.d.ts +3 -3
  278. package/dist/components/Select/components/OptionsSelect/styles.d.ts +268 -268
  279. package/dist/components/Select/components/OptionsSelect/styles.js +1 -1
  280. package/dist/components/Select/components/OptionsSelect/types.d.ts +17 -17
  281. package/dist/components/Select/index.d.ts +4 -4
  282. package/dist/components/Select/select.test.d.ts +1 -1
  283. package/dist/components/Select/styles.d.ts +20 -20
  284. package/dist/components/Select/styles.d.ts.map +1 -1
  285. package/dist/components/Select/styles.js +2 -2
  286. package/dist/components/Select/types.d.ts +26 -26
  287. package/dist/components/Skeleton/index.d.ts +4 -4
  288. package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
  289. package/dist/components/Skeleton/styles.d.ts +7 -7
  290. package/dist/components/Skeleton/styles.d.ts.map +1 -1
  291. package/dist/components/Skeleton/styles.js +2 -8
  292. package/dist/components/Skeleton/types.d.ts +40 -40
  293. package/dist/components/Slider/SliderExample.d.ts +3 -3
  294. package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
  295. package/dist/components/Slider/components/SliderPointer.d.ts.map +1 -1
  296. package/dist/components/Slider/components/SliderPointer.js +2 -1
  297. package/dist/components/Slider/components/SliderRail.d.ts +3 -3
  298. package/dist/components/Slider/components/SliderSelector.d.ts +17 -17
  299. package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
  300. package/dist/components/Slider/index.d.ts +19 -19
  301. package/dist/components/Slider/slider.test.d.ts +1 -1
  302. package/dist/components/Slider/styles.d.ts +65 -65
  303. package/dist/components/Slider/styles.d.ts.map +1 -1
  304. package/dist/components/Slider/styles.js +2 -2
  305. package/dist/components/Slider/types.d.ts +40 -40
  306. package/dist/components/Spinner/index.d.ts +4 -4
  307. package/dist/components/Spinner/spinner.test.d.ts +1 -1
  308. package/dist/components/Spinner/styles.d.ts +456 -288
  309. package/dist/components/Spinner/styles.d.ts.map +1 -1
  310. package/dist/components/Spinner/styles.js +1 -1
  311. package/dist/components/Spinner/types.d.ts +11 -11
  312. package/dist/components/Steps/components/StepIcon/index.d.ts +3 -3
  313. package/dist/components/Steps/components/StepIcon/styles.d.ts +22 -22
  314. package/dist/components/Steps/components/StepIcon/types.d.ts +15 -15
  315. package/dist/components/Steps/components/StepIcon/utils.d.ts +4 -4
  316. package/dist/components/Steps/index.d.ts +4 -4
  317. package/dist/components/Steps/steps.test.d.ts +1 -1
  318. package/dist/components/Steps/styles.d.ts +47 -47
  319. package/dist/components/Steps/styles.d.ts.map +1 -1
  320. package/dist/components/Steps/styles.js +3 -9
  321. package/dist/components/Steps/types.d.ts +20 -20
  322. package/dist/components/Steps/utils.d.ts +8 -8
  323. package/dist/components/Switch/index.d.ts +4 -4
  324. package/dist/components/Switch/styles.d.ts +18 -18
  325. package/dist/components/Switch/styles.d.ts.map +1 -1
  326. package/dist/components/Switch/styles.js +2 -4
  327. package/dist/components/Switch/switch.test.d.ts +1 -1
  328. package/dist/components/Switch/types.d.ts +14 -14
  329. package/dist/components/Table/components/MenuItem.d.ts +3 -3
  330. package/dist/components/Table/components/TableSkeleton.d.ts +3 -3
  331. package/dist/components/Table/index.d.ts +3 -3
  332. package/dist/components/Table/index.d.ts.map +1 -1
  333. package/dist/components/Table/index.js +1 -5
  334. package/dist/components/Table/styles.d.ts +34 -34
  335. package/dist/components/Table/styles.d.ts.map +1 -1
  336. package/dist/components/Table/styles.js +4 -52
  337. package/dist/components/Table/table.test.d.ts +1 -1
  338. package/dist/components/Table/types.d.ts +53 -53
  339. package/dist/components/Tabs/TabsExample.d.ts +3 -3
  340. package/dist/components/Tabs/components/Tab.d.ts +3 -3
  341. package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
  342. package/dist/components/Tabs/components/Tabs.d.ts +4 -4
  343. package/dist/components/Tabs/index.d.ts +3 -3
  344. package/dist/components/Tabs/styles.d.ts +41 -41
  345. package/dist/components/Tabs/styles.d.ts.map +1 -1
  346. package/dist/components/Tabs/styles.js +2 -1
  347. package/dist/components/Tabs/tabs.test.d.ts +1 -1
  348. package/dist/components/Tabs/types.d.ts +50 -50
  349. package/dist/components/Tag/index.d.ts +4 -4
  350. package/dist/components/Tag/index.d.ts.map +1 -1
  351. package/dist/components/Tag/index.js +6 -3
  352. package/dist/components/Tag/styles.d.ts +1374 -869
  353. package/dist/components/Tag/styles.d.ts.map +1 -1
  354. package/dist/components/Tag/styles.js +5 -4
  355. package/dist/components/Tag/tag.test.d.ts +1 -1
  356. package/dist/components/Tag/types.d.ts +10 -9
  357. package/dist/components/Tag/types.d.ts.map +1 -1
  358. package/dist/components/TextAreaInput/index.d.ts +4 -4
  359. package/dist/components/TextAreaInput/styles.d.ts +18 -18
  360. package/dist/components/TextAreaInput/styles.d.ts.map +1 -1
  361. package/dist/components/TextAreaInput/styles.js +3 -6
  362. package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
  363. package/dist/components/TextAreaInput/types.d.ts +26 -26
  364. package/dist/components/Thumbnail/index.d.ts +3 -3
  365. package/dist/components/Thumbnail/index.d.ts.map +1 -1
  366. package/dist/components/Thumbnail/index.js +7 -56
  367. package/dist/components/Thumbnail/styles.d.ts +38 -38
  368. package/dist/components/Thumbnail/styles.d.ts.map +1 -1
  369. package/dist/components/Thumbnail/styles.js +17 -27
  370. package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
  371. package/dist/components/Thumbnail/types.d.ts +20 -28
  372. package/dist/components/Thumbnail/types.d.ts.map +1 -1
  373. package/dist/components/Thumbnail/utils/index.d.ts +2 -2
  374. package/dist/components/Thumbnail/utils/validate-file-size.d.ts +1 -1
  375. package/dist/components/Thumbnail/utils/validate-file-type.d.ts +1 -1
  376. package/dist/components/TimeInput/constants.d.ts +4 -4
  377. package/dist/components/TimeInput/index.d.ts +4 -4
  378. package/dist/components/TimeInput/styles.d.ts +16 -16
  379. package/dist/components/TimeInput/styles.d.ts.map +1 -1
  380. package/dist/components/TimeInput/styles.js +7 -1
  381. package/dist/components/TimeInput/types.d.ts +4 -4
  382. package/dist/components/TimeInput/utils.d.ts +9 -9
  383. package/dist/components/Timeline/components/Timeline.d.ts +3 -3
  384. package/dist/components/Timeline/components/Timeline.d.ts.map +1 -1
  385. package/dist/components/Timeline/components/Timeline.js +3 -16
  386. package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
  387. package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
  388. package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
  389. package/dist/components/Timeline/index.d.ts +4 -4
  390. package/dist/components/Timeline/styles.d.ts +31 -31
  391. package/dist/components/Timeline/styles.d.ts.map +1 -1
  392. package/dist/components/Timeline/styles.js +5 -5
  393. package/dist/components/Timeline/timeline.test.d.ts +1 -1
  394. package/dist/components/Timeline/timeline.test.js +0 -2
  395. package/dist/components/Timeline/types.d.ts +19 -20
  396. package/dist/components/Timeline/types.d.ts.map +1 -1
  397. package/dist/components/Toast/button-example.d.ts +6 -6
  398. package/dist/components/Toast/components/Toast.d.ts +4 -4
  399. package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
  400. package/dist/components/Toast/hooks/useToast.d.ts +2 -2
  401. package/dist/components/Toast/index.d.ts +3 -3
  402. package/dist/components/Toast/styles.d.ts +22 -22
  403. package/dist/components/Toast/toast.test.d.ts +1 -1
  404. package/dist/components/Toast/types.d.ts +29 -29
  405. package/dist/components/Tooltip/components/TooltipLabel.d.ts +12 -12
  406. package/dist/components/Tooltip/components/TooltipLabel.d.ts.map +1 -1
  407. package/dist/components/Tooltip/components/TooltipLabel.js +5 -5
  408. package/dist/components/Tooltip/example.d.ts +2 -2
  409. package/dist/components/Tooltip/index.d.ts +4 -4
  410. package/dist/components/Tooltip/index.d.ts.map +1 -1
  411. package/dist/components/Tooltip/index.js +5 -1
  412. package/dist/components/Tooltip/styles.d.ts +13 -13
  413. package/dist/components/Tooltip/styles.d.ts.map +1 -1
  414. package/dist/components/Tooltip/styles.js +2 -4
  415. package/dist/components/Tooltip/types.d.ts +26 -26
  416. package/dist/components/Typography/index.d.ts +4 -4
  417. package/dist/components/Typography/index.d.ts.map +1 -1
  418. package/dist/components/Typography/index.js +4 -5
  419. package/dist/components/Typography/styles.d.ts +21 -21
  420. package/dist/components/Typography/types.d.ts +16 -16
  421. package/dist/components/Typography/typography.test.d.ts +1 -1
  422. package/dist/index.d.ts +66 -65
  423. package/dist/index.d.ts.map +1 -1
  424. package/dist/index.js +9 -1
  425. package/dist/shared/animations/opacityAnimation.d.ts +2 -2
  426. package/dist/shared/assets/emotes.d.ts +5007 -5007
  427. package/dist/shared/components/FocusLock/index.d.ts +7 -7
  428. package/dist/shared/formatters/format-number.d.ts +5 -5
  429. package/dist/shared/formatters/types.d.ts +5 -5
  430. package/dist/shared/hooks/devices.d.ts +8 -8
  431. package/dist/shared/hooks/useBreakpoints.d.ts +25 -25
  432. package/dist/shared/hooks/useDebounce.d.ts +1 -1
  433. package/dist/shared/hooks/useDevices.d.ts +8 -8
  434. package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
  435. package/dist/shared/hooks/useDraggableScroll/index.d.ts +9 -9
  436. package/dist/shared/hooks/useDraggableScroll/types.d.ts +5 -5
  437. package/dist/shared/hooks/useKeyPress.d.ts +1 -1
  438. package/dist/shared/hooks/useObserver.d.ts +10 -10
  439. package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
  440. package/dist/shared/hooks/useReposition/index.d.ts +3 -3
  441. package/dist/shared/hooks/useReposition/types.d.ts +29 -29
  442. package/dist/shared/hooks/useSystemTheme.d.ts +2 -0
  443. package/dist/shared/hooks/useSystemTheme.d.ts.map +1 -0
  444. package/dist/shared/hooks/useSystemTheme.js +33 -0
  445. package/dist/shared/hooks/useWindowSize.d.ts +8 -8
  446. package/dist/shared/tests/test-utils.d.ts +4 -4
  447. package/dist/shared/tests/types.d.ts +4 -4
  448. package/dist/shared/theme/button-example.d.ts +2 -2
  449. package/dist/shared/theme/contexts/ThemeContext.d.ts +15 -15
  450. package/dist/shared/theme/contexts/ThemeContext.d.ts.map +1 -1
  451. package/dist/shared/theme/contexts/ThemeContext.js +36 -16
  452. package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
  453. package/dist/shared/theme/hooks/useColorMode.js +1 -1
  454. package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
  455. package/dist/shared/theme/hooks/useTheme.d.ts +452 -284
  456. package/dist/shared/theme/hooks/useTheme.d.ts.map +1 -1
  457. package/dist/shared/theme/index.d.ts +7 -7
  458. package/dist/shared/theme/objects/breakpoints.d.ts +9 -0
  459. package/dist/shared/theme/objects/breakpoints.d.ts.map +1 -0
  460. package/dist/shared/theme/objects/breakpoints.js +15 -0
  461. package/dist/shared/theme/objects/colors.d.ts +171 -0
  462. package/dist/shared/theme/objects/colors.d.ts.map +1 -0
  463. package/dist/shared/theme/objects/colors.js +177 -0
  464. package/dist/shared/theme/objects/shadows.d.ts +13 -0
  465. package/dist/shared/theme/objects/shadows.d.ts.map +1 -0
  466. package/dist/shared/theme/objects/shadows.js +19 -0
  467. package/dist/shared/theme/objects/sizes.d.ts +23 -0
  468. package/dist/shared/theme/objects/sizes.d.ts.map +1 -0
  469. package/dist/shared/theme/objects/sizes.js +33 -0
  470. package/dist/shared/theme/objects/spaces.d.ts +131 -0
  471. package/dist/shared/theme/objects/spaces.d.ts.map +1 -0
  472. package/dist/shared/theme/objects/spaces.js +75 -0
  473. package/dist/shared/theme/objects/transitions.d.ts +4 -0
  474. package/dist/shared/theme/objects/transitions.d.ts.map +1 -0
  475. package/dist/shared/theme/objects/transitions.js +10 -0
  476. package/dist/shared/theme/objects/typography.d.ts +14 -0
  477. package/dist/shared/theme/objects/typography.d.ts.map +1 -0
  478. package/dist/shared/theme/objects/typography.js +20 -0
  479. package/dist/shared/theme/objects/z-indexes.d.ts +14 -0
  480. package/dist/shared/theme/objects/z-indexes.d.ts.map +1 -0
  481. package/dist/shared/theme/objects/z-indexes.js +20 -0
  482. package/dist/shared/theme/theme.d.ts +450 -282
  483. package/dist/shared/theme/theme.d.ts.map +1 -1
  484. package/dist/shared/theme/theme.js +19 -225
  485. package/dist/shared/theme/theme.test.d.ts +1 -1
  486. package/dist/shared/theme/theme.types.d.ts +22 -14
  487. package/dist/shared/theme/theme.types.d.ts.map +1 -1
  488. package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
  489. package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
  490. package/dist/shared/types/credit-card.d.ts +5 -5
  491. package/dist/shared/types/file.d.ts +11 -11
  492. package/dist/shared/types/name.d.ts +3 -3
  493. package/dist/shared/types/phone.d.ts +7 -7
  494. package/dist/utils/GenerateKey.d.ts +10 -10
  495. package/dist/utils/brightnessColorChange.d.ts +8 -8
  496. package/dist/utils/colorCheck.d.ts +40 -40
  497. package/dist/utils/colorFunctions.d.ts +2 -2
  498. package/dist/utils/colorToGray.d.ts +5 -5
  499. package/dist/utils/customColorMode.d.ts +2 -0
  500. package/dist/utils/customColorMode.d.ts.map +1 -0
  501. package/dist/utils/customColorMode.js +11 -0
  502. package/dist/utils/file.d.ts +26 -26
  503. package/dist/utils/formatters/bytes.d.ts +7 -7
  504. package/dist/utils/formatters/capitalize.d.ts +6 -6
  505. package/dist/utils/formatters/cep.d.ts +12 -12
  506. package/dist/utils/formatters/cnpj.d.ts +18 -18
  507. package/dist/utils/formatters/color.d.ts +15 -15
  508. package/dist/utils/formatters/cpf.d.ts +18 -18
  509. package/dist/utils/formatters/credit-card.d.ts +26 -26
  510. package/dist/utils/formatters/email.d.ts +1 -1
  511. package/dist/utils/formatters/index.d.ts +15 -15
  512. package/dist/utils/formatters/name.d.ts +20 -20
  513. package/dist/utils/formatters/number.d.ts +6 -6
  514. package/dist/utils/formatters/passport.d.ts +24 -24
  515. package/dist/utils/formatters/phone.d.ts +71 -71
  516. package/dist/utils/formatters/price.d.ts +11 -11
  517. package/dist/utils/formatters/rg.d.ts +12 -12
  518. package/dist/utils/formatters/strings.d.ts +19 -19
  519. package/dist/utils/fuctionsColors.d.ts +2 -2
  520. package/dist/utils/generateUUID.d.ts +1 -1
  521. package/dist/utils/getColorValue.d.ts +12 -12
  522. package/dist/utils/getSvg.d.ts +10 -10
  523. package/dist/utils/getValuesBySize.d.ts +6 -6
  524. package/dist/utils/invertColor.d.ts +7 -7
  525. package/package.json +9 -3
  526. package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts +0 -5
  527. package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts.map +0 -1
  528. package/dist/components/Illustration/AlternativeOrderSvg/index.js +0 -107
  529. package/dist/components/Illustration/BoletoSvg/index.d.ts +0 -5
  530. package/dist/components/Illustration/BoletoSvg/index.d.ts.map +0 -1
  531. package/dist/components/Illustration/BoletoSvg/index.js +0 -168
  532. package/dist/components/Illustration/BoxClosedSvg/index.d.ts +0 -5
  533. package/dist/components/Illustration/BoxClosedSvg/index.d.ts.map +0 -1
  534. package/dist/components/Illustration/BoxClosedSvg/index.js +0 -99
  535. package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +0 -5
  536. package/dist/components/Illustration/BoxDeliverySvg/index.d.ts.map +0 -1
  537. package/dist/components/Illustration/BoxDeliverySvg/index.js +0 -111
  538. package/dist/components/Illustration/BoxOpenSvg/index.d.ts +0 -5
  539. package/dist/components/Illustration/BoxOpenSvg/index.d.ts.map +0 -1
  540. package/dist/components/Illustration/BoxOpenSvg/index.js +0 -108
  541. package/dist/components/Illustration/CalendarSvg/index.d.ts +0 -5
  542. package/dist/components/Illustration/CalendarSvg/index.d.ts.map +0 -1
  543. package/dist/components/Illustration/CalendarSvg/index.js +0 -109
  544. package/dist/components/Illustration/CardSvg/index.d.ts +0 -5
  545. package/dist/components/Illustration/CardSvg/index.d.ts.map +0 -1
  546. package/dist/components/Illustration/CardSvg/index.js +0 -110
  547. package/dist/components/Illustration/CollaboratorSvg/index.d.ts +0 -5
  548. package/dist/components/Illustration/CollaboratorSvg/index.d.ts.map +0 -1
  549. package/dist/components/Illustration/CollaboratorSvg/index.js +0 -99
  550. package/dist/components/Illustration/InquirySvg/index.d.ts +0 -5
  551. package/dist/components/Illustration/InquirySvg/index.d.ts.map +0 -1
  552. package/dist/components/Illustration/InquirySvg/index.js +0 -219
  553. package/dist/components/Illustration/OrderSvg/index.d.ts +0 -5
  554. package/dist/components/Illustration/OrderSvg/index.d.ts.map +0 -1
  555. package/dist/components/Illustration/OrderSvg/index.js +0 -135
  556. package/dist/components/Illustration/PixSvg/index.d.ts +0 -5
  557. package/dist/components/Illustration/PixSvg/index.d.ts.map +0 -1
  558. package/dist/components/Illustration/PixSvg/index.js +0 -93
  559. package/dist/components/Illustration/PrescriptionSvg/index.d.ts +0 -5
  560. package/dist/components/Illustration/PrescriptionSvg/index.d.ts.map +0 -1
  561. package/dist/components/Illustration/PrescriptionSvg/index.js +0 -81
  562. package/dist/components/Illustration/TransportSvg/index.d.ts +0 -5
  563. package/dist/components/Illustration/TransportSvg/index.d.ts.map +0 -1
  564. package/dist/components/Illustration/TransportSvg/index.js +0 -102
  565. package/dist/components/NewSelect/components/OptionsSelect/index.d.ts +0 -4
  566. package/dist/components/NewSelect/components/OptionsSelect/index.d.ts.map +0 -1
  567. package/dist/components/NewSelect/components/OptionsSelect/index.js +0 -56
  568. package/dist/components/Steps/components/StepIconMobile/index.d.ts +0 -4
  569. package/dist/components/Steps/components/StepIconMobile/index.d.ts.map +0 -1
  570. package/dist/components/Steps/components/StepIconMobile/index.js +0 -126
@@ -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 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/styles.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,0BAA0B;;;;gBACzB,OAAO;yGAkBpB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;yGAG/B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;yGAM5B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;yGAsBjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;qHAqBlC,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAE1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;uIAc/B,CAAC;AACF,eAAO,MAAM,kBAAkB;;;;;mHAkB9B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;+HA8J/B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;gIAGnC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;yGAGnC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;yGAG9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;yGAsC9B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/styles.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,0BAA0B;;;;gBACzB,OAAO;yGAkBpB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;yGAG/B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;yGAM5B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;yGAsBjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;qHAqBlC,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAE1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;uIAc/B,CAAC;AACF,eAAO,MAAM,kBAAkB;;;;;mHAkB9B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;+HA2J/B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;gIAGnC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;yGAGnC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;yGAG9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;yGAkC9B,CAAC"}
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.DateYearPickerContainer = exports.DateYearPickerCell = exports.DateYearPickerBody = exports.DatePickerTableRow = exports.DatePickerTableCellSpan = exports.DatePickerTableCell = exports.DatePickerHeaderTitle = exports.DatePickerHeaderButton = exports.DatePickerHeader = exports.DatePickerContentContainer = exports.DatePickerContainer = exports.DatePickerBodyTable = exports.DatePickerBody = void 0;
7
7
  var _styled = _interopRequireDefault(require("@emotion/styled"));
8
8
  var _colorCheck = require("../../utils/colorCheck");
9
- var _colorToGray = require("../../utils/colorToGray");
10
9
  var _getColorValue = require("../../utils/getColorValue");
11
10
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
12
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -52,15 +51,15 @@ exports.DatePickerTableRow = DatePickerTableRow;
52
51
  var DatePickerTableCell = _styled.default.td(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: relative;\n height: 0;\n padding: 12px;\n text-align: center;\n font-family: inherit;\n font-size: 0.75rem;\n font-weight: 600;\n border-radius: 50%;\n cursor: pointer;\n background-color: ", ";\n\n color: ", ";\n\n user-select: none;\n\n transition: background 150ms ease;\n\n ", "\n\n ", "\n\n ", "\n\n &:hover {\n background-color: ", ";\n }\n\n ", "\n\n &.is-current[aria-selected='false']:before {\n border-radius: 0 50% 50% 0 !important;\n }\n\n &.is-current[aria-selected='true']:before {\n display: none;\n }\n"])), function (props) {
53
52
  return !props.isPrevNextMonth && !props.disabled && props.showSelectedDate && (props.isSelected || props.isEndDateOfRange) ? (0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme) : 'transparent';
54
53
  }, function (props) {
55
- return props.isPrevNextMonth ? props.theme.colors.neutral.neutral2 : props.isSelected || props.isEndDateOfRange ? !props.showSelectedDate ? props.theme.colors.neutral.black : props.theme.colors.body.light : props['aria-selected'] ? (0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme) : props.theme.colors.neutral.black;
54
+ return props.isPrevNextMonth ? props.theme.colors.neutral.neutral2 : props.isSelected || props.isEndDateOfRange ? !props.showSelectedDate ? props.theme.colors.neutral.black : props.theme.lightColors.neutral.white : props['aria-selected'] ? (0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme) : props.theme.colors.neutral.black;
56
55
  }, function (props) {
57
56
  return props.disabled && "\n pointer-events: none;\n cursor: default;\n color: ".concat(props.theme.colors.neutral.neutral1, ";\n ");
58
57
  }, function (props) {
59
58
  return props.isToday && !props.isSelected && !props.isEndDateOfRange && "\n &:after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n border: solid 1px ".concat(props.theme.colors.neutral.neutral2, ";\n transform: translate(-50%, -50%);\n }\n ");
60
59
  }, function (props) {
61
- return !props.isTheSameDate && (props.isInTheRange || props.isEndDateOfRange || props.isStartDateOfRange) && "\n \n &:before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 96%;\n border-radius: ".concat(props.isStartDateOfRange ? '50% 0 0 50% !important' : props.isEndDateOfRange ? '0 50% 50% 0 !important' : props.isFirstDayOfMonth ? '4px 0 0 4px' : props.isLastDayOfMonth ? '0 4px 4px 0' : '0', ";\n \n background-color: ").concat(!props.isPrevNextMonth && !props.disabled ? (0, _colorCheck.parseHexColorToRgba)((0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme), 0.1) : 'transparent', "; \n transform: translate(-50%, -50%);\n }\n ");
60
+ return !props.isTheSameDate && (props.isInTheRange || props.isEndDateOfRange || props.isStartDateOfRange) && "\n \n &:before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n height: 96%;\n border-radius: ".concat(props.isStartDateOfRange ? '50% 0 0 50% !important' : props.isEndDateOfRange ? '0 50% 50% 0 !important' : props.isFirstDayOfMonth ? '4px 0 0 4px' : props.isLastDayOfMonth ? '0 4px 4px 0' : '0', ";\n \n background-color: ").concat(!props.isPrevNextMonth && !props.disabled ? (0, _colorCheck.parseHexColorToRgba)((0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme), 0.1) : 'transparent', "; \n\n transform: translate(-50%, -50%);\n }\n ");
62
61
  }, function (props) {
63
- return !props.isSelected && !props.isEndDateOfRange && (0, _colorCheck.parseHslColorToString)((0, _colorToGray.convertColor)((0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme)).neutral1);
62
+ return !props.isSelected && !props.isEndDateOfRange && props.theme.colors.neutral.neutral1;
64
63
  }, function (props) {
65
64
  return (props['aria-selected'] !== 'true' || props.isStartDateOfRange || props.isFirstDayOfMonth || props.isSelected || props.isLastDayOfMonth) && "\n &.is-hover {\n &:before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n border-radius: ".concat(props.isStartDateOfRange ? '50% 0 0 50% !important' : props.isEndDateOfRange ? '50%' : props.isFirstDayOfMonth ? '4px 0 0 4px' : props.isLastDayOfMonth ? '0 4px 4px 0' : '0', ";\n height: 96%;\n background-color: ").concat(!props.isPrevNextMonth && !props.disabled && (0, _colorCheck.parseHexColorToRgba)((0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme), 0.1), "; \n transform: translate(-50%, -50%);\n }\n }\n }");
66
65
  });
@@ -84,6 +83,6 @@ var DateYearPickerCell = _styled.default.div(_templateObject13 || (_templateObje
84
83
  }, function (props) {
85
84
  return props.isSelected && "\n background-color: ".concat((0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme), ";\n color: white;\n ");
86
85
  }, function (props) {
87
- return !props.isSelected && (0, _colorCheck.parseHslColorToString)((0, _colorToGray.convertColor)((0, _getColorValue.getColorValue)(props.theme.colorSelected, props.theme)).neutral1);
86
+ return !props.isSelected && props.theme.colors.neutral.neutral1;
88
87
  });
89
88
  exports.DateYearPickerCell = DateYearPickerCell;
@@ -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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/index.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAUvC,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,OAAO,GACR,EAAE,YAAY,eA0Fd"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/index.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAOvC,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,OAAO,GACR,EAAE,YAAY,eA+Ed"}
@@ -10,12 +10,11 @@ var _Icon = _interopRequireDefault(require("../Icon"));
10
10
  var _Typography = _interopRequireDefault(require("../Typography"));
11
11
  var _styles = require("./styles");
12
12
  var _useDevices = require("../../shared/hooks/useDevices");
13
- var _getColorValue = require("../../utils/getColorValue");
14
- var _react = require("@emotion/react");
15
- var _invertColor = require("../../utils/invertColor");
16
13
  var _colorCheck = require("../../utils/colorCheck");
14
+ var _theme = require("../../shared/theme");
17
15
  var _jsxRuntime = require("react/jsx-runtime");
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+ /* eslint-disable no-console */
19
18
  // Components
20
19
 
21
20
  // Styles
@@ -35,10 +34,11 @@ function Dialog(_ref) {
35
34
  backgroundColor = _ref.backgroundColor,
36
35
  contentColor = _ref.contentColor,
37
36
  onClose = _ref.onClose;
38
- var theme = (0, _react.useTheme)();
37
+ var _useTheme = (0, _theme.useTheme)(),
38
+ theme = _useTheme.theme;
39
39
  var isMobile = (0, _useDevices.useDevices)('mobile');
40
- var backgroundColorValue = (0, _getColorValue.getColorValue)(backgroundColor || (theme.colorMode === 'dark' ? 'neutral.neutral6' : 'body.light'), theme);
41
- var contentColorValue = (0, _getColorValue.getColorValue)(contentColor || '', theme, ' ');
40
+ var backgroundColorValue = backgroundColor ? (0, _colorCheck.stripThemeColors)(backgroundColor, theme.colors) || backgroundColor : theme.colors.neutral.white;
41
+ var contentColorValue = contentColor ? (0, _colorCheck.stripThemeColors)(contentColor, theme.colors) || contentColor : theme.colors.neutral.black;
42
42
  var isHidden = !open;
43
43
  var tabIndex = isHidden ? -1 : 0;
44
44
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.Modal, {
@@ -61,7 +61,7 @@ function Dialog(_ref) {
61
61
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
62
62
  name: "x",
63
63
  size: 24,
64
- color: contentColorValue || theme.colorMode === 'dark' ? 'neutral.neutral3' : 'neutral.neutral1'
64
+ color: theme.colors.neutral.neutral4
65
65
  })
66
66
  }), !!illustration && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
67
67
  name: illustration,
@@ -94,7 +94,6 @@ function Dialog(_ref) {
94
94
  tabIndex: tabIndex,
95
95
  "aria-hidden": isHidden,
96
96
  onClick: cancelButton.handler,
97
- secondaryButtonColor: (0, _colorCheck.parseHexColorToRgba)((0, _invertColor.invertColor)(backgroundColorValue, true), 0.5),
98
97
  children: cancelButton.label
99
98
  })]
100
99
  })]
@@ -1,26 +1,24 @@
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
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
26
24
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,SAAS;;;;cACV,OAAO;kBACH,OAAO;qBACJ,MAAM;kBACT,MAAM;yGAkEpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;qHAavB,CAAC;AAEF,eAAO,MAAM,aAAa;;;0IAuBzB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;qHAuB3B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,SAAS;;;;cACV,OAAO;kBACH,OAAO;qBACJ,MAAM;kBACT,MAAM;yGAkEpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;qHAavB,CAAC;AAEF,eAAO,MAAM,aAAa;;;0IAwBzB,CAAC;AAEF,eAAO,MAAM,eAAe;;;qHAmB3B,CAAC"}