@pedidopago/ui 1.6.9 → 1.6.11

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 (411) hide show
  1. package/dist/@types/index.d.ts +1 -1
  2. package/dist/@types/index.d.ts.map +1 -1
  3. package/dist/components/Alert/alert.test.js +4 -11
  4. package/dist/components/Alert/index.js +9 -16
  5. package/dist/components/Alert/styles.js +0 -16
  6. package/dist/components/Alert/types.d.ts +2 -2
  7. package/dist/components/Alert/types.d.ts.map +1 -1
  8. package/dist/components/Avatar/avatar.test.js +4 -11
  9. package/dist/components/Avatar/index.js +15 -38
  10. package/dist/components/Avatar/styles.js +0 -16
  11. package/dist/components/Avatar/types.d.ts +2 -2
  12. package/dist/components/Avatar/types.d.ts.map +1 -1
  13. package/dist/components/Badge/badge.test.js +5 -16
  14. package/dist/components/Badge/index.js +5 -9
  15. package/dist/components/Badge/styles.js +1 -11
  16. package/dist/components/Badge/types.d.ts +3 -3
  17. package/dist/components/Badge/types.d.ts.map +1 -1
  18. package/dist/components/Button/Button.test.js +14 -32
  19. package/dist/components/Button/index.js +21 -37
  20. package/dist/components/Button/styles.js +6 -35
  21. package/dist/components/Button/types.d.ts +4 -4
  22. package/dist/components/Button/types.d.ts.map +1 -1
  23. package/dist/components/Card/card.test.js +8 -15
  24. package/dist/components/Card/index.js +15 -24
  25. package/dist/components/Card/styles.js +0 -8
  26. package/dist/components/Card/types.d.ts +2 -2
  27. package/dist/components/Card/types.d.ts.map +1 -1
  28. package/dist/components/CheckboxInput/checkbox-input.test.js +65 -89
  29. package/dist/components/CheckboxInput/components/MultipleCheckbox.js +27 -58
  30. package/dist/components/CheckboxInput/index.js +20 -41
  31. package/dist/components/CheckboxInput/styles.js +9 -33
  32. package/dist/components/CheckboxInput/types.d.ts +1 -1
  33. package/dist/components/CheckboxInput/types.d.ts.map +1 -1
  34. package/dist/components/CollapseCard/ExpandButton/index.js +3 -11
  35. package/dist/components/CollapseCard/ExpandButton/styles.d.ts +4 -2
  36. package/dist/components/CollapseCard/ExpandButton/styles.d.ts.map +1 -1
  37. package/dist/components/CollapseCard/ExpandButton/styles.js +0 -6
  38. package/dist/components/CollapseCard/expand-button.test.js +71 -110
  39. package/dist/components/CollapseCard/index.js +23 -44
  40. package/dist/components/CollapseCard/styles.d.ts +4 -1
  41. package/dist/components/CollapseCard/styles.d.ts.map +1 -1
  42. package/dist/components/CollapseCard/styles.js +0 -9
  43. package/dist/components/ColorPicker/colorpicker.test.js +6 -16
  44. package/dist/components/ColorPicker/components/ColorHue.js +1 -12
  45. package/dist/components/ColorPicker/components/ColorInput.js +10 -31
  46. package/dist/components/ColorPicker/components/ColorPickerBox.js +5 -17
  47. package/dist/components/ColorPicker/components/ColorPointer.js +3 -8
  48. package/dist/components/ColorPicker/components/ColorSelector.js +45 -77
  49. package/dist/components/ColorPicker/hooks/useCachedCallback.js +0 -3
  50. package/dist/components/ColorPicker/hooks/useHsva.js +7 -20
  51. package/dist/components/ColorPicker/index.js +18 -41
  52. package/dist/components/ColorPicker/styles.js +0 -24
  53. package/dist/components/ColorPicker/types.d.ts +11 -11
  54. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  55. package/dist/components/ColorPicker/utils/checkers.js +0 -19
  56. package/dist/components/ColorPicker/utils/conversors.js +41 -88
  57. package/dist/components/ColorPicker/utils/parsers.js +11 -40
  58. package/dist/components/DateInput/DateInput-example.js +14 -23
  59. package/dist/components/DateInput/components/ModalWrapper/index.js +8 -12
  60. package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +4 -1
  61. package/dist/components/DateInput/components/ModalWrapper/styles.d.ts.map +1 -1
  62. package/dist/components/DateInput/components/ModalWrapper/styles.js +1 -12
  63. package/dist/components/DateInput/dateInput.test.js +17 -26
  64. package/dist/components/DateInput/index.js +32 -54
  65. package/dist/components/DateInput/styles.js +0 -9
  66. package/dist/components/DateInput/types.d.ts +1 -1
  67. package/dist/components/DateInput/types.d.ts.map +1 -1
  68. package/dist/components/DatePicker/components/DatePickerContent.d.ts +1 -1
  69. package/dist/components/DatePicker/components/DatePickerContent.d.ts.map +1 -1
  70. package/dist/components/DatePicker/components/DatePickerContent.js +19 -43
  71. package/dist/components/DatePicker/components/DateYearPicker.js +11 -31
  72. package/dist/components/DatePicker/datepicker.test.js +44 -62
  73. package/dist/components/DatePicker/index.d.ts +1 -1
  74. package/dist/components/DatePicker/index.d.ts.map +1 -1
  75. package/dist/components/DatePicker/index.js +74 -118
  76. package/dist/components/DatePicker/styles.js +2 -35
  77. package/dist/components/DatePicker/types.d.ts +4 -4
  78. package/dist/components/DatePicker/types.d.ts.map +1 -1
  79. package/dist/components/DatePicker/utils/getMonthName.js +0 -2
  80. package/dist/components/Dialog/dialog-example.js +9 -22
  81. package/dist/components/Dialog/dialog.test.js +32 -45
  82. package/dist/components/Dialog/index.js +14 -22
  83. package/dist/components/Dialog/styles.js +0 -13
  84. package/dist/components/Dropzone/dropzone.test.js +35 -45
  85. package/dist/components/Dropzone/index.js +29 -68
  86. package/dist/components/Dropzone/styles.js +8 -32
  87. package/dist/components/Dropzone/types.d.ts +4 -4
  88. package/dist/components/Dropzone/types.d.ts.map +1 -1
  89. package/dist/components/Dropzone/utils/accepts.js +0 -5
  90. package/dist/components/Flex/flex.test.js +267 -286
  91. package/dist/components/Flex/index.js +16 -24
  92. package/dist/components/Flex/styles.js +0 -11
  93. package/dist/components/Flex/types.d.ts +13 -13
  94. package/dist/components/Flex/types.d.ts.map +1 -1
  95. package/dist/components/Grid/grid.test.js +0 -6
  96. package/dist/components/Grid/index.js +17 -25
  97. package/dist/components/Grid/styles.js +1 -9
  98. package/dist/components/Grid/types.d.ts +2 -2
  99. package/dist/components/Grid/types.d.ts.map +1 -1
  100. package/dist/components/Icon/data/beauty.js +1 -0
  101. package/dist/components/Icon/data/ecommerce.js +1 -0
  102. package/dist/components/Icon/data/form.js +1 -0
  103. package/dist/components/Icon/data/health.js +1 -0
  104. package/dist/components/Icon/data/illustrations.js +1 -0
  105. package/dist/components/Icon/data/men.js +1 -0
  106. package/dist/components/Icon/data/payment.js +1 -0
  107. package/dist/components/Icon/data/pedidoPago.js +1 -0
  108. package/dist/components/Icon/data/physicalPerfomance.js +1 -0
  109. package/dist/components/Icon/data/social.js +1 -0
  110. package/dist/components/Icon/data/status.js +1 -0
  111. package/dist/components/Icon/data/summer.js +1 -0
  112. package/dist/components/Icon/data/woman.js +1 -0
  113. package/dist/components/Icon/icon.test.js +19 -32
  114. package/dist/components/Icon/index.js +14 -28
  115. package/dist/components/Icon/scripts/build.js +14 -51
  116. package/dist/components/Icon/scripts/extractor.js +0 -6
  117. package/dist/components/Icon/scripts/run-build.js +0 -2
  118. package/dist/components/Icon/scripts/writers.d.ts +1 -1
  119. package/dist/components/Icon/scripts/writers.d.ts.map +1 -1
  120. package/dist/components/Icon/scripts/writers.js +1 -12
  121. package/dist/components/Icon/styles.d.ts +1 -1
  122. package/dist/components/Icon/styles.d.ts.map +1 -1
  123. package/dist/components/Icon/styles.js +3 -11
  124. package/dist/components/Icon/types.d.ts +2 -2
  125. package/dist/components/Icon/types.d.ts.map +1 -1
  126. package/dist/components/Icon/utils/allIcons.js +1 -22
  127. package/dist/components/Icon/utils/iconExists.d.ts +1 -1
  128. package/dist/components/Icon/utils/iconExists.d.ts.map +1 -1
  129. package/dist/components/Icon/utils/iconExists.js +0 -3
  130. package/dist/components/IconItem/IconItem.test.js +27 -37
  131. package/dist/components/IconItem/index.js +5 -12
  132. package/dist/components/IconItem/styles.js +2 -16
  133. package/dist/components/IconItem/types.d.ts +3 -3
  134. package/dist/components/IconItem/types.d.ts.map +1 -1
  135. package/dist/components/Illustration/AlternativeOrderSvg/index.js +0 -2
  136. package/dist/components/Illustration/BoletoSvg/index.js +0 -2
  137. package/dist/components/Illustration/BoxClosedSvg/index.js +0 -2
  138. package/dist/components/Illustration/BoxDeliverySvg/index.js +0 -2
  139. package/dist/components/Illustration/BoxOpenSvg/index.js +0 -2
  140. package/dist/components/Illustration/CalendarSvg/index.js +0 -2
  141. package/dist/components/Illustration/CardSvg/index.js +0 -2
  142. package/dist/components/Illustration/CollaboratorSvg/index.js +0 -2
  143. package/dist/components/Illustration/InquirySvg/index.js +0 -2
  144. package/dist/components/Illustration/OrderSvg/index.js +0 -2
  145. package/dist/components/Illustration/PixSvg/index.js +0 -2
  146. package/dist/components/Illustration/PrescriptionSvg/index.js +0 -2
  147. package/dist/components/Illustration/TransportSvg/index.js +0 -2
  148. package/dist/components/Illustration/illustration.test.js +20 -31
  149. package/dist/components/Illustration/index.js +11 -43
  150. package/dist/components/Illustration/styles.js +0 -14
  151. package/dist/components/ImageItem/imageFake.js +0 -2
  152. package/dist/components/ImageItem/index.js +18 -25
  153. package/dist/components/ImageItem/input.test.js +31 -51
  154. package/dist/components/ImageItem/styles.js +2 -22
  155. package/dist/components/ImageItem/types.d.ts +2 -2
  156. package/dist/components/ImageItem/types.d.ts.map +1 -1
  157. package/dist/components/Input/index.js +25 -47
  158. package/dist/components/Input/input.test.js +49 -73
  159. package/dist/components/Input/styles.js +12 -65
  160. package/dist/components/Input/types.d.ts +1 -1
  161. package/dist/components/Input/types.d.ts.map +1 -1
  162. package/dist/components/Label/index.js +9 -19
  163. package/dist/components/Label/label.test.js +32 -58
  164. package/dist/components/Label/styles.js +0 -6
  165. package/dist/components/Label/types.d.ts +2 -2
  166. package/dist/components/Label/types.d.ts.map +1 -1
  167. package/dist/components/List/index.js +9 -17
  168. package/dist/components/List/list.test.js +4 -11
  169. package/dist/components/List/styles.js +0 -11
  170. package/dist/components/Modal/ModalExample.js +9 -27
  171. package/dist/components/Modal/index.js +23 -47
  172. package/dist/components/Modal/modal.test.js +15 -33
  173. package/dist/components/Modal/styles.d.ts +8 -2
  174. package/dist/components/Modal/styles.d.ts.map +1 -1
  175. package/dist/components/Modal/styles.js +3 -16
  176. package/dist/components/Modal/types.d.ts +2 -2
  177. package/dist/components/Modal/types.d.ts.map +1 -1
  178. package/dist/components/MultipleSelect/MultipleSelect.test.js +106 -223
  179. package/dist/components/MultipleSelect/components/InputWrapper/index.js +1 -11
  180. package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts +1 -1
  181. package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts.map +1 -1
  182. package/dist/components/MultipleSelect/components/OptionsArea/index.js +36 -70
  183. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +4 -1
  184. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
  185. package/dist/components/MultipleSelect/components/OptionsArea/styles.js +6 -19
  186. package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.js +0 -9
  187. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.js +2 -12
  188. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +0 -15
  189. package/dist/components/MultipleSelect/components/SelectArea/index.js +10 -20
  190. package/dist/components/MultipleSelect/components/SelectArea/styles.js +1 -12
  191. package/dist/components/MultipleSelect/components/SelectArea/types.d.ts +1 -1
  192. package/dist/components/MultipleSelect/components/SelectArea/types.d.ts.map +1 -1
  193. package/dist/components/MultipleSelect/components/index.js +0 -6
  194. package/dist/components/MultipleSelect/index.d.ts +1 -1
  195. package/dist/components/MultipleSelect/index.d.ts.map +1 -1
  196. package/dist/components/MultipleSelect/index.js +51 -94
  197. package/dist/components/MultipleSelect/types.d.ts +2 -2
  198. package/dist/components/MultipleSelect/types.d.ts.map +1 -1
  199. package/dist/components/Observer/index.js +10 -25
  200. package/dist/components/Observer/observer.test.js +0 -4
  201. package/dist/components/Observer/types.d.ts +1 -1
  202. package/dist/components/Observer/types.d.ts.map +1 -1
  203. package/dist/components/Pagination/hooks/usePagination.js +2 -18
  204. package/dist/components/Pagination/index.d.ts.map +1 -1
  205. package/dist/components/Pagination/index.js +53 -86
  206. package/dist/components/Pagination/pagination.test.js +16 -50
  207. package/dist/components/Pagination/styles.js +23 -45
  208. package/dist/components/Progress/Circle/index.js +15 -31
  209. package/dist/components/Progress/Circle/styles.js +1 -15
  210. package/dist/components/Progress/Circle/types.d.ts +1 -1
  211. package/dist/components/Progress/Circle/types.d.ts.map +1 -1
  212. package/dist/components/Progress/Linear/index.js +12 -30
  213. package/dist/components/Progress/Linear/styles.js +1 -14
  214. package/dist/components/Progress/Linear/types.d.ts +3 -3
  215. package/dist/components/Progress/Linear/types.d.ts.map +1 -1
  216. package/dist/components/Progress/getSteps.js +0 -3
  217. package/dist/components/Progress/index.js +10 -19
  218. package/dist/components/Progress/progress.test.js +47 -64
  219. package/dist/components/Progress/types.d.ts +2 -2
  220. package/dist/components/Progress/types.d.ts.map +1 -1
  221. package/dist/components/RadioInput/components/ChoiceList/index.js +14 -27
  222. package/dist/components/RadioInput/index.js +15 -26
  223. package/dist/components/RadioInput/radio-input.test.js +44 -68
  224. package/dist/components/RadioInput/styles.js +2 -21
  225. package/dist/components/RadioInput/types.d.ts +4 -4
  226. package/dist/components/RadioInput/types.d.ts.map +1 -1
  227. package/dist/components/RadioInput/utils/get-colors-props.js +0 -1
  228. package/dist/components/Rating/index.js +35 -66
  229. package/dist/components/Rating/rating.test.js +0 -16
  230. package/dist/components/Rating/styles.js +1 -12
  231. package/dist/components/ReactPortal/index.js +7 -22
  232. package/dist/components/ReactPortal/reactPortal.test.js +0 -5
  233. package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.js +0 -1
  234. package/dist/components/Select/components/OptionsSelect/index.js +25 -45
  235. package/dist/components/Select/components/OptionsSelect/styles.d.ts +4 -1
  236. package/dist/components/Select/components/OptionsSelect/styles.d.ts.map +1 -1
  237. package/dist/components/Select/components/OptionsSelect/styles.js +1 -12
  238. package/dist/components/Select/index.d.ts.map +1 -1
  239. package/dist/components/Select/index.js +37 -74
  240. package/dist/components/Select/select.test.js +13 -22
  241. package/dist/components/Select/styles.js +0 -12
  242. package/dist/components/Select/types.d.ts +2 -2
  243. package/dist/components/Select/types.d.ts.map +1 -1
  244. package/dist/components/Skeleton/index.js +6 -14
  245. package/dist/components/Skeleton/skeleton.test.js +35 -51
  246. package/dist/components/Skeleton/styles.js +0 -10
  247. package/dist/components/Skeleton/types.d.ts +1 -1
  248. package/dist/components/Skeleton/types.d.ts.map +1 -1
  249. package/dist/components/Slider/SliderExample.js +11 -25
  250. package/dist/components/Slider/components/SliderPointer.js +1 -7
  251. package/dist/components/Slider/components/SliderRail.js +49 -81
  252. package/dist/components/Slider/components/SliderSelector.js +22 -45
  253. package/dist/components/Slider/hooks/useEventCallback.js +0 -3
  254. package/dist/components/Slider/index.js +26 -62
  255. package/dist/components/Slider/slider.test.js +52 -65
  256. package/dist/components/Slider/styles.js +0 -25
  257. package/dist/components/Slider/types.d.ts +5 -5
  258. package/dist/components/Slider/types.d.ts.map +1 -1
  259. package/dist/components/Spinner/index.js +6 -10
  260. package/dist/components/Spinner/spinner.test.js +14 -24
  261. package/dist/components/Spinner/styles.js +5 -10
  262. package/dist/components/Spinner/types.d.ts +2 -2
  263. package/dist/components/Spinner/types.d.ts.map +1 -1
  264. package/dist/components/Steps/components/StepIcon/index.js +5 -14
  265. package/dist/components/Steps/components/StepIconMobile/index.js +5 -14
  266. package/dist/components/Steps/index.js +12 -37
  267. package/dist/components/Steps/steps.test.js +23 -33
  268. package/dist/components/Steps/styles.js +4 -27
  269. package/dist/components/Steps/types.d.ts +1 -1
  270. package/dist/components/Steps/types.d.ts.map +1 -1
  271. package/dist/components/Switch/index.d.ts.map +1 -1
  272. package/dist/components/Switch/index.js +22 -39
  273. package/dist/components/Switch/styles.js +4 -21
  274. package/dist/components/Switch/switch.test.js +41 -179
  275. package/dist/components/Switch/types.d.ts +2 -2
  276. package/dist/components/Switch/types.d.ts.map +1 -1
  277. package/dist/components/Table/components/MenuItem.js +5 -11
  278. package/dist/components/Table/components/TableSkeleton.js +3 -9
  279. package/dist/components/Table/index.js +38 -71
  280. package/dist/components/Table/styles.js +0 -19
  281. package/dist/components/Table/table.test.js +68 -84
  282. package/dist/components/Table/types.d.ts +3 -3
  283. package/dist/components/Table/types.d.ts.map +1 -1
  284. package/dist/components/Tabs/TabsExample.js +11 -24
  285. package/dist/components/Tabs/components/Tab.js +12 -20
  286. package/dist/components/Tabs/components/TabPanel.js +3 -7
  287. package/dist/components/Tabs/components/Tabs.js +25 -49
  288. package/dist/components/Tabs/index.js +0 -3
  289. package/dist/components/Tabs/styles.js +9 -29
  290. package/dist/components/Tabs/tabs.test.js +104 -117
  291. package/dist/components/Tabs/types.d.ts +7 -7
  292. package/dist/components/Tabs/types.d.ts.map +1 -1
  293. package/dist/components/Tag/index.js +6 -13
  294. package/dist/components/Tag/styles.js +7 -18
  295. package/dist/components/Tag/tag.test.js +3 -17
  296. package/dist/components/TextAreaInput/index.js +16 -35
  297. package/dist/components/TextAreaInput/styles.js +10 -23
  298. package/dist/components/TextAreaInput/text-area-input.test.js +21 -36
  299. package/dist/components/TextAreaInput/types.d.ts +3 -3
  300. package/dist/components/TextAreaInput/types.d.ts.map +1 -1
  301. package/dist/components/Thumbnail/index.js +31 -60
  302. package/dist/components/Thumbnail/styles.js +9 -26
  303. package/dist/components/Thumbnail/thumbnail.test.js +13 -29
  304. package/dist/components/Thumbnail/types.d.ts +1 -1
  305. package/dist/components/Thumbnail/types.d.ts.map +1 -1
  306. package/dist/components/Thumbnail/utils/index.js +0 -4
  307. package/dist/components/Thumbnail/utils/validate-file-size.js +0 -1
  308. package/dist/components/Thumbnail/utils/validate-file-type.js +0 -1
  309. package/dist/components/Timeline/components/Timeline.js +3 -8
  310. package/dist/components/Timeline/components/TimelineContent.js +7 -18
  311. package/dist/components/Timeline/components/TimelineItem.js +5 -13
  312. package/dist/components/Timeline/components/TimelineSeparator.js +1 -5
  313. package/dist/components/Timeline/index.js +0 -4
  314. package/dist/components/Timeline/styles.js +0 -17
  315. package/dist/components/Timeline/timeline.test.js +103 -115
  316. package/dist/components/Timeline/types.d.ts +4 -4
  317. package/dist/components/Timeline/types.d.ts.map +1 -1
  318. package/dist/components/Toast/button-example.js +1 -14
  319. package/dist/components/Toast/components/Toast.js +12 -21
  320. package/dist/components/Toast/contexts/ToastProvider.js +9 -31
  321. package/dist/components/Toast/hooks/useToast.js +1 -7
  322. package/dist/components/Toast/index.js +6 -17
  323. package/dist/components/Toast/styles.js +0 -12
  324. package/dist/components/Toast/toast.test.js +4 -14
  325. package/dist/components/Toast/types.d.ts +5 -5
  326. package/dist/components/Toast/types.d.ts.map +1 -1
  327. package/dist/components/Tooltip/components/TooltipLabel.js +12 -23
  328. package/dist/components/Tooltip/example.js +0 -4
  329. package/dist/components/Tooltip/index.js +29 -66
  330. package/dist/components/Tooltip/styles.js +0 -10
  331. package/dist/components/Tooltip/types.d.ts +3 -3
  332. package/dist/components/Tooltip/types.d.ts.map +1 -1
  333. package/dist/components/Typography/index.js +9 -21
  334. package/dist/components/Typography/styles.js +0 -7
  335. package/dist/components/Typography/types.d.ts +1 -1
  336. package/dist/components/Typography/types.d.ts.map +1 -1
  337. package/dist/components/Typography/typography.test.js +134 -171
  338. package/dist/index.js +0 -61
  339. package/dist/shared/components/FocusLock/index.js +17 -30
  340. package/dist/shared/formatters/format-number.js +4 -10
  341. package/dist/shared/hooks/devices.d.ts +1 -1
  342. package/dist/shared/hooks/devices.d.ts.map +1 -1
  343. package/dist/shared/hooks/useBreakpoints.d.ts +3 -3
  344. package/dist/shared/hooks/useBreakpoints.d.ts.map +1 -1
  345. package/dist/shared/hooks/useBreakpoints.js +5 -34
  346. package/dist/shared/hooks/useDebounce.js +1 -12
  347. package/dist/shared/hooks/useDevices.js +6 -20
  348. package/dist/shared/hooks/useDisableBodyScroll.js +6 -15
  349. package/dist/shared/hooks/useKeyPress.js +0 -3
  350. package/dist/shared/hooks/useObserver.js +1 -5
  351. package/dist/shared/hooks/useOnClickOutside.js +0 -7
  352. package/dist/shared/hooks/useWindowSize.d.ts +1 -1
  353. package/dist/shared/hooks/useWindowSize.d.ts.map +1 -1
  354. package/dist/shared/hooks/useWindowSize.js +8 -18
  355. package/dist/shared/tests/test-utils.js +5 -13
  356. package/dist/shared/tests/types.d.ts +1 -1
  357. package/dist/shared/tests/types.d.ts.map +1 -1
  358. package/dist/shared/theme/button-example.js +2 -12
  359. package/dist/shared/theme/contexts/ThemeContext.d.ts +2 -2
  360. package/dist/shared/theme/contexts/ThemeContext.d.ts.map +1 -1
  361. package/dist/shared/theme/contexts/ThemeContext.js +14 -37
  362. package/dist/shared/theme/hooks/useColorMode.js +2 -7
  363. package/dist/shared/theme/hooks/useColorModeValue.js +1 -5
  364. package/dist/shared/theme/hooks/useTheme.js +1 -7
  365. package/dist/shared/theme/index.js +0 -8
  366. package/dist/shared/theme/theme.js +5 -9
  367. package/dist/shared/theme/theme.test.js +35 -61
  368. package/dist/shared/theme/theme.types.d.ts +5 -5
  369. package/dist/shared/theme/theme.types.d.ts.map +1 -1
  370. package/dist/shared/theme/utils/extendTheme.js +0 -4
  371. package/dist/shared/types/credit-card.d.ts +1 -1
  372. package/dist/shared/types/credit-card.d.ts.map +1 -1
  373. package/dist/shared/types/file.d.ts +2 -2
  374. package/dist/shared/types/file.d.ts.map +1 -1
  375. package/dist/shared/types/name.d.ts +1 -1
  376. package/dist/shared/types/name.d.ts.map +1 -1
  377. package/dist/utils/GenerateKey.js +1 -3
  378. package/dist/utils/brightnessColorChange.js +0 -1
  379. package/dist/utils/colorCheck.d.ts +1 -1
  380. package/dist/utils/colorCheck.d.ts.map +1 -1
  381. package/dist/utils/colorCheck.js +9 -29
  382. package/dist/utils/colorFunctions.js +0 -6
  383. package/dist/utils/colorToGray.js +5 -22
  384. package/dist/utils/file.d.ts.map +1 -1
  385. package/dist/utils/file.js +56 -83
  386. package/dist/utils/formatters/bytes.js +0 -1
  387. package/dist/utils/formatters/capitalize.js +0 -1
  388. package/dist/utils/formatters/cep.js +1 -3
  389. package/dist/utils/formatters/cnpj.js +2 -9
  390. package/dist/utils/formatters/color.js +19 -20
  391. package/dist/utils/formatters/cpf.js +18 -25
  392. package/dist/utils/formatters/credit-card.js +6 -19
  393. package/dist/utils/formatters/index.js +0 -30
  394. package/dist/utils/formatters/name.js +1 -6
  395. package/dist/utils/formatters/number.js +0 -1
  396. package/dist/utils/formatters/passport.js +3 -7
  397. package/dist/utils/formatters/phone.js +17 -45
  398. package/dist/utils/formatters/price.js +1 -3
  399. package/dist/utils/formatters/rg.js +1 -3
  400. package/dist/utils/formatters/strings.js +0 -5
  401. package/dist/utils/fuctionsColors.js +0 -6
  402. package/dist/utils/generateUUID.js +0 -1
  403. package/dist/utils/getColorValue.js +0 -5
  404. package/dist/utils/getSvg.d.ts +1 -1
  405. package/dist/utils/getSvg.d.ts.map +1 -1
  406. package/dist/utils/getSvg.js +0 -3
  407. package/dist/utils/getValuesBySize.d.ts +2 -2
  408. package/dist/utils/getValuesBySize.d.ts.map +1 -1
  409. package/dist/utils/getValuesBySize.js +0 -1
  410. package/dist/utils/invertColor.js +7 -15
  411. package/package.json +18 -18
@@ -1,51 +1,38 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
7
-
8
8
  var _theme = require("../../shared/theme");
9
-
10
9
  var _getSvg2 = require("../../utils/getSvg");
11
-
12
10
  var _getColorValue = require("../../utils/getColorValue");
13
-
14
11
  var _styles = require("./styles");
15
-
16
12
  var _allIcons = require("./utils/allIcons");
17
-
18
13
  var _jsxRuntime = require("react/jsx-runtime");
19
-
20
14
  var _excluded = ["name", "color", "secondColor", "size"];
21
-
22
15
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23
-
24
16
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25
-
26
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27
-
17
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
28
20
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
29
-
30
21
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31
-
32
22
  var Icon = function Icon(_ref) {
33
23
  var name = _ref.name,
34
- color = _ref.color,
35
- secondColor = _ref.secondColor,
36
- size = _ref.size,
37
- rest = _objectWithoutProperties(_ref, _excluded);
38
-
24
+ color = _ref.color,
25
+ secondColor = _ref.secondColor,
26
+ size = _ref.size,
27
+ rest = _objectWithoutProperties(_ref, _excluded);
39
28
  var _getSvg = (0, _getSvg2.getSvg)(name, _allIcons.allIcons),
40
- viewBox = _getSvg.viewBox,
41
- html = _getSvg.html,
42
- xmlns = _getSvg.xmlns,
43
- width = _getSvg.width,
44
- height = _getSvg.height;
45
-
29
+ viewBox = _getSvg.viewBox,
30
+ html = _getSvg.html,
31
+ xmlns = _getSvg.xmlns,
32
+ width = _getSvg.width,
33
+ height = _getSvg.height;
46
34
  var _useTheme = (0, _theme.useTheme)(),
47
- theme = _useTheme.theme;
48
-
35
+ theme = _useTheme.theme;
49
36
  var havePrimaryColor = html.match(/#22E0A1/g);
50
37
  var haveErrorColor = html.match(/fill="#F64F77"/g);
51
38
  var parsedHtml = havePrimaryColor ? html.replace(/fill="#22E0A1"/g, "fill=\"".concat((0, _getColorValue.getColorValue)(secondColor || 'primary.default', theme), "\"")).replace(/fill="#34423D"/g, "fill=\"".concat((0, _getColorValue.getColorValue)(color || '', theme), "\"")) : haveErrorColor ? html.replace(/fill="#22E0A1"/g, "fill=\"".concat((0, _getColorValue.getColorValue)(secondColor || 'errors.default', theme), "\"")).replace(/fill="#34423D"/g, "fill=\"".concat((0, _getColorValue.getColorValue)(color || '', theme), "\"")) : html;
@@ -62,6 +49,5 @@ var Icon = function Icon(_ref) {
62
49
  }
63
50
  }, rest));
64
51
  };
65
-
66
52
  var _default = Icon;
67
53
  exports.default = _default;
@@ -4,29 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _path = _interopRequireDefault(require("path"));
9
-
10
8
  var _fs = _interopRequireDefault(require("fs"));
11
-
12
9
  var _extractor = _interopRequireDefault(require("./extractor"));
13
-
14
10
  var _writers = require("./writers");
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
12
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
19
-
20
13
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21
-
22
14
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
-
24
15
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
25
-
26
16
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
27
-
28
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
29
-
17
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } // server side
30
18
  var twirlTimer = function twirlTimer() {
31
19
  var P = ['\\', '|', '/', '-'];
32
20
  var x = 0;
@@ -35,73 +23,46 @@ var twirlTimer = function twirlTimer() {
35
23
  x &= 3;
36
24
  }, 250);
37
25
  };
26
+
38
27
  /**
39
28
  * Builds the icons and types files.
40
29
  */
41
-
42
-
43
30
  var builder = function builder() {
44
31
  var timer = twirlTimer();
45
-
46
32
  var dashIconsPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'dash');
47
-
48
33
  var ecommerceIconsPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'ecommerce');
49
-
50
34
  var socialIconsPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'social');
51
-
52
35
  var paymentIconsPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'payment');
53
-
54
36
  var illustrationsIconsPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'illustrations');
37
+ var formIconsPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'form');
55
38
 
56
- var formIconsPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'form'); // icons by category
57
-
58
-
39
+ // icons by category
59
40
  var beautyCategoryPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'categories', 'beauty');
60
-
61
41
  var healthCategoryPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'categories', 'health');
62
-
63
42
  var menCategoryPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'categories', 'men');
64
-
65
43
  var womanCategoryPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'categories', 'woman');
66
-
67
44
  var summerCategoryPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'categories', 'summer');
68
-
69
45
  var statusCategoryPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'categories', 'status');
70
-
71
46
  var physicalCategoryPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'categories', 'physical-perfomance');
47
+ var pedidoPagoPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'pedido-pago');
72
48
 
73
- var pedidoPagoPath = _path.default.join(__dirname, '..', 'assets', 'icons', 'pedido-pago'); // list of all the icons
74
-
75
-
49
+ // list of all the icons
76
50
  var formIconsFiles = _fs.default.readdirSync(formIconsPath);
77
-
78
51
  var dashIconsFiles = _fs.default.readdirSync(dashIconsPath);
79
-
80
52
  var ecommerceIconsFiles = _fs.default.readdirSync(ecommerceIconsPath);
81
-
82
53
  var socialIconsFiles = _fs.default.readdirSync(socialIconsPath);
83
-
84
54
  var paymentIconsFiles = _fs.default.readdirSync(paymentIconsPath);
85
-
86
55
  var illustrationsIconsFiles = _fs.default.readdirSync(illustrationsIconsPath);
87
-
88
56
  var beautyCategoryFiles = _fs.default.readdirSync(beautyCategoryPath);
89
-
90
57
  var healthCategoryFiles = _fs.default.readdirSync(healthCategoryPath);
91
-
92
58
  var menCategoryFiles = _fs.default.readdirSync(menCategoryPath);
93
-
94
59
  var womanCategoryFiles = _fs.default.readdirSync(womanCategoryPath);
95
-
96
60
  var summerCategoryFiles = _fs.default.readdirSync(summerCategoryPath);
97
-
98
61
  var statusCategoryFiles = _fs.default.readdirSync(statusCategoryPath);
99
-
100
62
  var physicalCategoryFiles = _fs.default.readdirSync(physicalCategoryPath);
63
+ var pedidoPagoFiles = _fs.default.readdirSync(pedidoPagoPath);
101
64
 
102
- var pedidoPagoFiles = _fs.default.readdirSync(pedidoPagoPath); // extract icons from svg files and generate array of icons
103
-
104
-
65
+ // extract icons from svg files and generate array of icons
105
66
  var formIcons = (0, _extractor.default)(formIconsFiles, formIconsPath);
106
67
  var dashIcons = (0, _extractor.default)(dashIconsFiles, dashIconsPath);
107
68
  var ecommerceIcons = (0, _extractor.default)(ecommerceIconsFiles, ecommerceIconsPath);
@@ -116,8 +77,9 @@ var builder = function builder() {
116
77
  var statusIcons = (0, _extractor.default)(statusCategoryFiles, statusCategoryPath);
117
78
  var physicalIcons = (0, _extractor.default)(physicalCategoryFiles, physicalCategoryPath);
118
79
  var pedidoPagoIcons = (0, _extractor.default)(pedidoPagoFiles, pedidoPagoPath);
119
- var allIcons = [].concat(_toConsumableArray(dashIcons), _toConsumableArray(ecommerceIcons), _toConsumableArray(socialIcons), _toConsumableArray(paymentIcons), _toConsumableArray(illustrationsIcons), _toConsumableArray(beautyIcons), _toConsumableArray(healthIcons), _toConsumableArray(menIcons), _toConsumableArray(womanIcons), _toConsumableArray(summerIcons), _toConsumableArray(statusIcons), _toConsumableArray(physicalIcons), _toConsumableArray(formIcons), _toConsumableArray(pedidoPagoIcons)); // write icons to file
80
+ var allIcons = [].concat(_toConsumableArray(dashIcons), _toConsumableArray(ecommerceIcons), _toConsumableArray(socialIcons), _toConsumableArray(paymentIcons), _toConsumableArray(illustrationsIcons), _toConsumableArray(beautyIcons), _toConsumableArray(healthIcons), _toConsumableArray(menIcons), _toConsumableArray(womanIcons), _toConsumableArray(summerIcons), _toConsumableArray(statusIcons), _toConsumableArray(physicalIcons), _toConsumableArray(formIcons), _toConsumableArray(pedidoPagoIcons));
120
81
 
82
+ // write icons to file
121
83
  (0, _writers.writeIconsFile)(dashIcons, 'dash', true);
122
84
  (0, _writers.writeIconsFile)(ecommerceIcons, 'ecommerce', true);
123
85
  (0, _writers.writeIconsFile)(socialIcons, 'social', true);
@@ -131,12 +93,13 @@ var builder = function builder() {
131
93
  (0, _writers.writeIconsFile)(statusIcons, 'status', true);
132
94
  (0, _writers.writeIconsFile)(physicalIcons, 'physicalPerfomance', true);
133
95
  (0, _writers.writeIconsFile)(formIcons, 'form', true);
134
- (0, _writers.writeIconsFile)(pedidoPagoIcons, 'pedidoPago', true); // write types file
96
+ (0, _writers.writeIconsFile)(pedidoPagoIcons, 'pedidoPago', true);
135
97
 
136
- (0, _writers.writeTypesFile)(allIcons, true); // stop twirl timer
98
+ // write types file
99
+ (0, _writers.writeTypesFile)(allIcons, true);
137
100
 
101
+ // stop twirl timer
138
102
  clearInterval(timer);
139
103
  };
140
-
141
104
  var _default = builder;
142
105
  exports.default = _default;
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _path = _interopRequireDefault(require("path"));
9
-
10
8
  var _fs = require("fs");
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  /**
15
11
  * Extractor is a function that extracts the svg content from the icon file.
16
12
  * @param files - The directory with the files to extract.
@@ -20,7 +16,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
20
16
  var extractor = function extractor(files, currentPath) {
21
17
  return files.map(function (file) {
22
18
  var iconPath = _path.default.join(currentPath, file);
23
-
24
19
  var iconName = file.split('.')[0];
25
20
  var iconSvgContent = (0, _fs.readFileSync)(iconPath, 'utf8');
26
21
  var iconSvgWidth = iconSvgContent.match(/^<svg[^>]*width\s*=\s*"?(\d+)"?[^>]*>/) || [];
@@ -38,6 +33,5 @@ var extractor = function extractor(files, currentPath) {
38
33
  };
39
34
  });
40
35
  };
41
-
42
36
  var _default = extractor;
43
37
  exports.default = _default;
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var _build = _interopRequireDefault(require("./build"));
4
-
5
4
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
-
7
5
  // eslint-disable-next-line no-console
8
6
  console.log('Running build...');
9
7
  (0, _build.default)();
@@ -1,4 +1,4 @@
1
- declare type iconsList = {
1
+ type iconsList = {
2
2
  name: string;
3
3
  width: string;
4
4
  height: string;
@@ -1 +1 @@
1
- {"version":3,"file":"writers.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/scripts/writers.ts"],"names":[],"mappings":"AAGA,aAAK,SAAS,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,uCAAuC,OAAO,KAAW,IAoBnF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,yCAEX,MAAM,cACT,OAAO,KACjB,IAkBF,CAAC"}
1
+ {"version":3,"file":"writers.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/scripts/writers.ts"],"names":[],"mappings":"AAGA,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,uCAAuC,OAAO,KAAW,IAoBnF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,yCAEX,MAAM,cACT,OAAO,KACjB,IAkBF,CAAC"}
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.writeTypesFile = exports.writeIconsFile = void 0;
7
-
8
7
  var _fs = _interopRequireDefault(require("fs"));
9
-
10
8
  var _path = _interopRequireDefault(require("path"));
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  /**
15
11
  * This function generates the types file for the Icon component
16
12
  * @param iconsList - The list of icons
@@ -18,35 +14,28 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
18
14
  */
19
15
  var writeTypesFile = function writeTypesFile(iconsList) {
20
16
  var overwrite = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
21
-
22
17
  var typesFile = _path.default.join(__dirname, '..', 'types.ts');
23
-
24
18
  if (overwrite || !_fs.default.existsSync(typesFile)) {
25
19
  _fs.default.writeFileSync(typesFile, "// This file is auto-generated.\n // Please do not modify it manually.\n import { GlobalColorsProps } from '../../shared/theme';\n\n export type IconName = ".concat(iconsList.map(function (icon) {
26
20
  return "'".concat(icon.name, "'");
27
21
  }).join(' | '), ";\n\n export type IIconComponentProps = {\n name: IconName;\n size?: number | string;\n color?: GlobalColorsProps | (string & {});\n secondColor?: GlobalColorsProps | (string & {});\n }\n "));
28
22
  }
29
23
  };
24
+
30
25
  /**
31
26
  * This function generates the icons json file for the Icon component
32
27
  * @param iconsList - The list of icons
33
28
  * @param jsonFileName - The name of the json file
34
29
  * @param overwrite - If true, the file will be overwritten
35
30
  */
36
-
37
-
38
31
  exports.writeTypesFile = writeTypesFile;
39
-
40
32
  var writeIconsFile = function writeIconsFile(iconsList, jsonFileName) {
41
33
  var overwrite = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
42
-
43
34
  var iconsFile = _path.default.join(__dirname, '..', 'data', "".concat(jsonFileName, ".ts"));
44
-
45
35
  if (overwrite || !_fs.default.existsSync(iconsFile)) {
46
36
  _fs.default.writeFileSync(iconsFile, "// This file is auto-generated.\n // Please do not modify it manually.\n\n export const ".concat(jsonFileName, "Icons = [").concat(iconsList.map(function (icon) {
47
37
  return "{ name: '".concat(icon.name, "', width: ").concat(icon.width, ", height: ").concat(icon.height, ", viewBox: '").concat(icon.viewBox, "', html: '").concat(icon.html, "', xmlns: '").concat(icon.xmlns, "' }");
48
38
  }).join(',\n'), "];\n "));
49
39
  }
50
40
  };
51
-
52
41
  exports.writeIconsFile = writeIconsFile;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ExtendThemeProps } from '../../shared/theme';
3
- declare type StyledIconProps = {
3
+ type StyledIconProps = {
4
4
  theme?: ExtendThemeProps;
5
5
  size?: number;
6
6
  colorText?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,aAAK,eAAe,GAAG;IACrB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,aAAa;;;iEA0BxB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,KAAK,eAAe,GAAG;IACrB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,aAAa;;;iEA0BxB,CAAC"}
@@ -4,27 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.IconComponent = void 0;
7
-
8
7
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
-
10
8
  var _react = require("@emotion/react");
11
-
12
9
  var _getColorValue = require("../../utils/getColorValue");
13
-
14
10
  var _templateObject, _templateObject2;
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
-
20
13
  var IconComponent = _styled.default.svg(function (props) {
21
14
  var theme = props.theme,
22
- colorText = props.colorText,
23
- name = props.name,
24
- havePrimaryColor = props.havePrimaryColor;
15
+ colorText = props.colorText,
16
+ name = props.name,
17
+ havePrimaryColor = props.havePrimaryColor;
25
18
  var color = (0, _getColorValue.getColorValue)(colorText || '', theme, 'currentColor');
26
19
  var svgIsLogoOrIllustration = (name === null || name === void 0 ? void 0 : name.indexOf('pmt-')) !== -1 || (name === null || name === void 0 ? void 0 : name.indexOf('illust-')) !== -1 || (name === null || name === void 0 ? void 0 : name.indexOf('scl-')) !== -1 || havePrimaryColor;
27
20
  return svgIsLogoOrIllustration ? (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: middle;\n fill: initial;\n "]))) : (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: middle;\n fill: ", " !important;\n\n & path {\n fill: ", " !important;\n }\n "])), color, color);
28
21
  });
29
-
30
22
  exports.IconComponent = IconComponent;
@@ -1,6 +1,6 @@
1
1
  import { GlobalColorsProps } from '../../shared/theme';
2
- export declare type IconName = 'activity' | 'adjustments-horizontal' | 'ai' | 'airplay' | 'alert-circle' | 'alert-octagon' | 'alert-triangle' | 'align-center' | 'align-justify' | 'align-left' | 'align-right' | 'anchor' | 'aperture' | 'archive' | 'arrow-down-circle' | 'arrow-down-left' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-circle' | 'arrow-left' | 'arrow-right-circle' | 'arrow-right' | 'arrow-up-circle' | 'arrow-up-left' | 'arrow-up-right' | 'arrow-up' | 'at-sign' | 'award' | 'bank' | 'bar-chart-2' | 'bar-chart' | 'barcode' | 'barcode1' | 'battery-charging' | 'battery' | 'bell-off' | 'bell' | 'billet' | 'bluetooth' | 'bold' | 'book-open' | 'book' | 'bookmark' | 'box' | 'briefcase' | 'bug' | 'calendar' | 'camera-off' | 'camera' | 'capsules' | 'card-and-code' | 'card' | 'card1' | 'card2' | 'cardcredit' | 'cash' | 'cast' | 'check-circle-outlined' | 'check-circle' | 'check-square' | 'check' | 'cheque' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevrons-down' | 'chevrons-left' | 'chevrons-right' | 'chevrons-up' | 'chrome' | 'circle' | 'clipboard' | 'clock' | 'cloud-drizzle' | 'cloud-off' | 'cloud-snow' | 'cloud' | 'code' | 'codepen' | 'codesandbox' | 'coffee' | 'coin' | 'cold' | 'color' | 'columns' | 'command' | 'compass' | 'connect' | 'copy' | 'corner-down-left' | 'corner-down-right' | 'corner-left-down' | 'corner-left-up' | 'corner-right-down' | 'corner-right-up' | 'corner-up-left' | 'corner-up-right' | 'cpu' | 'crop' | 'crosshair' | 'csv' | 'database' | 'delete' | 'desktop' | 'disc' | 'dislike' | 'dna' | 'dollar-sign' | 'double-check' | 'download-cloud' | 'download' | 'droplet' | 'duplicate' | 'edit-3' | 'edit' | 'editor-align-center' | 'editor-align-justify' | 'editor-align-left' | 'editor-align-right' | 'editor-blockquotes' | 'editor-bold' | 'editor-clear-marks' | 'editor-clear-nodes' | 'editor-code-block' | 'editor-h1' | 'editor-h2' | 'editor-h3' | 'editor-h4' | 'editor-h5' | 'editor-h6' | 'editor-hard-break' | 'editor-horizontal-rule' | 'editor-italic' | 'editor-ordered-list' | 'editor-paragraph' | 'editor-redo' | 'editor-strike' | 'editor-underline' | 'editor-undo' | 'editor-unordered-list' | 'equal' | 'expand' | 'external-link' | 'external' | 'eye-off' | 'eye' | 'facebook' | 'fast-forward' | 'feather' | 'figma' | 'file-plus' | 'file-text' | 'file' | 'film' | 'filter' | 'fi_youtube' | 'flag' | 'flask' | 'folder-minus' | 'folder-plus' | 'folder' | 'framer' | 'frown' | 'fruit' | 'genre' | 'gift' | 'git-branch' | 'git-commit' | 'git-pull-request' | 'github' | 'gitlab' | 'globe' | 'grid' | 'hard-drive' | 'hash' | 'headphones' | 'heart-filled' | 'heart' | 'help-circle' | 'hexagon' | 'home' | 'ia' | 'id' | 'image' | 'inbox' | 'inf' | 'info' | 'instagram' | 'internal' | 'italic' | 'key' | 'layers' | 'layout' | 'life-buoy' | 'like' | 'link-2' | 'link' | 'linkedin' | 'list-2' | 'list' | 'listagem' | 'loader' | 'lock' | 'log-in' | 'log-out' | 'machine-money' | 'mail' | 'map-pin' | 'map' | 'maximize-2' | 'maximize' | 'medical' | 'meh' | 'menu' | 'message-square' | 'mic-off' | 'mic' | 'minimize-2' | 'minimize' | 'minus-circle' | 'minus-square' | 'minus' | 'money' | 'moneylist' | 'monitor' | 'moon' | 'more-horizontal' | 'more-vertical' | 'mouse-pointer' | 'move' | 'music' | 'navigation-2' | 'navigation' | 'octagon' | 'ordenation' | 'others' | 'package' | 'paperclip' | 'pause-2' | 'pause-circle' | 'pause' | 'pdf' | 'pen-tool' | 'percent' | 'phone-call' | 'phone-incoming' | 'phone-msg' | 'phone-off' | 'phone-outgoing' | 'pie-chart' | 'pin' | 'pix' | 'play-circle' | 'play' | 'plug' | 'plus-circle' | 'plus-square' | 'plus' | 'pocket' | 'power' | 'pp-extended' | 'pp' | 'printer' | 'radio' | 'real' | 'refresh-ccw' | 'refresh-cw' | 'repeat' | 'revenue-plus' | 'revenue' | 'rewind' | 'robot' | 'rotate-ccw' | 'rotate-cw' | 'rotate' | 'rss' | 'save' | 'scissors' | 'search' | 'send' | 'server' | 'settings' | 'share-2' | 'share' | 'shield-off' | 'shield' | 'shop' | 'shopping-bag' | 'shopping-cart' | 'shuffle' | 'sidebar' | 'skip-back' | 'skip-forward' | 'slack' | 'slash' | 'sliders' | 'smartphone' | 'smile' | 'speaker' | 'square' | 'star' | 'stop-circle' | 'sun' | 'sunrise' | 'sunset' | 'sync' | 'tablet' | 'tag' | 'target' | 'terminal' | 'thermometer' | 'thumbs-down' | 'thumbs-up' | 'toggle-left' | 'toggle-right' | 'tool' | 'transfer' | 'trash-2' | 'trash' | 'trello' | 'trending-down' | 'trending-up' | 'triangle' | 'truck' | 'tv' | 'twitch' | 'twitter' | 'type' | 'umbrella' | 'underline' | 'unlock' | 'upload-cloud' | 'upload' | 'user-check' | 'user-minus' | 'user-plus' | 'user-x' | 'user' | 'user2-out' | 'users' | 'video-off' | 'video' | 'vigora' | 'voicemail' | 'volume-1' | 'volume-2' | 'volume-x' | 'volume' | 'weight' | 'whatsapp' | 'wifi-off' | 'wifi' | 'wifi2' | 'wind' | 'x-circle' | 'x-octagon' | 'x-square' | 'x' | 'xls' | 'zap-off' | 'zap' | 'zoom-in' | 'zoom-out' | 'zoom' | 'ecc-budget' | 'ecc-card' | 'ecc-cart' | 'ecc-client' | 'ecc-logout' | 'ecc-loock' | 'ecc-medical' | 'ecc-star' | 'ecc-table' | 'ecc-truck' | 'ecc-user' | 'ecc-www' | 'scl-facebook' | 'scl-google' | 'pmt-amex' | 'pmt-aura' | 'pmt-billet' | 'pmt-dinersclub' | 'pmt-discover' | 'pmt-elo' | 'pmt-hipercard' | 'pmt-jcb' | 'pmt-mastercard' | 'pmt-paypal' | 'pmt-pix' | 'pmt-visa' | 'illust-banking-billet' | 'illust-budget-analysis' | 'illust-budget-available' | 'illust-budget-error' | 'illust-budget-incomplete' | 'illust-card' | 'illust-check-prescription' | 'illust-date' | 'illust-error-prescription' | 'illust-inclusion-order' | 'illust-incomplete-prescription' | 'illust-order-canceled' | 'illust-order-error' | 'illust-order-success' | 'illust-order-withdrawal' | 'illust-pix' | 'illust-preparation-order' | 'illust-retention-prescription' | 'illust-sent-order' | 'illust-success-prescription' | 'bty-baldness' | 'bty-beard' | 'bty-beauty' | 'bty-blue-light' | 'bty-breasts-and-ass' | 'bty-dandruff' | 'bty-deodorants' | 'bty-eyebags-darkcircles' | 'bty-eyebrows-lashes' | 'bty-filler' | 'bty-hair-growth' | 'bty-hair-loss' | 'bty-hair-strengthener' | 'bty-hand-sanitizer' | 'bty-illuminator' | 'bty-moisturizer' | 'bty-mycosis-chilblains' | 'bty-nail-strengthener' | 'bty-neck-arms' | 'bty-pimples' | 'bty-repellent' | 'bty-sunscreen' | 'bty-varicose-veins' | 'bty-warts' | 'bty-white-hair' | 'bty-whitening' | 'bty-wound-healing' | 'bty-wrinkles' | 'hlt-ansiety-stress' | 'hlt-antiemetic' | 'hlt-bach-florals' | 'hlt-bacillus-lacto' | 'hlt-bad-breath' | 'hlt-builder-vase' | 'hlt-cholesterol' | 'hlt-depression' | 'hlt-diabetes' | 'hlt-digestion-reflux' | 'hlt-diuretics' | 'hlt-gases' | 'hlt-gastric-protector' | 'hlt-hangover' | 'hlt-health' | 'hlt-heart-health' | 'hlt-high-pressure' | 'hlt-homeopathy' | 'hlt-immunity' | 'hlt-intestinal-health' | 'hlt-intimate-hygiene' | 'hlt-libido' | 'hlt-live-protector' | 'hlt-longevity' | 'hlt-memory' | 'hlt-menopause' | 'hlt-nutritional-supplement' | 'hlt-pms-cramps' | 'hlt-prostate' | 'hlt-roast' | 'hlt-sexual-health' | 'hlt-sleep-well' | 'hlt-stress' | 'hlt-urinary-tract' | 'hlt-vitamins-minerals' | 'men-baldness' | 'men-beard' | 'men-dough' | 'men-gynecomastia' | 'men-libido' | 'men-men' | 'wmn-breasts-and-ass' | 'wmn-cellulite' | 'wmn-eyelashes-brows' | 'wmn-filler' | 'wmn-hair-growth' | 'wmn-hair-strengthener' | 'wmn-menopause' | 'wmn-pms-cramps' | 'wmn-whitening' | 'wmn-woman' | 'smr-dry-belly' | 'smr-hair' | 'smr-moisturizer' | 'smr-summer' | 'smr-sunscreen' | 'smr-tanning' | 'sts-budget-analysis' | 'sts-budget-available' | 'sts-budget-expired' | 'sts-budget-incomplete' | 'sts-inclusion-order' | 'sts-medication-performed' | 'sts-order-canceled' | 'sts-order-preparation' | 'sts-order-sent' | 'sts-order-withdrawal' | 'sts-revenue-check' | 'sts-revenue-retention' | 'sts-waiting-billet' | 'sts-waiting-card' | 'sts-waiting-repeat-date' | 'ppe-accelerate-metabolism' | 'ppe-articulations' | 'ppe-binge-eating' | 'ppe-bones' | 'ppe-bruises' | 'ppe-candy-will' | 'ppe-carbohydrate-blocker' | 'ppe-carbohydrate-blocker2' | 'ppe-cellulite-stretch-marks' | 'ppe-cellulite' | 'ppe-conductive-vessel' | 'ppe-detox' | 'ppe-dough' | 'ppe-dry-belly' | 'ppe-energy' | 'ppe-fatty-acids' | 'ppe-fibers' | 'ppe-gh' | 'ppe-gynecomastia' | 'ppe-increase-satiety' | 'ppe-increased-appetite' | 'ppe-inhibit-appetite' | 'ppe-laxative' | 'ppe-lipolitical-action' | 'ppe-localized-fat' | 'ppe-muscle-definition' | 'ppe-pain' | 'ppe-physical-perfomance' | 'ppe-post-workout' | 'ppe-pre-workout' | 'ppe-pro-hormonal' | 'ppe-reduction-measures' | 'ppe-slimming-chocolates' | 'ppe-slimming-gums' | 'ppe-slimming' | 'ppe-strength' | 'ppe-tcp' | 'ppe-thermogenic' | 'ppe-vasodilation' | 'form-bar' | 'form-capsule' | 'form-chocolate' | 'form-cookie' | 'form-cream' | 'form-enamel' | 'form-eyedrop' | 'form-eyeliner' | 'form-floral' | 'form-foam' | 'form-gel' | 'form-gum' | 'form-homeopathy' | 'form-lipstick' | 'form-lollipop' | 'form-lotion' | 'form-oil' | 'form-oralfilm' | 'form-oralpaste' | 'form-others' | 'form-patch' | 'form-pomade' | 'form-pot' | 'form-sachet' | 'form-serum' | 'form-shampoo' | 'form-soapshampoo' | 'form-spray' | 'form-sublingual' | 'form-sunscreen' | 'form-syringe' | 'form-syrup' | 'form-tablet' | 'form-units' | 'pp-colored-extended' | 'pp-colored';
3
- export declare type IIconComponentProps = {
2
+ export type IconName = 'activity' | 'adjustments-horizontal' | 'ai' | 'airplay' | 'alert-circle' | 'alert-octagon' | 'alert-triangle' | 'align-center' | 'align-justify' | 'align-left' | 'align-right' | 'anchor' | 'aperture' | 'archive' | 'arrow-down-circle' | 'arrow-down-left' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-circle' | 'arrow-left' | 'arrow-right-circle' | 'arrow-right' | 'arrow-up-circle' | 'arrow-up-left' | 'arrow-up-right' | 'arrow-up' | 'at-sign' | 'award' | 'bank' | 'bar-chart-2' | 'bar-chart' | 'barcode' | 'barcode1' | 'battery-charging' | 'battery' | 'bell-off' | 'bell' | 'billet' | 'bluetooth' | 'bold' | 'book-open' | 'book' | 'bookmark' | 'box' | 'briefcase' | 'bug' | 'calendar' | 'camera-off' | 'camera' | 'capsules' | 'card-and-code' | 'card' | 'card1' | 'card2' | 'cardcredit' | 'cash' | 'cast' | 'check-circle-outlined' | 'check-circle' | 'check-square' | 'check' | 'cheque' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevrons-down' | 'chevrons-left' | 'chevrons-right' | 'chevrons-up' | 'chrome' | 'circle' | 'clipboard' | 'clock' | 'cloud-drizzle' | 'cloud-off' | 'cloud-snow' | 'cloud' | 'code' | 'codepen' | 'codesandbox' | 'coffee' | 'coin' | 'cold' | 'color' | 'columns' | 'command' | 'compass' | 'connect' | 'copy' | 'corner-down-left' | 'corner-down-right' | 'corner-left-down' | 'corner-left-up' | 'corner-right-down' | 'corner-right-up' | 'corner-up-left' | 'corner-up-right' | 'cpu' | 'crop' | 'crosshair' | 'csv' | 'database' | 'delete' | 'desktop' | 'disc' | 'dislike' | 'dna' | 'dollar-sign' | 'double-check' | 'download-cloud' | 'download' | 'droplet' | 'duplicate' | 'edit-3' | 'edit' | 'editor-align-center' | 'editor-align-justify' | 'editor-align-left' | 'editor-align-right' | 'editor-blockquotes' | 'editor-bold' | 'editor-clear-marks' | 'editor-clear-nodes' | 'editor-code-block' | 'editor-h1' | 'editor-h2' | 'editor-h3' | 'editor-h4' | 'editor-h5' | 'editor-h6' | 'editor-hard-break' | 'editor-horizontal-rule' | 'editor-italic' | 'editor-ordered-list' | 'editor-paragraph' | 'editor-redo' | 'editor-strike' | 'editor-underline' | 'editor-undo' | 'editor-unordered-list' | 'equal' | 'expand' | 'external-link' | 'external' | 'eye-off' | 'eye' | 'facebook' | 'fast-forward' | 'feather' | 'figma' | 'file-plus' | 'file-text' | 'file' | 'film' | 'filter' | 'fi_youtube' | 'flag' | 'flask' | 'folder-minus' | 'folder-plus' | 'folder' | 'framer' | 'frown' | 'fruit' | 'genre' | 'gift' | 'git-branch' | 'git-commit' | 'git-pull-request' | 'github' | 'gitlab' | 'globe' | 'grid' | 'hard-drive' | 'hash' | 'headphones' | 'heart-filled' | 'heart' | 'help-circle' | 'hexagon' | 'home' | 'ia' | 'id' | 'image' | 'inbox' | 'inf' | 'info' | 'instagram' | 'internal' | 'italic' | 'key' | 'layers' | 'layout' | 'life-buoy' | 'like' | 'link-2' | 'link' | 'linkedin' | 'list-2' | 'list' | 'listagem' | 'loader' | 'lock' | 'log-in' | 'log-out' | 'machine-money' | 'mail' | 'map-pin' | 'map' | 'maximize-2' | 'maximize' | 'medical' | 'meh' | 'menu' | 'message-square' | 'mic-off' | 'mic' | 'minimize-2' | 'minimize' | 'minus-circle' | 'minus-square' | 'minus' | 'money' | 'moneylist' | 'monitor' | 'moon' | 'more-horizontal' | 'more-vertical' | 'mouse-pointer' | 'move' | 'music' | 'navigation-2' | 'navigation' | 'octagon' | 'ordenation' | 'others' | 'package' | 'paperclip' | 'pause-2' | 'pause-circle' | 'pause' | 'pdf' | 'pen-tool' | 'percent' | 'phone-call' | 'phone-incoming' | 'phone-msg' | 'phone-off' | 'phone-outgoing' | 'pie-chart' | 'pin' | 'pix' | 'play-circle' | 'play' | 'plug' | 'plus-circle' | 'plus-square' | 'plus' | 'pocket' | 'power' | 'pp-extended' | 'pp' | 'printer' | 'radio' | 'real' | 'refresh-ccw' | 'refresh-cw' | 'repeat' | 'revenue-plus' | 'revenue' | 'rewind' | 'robot' | 'rotate-ccw' | 'rotate-cw' | 'rotate' | 'rss' | 'save' | 'scissors' | 'search' | 'send' | 'server' | 'settings' | 'share-2' | 'share' | 'shield-off' | 'shield' | 'shop' | 'shopping-bag' | 'shopping-cart' | 'shuffle' | 'sidebar' | 'skip-back' | 'skip-forward' | 'slack' | 'slash' | 'sliders' | 'smartphone' | 'smile' | 'speaker' | 'square' | 'star' | 'stop-circle' | 'sun' | 'sunrise' | 'sunset' | 'sync' | 'tablet' | 'tag' | 'target' | 'terminal' | 'thermometer' | 'thumbs-down' | 'thumbs-up' | 'toggle-left' | 'toggle-right' | 'tool' | 'transfer' | 'trash-2' | 'trash' | 'trello' | 'trending-down' | 'trending-up' | 'triangle' | 'truck' | 'tv' | 'twitch' | 'twitter' | 'type' | 'umbrella' | 'underline' | 'unlock' | 'upload-cloud' | 'upload' | 'user-check' | 'user-minus' | 'user-plus' | 'user-x' | 'user' | 'user2-out' | 'users' | 'video-off' | 'video' | 'vigora' | 'voicemail' | 'volume-1' | 'volume-2' | 'volume-x' | 'volume' | 'weight' | 'whatsapp' | 'wifi-off' | 'wifi' | 'wifi2' | 'wind' | 'x-circle' | 'x-octagon' | 'x-square' | 'x' | 'xls' | 'zap-off' | 'zap' | 'zoom-in' | 'zoom-out' | 'zoom' | 'ecc-budget' | 'ecc-card' | 'ecc-cart' | 'ecc-client' | 'ecc-logout' | 'ecc-loock' | 'ecc-medical' | 'ecc-star' | 'ecc-table' | 'ecc-truck' | 'ecc-user' | 'ecc-www' | 'scl-facebook' | 'scl-google' | 'pmt-amex' | 'pmt-aura' | 'pmt-billet' | 'pmt-dinersclub' | 'pmt-discover' | 'pmt-elo' | 'pmt-hipercard' | 'pmt-jcb' | 'pmt-mastercard' | 'pmt-paypal' | 'pmt-pix' | 'pmt-visa' | 'illust-banking-billet' | 'illust-budget-analysis' | 'illust-budget-available' | 'illust-budget-error' | 'illust-budget-incomplete' | 'illust-card' | 'illust-check-prescription' | 'illust-date' | 'illust-error-prescription' | 'illust-inclusion-order' | 'illust-incomplete-prescription' | 'illust-order-canceled' | 'illust-order-error' | 'illust-order-success' | 'illust-order-withdrawal' | 'illust-pix' | 'illust-preparation-order' | 'illust-retention-prescription' | 'illust-sent-order' | 'illust-success-prescription' | 'bty-baldness' | 'bty-beard' | 'bty-beauty' | 'bty-blue-light' | 'bty-breasts-and-ass' | 'bty-dandruff' | 'bty-deodorants' | 'bty-eyebags-darkcircles' | 'bty-eyebrows-lashes' | 'bty-filler' | 'bty-hair-growth' | 'bty-hair-loss' | 'bty-hair-strengthener' | 'bty-hand-sanitizer' | 'bty-illuminator' | 'bty-moisturizer' | 'bty-mycosis-chilblains' | 'bty-nail-strengthener' | 'bty-neck-arms' | 'bty-pimples' | 'bty-repellent' | 'bty-sunscreen' | 'bty-varicose-veins' | 'bty-warts' | 'bty-white-hair' | 'bty-whitening' | 'bty-wound-healing' | 'bty-wrinkles' | 'hlt-ansiety-stress' | 'hlt-antiemetic' | 'hlt-bach-florals' | 'hlt-bacillus-lacto' | 'hlt-bad-breath' | 'hlt-builder-vase' | 'hlt-cholesterol' | 'hlt-depression' | 'hlt-diabetes' | 'hlt-digestion-reflux' | 'hlt-diuretics' | 'hlt-gases' | 'hlt-gastric-protector' | 'hlt-hangover' | 'hlt-health' | 'hlt-heart-health' | 'hlt-high-pressure' | 'hlt-homeopathy' | 'hlt-immunity' | 'hlt-intestinal-health' | 'hlt-intimate-hygiene' | 'hlt-libido' | 'hlt-live-protector' | 'hlt-longevity' | 'hlt-memory' | 'hlt-menopause' | 'hlt-nutritional-supplement' | 'hlt-pms-cramps' | 'hlt-prostate' | 'hlt-roast' | 'hlt-sexual-health' | 'hlt-sleep-well' | 'hlt-stress' | 'hlt-urinary-tract' | 'hlt-vitamins-minerals' | 'men-baldness' | 'men-beard' | 'men-dough' | 'men-gynecomastia' | 'men-libido' | 'men-men' | 'wmn-breasts-and-ass' | 'wmn-cellulite' | 'wmn-eyelashes-brows' | 'wmn-filler' | 'wmn-hair-growth' | 'wmn-hair-strengthener' | 'wmn-menopause' | 'wmn-pms-cramps' | 'wmn-whitening' | 'wmn-woman' | 'smr-dry-belly' | 'smr-hair' | 'smr-moisturizer' | 'smr-summer' | 'smr-sunscreen' | 'smr-tanning' | 'sts-budget-analysis' | 'sts-budget-available' | 'sts-budget-expired' | 'sts-budget-incomplete' | 'sts-inclusion-order' | 'sts-medication-performed' | 'sts-order-canceled' | 'sts-order-preparation' | 'sts-order-sent' | 'sts-order-withdrawal' | 'sts-revenue-check' | 'sts-revenue-retention' | 'sts-waiting-billet' | 'sts-waiting-card' | 'sts-waiting-repeat-date' | 'ppe-accelerate-metabolism' | 'ppe-articulations' | 'ppe-binge-eating' | 'ppe-bones' | 'ppe-bruises' | 'ppe-candy-will' | 'ppe-carbohydrate-blocker' | 'ppe-carbohydrate-blocker2' | 'ppe-cellulite-stretch-marks' | 'ppe-cellulite' | 'ppe-conductive-vessel' | 'ppe-detox' | 'ppe-dough' | 'ppe-dry-belly' | 'ppe-energy' | 'ppe-fatty-acids' | 'ppe-fibers' | 'ppe-gh' | 'ppe-gynecomastia' | 'ppe-increase-satiety' | 'ppe-increased-appetite' | 'ppe-inhibit-appetite' | 'ppe-laxative' | 'ppe-lipolitical-action' | 'ppe-localized-fat' | 'ppe-muscle-definition' | 'ppe-pain' | 'ppe-physical-perfomance' | 'ppe-post-workout' | 'ppe-pre-workout' | 'ppe-pro-hormonal' | 'ppe-reduction-measures' | 'ppe-slimming-chocolates' | 'ppe-slimming-gums' | 'ppe-slimming' | 'ppe-strength' | 'ppe-tcp' | 'ppe-thermogenic' | 'ppe-vasodilation' | 'form-bar' | 'form-capsule' | 'form-chocolate' | 'form-cookie' | 'form-cream' | 'form-enamel' | 'form-eyedrop' | 'form-eyeliner' | 'form-floral' | 'form-foam' | 'form-gel' | 'form-gum' | 'form-homeopathy' | 'form-lipstick' | 'form-lollipop' | 'form-lotion' | 'form-oil' | 'form-oralfilm' | 'form-oralpaste' | 'form-others' | 'form-patch' | 'form-pomade' | 'form-pot' | 'form-sachet' | 'form-serum' | 'form-shampoo' | 'form-soapshampoo' | 'form-spray' | 'form-sublingual' | 'form-sunscreen' | 'form-syringe' | 'form-syrup' | 'form-tablet' | 'form-units' | 'pp-colored-extended' | 'pp-colored';
3
+ export type IIconComponentProps = {
4
4
  name: IconName;
5
5
  size?: number | string;
6
6
  color?: GlobalColorsProps | (string & {});
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,oBAAY,QAAQ,GAChB,UAAU,GACV,wBAAwB,GACxB,IAAI,GACJ,SAAS,GACT,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,UAAU,GACV,SAAS,GACT,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,YAAY,GACZ,mBAAmB,GACnB,YAAY,GACZ,oBAAoB,GACpB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,UAAU,GACV,SAAS,GACT,OAAO,GACP,MAAM,GACN,aAAa,GACb,WAAW,GACX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AAc,GACd,cAAc,GACd,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,UAAU,GACV,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,aAAa,GACb,cAAc,GACd,eAAe,GACf,aAAa,GACb,WAAW,GACX,UAAU,GACV,UAAU,GACV,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,aAAa,GACb,UAAU,GACV,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,aAAa,GACb,UAAU,GACV,aAAa,GACb,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,qBAAqB,GACrB,YAAY,CAAC;AAEjB,oBAAY,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACjD,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,MAAM,QAAQ,GAChB,UAAU,GACV,wBAAwB,GACxB,IAAI,GACJ,SAAS,GACT,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,UAAU,GACV,SAAS,GACT,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,YAAY,GACZ,mBAAmB,GACnB,YAAY,GACZ,oBAAoB,GACpB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,UAAU,G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AAkB,GAClB,wBAAwB,GACxB,yBAAyB,GACzB,mBAAmB,GACnB,cAAc,GACd,cAAc,GACd,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,UAAU,GACV,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,aAAa,GACb,cAAc,GACd,eAAe,GACf,aAAa,GACb,WAAW,GACX,UAAU,GACV,UAAU,GACV,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,aAAa,GACb,UAAU,GACV,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,YAAY,GACZ,aAAa,GACb,UAAU,GACV,aAAa,GACb,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,qBAAqB,GACrB,YAAY,CAAC;AAEjB,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACjD,CAAC"}
@@ -4,46 +4,25 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.allIcons = void 0;
7
-
8
7
  var _dash = require("../data/dash");
9
-
10
8
  var _beauty = require("../data/beauty");
11
-
12
9
  var _ecommerce = require("../data/ecommerce");
13
-
14
10
  var _health = require("../data/health");
15
-
16
11
  var _illustrations = require("../data/illustrations");
17
-
18
12
  var _men = require("../data/men");
19
-
20
13
  var _form = require("../data/form");
21
-
22
14
  var _payment = require("../data/payment");
23
-
24
15
  var _physicalPerfomance = require("../data/physicalPerfomance");
25
-
26
16
  var _social = require("../data/social");
27
-
28
17
  var _status = require("../data/status");
29
-
30
18
  var _summer = require("../data/summer");
31
-
32
19
  var _woman = require("../data/woman");
33
-
34
20
  var _pedidoPago = require("../data/pedidoPago");
35
-
36
21
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
37
-
38
22
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39
-
40
23
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
41
-
42
24
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
43
-
44
25
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
45
-
46
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
47
-
26
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
48
27
  var allIcons = [].concat(_toConsumableArray(_dash.dashIcons), _toConsumableArray(_beauty.beautyIcons), _toConsumableArray(_ecommerce.ecommerceIcons), _toConsumableArray(_health.healthIcons), _toConsumableArray(_illustrations.illustrationsIcons), _toConsumableArray(_men.menIcons), _toConsumableArray(_payment.paymentIcons), _toConsumableArray(_physicalPerfomance.physicalPerfomanceIcons), _toConsumableArray(_social.socialIcons), _toConsumableArray(_status.statusIcons), _toConsumableArray(_summer.summerIcons), _toConsumableArray(_woman.womanIcons), _toConsumableArray(_form.formIcons), _toConsumableArray(_pedidoPago.pedidoPagoIcons));
49
28
  exports.allIcons = allIcons;
@@ -1,5 +1,5 @@
1
1
  import { IconName } from '../types';
2
- declare type IconProp = IconName | (string & {});
2
+ type IconProp = IconName | (string & {});
3
3
  export declare function iconExists(iconName: IconProp): boolean;
4
4
  export {};
5
5
  //# sourceMappingURL=iconExists.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"iconExists.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/utils/iconExists.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,aAAK,QAAQ,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEzC,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,WAI5C"}
1
+ {"version":3,"file":"iconExists.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/utils/iconExists.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,KAAK,QAAQ,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEzC,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,WAI5C"}
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.iconExists = iconExists;
7
-
8
7
  var _allIcons = require("./allIcons");
9
-
10
8
  function iconExists(iconName) {
11
9
  var iconFound = _allIcons.allIcons.find(function (icon) {
12
10
  return icon.name === iconName;
13
11
  });
14
-
15
12
  return Boolean(iconFound);
16
13
  }