@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
@@ -41,11 +41,11 @@ exports[`test snackbar given the visual state is DEFAULT return a light blue ba
41
41
  >
42
42
  <RNSVGSvgView
43
43
  align="xMidYMid"
44
- bbHeight="28"
45
- bbWidth="28"
44
+ bbHeight={24}
45
+ bbWidth={24}
46
46
  fill="none"
47
47
  focusable={false}
48
- height="28"
48
+ height={24}
49
49
  meetOrSlice={0}
50
50
  minX={0}
51
51
  minY={0}
@@ -57,14 +57,14 @@ exports[`test snackbar given the visual state is DEFAULT return a light blue ba
57
57
  },
58
58
  {
59
59
  "flex": 0,
60
- "height": 28,
61
- "width": 28,
60
+ "height": 24,
61
+ "width": 24,
62
62
  },
63
63
  ]
64
64
  }
65
- vbHeight={26}
66
- vbWidth={26}
67
- width="28"
65
+ vbHeight={21}
66
+ vbWidth={23}
67
+ width={24}
68
68
  >
69
69
  <RNSVGGroup
70
70
  fill={null}
@@ -75,7 +75,7 @@ exports[`test snackbar given the visual state is DEFAULT return a light blue ba
75
75
  }
76
76
  >
77
77
  <RNSVGPath
78
- d="M3.25 4.25C3.25 3.69772 3.69772 3.25 4.25 3.25H21.75C22.3023 3.25 22.75 3.69772 22.75 4.25V7.16912C22.75 7.43434 22.6446 7.68869 22.4571 7.87623L15.4596 14.8738C15.272 15.0613 15.1667 15.3157 15.1667 15.5809V18.4167L10.8333 22.75V15.5809C10.8333 15.3157 10.728 15.0613 10.5404 14.8738L3.54289 7.87623C3.35536 7.68869 3.25 7.43434 3.25 7.16912V4.25Z"
78
+ d="M11.5 8.125V10.375M11.5 14.875H11.5113M3.70581 19.375H19.2943C21.0263 19.375 22.1088 17.5 21.2428 16L13.4486 2.5C12.5826 1 10.4175 1 9.55148 2.5L1.75725 16C0.891228 17.5 1.97376 19.375 3.70581 19.375Z"
79
79
  propList={
80
80
  [
81
81
  "stroke",
@@ -169,11 +169,11 @@ exports[`test snackbar given the visual state is ERROR return a red background
169
169
  >
170
170
  <RNSVGSvgView
171
171
  align="xMidYMid"
172
- bbHeight="28"
173
- bbWidth="28"
172
+ bbHeight={24}
173
+ bbWidth={24}
174
174
  fill="none"
175
175
  focusable={false}
176
- height="28"
176
+ height={24}
177
177
  meetOrSlice={0}
178
178
  minX={0}
179
179
  minY={0}
@@ -185,14 +185,14 @@ exports[`test snackbar given the visual state is ERROR return a red background
185
185
  },
186
186
  {
187
187
  "flex": 0,
188
- "height": 28,
189
- "width": 28,
188
+ "height": 24,
189
+ "width": 24,
190
190
  },
191
191
  ]
192
192
  }
193
- vbHeight={26}
194
- vbWidth={26}
195
- width="28"
193
+ vbHeight={21}
194
+ vbWidth={23}
195
+ width={24}
196
196
  >
197
197
  <RNSVGGroup
198
198
  fill={null}
@@ -203,7 +203,7 @@ exports[`test snackbar given the visual state is ERROR return a red background
203
203
  }
204
204
  >
205
205
  <RNSVGPath
206
- d="M3.25 4.25C3.25 3.69772 3.69772 3.25 4.25 3.25H21.75C22.3023 3.25 22.75 3.69772 22.75 4.25V7.16912C22.75 7.43434 22.6446 7.68869 22.4571 7.87623L15.4596 14.8738C15.272 15.0613 15.1667 15.3157 15.1667 15.5809V18.4167L10.8333 22.75V15.5809C10.8333 15.3157 10.728 15.0613 10.5404 14.8738L3.54289 7.87623C3.35536 7.68869 3.25 7.43434 3.25 7.16912V4.25Z"
206
+ d="M11.5 8.125V10.375M11.5 14.875H11.5113M3.70581 19.375H19.2943C21.0263 19.375 22.1088 17.5 21.2428 16L13.4486 2.5C12.5826 1 10.4175 1 9.55148 2.5L1.75725 16C0.891228 17.5 1.97376 19.375 3.70581 19.375Z"
207
207
  propList={
208
208
  [
209
209
  "stroke",
@@ -297,11 +297,11 @@ exports[`test snackbar given the visual state is SUCCESS return a light green b
297
297
  >
298
298
  <RNSVGSvgView
299
299
  align="xMidYMid"
300
- bbHeight="28"
301
- bbWidth="28"
300
+ bbHeight={24}
301
+ bbWidth={24}
302
302
  fill="none"
303
303
  focusable={false}
304
- height="28"
304
+ height={24}
305
305
  meetOrSlice={0}
306
306
  minX={0}
307
307
  minY={0}
@@ -313,14 +313,14 @@ exports[`test snackbar given the visual state is SUCCESS return a light green b
313
313
  },
314
314
  {
315
315
  "flex": 0,
316
- "height": 28,
317
- "width": 28,
316
+ "height": 24,
317
+ "width": 24,
318
318
  },
319
319
  ]
320
320
  }
321
- vbHeight={26}
322
- vbWidth={26}
323
- width="28"
321
+ vbHeight={21}
322
+ vbWidth={23}
323
+ width={24}
324
324
  >
325
325
  <RNSVGGroup
326
326
  fill={null}
@@ -331,7 +331,7 @@ exports[`test snackbar given the visual state is SUCCESS return a light green b
331
331
  }
332
332
  >
333
333
  <RNSVGPath
334
- d="M3.25 4.25C3.25 3.69772 3.69772 3.25 4.25 3.25H21.75C22.3023 3.25 22.75 3.69772 22.75 4.25V7.16912C22.75 7.43434 22.6446 7.68869 22.4571 7.87623L15.4596 14.8738C15.272 15.0613 15.1667 15.3157 15.1667 15.5809V18.4167L10.8333 22.75V15.5809C10.8333 15.3157 10.728 15.0613 10.5404 14.8738L3.54289 7.87623C3.35536 7.68869 3.25 7.43434 3.25 7.16912V4.25Z"
334
+ d="M11.5 8.125V10.375M11.5 14.875H11.5113M3.70581 19.375H19.2943C21.0263 19.375 22.1088 17.5 21.2428 16L13.4486 2.5C12.5826 1 10.4175 1 9.55148 2.5L1.75725 16C0.891228 17.5 1.97376 19.375 3.70581 19.375Z"
335
335
  propList={
336
336
  [
337
337
  "stroke",
@@ -425,11 +425,11 @@ exports[`test snackbar given the visual state is WARNING return a light orange
425
425
  >
426
426
  <RNSVGSvgView
427
427
  align="xMidYMid"
428
- bbHeight="28"
429
- bbWidth="28"
428
+ bbHeight={24}
429
+ bbWidth={24}
430
430
  fill="none"
431
431
  focusable={false}
432
- height="28"
432
+ height={24}
433
433
  meetOrSlice={0}
434
434
  minX={0}
435
435
  minY={0}
@@ -441,14 +441,14 @@ exports[`test snackbar given the visual state is WARNING return a light orange
441
441
  },
442
442
  {
443
443
  "flex": 0,
444
- "height": 28,
445
- "width": 28,
444
+ "height": 24,
445
+ "width": 24,
446
446
  },
447
447
  ]
448
448
  }
449
- vbHeight={26}
450
- vbWidth={26}
451
- width="28"
449
+ vbHeight={21}
450
+ vbWidth={23}
451
+ width={24}
452
452
  >
453
453
  <RNSVGGroup
454
454
  fill={null}
@@ -459,7 +459,7 @@ exports[`test snackbar given the visual state is WARNING return a light orange
459
459
  }
460
460
  >
461
461
  <RNSVGPath
462
- d="M3.25 4.25C3.25 3.69772 3.69772 3.25 4.25 3.25H21.75C22.3023 3.25 22.75 3.69772 22.75 4.25V7.16912C22.75 7.43434 22.6446 7.68869 22.4571 7.87623L15.4596 14.8738C15.272 15.0613 15.1667 15.3157 15.1667 15.5809V18.4167L10.8333 22.75V15.5809C10.8333 15.3157 10.728 15.0613 10.5404 14.8738L3.54289 7.87623C3.35536 7.68869 3.25 7.43434 3.25 7.16912V4.25Z"
462
+ d="M11.5 8.125V10.375M11.5 14.875H11.5113M3.70581 19.375H19.2943C21.0263 19.375 22.1088 17.5 21.2428 16L13.4486 2.5C12.5826 1 10.4175 1 9.55148 2.5L1.75725 16C0.891228 17.5 1.97376 19.375 3.70581 19.375Z"
463
463
  propList={
464
464
  [
465
465
  "stroke",
@@ -5,8 +5,8 @@ import {ThemeCtx} from '../../../context/theme.context';
5
5
  import {View} from 'react-native';
6
6
  import {Stylesheet} from './snackbar.styles';
7
7
  import {VisualState} from '../../../types/visual-state.enum';
8
- import {FilterIcon} from '../../../icons/outline/filter/filter.icon';
9
8
  import {Paragraph} from '../../atoms/paragraph-components';
9
+ import {Icon} from '../../../icons/index';
10
10
 
11
11
  type SnackbarProps = {
12
12
  text: string;
@@ -17,6 +17,21 @@ const Snackbar = ({text, visualState}: SnackbarProps) => {
17
17
  const context = useContext(ThemeCtx);
18
18
  const styles = Stylesheet(context, visualState);
19
19
 
20
+ const snackbarIconNameHandler = (visualState: VisualState) => {
21
+ const defaultIcon = 'exclamation-circle';
22
+ const errorWarningIcon = 'exclamation';
23
+ const successIcon = 'thumb-up';
24
+ if (visualState === VisualState.DEFAULT) {
25
+ return defaultIcon;
26
+ } else if (visualState === VisualState.SUCCESS) {
27
+ return successIcon;
28
+ } else if (visualState === VisualState.WARNING || VisualState.ERROR) {
29
+ return errorWarningIcon;
30
+ } else {
31
+ return defaultIcon;
32
+ }
33
+ };
34
+
20
35
  const snackbarIconTextColorHandler = (visualState: VisualState) => {
21
36
  const defaultColor = context.colors.main['0'];
22
37
  const errorColor = context.colors.ui.white;
@@ -33,7 +48,11 @@ const Snackbar = ({text, visualState}: SnackbarProps) => {
33
48
  return (
34
49
  <View style={styles.container}>
35
50
  <View style={styles.iconContainer}>
36
- <FilterIcon color={snackbarIconTextColorHandler(visualState)} />
51
+ <Icon
52
+ style={'regular'}
53
+ name={snackbarIconNameHandler(visualState)}
54
+ color={snackbarIconTextColorHandler(visualState)}
55
+ />
37
56
  </View>
38
57
  <View style={styles.textContainer}>
39
58
  <Paragraph textColor={snackbarIconTextColorHandler(visualState)}>
@@ -52,8 +52,10 @@ exports[`Test Swipe component should render an swipe component with dots and nav
52
52
  loadMinimalSize={1}
53
53
  loop={false}
54
54
  nextButton={
55
- <ChevronRightIcon
55
+ <Icon
56
56
  color="#19216C"
57
+ name="chevron-right"
58
+ style="regular"
57
59
  />
58
60
  }
59
61
  onIndexChanged={[Function]}
@@ -67,8 +69,10 @@ exports[`Test Swipe component should render an swipe component with dots and nav
67
69
  }
68
70
  pagingEnabled={true}
69
71
  prevButton={
70
- <ChevronLeftIcon
72
+ <Icon
71
73
  color="#19216C"
74
+ name="chevron-left"
75
+ style="regular"
72
76
  />
73
77
  }
74
78
  removeClippedSubviews={true}
@@ -366,11 +370,11 @@ exports[`Test Swipe component should render an swipe component with dots and nav
366
370
  <View>
367
371
  <RNSVGSvgView
368
372
  align="xMidYMid"
369
- bbHeight="28"
370
- bbWidth="28"
373
+ bbHeight={24}
374
+ bbWidth={24}
371
375
  fill="none"
372
376
  focusable={false}
373
- height="28"
377
+ height={24}
374
378
  meetOrSlice={0}
375
379
  minX={0}
376
380
  minY={0}
@@ -382,14 +386,14 @@ exports[`Test Swipe component should render an swipe component with dots and nav
382
386
  },
383
387
  {
384
388
  "flex": 0,
385
- "height": 28,
386
- "width": 28,
389
+ "height": 24,
390
+ "width": 24,
387
391
  },
388
392
  ]
389
393
  }
390
- vbHeight={27}
391
- vbWidth={26}
392
- width="28"
394
+ vbHeight={19}
395
+ vbWidth={11}
396
+ width={24}
393
397
  >
394
398
  <RNSVGGroup
395
399
  fill={null}
@@ -400,7 +404,7 @@ exports[`Test Swipe component should render an swipe component with dots and nav
400
404
  }
401
405
  >
402
406
  <RNSVGPath
403
- d="M9.75 5.625L17.3333 13.5L9.75 21.375"
407
+ d="M1.75 1.625L9.33333 9.5L1.75 17.375"
404
408
  propList={
405
409
  [
406
410
  "stroke",
@@ -29,10 +29,18 @@ const Swipe = ({children, onIndexChanged}: SwipeProps) => {
29
29
  dotColor={context.colors.ui.lightgrey}
30
30
  activeDotColor={context.colors.main['7']}
31
31
  prevButton={
32
- <Icon.Outline.ChevronLeft color={context.colors.main['0']} />
32
+ <Icon
33
+ style={'regular'}
34
+ name={'chevron-left'}
35
+ color={context.colors.main['0']}
36
+ />
33
37
  }
34
38
  nextButton={
35
- <Icon.Outline.ChevronRight color={context.colors.main['0']} />
39
+ <Icon
40
+ style={'regular'}
41
+ name={'chevron-right'}
42
+ color={context.colors.main['0']}
43
+ />
36
44
  }
37
45
  >
38
46
  {children}
@@ -248,11 +248,11 @@ exports[`test child list item component arrow appears when selectable is false 1
248
248
  >
249
249
  <RNSVGSvgView
250
250
  align="xMidYMid"
251
- bbHeight="28"
252
- bbWidth="28"
251
+ bbHeight={20}
252
+ bbWidth={20}
253
253
  fill="none"
254
254
  focusable={false}
255
- height="28"
255
+ height={20}
256
256
  meetOrSlice={0}
257
257
  minX={0}
258
258
  minY={0}
@@ -264,14 +264,14 @@ exports[`test child list item component arrow appears when selectable is false 1
264
264
  },
265
265
  {
266
266
  "flex": 0,
267
- "height": 28,
268
- "width": 28,
267
+ "height": 20,
268
+ "width": 20,
269
269
  },
270
270
  ]
271
271
  }
272
- vbHeight={27}
273
- vbWidth={26}
274
- width="28"
272
+ vbHeight={19}
273
+ vbWidth={11}
274
+ width={20}
275
275
  >
276
276
  <RNSVGGroup
277
277
  fill={null}
@@ -282,7 +282,7 @@ exports[`test child list item component arrow appears when selectable is false 1
282
282
  }
283
283
  >
284
284
  <RNSVGPath
285
- d="M9.75 5.625L17.3333 13.5L9.75 21.375"
285
+ d="M1.75 1.625L9.33333 9.5L1.75 17.375"
286
286
  propList={
287
287
  [
288
288
  "stroke",
@@ -291,7 +291,7 @@ exports[`test child list item component arrow appears when selectable is false 1
291
291
  "strokeLinejoin",
292
292
  ]
293
293
  }
294
- stroke={4279837036}
294
+ stroke={4280232243}
295
295
  strokeLinecap={1}
296
296
  strokeLinejoin={1}
297
297
  strokeWidth="2"
@@ -7,11 +7,11 @@ import {Initials} from '../../../models/initials.model';
7
7
  import {Size} from '../../../types/size.enum';
8
8
  import {VisualState} from '../../../types/visual-state.enum';
9
9
  import {Avatar} from '../../molecules/avatar/avatar.component';
10
- import {ChevronRightIcon} from '../../../icons/outline/chevron-right/chevron-right.icon';
11
10
  import {Stylesheet} from './child-list-item.styles';
12
11
  import {SmallText} from '../../atoms/paragraph-components';
13
12
  import {Heading2} from '../../atoms/heading-components';
14
13
  import {TimeTracker} from '../../molecules/time-tracker/time-tracker.component';
14
+ import {Icon} from '../../../icons/index';
15
15
 
16
16
  type ChildListItemProps = {
17
17
  id: string;
@@ -88,7 +88,12 @@ const ChildListItem = ({
88
88
  onPress={() => onPressArrow(id)}
89
89
  style={styles.iconContainer}
90
90
  >
91
- <ChevronRightIcon />
91
+ <Icon
92
+ style={'regular'}
93
+ name={'chevron-right'}
94
+ size={20}
95
+ color={context.colors.ui.black}
96
+ />
92
97
  </Pressable>
93
98
  ) : null}
94
99
  </>
@@ -72,7 +72,13 @@ export const ChildListItemPreview = ({}: {}) => {
72
72
  >
73
73
  <View style={{alignItems: 'center', marginBottom: 28}}>
74
74
  <PressableIcon
75
- icon={<Icon.Outline.ViewGridAdd key={'unique key'} />}
75
+ icon={
76
+ <Icon
77
+ style={'regular'}
78
+ name={'sm-view-grid-add'}
79
+ key={'unique key'}
80
+ />
81
+ }
76
82
  onPress={selectChildren}
77
83
  />
78
84
  </View>
@@ -127,11 +127,11 @@ exports[`test contact-item renders a contact-item with a red avatar and an extra
127
127
  >
128
128
  <RNSVGSvgView
129
129
  align="xMidYMid"
130
- bbHeight="28"
131
- bbWidth="28"
130
+ bbHeight={20}
131
+ bbWidth={20}
132
132
  fill="none"
133
133
  focusable={false}
134
- height="28"
134
+ height={20}
135
135
  meetOrSlice={0}
136
136
  minX={0}
137
137
  minY={0}
@@ -143,14 +143,14 @@ exports[`test contact-item renders a contact-item with a red avatar and an extra
143
143
  },
144
144
  {
145
145
  "flex": 0,
146
- "height": 28,
147
- "width": 28,
146
+ "height": 20,
147
+ "width": 20,
148
148
  },
149
149
  ]
150
150
  }
151
- vbHeight={27}
152
- vbWidth={26}
153
- width="28"
151
+ vbHeight={19}
152
+ vbWidth={11}
153
+ width={20}
154
154
  >
155
155
  <RNSVGGroup
156
156
  fill={null}
@@ -161,7 +161,7 @@ exports[`test contact-item renders a contact-item with a red avatar and an extra
161
161
  }
162
162
  >
163
163
  <RNSVGPath
164
- d="M9.75 5.625L17.3333 13.5L9.75 21.375"
164
+ d="M1.75 1.625L9.33333 9.5L1.75 17.375"
165
165
  propList={
166
166
  [
167
167
  "stroke",
@@ -309,11 +309,11 @@ exports[`test contact-item renders a contact-item, with an avatar 1`] = `
309
309
  >
310
310
  <RNSVGSvgView
311
311
  align="xMidYMid"
312
- bbHeight="28"
313
- bbWidth="28"
312
+ bbHeight={20}
313
+ bbWidth={20}
314
314
  fill="none"
315
315
  focusable={false}
316
- height="28"
316
+ height={20}
317
317
  meetOrSlice={0}
318
318
  minX={0}
319
319
  minY={0}
@@ -325,14 +325,14 @@ exports[`test contact-item renders a contact-item, with an avatar 1`] = `
325
325
  },
326
326
  {
327
327
  "flex": 0,
328
- "height": 28,
329
- "width": 28,
328
+ "height": 20,
329
+ "width": 20,
330
330
  },
331
331
  ]
332
332
  }
333
- vbHeight={27}
334
- vbWidth={26}
335
- width="28"
333
+ vbHeight={19}
334
+ vbWidth={11}
335
+ width={20}
336
336
  >
337
337
  <RNSVGGroup
338
338
  fill={null}
@@ -343,7 +343,7 @@ exports[`test contact-item renders a contact-item, with an avatar 1`] = `
343
343
  }
344
344
  >
345
345
  <RNSVGPath
346
- d="M9.75 5.625L17.3333 13.5L9.75 21.375"
346
+ d="M1.75 1.625L9.33333 9.5L1.75 17.375"
347
347
  propList={
348
348
  [
349
349
  "stroke",
@@ -52,7 +52,12 @@ const ContactItem = ({
52
52
  <Pill label={'Geblokkeerd'} visualState={VisualState.ERROR} />
53
53
  ) : null}
54
54
  <View style={styles.iconSquare}>
55
- <Icon.Outline.ChevronRight color={context.colors.main['0']} />
55
+ <Icon
56
+ style={'regular'}
57
+ name={'chevron-right'}
58
+ size={20}
59
+ color={context.colors.main['0']}
60
+ />
56
61
  </View>
57
62
  </View>
58
63
  </Pressable>