@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
@@ -23,11 +23,11 @@ exports[`test split-container renders correctly when A COLORED ICON is provided
23
23
  >
24
24
  <RNSVGSvgView
25
25
  align="xMidYMid"
26
- bbHeight="28"
27
- bbWidth="28"
26
+ bbHeight={24}
27
+ bbWidth={24}
28
28
  fill="none"
29
29
  focusable={false}
30
- height="28"
30
+ height={24}
31
31
  meetOrSlice={0}
32
32
  minX={0}
33
33
  minY={0}
@@ -39,14 +39,14 @@ exports[`test split-container renders correctly when A COLORED ICON is provided
39
39
  },
40
40
  {
41
41
  "flex": 0,
42
- "height": 28,
43
- "width": 28,
42
+ "height": 24,
43
+ "width": 24,
44
44
  },
45
45
  ]
46
46
  }
47
- vbHeight={27}
48
- vbWidth={26}
49
- width="28"
47
+ vbHeight={21}
48
+ vbWidth={20}
49
+ width={24}
50
50
  >
51
51
  <RNSVGGroup
52
52
  fill={null}
@@ -57,7 +57,7 @@ exports[`test split-container renders correctly when A COLORED ICON is provided
57
57
  }
58
58
  >
59
59
  <RNSVGPath
60
- d="M14 4.5C14 3.94772 13.5523 3.5 13 3.5C12.4477 3.5 12 3.94772 12 4.5H14ZM12 5.625C12 6.17728 12.4477 6.625 13 6.625C13.5523 6.625 14 6.17728 14 5.625H12ZM19.5 17C18.9477 17 18.5 17.4477 18.5 18C18.5 18.5523 18.9477 19 19.5 19V17ZM21.6666 19C22.2189 19 22.6666 18.5523 22.6666 18C22.6666 17.4477 22.2189 17 21.6666 17V19ZM13 18V17C12.4477 17 12 17.4477 12 18H13ZM15.1666 19C15.7189 19 16.1666 18.5523 16.1666 18C16.1666 17.4477 15.7189 17 15.1666 17V19ZM12 22.5C12 23.0523 12.4477 23.5 13 23.5C13.5523 23.5 14 23.0523 14 22.5H12ZM14 10.125C14 9.57272 13.5523 9.125 13 9.125C12.4477 9.125 12 9.57272 12 10.125H14ZM13 13.5H12C12 14.0523 12.4477 14.5 13 14.5V13.5ZM17.3333 21.5C16.781 21.5 16.3333 21.9477 16.3333 22.5C16.3333 23.0523 16.781 23.5 17.3333 23.5V21.5ZM21.6666 23.5C22.2189 23.5 22.6666 23.0523 22.6666 22.5C22.6666 21.9477 22.2189 21.5 21.6666 21.5V23.5ZM4.33331 12.5C3.78103 12.5 3.33331 12.9477 3.33331 13.5C3.33331 14.0523 3.78103 14.5 4.33331 14.5V12.5ZM8.66665 14.5C9.21893 14.5 9.66665 14.0523 9.66665 13.5C9.66665 12.9477 9.21893 12.5 8.66665 12.5V14.5ZM13.0108 14.5C13.5631 14.5 14.0108 14.0523 14.0108 13.5C14.0108 12.9477 13.5631 12.5 13.0108 12.5V14.5ZM17.3441 14.5C17.8964 14.5 18.3441 14.0523 18.3441 13.5C18.3441 12.9477 17.8964 12.5 17.3441 12.5V14.5ZM21.6666 12.5C21.1144 12.5 20.6666 12.9477 20.6666 13.5C20.6666 14.0523 21.1144 14.5 21.6666 14.5V12.5ZM21.6775 14.5C22.2298 14.5 22.6775 14.0523 22.6775 13.5C22.6775 12.9477 22.2298 12.5 21.6775 12.5V14.5ZM5.41665 5.5H7.58331V3.5H5.41665V5.5ZM7.66665 5.625V7.875H9.66665V5.625H7.66665ZM7.58331 8H5.41665V10H7.58331V8ZM5.33331 7.875V5.625H3.33331V7.875H5.33331ZM5.41665 8C5.40602 8 5.39043 7.9971 5.37093 7.97685C5.3508 7.95595 5.33331 7.92194 5.33331 7.875H3.33331C3.33331 9.0127 4.23082 10 5.41665 10V8ZM7.66665 7.875C7.66665 7.92194 7.64916 7.95595 7.62902 7.97685C7.60953 7.9971 7.59394 8 7.58331 8V10C8.76914 10 9.66665 9.0127 9.66665 7.875H7.66665ZM7.58331 5.5C7.59394 5.5 7.60953 5.5029 7.62902 5.52315C7.64916 5.54405 7.66665 5.57806 7.66665 5.625H9.66665C9.66665 4.4873 8.76914 3.5 7.58331 3.5V5.5ZM5.41665 3.5C4.23082 3.5 3.33331 4.4873 3.33331 5.625H5.33331C5.33331 5.57806 5.3508 5.54405 5.37093 5.52315C5.39043 5.5029 5.40602 5.5 5.41665 5.5V3.5ZM18.4166 5.5H20.5833V3.5H18.4166V5.5ZM20.6666 5.625V7.875H22.6666V5.625H20.6666ZM20.5833 8H18.4166V10H20.5833V8ZM18.3333 7.875V5.625H16.3333V7.875H18.3333ZM18.4166 8C18.406 8 18.3904 7.9971 18.3709 7.97685C18.3508 7.95595 18.3333 7.92194 18.3333 7.875H16.3333C16.3333 9.0127 17.2308 10 18.4166 10V8ZM20.6666 7.875C20.6666 7.92194 20.6492 7.95595 20.629 7.97685C20.6095 7.9971 20.5939 8 20.5833 8V10C21.7691 10 22.6666 9.0127 22.6666 7.875H20.6666ZM20.5833 5.5C20.5939 5.5 20.6095 5.5029 20.629 5.52315C20.6492 5.54405 20.6666 5.57806 20.6666 5.625H22.6666C22.6666 4.4873 21.7691 3.5 20.5833 3.5V5.5ZM18.4166 3.5C17.2308 3.5 16.3333 4.4873 16.3333 5.625H18.3333C18.3333 5.57806 18.3508 5.54405 18.3709 5.52315C18.3904 5.5029 18.406 5.5 18.4166 5.5V3.5ZM5.41665 19H7.58331V17H5.41665V19ZM7.66665 19.125V21.375H9.66665V19.125H7.66665ZM7.58331 21.5H5.41665V23.5H7.58331V21.5ZM5.33331 21.375V19.125H3.33331V21.375H5.33331ZM5.41665 21.5C5.40602 21.5 5.39043 21.4971 5.37093 21.4769C5.3508 21.4559 5.33331 21.4219 5.33331 21.375H3.33331C3.33331 22.5127 4.23082 23.5 5.41665 23.5V21.5ZM7.66665 21.375C7.66665 21.4219 7.64916 21.4559 7.62902 21.4769C7.60953 21.4971 7.59394 21.5 7.58331 21.5V23.5C8.76914 23.5 9.66665 22.5127 9.66665 21.375H7.66665ZM7.58331 19C7.59394 19 7.60953 19.0029 7.62902 19.0231C7.64916 19.0441 7.66665 19.0781 7.66665 19.125H9.66665C9.66665 17.9873 8.76914 17 7.58331 17V19ZM5.41665 17C4.23082 17 3.33331 17.9873 3.33331 19.125H5.33331C5.33331 19.0781 5.3508 19.0441 5.37093 19.0231C5.39043 19.0029 5.40602 19 5.41665 19V17ZM12 4.5V5.625H14V4.5H12ZM19.5 19H21.6666V17H19.5V19ZM13 19H15.1666V17H13V19ZM12 18V22.5H14V18H12ZM12 10.125V13.5H14V10.125H12ZM17.3333 23.5H21.6666V21.5H17.3333V23.5ZM4.33331 14.5H8.66665V12.5H4.33331V14.5ZM13 14.5H13.0108V12.5H13V14.5ZM21.6666 14.5H21.6775V12.5H21.6666V14.5ZM13 14.5H17.3441V12.5H13V14.5Z"
60
+ d="M11 1.5C11 0.947715 10.5523 0.5 9.99998 0.5C9.44769 0.5 8.99998 0.947715 8.99998 1.5H11ZM8.99998 2.625C8.99998 3.17728 9.44769 3.625 9.99998 3.625C10.5523 3.625 11 3.17728 11 2.625H8.99998ZM16.5 14C15.9477 14 15.5 14.4477 15.5 15C15.5 15.5523 15.9477 16 16.5 16V14ZM18.6666 16C19.2189 16 19.6666 15.5523 19.6666 15C19.6666 14.4477 19.2189 14 18.6666 14V16ZM9.99998 15V14C9.44769 14 8.99998 14.4477 8.99998 15H9.99998ZM12.1666 16C12.7189 16 13.1666 15.5523 13.1666 15C13.1666 14.4477 12.7189 14 12.1666 14V16ZM8.99998 19.5C8.99998 20.0523 9.44769 20.5 9.99998 20.5C10.5523 20.5 11 20.0523 11 19.5H8.99998ZM11 7.125C11 6.57272 10.5523 6.125 9.99998 6.125C9.44769 6.125 8.99998 6.57272 8.99998 7.125H11ZM9.99998 10.5H8.99998C8.99998 11.0523 9.44769 11.5 9.99998 11.5V10.5ZM14.3333 18.5C13.781 18.5 13.3333 18.9477 13.3333 19.5C13.3333 20.0523 13.781 20.5 14.3333 20.5V18.5ZM18.6666 20.5C19.2189 20.5 19.6666 20.0523 19.6666 19.5C19.6666 18.9477 19.2189 18.5 18.6666 18.5V20.5ZM1.33331 9.5C0.781028 9.5 0.333313 9.94771 0.333313 10.5C0.333313 11.0523 0.781028 11.5 1.33331 11.5V9.5ZM5.66665 11.5C6.21893 11.5 6.66665 11.0523 6.66665 10.5C6.66665 9.94771 6.21893 9.5 5.66665 9.5V11.5ZM10.0108 11.5C10.5631 11.5 11.0108 11.0523 11.0108 10.5C11.0108 9.94771 10.5631 9.5 10.0108 9.5V11.5ZM14.3441 11.5C14.8964 11.5 15.3441 11.0523 15.3441 10.5C15.3441 9.94771 14.8964 9.5 14.3441 9.5V11.5ZM18.6666 9.5C18.1144 9.5 17.6666 9.94771 17.6666 10.5C17.6666 11.0523 18.1144 11.5 18.6666 11.5V9.5ZM18.6775 11.5C19.2298 11.5 19.6775 11.0523 19.6775 10.5C19.6775 9.94771 19.2298 9.5 18.6775 9.5V11.5ZM2.41665 2.5H4.58331V0.5H2.41665V2.5ZM4.66665 2.625V4.875H6.66665V2.625H4.66665ZM4.58331 5H2.41665V7H4.58331V5ZM2.33331 4.875V2.625H0.333313V4.875H2.33331ZM2.41665 5C2.40602 5 2.39043 4.9971 2.37093 4.97685C2.3508 4.95595 2.33331 4.92194 2.33331 4.875H0.333313C0.333313 6.0127 1.23082 7 2.41665 7V5ZM4.66665 4.875C4.66665 4.92194 4.64916 4.95595 4.62902 4.97685C4.60953 4.9971 4.59394 5 4.58331 5V7C5.76914 7 6.66665 6.0127 6.66665 4.875H4.66665ZM4.58331 2.5C4.59394 2.5 4.60953 2.5029 4.62902 2.52315C4.64916 2.54405 4.66665 2.57806 4.66665 2.625H6.66665C6.66665 1.4873 5.76914 0.5 4.58331 0.5V2.5ZM2.41665 0.5C1.23082 0.5 0.333313 1.4873 0.333313 2.625H2.33331C2.33331 2.57806 2.3508 2.54405 2.37093 2.52315C2.39043 2.5029 2.40602 2.5 2.41665 2.5V0.5ZM15.4166 2.5H17.5833V0.5H15.4166V2.5ZM17.6666 2.625V4.875H19.6666V2.625H17.6666ZM17.5833 5H15.4166V7H17.5833V5ZM15.3333 4.875V2.625H13.3333V4.875H15.3333ZM15.4166 5C15.406 5 15.3904 4.9971 15.3709 4.97685C15.3508 4.95595 15.3333 4.92194 15.3333 4.875H13.3333C13.3333 6.0127 14.2308 7 15.4166 7V5ZM17.6666 4.875C17.6666 4.92194 17.6492 4.95595 17.629 4.97685C17.6095 4.9971 17.5939 5 17.5833 5V7C18.7691 7 19.6666 6.0127 19.6666 4.875H17.6666ZM17.5833 2.5C17.5939 2.5 17.6095 2.5029 17.629 2.52315C17.6492 2.54405 17.6666 2.57806 17.6666 2.625H19.6666C19.6666 1.4873 18.7691 0.5 17.5833 0.5V2.5ZM15.4166 0.5C14.2308 0.5 13.3333 1.4873 13.3333 2.625H15.3333C15.3333 2.57806 15.3508 2.54405 15.3709 2.52315C15.3904 2.5029 15.406 2.5 15.4166 2.5V0.5ZM2.41665 16H4.58331V14H2.41665V16ZM4.66665 16.125V18.375H6.66665V16.125H4.66665ZM4.58331 18.5H2.41665V20.5H4.58331V18.5ZM2.33331 18.375V16.125H0.333313V18.375H2.33331ZM2.41665 18.5C2.40602 18.5 2.39043 18.4971 2.37093 18.4769C2.3508 18.4559 2.33331 18.4219 2.33331 18.375H0.333313C0.333313 19.5127 1.23082 20.5 2.41665 20.5V18.5ZM4.66665 18.375C4.66665 18.4219 4.64916 18.4559 4.62902 18.4769C4.60953 18.4971 4.59394 18.5 4.58331 18.5V20.5C5.76914 20.5 6.66665 19.5127 6.66665 18.375H4.66665ZM4.58331 16C4.59394 16 4.60953 16.0029 4.62902 16.0231C4.64916 16.0441 4.66665 16.0781 4.66665 16.125H6.66665C6.66665 14.9873 5.76914 14 4.58331 14V16ZM2.41665 14C1.23082 14 0.333313 14.9873 0.333313 16.125H2.33331C2.33331 16.0781 2.3508 16.0441 2.37093 16.0231C2.39043 16.0029 2.40602 16 2.41665 16V14ZM8.99998 1.5V2.625H11V1.5H8.99998ZM16.5 16H18.6666V14H16.5V16ZM9.99998 16H12.1666V14H9.99998V16ZM8.99998 15V19.5H11V15H8.99998ZM8.99998 7.125V10.5H11V7.125H8.99998ZM14.3333 20.5H18.6666V18.5H14.3333V20.5ZM1.33331 11.5H5.66665V9.5H1.33331V11.5ZM9.99998 11.5H10.0108V9.5H9.99998V11.5ZM18.6666 11.5H18.6775V9.5H18.6666V11.5ZM9.99998 11.5H14.3441V9.5H9.99998V11.5Z"
61
61
  fill={4283522924}
62
62
  propList={
63
63
  [
@@ -18,11 +18,11 @@ exports[`Blocked message visual test renders a cancel link with label "cancel" t
18
18
  >
19
19
  <RNSVGSvgView
20
20
  align="xMidYMid"
21
- bbHeight="28"
22
- bbWidth="28"
21
+ bbHeight={26}
22
+ bbWidth={26}
23
23
  fill="none"
24
24
  focusable={false}
25
- height="28"
25
+ height={26}
26
26
  meetOrSlice={0}
27
27
  minX={0}
28
28
  minY={0}
@@ -34,14 +34,14 @@ exports[`Blocked message visual test renders a cancel link with label "cancel" t
34
34
  },
35
35
  {
36
36
  "flex": 0,
37
- "height": 28,
38
- "width": 28,
37
+ "height": 26,
38
+ "width": 26,
39
39
  },
40
40
  ]
41
41
  }
42
- vbHeight={27}
43
- vbWidth={26}
44
- width="28"
42
+ vbHeight={23}
43
+ vbWidth={22}
44
+ width={26}
45
45
  >
46
46
  <RNSVGGroup
47
47
  fill={null}
@@ -52,7 +52,7 @@ exports[`Blocked message visual test renders a cancel link with label "cancel" t
52
52
  }
53
53
  >
54
54
  <RNSVGPath
55
- d="M13 9V13.5M13 18H13.0108M22.75 13.5C22.75 19.0919 18.3848 23.625 13 23.625C7.61522 23.625 3.25 19.0919 3.25 13.5C3.25 7.90812 7.61522 3.375 13 3.375C18.3848 3.375 22.75 7.90812 22.75 13.5Z"
55
+ d="M11 7V11.5M11 16H11.0108M20.75 11.5C20.75 17.0919 16.3848 21.625 11 21.625C5.61522 21.625 1.25 17.0919 1.25 11.5C1.25 5.90812 5.61522 1.375 11 1.375C16.3848 1.375 20.75 5.90812 20.75 11.5Z"
56
56
  propList={
57
57
  [
58
58
  "stroke",
@@ -17,7 +17,12 @@ export const BlockedMessage = ({message}: BlockedMessageProps) => {
17
17
 
18
18
  return (
19
19
  <View style={styles.container}>
20
- <Icon.Outline.ExclamationCircle color={context.colors.ui.error.dark} />
20
+ <Icon
21
+ style={'regular'}
22
+ name={'exclamation-circle'}
23
+ color={context.colors.ui.error.dark}
24
+ size={26}
25
+ />
21
26
  <Paragraph
22
27
  textColor={context.colors.ui.error.dark}
23
28
  textAlign={'center'}
@@ -108,14 +108,14 @@ exports[`test button component should render a button component that is disabled
108
108
  ]
109
109
  }
110
110
  >
111
- Button with icon
111
+ Button without icon
112
112
  </Text>
113
113
  </View>
114
114
  </View>
115
115
  </View>
116
116
  `;
117
117
 
118
- exports[`test button component should render a button component with an icon 1`] = `
118
+ exports[`test button component should render a button component with a clock icon, since regular is the default the icon will be outlined 1`] = `
119
119
  <View
120
120
  accessible={true}
121
121
  collapsable={false}
@@ -152,11 +152,11 @@ exports[`test button component should render a button component with an icon 1`]
152
152
  >
153
153
  <RNSVGSvgView
154
154
  align="xMidYMid"
155
- bbHeight="28"
156
- bbWidth="28"
155
+ bbHeight={24}
156
+ bbWidth={24}
157
157
  fill="none"
158
158
  focusable={false}
159
- height="28"
159
+ height={24}
160
160
  meetOrSlice={0}
161
161
  minX={0}
162
162
  minY={0}
@@ -168,14 +168,14 @@ exports[`test button component should render a button component with an icon 1`]
168
168
  },
169
169
  {
170
170
  "flex": 0,
171
- "height": 28,
172
- "width": 28,
171
+ "height": 24,
172
+ "width": 24,
173
173
  },
174
174
  ]
175
175
  }
176
- vbHeight={28}
177
- vbWidth={28}
178
- width="28"
176
+ vbHeight={22}
177
+ vbWidth={23}
178
+ width={24}
179
179
  >
180
180
  <RNSVGGroup
181
181
  fill={null}
@@ -186,7 +186,7 @@ exports[`test button component should render a button component with an icon 1`]
186
186
  }
187
187
  >
188
188
  <RNSVGPath
189
- d="M3.875 9.5L12.7519 15.4179C13.5077 15.9218 14.4923 15.9218 15.2481 15.4179L24.125 9.5M6.125 21.875H21.875C23.1176 21.875 24.125 20.8676 24.125 19.625V8.375C24.125 7.13236 23.1176 6.125 21.875 6.125H6.125C4.88236 6.125 3.875 7.13236 3.875 8.375V19.625C3.875 20.8676 4.88236 21.875 6.125 21.875Z"
189
+ d="M11.5 6.66667V11L14.875 14.25M21.625 11C21.625 16.3848 17.0919 20.75 11.5 20.75C5.90812 20.75 1.375 16.3848 1.375 11C1.375 5.61522 5.90812 1.25 11.5 1.25C17.0919 1.25 21.625 5.61522 21.625 11Z"
190
190
  propList={
191
191
  [
192
192
  "stroke",
@@ -195,7 +195,7 @@ exports[`test button component should render a button component with an icon 1`]
195
195
  "strokeLinejoin",
196
196
  ]
197
197
  }
198
- stroke={4279837036}
198
+ stroke={4292929785}
199
199
  strokeLinecap={1}
200
200
  strokeLinejoin={1}
201
201
  strokeWidth="2"
@@ -230,7 +230,7 @@ exports[`test button component should render a button component with an icon 1`]
230
230
  </View>
231
231
  `;
232
232
 
233
- exports[`test button component should render a button component with an icon but is also disabled 1`] = `
233
+ exports[`test button component should render a button component with a solid icon named eye-off but is also disabled 1`] = `
234
234
  <View
235
235
  accessibilityState={
236
236
  {
@@ -272,11 +272,11 @@ exports[`test button component should render a button component with an icon but
272
272
  >
273
273
  <RNSVGSvgView
274
274
  align="xMidYMid"
275
- bbHeight="28"
276
- bbWidth="28"
275
+ bbHeight={24}
276
+ bbWidth={24}
277
277
  fill="none"
278
278
  focusable={false}
279
- height="28"
279
+ height={24}
280
280
  meetOrSlice={0}
281
281
  minX={0}
282
282
  minY={0}
@@ -288,14 +288,14 @@ exports[`test button component should render a button component with an icon but
288
288
  },
289
289
  {
290
290
  "flex": 0,
291
- "height": 28,
292
- "width": 28,
291
+ "height": 24,
292
+ "width": 24,
293
293
  },
294
294
  ]
295
295
  }
296
- vbHeight={28}
297
- vbWidth={28}
298
- width="28"
296
+ vbHeight={18}
297
+ vbWidth={22}
298
+ width={24}
299
299
  >
300
300
  <RNSVGGroup
301
301
  fill={null}
@@ -306,19 +306,25 @@ exports[`test button component should render a button component with an icon but
306
306
  }
307
307
  >
308
308
  <RNSVGPath
309
- d="M3.875 9.5L12.7519 15.4179C13.5077 15.9218 14.4923 15.9218 15.2481 15.4179L24.125 9.5M6.125 21.875H21.875C23.1176 21.875 24.125 20.8676 24.125 19.625V8.375C24.125 7.13236 23.1176 6.125 21.875 6.125H6.125C4.88236 6.125 3.875 7.13236 3.875 8.375V19.625C3.875 20.8676 4.88236 21.875 6.125 21.875Z"
309
+ clipRule={0}
310
+ d="M4.07779 0.522134C3.64822 0.092557 2.95174 0.092557 2.52216 0.522134C2.09258 0.95171 2.09258 1.64819 2.52216 2.07777L17.9222 17.4778C18.3517 17.9073 19.0482 17.9073 19.4778 17.4778C19.9074 17.0482 19.9074 16.3517 19.4778 15.9221L17.8573 14.3016C19.5486 12.9516 20.8329 11.1132 21.4966 8.99991C20.0949 4.53712 15.9256 1.29995 11.0002 1.29995C9.21429 1.29995 7.52776 1.72556 6.03654 2.48088L4.07779 0.522134ZM8.76492 5.20926L10.4302 6.87453C10.612 6.82588 10.8031 6.79995 11.0003 6.79995C12.2153 6.79995 13.2003 7.78492 13.2003 8.99995C13.2003 9.19711 13.1743 9.3882 13.1257 9.57002L14.791 11.2353C15.1781 10.5802 15.4003 9.81601 15.4003 8.99995C15.4003 6.5699 13.4303 4.59995 11.0003 4.59995C10.1842 4.59995 9.42002 4.82211 8.76492 5.20926Z"
311
+ fill={4283522924}
312
+ fillRule={0}
310
313
  propList={
311
314
  [
312
- "stroke",
313
- "strokeWidth",
314
- "strokeLinecap",
315
- "strokeLinejoin",
315
+ "fill",
316
+ "fillRule",
317
+ ]
318
+ }
319
+ />
320
+ <RNSVGPath
321
+ d="M13.6995 16.3663L10.7246 13.3915C8.51412 13.2548 6.74539 11.4861 6.60875 9.27561L2.56839 5.23525C1.65067 6.3294 0.941981 7.60481 0.503784 8.99999C1.90549 13.4628 6.0748 16.6999 11.0002 16.6999C11.9315 16.6999 12.8358 16.5842 13.6995 16.3663Z"
322
+ fill={4283522924}
323
+ propList={
324
+ [
325
+ "fill",
316
326
  ]
317
327
  }
318
- stroke={4279837036}
319
- strokeLinecap={1}
320
- strokeLinejoin={1}
321
- strokeWidth="2"
322
328
  />
323
329
  </RNSVGGroup>
324
330
  </RNSVGSvgView>
@@ -1,9 +1,12 @@
1
- import * as React from 'react';
1
+ import { IconNameType, IconStyleType } from '../../../types/icontype.type';
2
2
  declare type ButtonProps = {
3
3
  label: string;
4
- icon?: React.ReactElement;
4
+ icon?: boolean;
5
+ iconStyle?: IconStyleType;
6
+ iconName?: IconNameType;
7
+ iconSize?: number;
5
8
  disabled?: boolean;
6
9
  onPress?: () => void;
7
10
  };
8
- declare const Button: ({ label, icon, disabled, onPress }: ButtonProps) => JSX.Element;
11
+ declare const Button: ({ label, icon, iconStyle, iconName, iconSize, disabled, onPress, }: ButtonProps) => JSX.Element;
9
12
  export { Button as Button };
@@ -5,22 +5,46 @@ import {Pressable, View} from 'react-native';
5
5
  import {ThemeCtx} from '../../../context/theme.context';
6
6
  import {Stylesheet} from './button.styles';
7
7
  import {Heading4} from '../../atoms/heading-components';
8
+ import {IconNameType, IconStyleType} from '../../../types/icontype.type';
9
+ import {Icon} from '../../../icons/index';
8
10
 
9
11
  type ButtonProps = {
10
12
  label: string;
11
- icon?: React.ReactElement;
13
+ icon?: boolean;
14
+ iconStyle?: IconStyleType;
15
+ iconName?: IconNameType;
16
+ iconSize?: number;
12
17
  disabled?: boolean;
13
18
  onPress?: () => void;
14
19
  };
15
20
 
16
- const Button = ({label, icon, disabled, onPress}: ButtonProps) => {
21
+ const Button = ({
22
+ label,
23
+ icon = false,
24
+ iconStyle = 'regular',
25
+ iconName = 'calendar',
26
+ iconSize,
27
+ disabled,
28
+ onPress,
29
+ }: ButtonProps) => {
17
30
  const context = useContext(ThemeCtx);
18
31
  const styles = Stylesheet(context, disabled);
19
32
 
20
33
  return (
21
34
  <Pressable disabled={disabled} onPress={onPress}>
22
35
  <View style={styles.container}>
23
- {icon ? <View style={styles.iconGap}>{icon}</View> : null}
36
+ {icon ? (
37
+ <View style={styles.iconGap}>
38
+ <Icon
39
+ style={iconStyle}
40
+ name={iconName}
41
+ color={
42
+ disabled ? context.colors.ui.darkgrey : context.colors.main['9']
43
+ }
44
+ size={iconSize}
45
+ />
46
+ </View>
47
+ ) : null}
24
48
  <View>
25
49
  <Heading4
26
50
  textAlign={'center'}
@@ -15,7 +15,8 @@ export const ButtonPreview = ({}: {}) => {
15
15
  <Button label="Default button" onPress={() => console.log('clicked')} />
16
16
  <Button
17
17
  label="Icon button"
18
- icon={<Icon.Outline.Eye color={'#FFFFFF'} />}
18
+ icon={true}
19
+ iconName={'eye'}
19
20
  onPress={() => console.log('clicked')}
20
21
  />
21
22
  <Button
@@ -25,9 +26,11 @@ export const ButtonPreview = ({}: {}) => {
25
26
  />
26
27
  <Button
27
28
  label="Disabled Icon button"
28
- icon={<Icon.Solid.DocumentText color="#FF0000" />}
29
29
  disabled={true}
30
- onPress={() => console.log('clicked')}
30
+ icon={true}
31
+ iconStyle={'solid'}
32
+ iconName={'document-text'}
33
+ onPress={() => console.log('clicked disabled')}
31
34
  />
32
35
  </View>
33
36
  );
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import render from 'react-test-renderer';
3
3
  import {Button} from './button.component';
4
- import {Icon} from '../../../icons';
5
4
 
6
5
  describe('test button component', () => {
7
6
  it('should render a button component', function () {
@@ -10,22 +9,26 @@ describe('test button component', () => {
10
9
  });
11
10
  it('should render a button component that is disabled', () => {
12
11
  const tree = render
13
- .create(<Button label="Button with icon" disabled={true} />)
12
+ .create(<Button label="Button without icon" disabled={true} />)
14
13
  .toJSON();
15
14
  expect(tree).toMatchSnapshot();
16
15
  });
17
- it('should render a button component with an icon', () => {
16
+ it('should render a button component with a clock icon, since regular is the default the icon will be outlined', () => {
18
17
  const tree = render
19
- .create(<Button label="Button with icon" icon={<Icon.Outline.Mail />} />)
18
+ .create(
19
+ <Button label="Button with icon" icon={true} iconName={'clock'} />
20
+ )
20
21
  .toJSON();
21
22
  expect(tree).toMatchSnapshot();
22
23
  });
23
- it('should render a button component with an icon but is also disabled', () => {
24
+ it('should render a button component with a solid icon named eye-off but is also disabled', () => {
24
25
  const tree = render
25
26
  .create(
26
27
  <Button
27
28
  label="Button with icon"
28
- icon={<Icon.Outline.Mail />}
29
+ icon={true}
30
+ iconStyle={'solid'}
31
+ iconName={'eye-off'}
29
32
  disabled={true}
30
33
  />
31
34
  )
@@ -27,11 +27,11 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
27
27
  >
28
28
  <RNSVGSvgView
29
29
  align="xMidYMid"
30
- bbHeight="28"
31
- bbWidth="28"
30
+ bbHeight={24}
31
+ bbWidth={24}
32
32
  fill="none"
33
33
  focusable={false}
34
- height="28"
34
+ height={24}
35
35
  meetOrSlice={0}
36
36
  minX={0}
37
37
  minY={0}
@@ -43,14 +43,14 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
43
43
  },
44
44
  {
45
45
  "flex": 0,
46
- "height": 28,
47
- "width": 28,
46
+ "height": 24,
47
+ "width": 24,
48
48
  },
49
49
  ]
50
50
  }
51
- vbHeight={27}
52
- vbWidth={27}
53
- width="28"
51
+ vbHeight={19}
52
+ vbWidth={10}
53
+ width={24}
54
54
  >
55
55
  <RNSVGGroup
56
56
  fill={null}
@@ -61,7 +61,7 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
61
61
  }
62
62
  >
63
63
  <RNSVGPath
64
- d="M16.875 21.375L9 13.5L16.875 5.625"
64
+ d="M8.875 17.375L1 9.5L8.875 1.625"
65
65
  propList={
66
66
  [
67
67
  "stroke",
@@ -97,10 +97,10 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
97
97
  "backgroundColor": "#19216C",
98
98
  "borderRadius": 32,
99
99
  "flexDirection": "row",
100
- "paddingBottom": 8,
100
+ "paddingBottom": 12,
101
101
  "paddingLeft": 24,
102
102
  "paddingRight": 24,
103
- "paddingTop": 8,
103
+ "paddingTop": 12,
104
104
  }
105
105
  }
106
106
  >
@@ -113,11 +113,11 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
113
113
  >
114
114
  <RNSVGSvgView
115
115
  align="xMidYMid"
116
- bbHeight="28"
117
- bbWidth="28"
116
+ bbHeight={24}
117
+ bbWidth={24}
118
118
  fill="none"
119
119
  focusable={false}
120
- height="28"
120
+ height={24}
121
121
  meetOrSlice={0}
122
122
  minX={0}
123
123
  minY={0}
@@ -129,14 +129,14 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
129
129
  },
130
130
  {
131
131
  "flex": 0,
132
- "height": 28,
133
- "width": 28,
132
+ "height": 24,
133
+ "width": 24,
134
134
  },
135
135
  ]
136
136
  }
137
- vbHeight={27}
138
- vbWidth={27}
139
- width="28"
137
+ vbHeight={24}
138
+ vbWidth={24}
139
+ width={24}
140
140
  >
141
141
  <RNSVGGroup
142
142
  fill={null}
@@ -147,7 +147,7 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
147
147
  }
148
148
  >
149
149
  <RNSVGPath
150
- 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"
150
+ 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"
151
151
  propList={
152
152
  [
153
153
  "stroke",
@@ -204,11 +204,11 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
204
204
  >
205
205
  <RNSVGSvgView
206
206
  align="xMidYMid"
207
- bbHeight="28"
208
- bbWidth="28"
207
+ bbHeight={24}
208
+ bbWidth={24}
209
209
  fill="none"
210
210
  focusable={false}
211
- height="28"
211
+ height={24}
212
212
  meetOrSlice={0}
213
213
  minX={0}
214
214
  minY={0}
@@ -220,14 +220,14 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
220
220
  },
221
221
  {
222
222
  "flex": 0,
223
- "height": 28,
224
- "width": 28,
223
+ "height": 24,
224
+ "width": 24,
225
225
  },
226
226
  ]
227
227
  }
228
- vbHeight={27}
229
- vbWidth={26}
230
- width="28"
228
+ vbHeight={19}
229
+ vbWidth={11}
230
+ width={24}
231
231
  >
232
232
  <RNSVGGroup
233
233
  fill={null}
@@ -238,7 +238,7 @@ exports[`test Calendar Select renders Calendar Select 1`] = `
238
238
  }
239
239
  >
240
240
  <RNSVGPath
241
- d="M9.75 5.625L17.3333 13.5L9.75 21.375"
241
+ d="M1.75 1.625L9.33333 9.5L1.75 17.375"
242
242
  propList={
243
243
  [
244
244
  "stroke",
@@ -4,7 +4,6 @@ import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime
4
4
  import {ThemeCtx} from '../../../context/theme.context';
5
5
  import {Stylesheet} from './calendar-select.styles';
6
6
  import {Pressable, View} from 'react-native';
7
- import {CalendarIcon} from '../../../icons/outline/calendar/calendar.icon';
8
7
  import {Paragraph} from '../../atoms/paragraph-components';
9
8
  import {Icon} from '../../../icons/index';
10
9
 
@@ -42,7 +41,7 @@ const CalendarSelect = ({
42
41
  if (pressChevronLeft) pressChevronLeft(visibleDate.minus({days: 1}));
43
42
  }}
44
43
  >
45
- <Icon.Outline.ChevronLeft />
44
+ <Icon style={'regular'} name={'chevron-left'} />
46
45
  </Pressable>
47
46
 
48
47
  <Pressable
@@ -50,7 +49,11 @@ const CalendarSelect = ({
50
49
  style={styles.dateContainer}
51
50
  >
52
51
  <View style={styles.icon}>
53
- <CalendarIcon color={context.colors.main[9]} />
52
+ <Icon
53
+ style={'regular'}
54
+ name={'calendar'}
55
+ color={context.colors.main['9']}
56
+ />
54
57
  </View>
55
58
  <View>
56
59
  <Paragraph textColor={context.colors.main['9']}>
@@ -65,7 +68,7 @@ const CalendarSelect = ({
65
68
  if (pressChevronRight) pressChevronRight(visibleDate.plus({days: 1}));
66
69
  }}
67
70
  >
68
- <Icon.Outline.ChevronRight />
71
+ <Icon style={'regular'} name={'chevron-right'} />
69
72
  </Pressable>
70
73
  </View>
71
74
  );
@@ -13,8 +13,8 @@ export const Stylesheet = (context) =>
13
13
  flexDirection: 'row',
14
14
  backgroundColor: context.colors.main[0],
15
15
  borderRadius: Scale.xl,
16
- paddingTop: Scale.xs,
17
- paddingBottom: Scale.xs,
16
+ paddingTop: Scale.s,
17
+ paddingBottom: Scale.s,
18
18
  paddingLeft: Scale.l,
19
19
  paddingRight: Scale.l,
20
20
  alignItems: 'center',