@tactics/toddle-styleguide 1.0.0 → 1.0.2

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 (292) hide show
  1. package/App.tsx +27 -0
  2. package/index.d.ts +5 -1
  3. package/index.tsx +8 -0
  4. package/package.json +1 -1
  5. package/src/components/{templates/popover/components → atoms}/backdrop/backdrop.component.tsx +1 -1
  6. package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +54 -54
  7. package/src/components/atoms/calendar/calendar.component.tsx +4 -2
  8. package/src/components/atoms/footer/__snapshots__/footer.test.js.snap +9 -9
  9. package/src/components/atoms/increment-input/__snapshots__/increment-input.test.js.snap +18 -18
  10. package/src/components/atoms/increment-input/increment-input.component.tsx +12 -2
  11. package/src/components/atoms/split-container/__snapshots__/split-container.test.js.snap +9 -9
  12. package/src/components/molecules/blocked-message/__snapshots__/blocked-message.test.js.snap +9 -9
  13. package/src/components/molecules/blocked-message/blocked-message.component.tsx +6 -1
  14. package/src/components/molecules/button/__snapshots__/button.test.js.snap +36 -30
  15. package/src/components/molecules/button/button.component.d.ts +6 -3
  16. package/src/components/molecules/button/button.component.tsx +27 -3
  17. package/src/components/molecules/button/button.preview.tsx +6 -3
  18. package/src/components/molecules/button/button.test.js +9 -6
  19. package/src/components/molecules/calendar-select/__snapshots__/calendar-select.test.js.snap +29 -29
  20. package/src/components/molecules/calendar-select/calendar-select.component.tsx +7 -4
  21. package/src/components/molecules/calendar-select/calendar-select.styles.js +2 -2
  22. package/src/components/molecules/date-input/__snapshots__/date-input.test.js.snap +9 -9
  23. package/src/components/molecules/date-input/date-input.component.tsx +5 -1
  24. package/src/components/molecules/default-select/__snapshots__/default-select.test.js.snap +9 -9
  25. package/src/components/molecules/default-select/default-select.component.tsx +5 -1
  26. package/src/components/molecules/failed-to-send/__snapshots__/failed-bubble.test.js.snap +27 -27
  27. package/src/components/molecules/failed-to-send/failed-bubble.component.tsx +14 -3
  28. package/src/components/molecules/language-button/__snapshots__/language-button.test.js.snap +95 -0
  29. package/src/components/molecules/language-button/language-button.component.d.ts +7 -0
  30. package/src/components/molecules/language-button/language-button.component.tsx +33 -0
  31. package/src/components/molecules/language-button/language-button.preview.d.ts +1 -0
  32. package/src/components/molecules/language-button/language-button.preview.tsx +29 -0
  33. package/src/components/molecules/language-button/language-button.styles.d.ts +8 -0
  34. package/src/components/molecules/language-button/language-button.styles.js +12 -0
  35. package/src/components/molecules/language-button/language-button.test.js +29 -0
  36. package/src/components/molecules/message-input/__snapshots__/message-input.test.js.snap +140 -72
  37. package/src/components/molecules/message-input/message-input.component.tsx +10 -2
  38. package/src/components/molecules/more-info-button/__snapshots__/more-info-button.test.js.snap +99 -0
  39. package/src/components/molecules/more-info-button/more-info-button.component.d.ts +7 -0
  40. package/src/components/molecules/more-info-button/more-info-button.component.tsx +33 -0
  41. package/src/components/molecules/more-info-button/more-info-button.preview.d.ts +1 -0
  42. package/src/components/molecules/more-info-button/more-info-button.preview.tsx +29 -0
  43. package/src/components/molecules/more-info-button/more-info-button.styles.d.ts +10 -0
  44. package/src/components/molecules/more-info-button/more-info-button.styles.js +15 -0
  45. package/src/components/molecules/more-info-button/more-info-button.test.js +29 -0
  46. package/src/components/molecules/password-input/__snapshots__/password-input.test.js.snap +30 -30
  47. package/src/components/molecules/password-input/password-input.component.tsx +10 -2
  48. package/src/components/molecules/pressable-icon/__snapshots__/pressable-icon.test.js.snap +36 -36
  49. package/src/components/molecules/pressable-icon/pressable-icon.preview.tsx +4 -4
  50. package/src/components/molecules/pressable-icon/pressable-icon.test.js +8 -4
  51. package/src/components/molecules/search-input/__snapshots__/search.test.js.snap +15 -18
  52. package/src/components/molecules/search-input/search.component.tsx +6 -2
  53. package/src/components/molecules/search-input/search.styles.js +5 -8
  54. package/src/components/molecules/select-list-item/__snapshots__/select-list-item.test.js.snap +431 -431
  55. package/src/components/molecules/select-list-item/select-list-item-preview.tsx +3 -4
  56. package/src/components/molecules/select-list-item/select-list-item.component.tsx +21 -18
  57. package/src/components/molecules/select-list-item/select-list-item.styles.js +10 -7
  58. package/src/components/molecules/select-picker/__snapshots__/select-picker.test.js.snap +18 -20
  59. package/src/components/molecules/select-picker/select-picker.component.tsx +6 -1
  60. package/src/components/molecules/select-picker/select-picker.styles.js +2 -2
  61. package/src/components/molecules/send-bubble/__snapshots__/send-text-bubble.test.js.snap +108 -108
  62. package/src/components/molecules/send-bubble/send-text-bubble.component.tsx +2 -2
  63. package/src/components/molecules/snackbar/__snapshots__/snackbar.test.js.snap +36 -36
  64. package/src/components/molecules/snackbar/snackbar.component.tsx +21 -2
  65. package/src/components/molecules/swipe/__snapshots__/swipe.test.js.snap +15 -11
  66. package/src/components/molecules/swipe/swipe.component.tsx +10 -2
  67. package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +10 -10
  68. package/src/components/organisms/child-list-item/child-list-item.component.tsx +7 -2
  69. package/src/components/organisms/child-list-item/child-list-item.preview.tsx +7 -1
  70. package/src/components/organisms/contact-item/__snapshots__/contact-item.test.js.snap +18 -18
  71. package/src/components/organisms/contact-item/contact-item.component.tsx +6 -1
  72. package/src/components/organisms/loading-indicator/__snapshots__/loading-indicator.test.js.snap +474 -0
  73. package/src/components/organisms/loading-indicator/animation-style.animate.d.ts +3 -0
  74. package/src/components/organisms/loading-indicator/animation-style.animate.ts +164 -0
  75. package/src/components/organisms/loading-indicator/container.component.d.ts +1 -0
  76. package/src/components/organisms/loading-indicator/container.component.tsx +65 -0
  77. package/src/components/organisms/loading-indicator/dot.component.d.ts +6 -0
  78. package/src/components/organisms/loading-indicator/dot.component.tsx +27 -0
  79. package/src/components/organisms/loading-indicator/loading-indicator.component.d.ts +2 -0
  80. package/src/components/organisms/loading-indicator/loading-indicator.component.tsx +21 -0
  81. package/src/components/organisms/loading-indicator/loading-indicator.preview.d.ts +1 -0
  82. package/src/components/organisms/loading-indicator/loading-indicator.preview.tsx +100 -0
  83. package/src/components/organisms/loading-indicator/loading-indicator.test.js +40 -0
  84. package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +18 -18
  85. package/src/components/organisms/my-child-list-item/my-child-list-item.component.tsx +12 -2
  86. package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +135 -135
  87. package/src/components/organisms/text-bubble/text-bubble.test.js +0 -1
  88. package/src/components/templates/modal/components/fade-panel.component.d.ts +11 -0
  89. package/src/components/templates/modal/components/fade-panel.component.tsx +53 -0
  90. package/src/components/templates/modal/components/fade-panel.styles.d.ts +16 -0
  91. package/src/components/templates/modal/components/fade-panel.styles.js +17 -0
  92. package/src/components/templates/modal/modal-preview.styles.d.ts +13 -0
  93. package/src/components/templates/modal/modal-preview.styles.js +17 -0
  94. package/src/components/templates/modal/modal.component.d.ts +10 -0
  95. package/src/components/templates/modal/modal.component.tsx +56 -0
  96. package/src/components/templates/modal/modal.preview.d.ts +1 -0
  97. package/src/components/templates/modal/modal.preview.tsx +73 -0
  98. package/src/components/templates/modal/modal.styles.d.ts +21 -0
  99. package/src/components/templates/modal/modal.styles.js +23 -0
  100. package/src/components/templates/popover/components/index.js +1 -1
  101. package/src/components/templates/popover/components/modal/close/close.component.tsx +9 -4
  102. package/src/components/templates/popover/components/modal/close/close.styles.d.ts +4 -3
  103. package/src/components/templates/popover/components/modal/close/close.styles.js +8 -5
  104. package/src/components/templates/popover/components/modal/heading/heading.styles.js +1 -1
  105. package/src/components/templates/popover/components/modal/modal.component.tsx +1 -1
  106. package/src/components/templates/popover/components/modal/modal.styles.js +1 -1
  107. package/src/components/templates/popover/popover.component.tsx +2 -1
  108. package/src/context/loading-dots.context.d.ts +8 -0
  109. package/src/context/loading-dots.context.tsx +33 -0
  110. package/src/icons/__snapshots__/icons.test.js.snap +572 -482
  111. package/src/icons/icons.test.js +126 -51
  112. package/src/icons/index.d.ts +2 -56
  113. package/src/icons/index.tsx +11 -3
  114. package/src/icons/outline/calendar/calendar.icon.d.ts +2 -2
  115. package/src/icons/outline/calendar/calendar.icon.tsx +5 -4
  116. package/src/icons/outline/chat/chat.icon.d.ts +2 -2
  117. package/src/icons/outline/chat/chat.icon.tsx +5 -4
  118. package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +2 -2
  119. package/src/icons/outline/chat-alt/chat-alt.icon.tsx +5 -4
  120. package/src/icons/outline/check-circle/check-circle.icon.d.ts +2 -2
  121. package/src/icons/outline/check-circle/check-circle.icon.tsx +5 -4
  122. package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +2 -2
  123. package/src/icons/outline/chevron-left/chevron-left.icon.tsx +5 -4
  124. package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +2 -2
  125. package/src/icons/outline/chevron-right/chevron-right.icon.tsx +5 -4
  126. package/src/icons/outline/clock/clock.icon.d.ts +2 -2
  127. package/src/icons/outline/clock/clock.icon.tsx +5 -4
  128. package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +2 -2
  129. package/src/icons/outline/cloud-download/cloud-download.icon.tsx +5 -4
  130. package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +2 -2
  131. package/src/icons/outline/currency-euro/currency-euro.icon.tsx +5 -4
  132. package/src/icons/outline/document-text/document-text.icon.d.ts +2 -2
  133. package/src/icons/outline/document-text/document-text.icon.tsx +5 -4
  134. package/src/icons/outline/exclamation/exclamation.icon.d.ts +2 -2
  135. package/src/icons/outline/exclamation/exclamation.icon.tsx +5 -4
  136. package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +2 -2
  137. package/src/icons/outline/exclamation-circle/exclamation-circle.icon.tsx +8 -4
  138. package/src/icons/outline/eye/eye.icon.d.ts +2 -2
  139. package/src/icons/outline/eye/eye.icon.tsx +6 -5
  140. package/src/icons/outline/eye-off/eye-off.icon.d.ts +2 -2
  141. package/src/icons/outline/eye-off/eye-off.icon.tsx +4 -3
  142. package/src/icons/outline/filter/filter.icon.d.ts +2 -2
  143. package/src/icons/outline/filter/filter.icon.tsx +5 -42
  144. package/src/icons/outline/information-circle/information-circle.icon.d.ts +2 -2
  145. package/src/icons/outline/information-circle/information-circle.icon.tsx +8 -4
  146. package/src/icons/outline/logout/logout.icon.d.ts +2 -2
  147. package/src/icons/outline/logout/logout.icon.tsx +11 -4
  148. package/src/icons/outline/mail/mail.icon.d.ts +2 -2
  149. package/src/icons/outline/mail/mail.icon.tsx +5 -4
  150. package/src/icons/outline/mail-open/mail-open.icon.d.ts +2 -2
  151. package/src/icons/outline/mail-open/mail-open.icon.tsx +5 -4
  152. package/src/icons/outline/menu/menu.icon.d.ts +2 -2
  153. package/src/icons/outline/menu/menu.icon.tsx +5 -4
  154. package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +2 -2
  155. package/src/icons/outline/minus-sm/minus-sm.icon.tsx +5 -9
  156. package/src/icons/outline/office-building/office-building.icon.d.ts +2 -2
  157. package/src/icons/outline/office-building/office-building.icon.tsx +5 -4
  158. package/src/icons/outline/outline-default.preview.tsx +49 -45
  159. package/src/icons/outline/outline-grey.preview.tsx +56 -40
  160. package/src/icons/outline/outline-white.preview.tsx +61 -41
  161. package/src/icons/outline/outline.d.ts +2 -42
  162. package/src/icons/outline/outline.tsx +99 -42
  163. package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +2 -2
  164. package/src/icons/outline/paper-airplane/paper-airplane.icon.tsx +11 -4
  165. package/src/icons/outline/paperclip/paperclip.icon.d.ts +2 -2
  166. package/src/icons/outline/paperclip/paperclip.icon.tsx +5 -4
  167. package/src/icons/outline/pencil/pencil.icon.d.ts +2 -2
  168. package/src/icons/outline/pencil/pencil.icon.tsx +5 -4
  169. package/src/icons/outline/phone/phone.icon.d.ts +2 -2
  170. package/src/icons/outline/phone/phone.icon.tsx +5 -4
  171. package/src/icons/outline/plus/plus.icon.d.ts +2 -2
  172. package/src/icons/outline/plus/plus.icon.tsx +5 -4
  173. package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +2 -2
  174. package/src/icons/outline/plus-sm/plus-sm.icon.tsx +5 -9
  175. package/src/icons/outline/qrcode/qrcode.icon.d.ts +2 -2
  176. package/src/icons/outline/qrcode/qrcode.icon.tsx +5 -4
  177. package/src/icons/outline/refresh/refresh.icon.d.ts +2 -2
  178. package/src/icons/outline/refresh/refresh.icon.tsx +5 -4
  179. package/src/icons/outline/search/search.icon.d.ts +2 -2
  180. package/src/icons/outline/search/search.icon.tsx +5 -4
  181. package/src/icons/outline/selector/selector.icon.d.ts +2 -2
  182. package/src/icons/outline/selector/selector.icon.tsx +5 -4
  183. package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -2
  184. package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.tsx +5 -4
  185. package/src/icons/outline/status-online/status-online.icon.d.ts +2 -2
  186. package/src/icons/outline/status-online/status-online.icon.tsx +5 -4
  187. package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +2 -2
  188. package/src/icons/outline/thumb-up/thumb-up.icon.tsx +5 -4
  189. package/src/icons/outline/trash/trash.icon.d.ts +2 -2
  190. package/src/icons/outline/trash/trash.icon.tsx +5 -4
  191. package/src/icons/outline/user/user.icon.d.ts +2 -2
  192. package/src/icons/outline/user/user.icon.tsx +6 -5
  193. package/src/icons/outline/user-group/user-group.icon.d.ts +2 -2
  194. package/src/icons/outline/user-group/user-group.icon.tsx +5 -4
  195. package/src/icons/outline/users/users.icon.d.ts +2 -2
  196. package/src/icons/outline/users/users.icon.tsx +5 -4
  197. package/src/icons/outline/xmark/xmark.icon.d.ts +2 -0
  198. package/src/icons/outline/{cross/cross.icon.tsx → xmark/xmark.icon.tsx} +5 -4
  199. package/src/icons/solid/calendar/calendar.icon.d.ts +2 -0
  200. package/src/icons/solid/calendar/calendar.icon.tsx +21 -0
  201. package/src/icons/solid/chat/chat.icon.d.ts +2 -0
  202. package/src/icons/solid/chat/chat.icon.tsx +21 -0
  203. package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -2
  204. package/src/icons/solid/chat-alt/chat-alt-solid.icon.tsx +5 -4
  205. package/src/icons/solid/check-circle/check-circle.icon.d.ts +2 -0
  206. package/src/icons/solid/check-circle/check-circle.icon.tsx +21 -0
  207. package/src/icons/solid/chevron-left/chevron-left.icon.d.ts +2 -0
  208. package/src/icons/solid/chevron-left/chevron-left.icon.tsx +21 -0
  209. package/src/icons/solid/chevron-right/chevron-right.icon.d.ts +2 -0
  210. package/src/icons/solid/chevron-right/chevron-right.icon.tsx +21 -0
  211. package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -2
  212. package/src/icons/solid/clock/clock-solid.icon.tsx +5 -4
  213. package/src/icons/solid/cloud-download/cloud-download.icon.d.ts +2 -0
  214. package/src/icons/solid/cloud-download/cloud-download.icon.tsx +21 -0
  215. package/src/icons/solid/currency-euro/currency-euro.icon.d.ts +2 -0
  216. package/src/icons/solid/currency-euro/currency-euro.icon.tsx +21 -0
  217. package/src/icons/solid/document-text/document-text-solid.icon.d.ts +2 -2
  218. package/src/icons/solid/document-text/document-text-solid.icon.tsx +4 -3
  219. package/src/icons/solid/exclamation/exclamation.icon.d.ts +2 -0
  220. package/src/icons/solid/exclamation/exclamation.icon.tsx +20 -0
  221. package/src/icons/solid/exclamation-circle/exclamation-circle.icon.d.ts +2 -0
  222. package/src/icons/solid/exclamation-circle/exclamation-circle.icon.tsx +23 -0
  223. package/src/icons/solid/eye/eye.icon.d.ts +2 -0
  224. package/src/icons/solid/eye/eye.icon.tsx +24 -0
  225. package/src/icons/solid/eye-off/eye-off.icon.d.ts +2 -0
  226. package/src/icons/solid/eye-off/eye-off.icon.tsx +24 -0
  227. package/src/icons/solid/filter/filter.icon.d.ts +2 -0
  228. package/src/icons/solid/filter/filter.icon.tsx +21 -0
  229. package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +2 -2
  230. package/src/icons/solid/information-circle/information-circle-solid.icon.tsx +8 -4
  231. package/src/icons/solid/logout/logout.icon.d.ts +2 -0
  232. package/src/icons/solid/logout/logout.icon.tsx +26 -0
  233. package/src/icons/solid/mail/mail.icon.d.ts +2 -0
  234. package/src/icons/solid/mail/mail.icon.tsx +23 -0
  235. package/src/icons/solid/mail-open/mail-open.icon.d.ts +2 -0
  236. package/src/icons/solid/mail-open/mail-open.icon.tsx +21 -0
  237. package/src/icons/solid/menu/menu.icon.d.ts +2 -0
  238. package/src/icons/solid/menu/menu.icon.tsx +33 -0
  239. package/src/icons/solid/minus-sm/minus-sm.icon.d.ts +2 -0
  240. package/src/icons/solid/minus-sm/minus-sm.icon.tsx +21 -0
  241. package/src/icons/solid/office-building/office-building.icon.d.ts +2 -0
  242. package/src/icons/solid/office-building/office-building.icon.tsx +21 -0
  243. package/src/icons/solid/paper-airplane/paper-airplane.icon.d.ts +2 -0
  244. package/src/icons/solid/paper-airplane/paper-airplane.icon.tsx +25 -0
  245. package/src/icons/solid/paperclip/paperclip.icon.d.ts +2 -0
  246. package/src/icons/solid/paperclip/paperclip.icon.tsx +21 -0
  247. package/src/icons/solid/pencil/pencil-solid.icon.d.ts +2 -2
  248. package/src/icons/solid/pencil/pencil-solid.icon.tsx +6 -5
  249. package/src/icons/solid/phone/phone-solid.icon.d.ts +2 -2
  250. package/src/icons/solid/phone/phone-solid.icon.tsx +5 -4
  251. package/src/icons/solid/plus/plus.icon.d.ts +2 -0
  252. package/src/icons/solid/plus/plus.icon.tsx +21 -0
  253. package/src/icons/solid/plus-sm/plus-sm.icon.d.ts +2 -0
  254. package/src/icons/solid/plus-sm/plus-sm.icon.tsx +21 -0
  255. package/src/icons/solid/qrcode/qrcode.icon.d.ts +2 -0
  256. package/src/icons/solid/qrcode/qrcode.icon.tsx +60 -0
  257. package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -2
  258. package/src/icons/solid/refresh/refresh-solid.icon.tsx +5 -4
  259. package/src/icons/solid/search/search.icon.d.ts +2 -0
  260. package/src/icons/solid/search/search.icon.tsx +21 -0
  261. package/src/icons/solid/selector/selector.icon.d.ts +2 -0
  262. package/src/icons/solid/selector/selector.icon.tsx +21 -0
  263. package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -0
  264. package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.tsx +31 -0
  265. package/src/icons/solid/solid.d.ts +2 -12
  266. package/src/icons/solid/solid.preview.tsx +95 -30
  267. package/src/icons/solid/solid.tsx +133 -21
  268. package/src/icons/solid/status-online/status-online-solid.icon.d.ts +2 -2
  269. package/src/icons/solid/status-online/status-online-solid.icon.tsx +5 -10
  270. package/src/icons/solid/thumb-up/thumb-up.icon.d.ts +2 -0
  271. package/src/icons/solid/thumb-up/thumb-up.icon.tsx +23 -0
  272. package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -2
  273. package/src/icons/solid/trash/trash-solid.icon.tsx +5 -4
  274. package/src/icons/solid/user/user.icon.d.ts +2 -0
  275. package/src/icons/solid/user/user.icon.tsx +23 -0
  276. package/src/icons/solid/user-group/user-group.icon.d.ts +2 -0
  277. package/src/icons/solid/user-group/user-group.icon.tsx +72 -0
  278. package/src/icons/solid/users/users-solid.icon.d.ts +2 -2
  279. package/src/icons/solid/users/users-solid.icon.tsx +29 -3
  280. package/src/icons/solid/xmark/xmark.icon.d.ts +2 -0
  281. package/src/icons/solid/xmark/xmark.icon.tsx +21 -0
  282. package/src/interfaces/icon.interface.d.ts +11 -0
  283. package/src/interfaces/icon.interface.ts +12 -0
  284. package/src/theme/provider/parent.theme.ts +1 -1
  285. package/src/types/icontype.type.d.ts +2 -4
  286. package/src/types/icontype.type.ts +43 -4
  287. package/src/types/loading-dots.type.d.ts +8 -0
  288. package/src/types/loading-dots.type.ts +8 -0
  289. package/src/icons/outline/cross/cross.icon.d.ts +0 -2
  290. /package/src/components/{templates/popover/components → atoms}/backdrop/backdrop.component.d.ts +0 -0
  291. /package/src/components/{templates/popover/components → atoms}/backdrop/backdrop.styles.d.ts +0 -0
  292. /package/src/components/{templates/popover/components → atoms}/backdrop/backdrop.styles.js +0 -0
@@ -7,247 +7,322 @@ describe('test icons', () => {
7
7
  const whiteColor = '#ffffff';
8
8
 
9
9
  it('render an outlined calendar icon in the main color', function () {
10
- const tree = render.create(<Icon.Outline.Calendar />).toJSON();
10
+ const tree = render
11
+ .create(<Icon style={'regular'} name={'calendar'} />)
12
+ .toJSON();
11
13
  expect(tree).toMatchSnapshot();
12
14
  });
13
15
  it('render an outlined chat icon in the main color', () => {
14
- const tree = render.create(<Icon.Outline.Chat />).toJSON();
16
+ const tree = render
17
+ .create(<Icon style={'regular'} name={'chat'} />)
18
+ .toJSON();
15
19
  expect(tree).toMatchSnapshot();
16
20
  });
17
- it('render an outlined chat-alt icon in a grey color', () => {
21
+ it('render an outlined chat-alt icon in a grey color and a size of 20px', () => {
18
22
  const tree = render
19
- .create(<Icon.Outline.ChatAlt color={greyColor} />)
23
+ .create(
24
+ <Icon style={'regular'} name={'chat-alt'} color={greyColor} size={20} />
25
+ )
20
26
  .toJSON();
21
27
  expect(tree).toMatchSnapshot();
22
28
  });
23
29
  it('render an outlined check-circle icon in a grey color', () => {
24
30
  const tree = render
25
- .create(<Icon.Outline.CheckCircle color={greyColor} />)
31
+ .create(
32
+ <Icon style={'regular'} name={'check-circle'} color={greyColor} />
33
+ )
26
34
  .toJSON();
27
35
  expect(tree).toMatchSnapshot();
28
36
  });
29
37
  it('render an outlined chevron-left icon in a white color', () => {
30
38
  const tree = render
31
- .create(<Icon.Outline.ChevronLeft color={whiteColor} />)
39
+ .create(
40
+ <Icon style={'regular'} name={'chevron-left'} color={whiteColor} />
41
+ )
32
42
  .toJSON();
33
43
  expect(tree).toMatchSnapshot();
34
44
  });
35
45
  it('render an outlined chevron-right icon in a white color', () => {
36
46
  const tree = render
37
- .create(<Icon.Outline.ChevronRight color={whiteColor} />)
47
+ .create(
48
+ <Icon style={'regular'} name={'chevron-right'} color={whiteColor} />
49
+ )
38
50
  .toJSON();
39
51
  expect(tree).toMatchSnapshot();
40
52
  });
41
53
  it('render an outlined clock icon in the main color', () => {
42
- const tree = render.create(<Icon.Outline.Clock />).toJSON();
54
+ const tree = render
55
+ .create(<Icon style={'regular'} name={'clock'} />)
56
+ .toJSON();
43
57
  expect(tree).toMatchSnapshot();
44
58
  });
45
- it('render an outlined cloud-download icon in a grey color', () => {
59
+ it('render an outlined cloud-download icon in a grey color with a size of 16px', () => {
46
60
  const tree = render
47
- .create(<Icon.Outline.CloudDownload color={greyColor} />)
61
+ .create(
62
+ <Icon
63
+ style={'regular'}
64
+ name={'cloud-download'}
65
+ color={greyColor}
66
+ size={16}
67
+ />
68
+ )
48
69
  .toJSON();
49
70
  expect(tree).toMatchSnapshot();
50
71
  });
51
72
  it('render an outlined currency-euro icon in a red color', () => {
52
73
  const tree = render
53
- .create(<Icon.Outline.CurrencyEuro color={'#FF0000'} />)
74
+ .create(
75
+ <Icon style={'regular'} name={'currency-euro'} color={'#FF0000'} />
76
+ )
54
77
  .toJSON();
55
78
  expect(tree).toMatchSnapshot();
56
79
  });
57
- it('render an outlined document-text icon in a white color', () => {
80
+ it('render a solid document-text icon in a white color', () => {
58
81
  const tree = render
59
- .create(<Icon.Outline.DocumentText color={whiteColor} />)
82
+ .create(
83
+ <Icon style={'solid'} name={'document-text'} color={whiteColor} />
84
+ )
60
85
  .toJSON();
61
86
  expect(tree).toMatchSnapshot();
62
87
  });
63
88
  it('render an outlined exclamation icon in a blue color', () => {
64
89
  const tree = render
65
- .create(<Icon.Outline.Exclamation color={'#0000FF'} />)
90
+ .create(<Icon style={'regular'} name={'exclamation'} color={'#0000FF'} />)
66
91
  .toJSON();
67
92
  expect(tree).toMatchSnapshot();
68
93
  });
69
94
  it('render an outlined exclamation-circle icon in a pink color', () => {
70
95
  const tree = render
71
- .create(<Icon.Outline.ExclamationCircle color={'#FFC0CB'} />)
96
+ .create(
97
+ <Icon style={'regular'} name={'exclamation-circle'} color={'#FFC0CB'} />
98
+ )
72
99
  .toJSON();
73
100
  expect(tree).toMatchSnapshot();
74
101
  });
75
102
  it('render an outlined eye icon in a purple color', () => {
76
- const tree = render.create(<Icon.Outline.Eye color={'#A020F0'} />).toJSON();
103
+ const tree = render
104
+ .create(<Icon style={'regular'} name={'eye'} color={'#A020F0'} />)
105
+ .toJSON();
77
106
  expect(tree).toMatchSnapshot();
78
107
  });
79
108
  it('render an outlined filter icon in the main color', () => {
80
- const tree = render.create(<Icon.Outline.Filter />).toJSON();
109
+ const tree = render
110
+ .create(<Icon style={'regular'} name={'filter'} />)
111
+ .toJSON();
81
112
  expect(tree).toMatchSnapshot();
82
113
  });
83
114
  it('render an outlined information-circle icon in the main color', () => {
84
- const tree = render.create(<Icon.Outline.InformationCircle />).toJSON();
115
+ const tree = render
116
+ .create(<Icon style={'regular'} name={'information-circle'} />)
117
+ .toJSON();
85
118
  expect(tree).toMatchSnapshot();
86
119
  });
87
120
  it('render an outlined logout icon in a red color', () => {
88
121
  const tree = render
89
- .create(<Icon.Outline.Logout color={'#FF0000'} />)
122
+ .create(<Icon style={'regular'} name={'logout'} color={'#FF0000'} />)
90
123
  .toJSON();
91
124
  expect(tree).toMatchSnapshot();
92
125
  });
93
126
  it('render an outlined mail icon in a brown color', () => {
94
127
  const tree = render
95
- .create(<Icon.Outline.Mail color={'#964B00'} />)
128
+ .create(<Icon style={'regular'} name={'mail'} color={'#964B00'} />)
96
129
  .toJSON();
97
130
  expect(tree).toMatchSnapshot();
98
131
  });
99
132
  it('render an outlined mail-open icon in a grey color', () => {
100
133
  const tree = render
101
- .create(<Icon.Outline.MailOpen color={greyColor} />)
134
+ .create(<Icon style={'regular'} name={'mail-open'} color={greyColor} />)
102
135
  .toJSON();
103
136
  expect(tree).toMatchSnapshot();
104
137
  });
105
138
  it('render an outlined menu icon in the main color', () => {
106
- const tree = render.create(<Icon.Outline.Menu />).toJSON();
139
+ const tree = render
140
+ .create(<Icon style={'regular'} name={'menu'} />)
141
+ .toJSON();
107
142
  expect(tree).toMatchSnapshot();
108
143
  });
109
144
  it('render an outlined minus-sm icon in the main color', () => {
110
- const tree = render.create(<Icon.Outline.MinusSm />).toJSON();
145
+ const tree = render
146
+ .create(<Icon style={'regular'} name={'minus-sm'} />)
147
+ .toJSON();
111
148
  expect(tree).toMatchSnapshot();
112
149
  });
113
150
  it('render an outlined office-building icon in a green color', () => {
114
151
  const tree = render
115
- .create(<Icon.Outline.OfficeBuilding color={'#00FF00'} />)
152
+ .create(
153
+ <Icon style={'regular'} name={'office-building'} color={'#00FF00'} />
154
+ )
116
155
  .toJSON();
117
156
  expect(tree).toMatchSnapshot();
118
157
  });
119
158
  it('render an outlined paper-airplane icon in a white color', () => {
120
159
  const tree = render
121
- .create(<Icon.Outline.PaperAirplane color={whiteColor} />)
160
+ .create(
161
+ <Icon style={'regular'} name={'paper-airplane'} color={whiteColor} />
162
+ )
122
163
  .toJSON();
123
164
  expect(tree).toMatchSnapshot();
124
165
  });
125
166
  it('render an outlined paperclip icon in the main color', () => {
126
- const tree = render.create(<Icon.Outline.PaperClip />).toJSON();
167
+ const tree = render
168
+ .create(<Icon style={'regular'} name={'paper-clip'} />)
169
+ .toJSON();
127
170
  expect(tree).toMatchSnapshot();
128
171
  });
129
172
  it('render an outlined pencil icon in the main color', () => {
130
- const tree = render.create(<Icon.Outline.Pencil />).toJSON();
173
+ const tree = render
174
+ .create(<Icon style={'regular'} name={'pencil'} />)
175
+ .toJSON();
131
176
  expect(tree).toMatchSnapshot();
132
177
  });
133
178
  it('render an outlined phone icon in the main color', () => {
134
- const tree = render.create(<Icon.Outline.Phone />).toJSON();
179
+ const tree = render
180
+ .create(<Icon style={'regular'} name={'phone'} />)
181
+ .toJSON();
135
182
  expect(tree).toMatchSnapshot();
136
183
  });
137
184
  it('render an outlined plus icon in a grey color', () => {
138
185
  const tree = render
139
- .create(<Icon.Outline.Plus color={greyColor} />)
186
+ .create(<Icon style={'regular'} name={'plus'} color={greyColor} />)
140
187
  .toJSON();
141
188
  expect(tree).toMatchSnapshot();
142
189
  });
143
190
  it('render an outlined plus-sm icon in a red color', () => {
144
191
  const tree = render
145
- .create(<Icon.Outline.PlusSm color={'#FF0000'} />)
192
+ .create(<Icon style={'regular'} name={'plus-sm'} color={'#FF0000'} />)
146
193
  .toJSON();
147
194
  expect(tree).toMatchSnapshot();
148
195
  });
149
196
  it('render an outlined qrcode icon in a purple color', () => {
150
197
  const tree = render
151
- .create(<Icon.Outline.Qrcode color={'#A020F0'} />)
198
+ .create(<Icon style={'regular'} name={'qrcode'} color={'#A020F0'} />)
152
199
  .toJSON();
153
200
  expect(tree).toMatchSnapshot();
154
201
  });
155
202
  it('render an outlined refresh icon in a purple color', () => {
156
203
  const tree = render
157
- .create(<Icon.Outline.Refresh color={'#A020F0'} />)
204
+ .create(<Icon style={'regular'} name={'refresh'} color={'#A020F0'} />)
158
205
  .toJSON();
159
206
  expect(tree).toMatchSnapshot();
160
207
  });
161
208
  it('render an outlined search icon in a white color', () => {
162
209
  const tree = render
163
- .create(<Icon.Outline.Search color={whiteColor} />)
210
+ .create(<Icon style={'regular'} name={'search'} color={whiteColor} />)
164
211
  .toJSON();
165
212
  expect(tree).toMatchSnapshot();
166
213
  });
167
214
  it('render an outlined selector icon in the main color', () => {
168
- const tree = render.create(<Icon.Outline.Selector />).toJSON();
215
+ const tree = render
216
+ .create(<Icon style={'regular'} name={'selector'} />)
217
+ .toJSON();
169
218
  expect(tree).toMatchSnapshot();
170
219
  });
171
220
  it('render an outlined sm-view-grid-add icon in a yellow color', () => {
172
221
  const tree = render
173
- .create(<Icon.Outline.ViewGridAdd color={'#FFFF00'} />)
222
+ .create(
223
+ <Icon style={'regular'} name={'sm-view-grid-add'} color={'#FFFF00'} />
224
+ )
174
225
  .toJSON();
175
226
  expect(tree).toMatchSnapshot();
176
227
  });
177
228
  it('render an outlined status-online icon in an orange color', () => {
178
229
  const tree = render
179
- .create(<Icon.Outline.StatusOnline color={'#FFA500'} />)
230
+ .create(
231
+ <Icon style={'regular'} name={'status-online'} color={'#FFA500'} />
232
+ )
180
233
  .toJSON();
181
234
  expect(tree).toMatchSnapshot();
182
235
  });
183
236
  it('render an outlined thumb-up icon in a blue color', () => {
184
237
  const tree = render
185
- .create(<Icon.Outline.ThumbUp color={'#0000FF'} />)
238
+ .create(<Icon style={'regular'} name={'thumb-up'} color={'#0000FF'} />)
186
239
  .toJSON();
187
240
  expect(tree).toMatchSnapshot();
188
241
  });
189
242
  it('render an outlined trash icon in a red color', () => {
190
243
  const tree = render
191
- .create(<Icon.Outline.Trash color={'#FF0000'} />)
244
+ .create(<Icon style={'regular'} name={'trash'} color={'#FF0000'} />)
192
245
  .toJSON();
193
246
  expect(tree).toMatchSnapshot();
194
247
  });
195
248
  it('render an outlined user icon in the main color', () => {
196
- const tree = render.create(<Icon.Outline.User />).toJSON();
249
+ const tree = render
250
+ .create(<Icon style={'regular'} name={'user'} />)
251
+ .toJSON();
197
252
  expect(tree).toMatchSnapshot();
198
253
  });
199
254
  it('render an outlined user-group icon in a grey color', () => {
200
255
  const tree = render
201
- .create(<Icon.Outline.UserGroup color={greyColor} />)
256
+ .create(<Icon style={'regular'} name={'user-group'} color={greyColor} />)
202
257
  .toJSON();
203
258
  expect(tree).toMatchSnapshot();
204
259
  });
205
260
  it('render an outlined users icon in a white color', () => {
206
261
  const tree = render
207
- .create(<Icon.Outline.Users color={whiteColor} />)
262
+ .create(<Icon style={'regular'} name={'users'} color={whiteColor} />)
208
263
  .toJSON();
209
264
  expect(tree).toMatchSnapshot();
210
265
  });
211
- it('render an outlined cross icon in the main color', () => {
212
- const tree = render.create(<Icon.Outline.Cross />).toJSON();
266
+ it('render an outlined xmark icon in the main color', () => {
267
+ const tree = render
268
+ .create(<Icon style={'regular'} name={'xmark'} />)
269
+ .toJSON();
213
270
  expect(tree).toMatchSnapshot();
214
271
  });
215
272
  it('render a solid chat-alt icon in a coral color', () => {
216
273
  const tree = render
217
- .create(<Icon.Solid.ChatAlt color={'#FF7F50'} />)
274
+ .create(<Icon style={'solid'} name={'chat-alt'} color={'#FF7F50'} />)
218
275
  .toJSON();
219
276
  expect(tree).toMatchSnapshot();
220
277
  });
221
278
  it('render a solid clock icon in a darkcyan color', () => {
222
- const tree = render.create(<Icon.Solid.Clock color={'#008b8b'} />).toJSON();
279
+ const tree = render
280
+ .create(<Icon style={'solid'} name={'clock'} color={'#008b8b'} />)
281
+ .toJSON();
223
282
  expect(tree).toMatchSnapshot();
224
283
  });
225
284
  it('render a solid information-circle icon in a gold color', () => {
226
- const tree = render.create(<Icon.Solid.Clock color={'#FFD700'} />).toJSON();
285
+ const tree = render
286
+ .create(
287
+ <Icon style={'solid'} name={'information-circle'} color={'#FFD700'} />
288
+ )
289
+ .toJSON();
227
290
  expect(tree).toMatchSnapshot();
228
291
  });
229
292
  it('render a solid pencil icon in a grey color', () => {
230
293
  const tree = render
231
- .create(<Icon.Solid.Pencil color={greyColor} />)
294
+ .create(<Icon style={'solid'} name={'pencil'} color={greyColor} />)
232
295
  .toJSON();
233
296
  expect(tree).toMatchSnapshot();
234
297
  });
235
298
  it('render a solid phone icon in an ivory color', () => {
236
- const tree = render.create(<Icon.Solid.Phone color={'#FFFFF0'} />).toJSON();
299
+ const tree = render
300
+ .create(<Icon style={'solid'} name={'phone'} color={'#FFFFF0'} />)
301
+ .toJSON();
237
302
  expect(tree).toMatchSnapshot();
238
303
  });
239
304
  it('render a solid refresh icon in the main color', () => {
240
- const tree = render.create(<Icon.Solid.Refresh />).toJSON();
305
+ const tree = render
306
+ .create(<Icon style={'solid'} name={'refresh'} />)
307
+ .toJSON();
241
308
  expect(tree).toMatchSnapshot();
242
309
  });
243
310
  it('render a solid status-online icon in a navy color', () => {
244
311
  const tree = render
245
- .create(<Icon.Solid.StatusOnline color={'#000080'} />)
312
+ .create(<Icon style={'solid'} name={'status-online'} color={'#000080'} />)
246
313
  .toJSON();
247
314
  expect(tree).toMatchSnapshot();
248
315
  });
249
316
  it('render a solid trash icon in a tomato color', () => {
250
- const tree = render.create(<Icon.Solid.Trash color={'#FF6347'} />).toJSON();
317
+ const tree = render
318
+ .create(<Icon style={'solid'} name={'trash'} color={'#FF6347'} />)
319
+ .toJSON();
320
+ expect(tree).toMatchSnapshot();
321
+ });
322
+ it('render a solid eye off icon in a tomato color', () => {
323
+ const tree = render
324
+ .create(<Icon style={'solid'} name={'eye-off'} color={'#FF6347'} />)
325
+ .toJSON();
251
326
  expect(tree).toMatchSnapshot();
252
327
  });
253
328
  });
@@ -1,56 +1,2 @@
1
- export declare const Icon: {
2
- Outline: {
3
- Calendar: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
4
- Chat: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
5
- ChatAlt: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
6
- CheckCircle: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
7
- ChevronLeft: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
8
- ChevronRight: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
9
- Clock: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
10
- CloudDownload: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
11
- CurrencyEuro: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
12
- DocumentText: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
13
- Exclamation: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
14
- ExclamationCircle: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
15
- Eye: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
16
- EyeOff: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
17
- Filter: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
18
- InformationCircle: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
19
- Logout: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
20
- Mail: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
21
- MailOpen: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
22
- Menu: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
23
- MinusSm: ({ color, size }: import("../types/icontype.type").IconType) => JSX.Element;
24
- OfficeBuilding: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
25
- PaperAirplane: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
26
- PaperClip: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
27
- Pencil: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
28
- Phone: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
29
- Plus: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
30
- PlusSm: ({ color, size }: import("../types/icontype.type").IconType) => JSX.Element;
31
- Qrcode: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
32
- Refresh: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
33
- Search: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
34
- Selector: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
35
- ViewGridAdd: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
36
- StatusOnline: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
37
- ThumbUp: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
38
- Trash: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
39
- User: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
40
- UserGroup: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
41
- Users: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
42
- Cross: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
43
- };
44
- Solid: {
45
- ChatAlt: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
46
- Clock: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
47
- DocumentText: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
48
- InformationCircle: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
49
- Pencil: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
50
- Phone: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
51
- Refresh: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
52
- StatusOnline: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
53
- Trash: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
54
- Users: ({ color }: import("../types/icontype.type").IconType) => JSX.Element;
55
- };
56
- };
1
+ import { IconInterface } from '../interfaces/icon.interface';
2
+ export declare const Icon: ({ style, name, size, color }: IconInterface) => JSX.Element;
@@ -1,7 +1,15 @@
1
+ import {IconInterface} from '../interfaces/icon.interface';
1
2
  import {Outline} from './outline/outline';
2
3
  import {Solid} from './solid/solid';
3
4
 
4
- export const Icon = {
5
- Outline,
6
- Solid,
5
+ export const Icon = ({style, name, size, color}: IconInterface) => {
6
+ const renderIconStyle = () => {
7
+ switch (style) {
8
+ case 'regular':
9
+ return <Outline name={name} size={size} color={color} />;
10
+ case 'solid':
11
+ return <Solid name={name} size={size} color={color} />;
12
+ }
13
+ };
14
+ return renderIconStyle();
7
15
  };
@@ -1,2 +1,2 @@
1
- import { IconType } from '../../../types/icontype.type';
2
- export declare const CalendarIcon: ({ color }: IconType) => JSX.Element;
1
+ import { IconSVGProps } from '../../../interfaces/icon.interface';
2
+ export declare const CalendarIcon: ({ color, size }: IconSVGProps) => JSX.Element;
@@ -2,13 +2,14 @@ import * as React from 'react';
2
2
  import {useContext} from 'react';
3
3
  import Svg, {Path} from 'react-native-svg';
4
4
  import {ThemeCtx} from '../../../context/theme.context';
5
- import {IconType} from '../../../types/icontype.type';
5
+ import {IconSVGProps} from '../../../interfaces/icon.interface';
6
6
  import {HexColor} from '../../../models/hex-color.model';
7
+ import {Scale} from '../../../theme/scale/index';
7
8
 
8
- export const CalendarIcon = ({color}: IconType) => {
9
+ export const CalendarIcon = ({color, size = Scale.l}: IconSVGProps) => {
9
10
  const context = useContext(ThemeCtx);
10
11
  return (
11
- <Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
12
+ <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
12
13
  <Path
13
14
  stroke={
14
15
  color ? HexColor.of(color).toString() : context.colors.main['0']
@@ -16,7 +17,7 @@ export const CalendarIcon = ({color}: IconType) => {
16
17
  strokeWidth="2"
17
18
  strokeLinecap="round"
18
19
  strokeLinejoin="round"
19
- d="M9.16667 7.875V3.375M17.8333 7.875V3.375M8.08333 12.375H18.9167M5.91667 23.625H21.0833C22.28 23.625 23.25 22.6176 23.25 21.375V7.875C23.25 6.63236 22.28 5.625 21.0833 5.625H5.91667C4.72005 5.625 3.75 6.63236 3.75 7.875V21.375C3.75 22.6176 4.72005 23.625 5.91667 23.625Z"
20
+ d="M7.33333 6.16667V1.5M16.6667 6.16667V1.5M6.16667 10.8333H17.8333M3.83333 22.5H20.1667C21.4553 22.5 22.5 21.4553 22.5 20.1667V6.16667C22.5 4.878 21.4553 3.83333 20.1667 3.83333H3.83333C2.54467 3.83333 1.5 4.878 1.5 6.16667V20.1667C1.5 21.4553 2.54467 22.5 3.83333 22.5Z"
20
21
  />
21
22
  </Svg>
22
23
  );
@@ -1,2 +1,2 @@
1
- import { IconType } from '../../../types/icontype.type';
2
- export declare const ChatIcon: ({ color }: IconType) => JSX.Element;
1
+ import { IconSVGProps } from '../../../interfaces/icon.interface';
2
+ export declare const ChatIcon: ({ color, size }: IconSVGProps) => JSX.Element;
@@ -2,13 +2,14 @@ import * as React from 'react';
2
2
  import {useContext} from 'react';
3
3
  import Svg, {Path} from 'react-native-svg';
4
4
  import {ThemeCtx} from '../../../context/theme.context';
5
- import {IconType} from '../../../types/icontype.type';
5
+ import {IconSVGProps} from '../../../interfaces/icon.interface';
6
6
  import {HexColor} from '../../../models/hex-color.model';
7
+ import {Scale} from '../../../theme/scale/index';
7
8
 
8
- export const ChatIcon = ({color}: IconType) => {
9
+ export const ChatIcon = ({color, size = Scale.l}: IconSVGProps) => {
9
10
  const context = useContext(ThemeCtx);
10
11
  return (
11
- <Svg width="28" height="28" viewBox="0 0 28 28" fill="none">
12
+ <Svg width={size} height={size} viewBox="0 0 23 21" fill="none">
12
13
  <Path
13
14
  stroke={
14
15
  color ? HexColor.of(color).toString() : context.colors.main['0']
@@ -16,7 +17,7 @@ export const ChatIcon = ({color}: IconType) => {
16
17
  strokeWidth="2"
17
18
  strokeLinecap="round"
18
19
  strokeLinejoin="round"
19
- d="M9.5 14H9.51125M14 14H14.0113M18.5 14H18.5113M24.125 14C24.125 18.9706 19.5919 23 14 23C12.2683 23 10.6382 22.6136 9.21275 21.9324L3.875 23L5.44436 18.815C4.45051 17.4226 3.875 15.7711 3.875 14C3.875 9.02944 8.40812 5 14 5C19.5919 5 24.125 9.02944 24.125 14Z"
20
+ d="M7 10.5H7.01125M11.5 10.5H11.5113M16 10.5H16.0113M21.625 10.5C21.625 15.4706 17.0919 19.5 11.5 19.5C9.76832 19.5 8.13818 19.1136 6.71275 18.4324L1.375 19.5L2.94436 15.315C1.95051 13.9226 1.375 12.2711 1.375 10.5C1.375 5.52944 5.90812 1.5 11.5 1.5C17.0919 1.5 21.625 5.52944 21.625 10.5Z"
20
21
  />
21
22
  </Svg>
22
23
  );
@@ -1,2 +1,2 @@
1
- import { IconType } from '../../../types/icontype.type';
2
- export declare const ChatAltIcon: ({ color }: IconType) => JSX.Element;
1
+ import { IconSVGProps } from '../../../interfaces/icon.interface';
2
+ export declare const ChatAltIcon: ({ color, size }: IconSVGProps) => JSX.Element;
@@ -2,13 +2,14 @@ import * as React from 'react';
2
2
  import {useContext} from 'react';
3
3
  import Svg, {Path} from 'react-native-svg';
4
4
  import {ThemeCtx} from '../../../context/theme.context';
5
- import {IconType} from '../../../types/icontype.type';
5
+ import {IconSVGProps} from '../../../interfaces/icon.interface';
6
6
  import {HexColor} from '../../../models/hex-color.model';
7
+ import {Scale} from '../../../theme/scale/index';
7
8
 
8
- export const ChatAltIcon = ({color}: IconType) => {
9
+ export const ChatAltIcon = ({color, size = Scale.l}: IconSVGProps) => {
9
10
  const context = useContext(ThemeCtx);
10
11
  return (
11
- <Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
12
+ <Svg width={size} height={size} viewBox="0 0 23 22" fill="none">
12
13
  <Path
13
14
  stroke={
14
15
  color ? HexColor.of(color).toString() : context.colors.main['0']
@@ -16,7 +17,7 @@ export const ChatAltIcon = ({color}: IconType) => {
16
17
  strokeWidth="2"
17
18
  strokeLinecap="round"
18
19
  strokeLinejoin="round"
19
- d="M9 11.25H9.01125M13.5 11.25H13.5113M18 11.25H18.0113M10.125 18H5.625C4.38236 18 3.375 16.9926 3.375 15.75V6.75C3.375 5.50736 4.38236 4.5 5.625 4.5H21.375C22.6176 4.5 23.625 5.50736 23.625 6.75V15.75C23.625 16.9926 22.6176 18 21.375 18H15.75L10.125 23.625V18Z"
20
+ d="M7 8.25H7.01125M11.5 8.25H11.5113M16 8.25H16.0113M8.125 15H3.625C2.38236 15 1.375 13.9926 1.375 12.75V3.75C1.375 2.50736 2.38236 1.5 3.625 1.5H19.375C20.6176 1.5 21.625 2.50736 21.625 3.75V12.75C21.625 13.9926 20.6176 15 19.375 15H13.75L8.125 20.625V15Z"
20
21
  />
21
22
  </Svg>
22
23
  );
@@ -1,2 +1,2 @@
1
- import { IconType } from '../../../types/icontype.type';
2
- export declare const CheckCircleIcon: ({ color }: IconType) => JSX.Element;
1
+ import { IconSVGProps } from '../../../interfaces/icon.interface';
2
+ export declare const CheckCircleIcon: ({ color, size }: IconSVGProps) => JSX.Element;
@@ -2,13 +2,14 @@ import * as React from 'react';
2
2
  import {useContext} from 'react';
3
3
  import Svg, {Path} from 'react-native-svg';
4
4
  import {ThemeCtx} from '../../../context/theme.context';
5
- import {IconType} from '../../../types/icontype.type';
5
+ import {IconSVGProps} from '../../../interfaces/icon.interface';
6
6
  import {HexColor} from '../../../models/hex-color.model';
7
+ import {Scale} from '../../../theme/scale/index';
7
8
 
8
- export const CheckCircleIcon = ({color}: IconType) => {
9
+ export const CheckCircleIcon = ({color, size = Scale.l}: IconSVGProps) => {
9
10
  const context = useContext(ThemeCtx);
10
11
  return (
11
- <Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
12
+ <Svg width={size} height={size} viewBox="0 0 23 23" fill="none">
12
13
  <Path
13
14
  stroke={
14
15
  color ? HexColor.of(color).toString() : context.colors.main['0']
@@ -16,7 +17,7 @@ export const CheckCircleIcon = ({color}: IconType) => {
16
17
  strokeWidth="2"
17
18
  strokeLinecap="round"
18
19
  strokeLinejoin="round"
19
- d="M10.125 13.5L12.375 15.75L16.875 11.25M23.625 13.5C23.625 19.0919 19.0919 23.625 13.5 23.625C7.90812 23.625 3.375 19.0919 3.375 13.5C3.375 7.90812 7.90812 3.375 13.5 3.375C19.0919 3.375 23.625 7.90812 23.625 13.5Z"
20
+ d="M8.125 11.5L10.375 13.75L14.875 9.25M21.625 11.5C21.625 17.0919 17.0919 21.625 11.5 21.625C5.90812 21.625 1.375 17.0919 1.375 11.5C1.375 5.90812 5.90812 1.375 11.5 1.375C17.0919 1.375 21.625 5.90812 21.625 11.5Z"
20
21
  />
21
22
  </Svg>
22
23
  );
@@ -1,2 +1,2 @@
1
- import { IconType } from '../../../types/icontype.type';
2
- export declare const ChevronLeftIcon: ({ color }: IconType) => JSX.Element;
1
+ import { IconSVGProps } from '../../../interfaces/icon.interface';
2
+ export declare const ChevronLeftIcon: ({ color, size }: IconSVGProps) => JSX.Element;
@@ -2,13 +2,14 @@ import * as React from 'react';
2
2
  import {useContext} from 'react';
3
3
  import Svg, {Path} from 'react-native-svg';
4
4
  import {ThemeCtx} from '../../../context/theme.context';
5
- import {IconType} from '../../../types/icontype.type';
5
+ import {IconSVGProps} from '../../../interfaces/icon.interface';
6
6
  import {HexColor} from '../../../models/hex-color.model';
7
+ import {Scale} from '../../../theme/scale/index';
7
8
 
8
- export const ChevronLeftIcon = ({color}: IconType) => {
9
+ export const ChevronLeftIcon = ({color, size = Scale.l}: IconSVGProps) => {
9
10
  const context = useContext(ThemeCtx);
10
11
  return (
11
- <Svg width="28" height="28" viewBox="0 0 27 27" fill="none">
12
+ <Svg width={size} height={size} viewBox="0 0 10 19" fill="none">
12
13
  <Path
13
14
  stroke={
14
15
  color ? HexColor.of(color).toString() : context.colors.main['0']
@@ -16,7 +17,7 @@ export const ChevronLeftIcon = ({color}: IconType) => {
16
17
  strokeWidth="2"
17
18
  strokeLinecap="round"
18
19
  strokeLinejoin="round"
19
- d="M16.875 21.375L9 13.5L16.875 5.625"
20
+ d="M8.875 17.375L1 9.5L8.875 1.625"
20
21
  />
21
22
  </Svg>
22
23
  );
@@ -1,2 +1,2 @@
1
- import { IconType } from '../../../types/icontype.type';
2
- export declare const ChevronRightIcon: ({ color }: IconType) => JSX.Element;
1
+ import { IconSVGProps } from '../../../interfaces/icon.interface';
2
+ export declare const ChevronRightIcon: ({ color, size }: IconSVGProps) => JSX.Element;