@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
@@ -58,11 +58,11 @@ exports[`Test date input component renders a date input component 1`] = `
58
58
  </View>
59
59
  <RNSVGSvgView
60
60
  align="xMidYMid"
61
- bbHeight="28"
62
- bbWidth="28"
61
+ bbHeight={24}
62
+ bbWidth={24}
63
63
  fill="none"
64
64
  focusable={false}
65
- height="28"
65
+ height={24}
66
66
  meetOrSlice={0}
67
67
  minX={0}
68
68
  minY={0}
@@ -74,14 +74,14 @@ exports[`Test date input component renders a date input component 1`] = `
74
74
  },
75
75
  {
76
76
  "flex": 0,
77
- "height": 28,
78
- "width": 28,
77
+ "height": 24,
78
+ "width": 24,
79
79
  },
80
80
  ]
81
81
  }
82
- vbHeight={27}
83
- vbWidth={27}
84
- width="28"
82
+ vbHeight={24}
83
+ vbWidth={24}
84
+ width={24}
85
85
  >
86
86
  <RNSVGGroup
87
87
  fill={null}
@@ -92,7 +92,7 @@ exports[`Test date input component renders a date input component 1`] = `
92
92
  }
93
93
  >
94
94
  <RNSVGPath
95
- 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"
95
+ 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"
96
96
  propList={
97
97
  [
98
98
  "stroke",
@@ -22,7 +22,11 @@ export const DateInput = ({onPress, value}: DateInputProps) => {
22
22
  {value.toISODate()}
23
23
  </Heading4>
24
24
  </View>
25
- <Icon.Outline.Calendar color={context.colors.ui.black} />
25
+ <Icon
26
+ style={'regular'}
27
+ name={'calendar'}
28
+ color={context.colors.ui.black}
29
+ />
26
30
  </Pressable>
27
31
  );
28
32
  };
@@ -58,11 +58,11 @@ exports[`test default select component should render a default select component
58
58
  </View>
59
59
  <RNSVGSvgView
60
60
  align="xMidYMid"
61
- bbHeight="28"
62
- bbWidth="28"
61
+ bbHeight={24}
62
+ bbWidth={24}
63
63
  fill="none"
64
64
  focusable={false}
65
- height="28"
65
+ height={24}
66
66
  meetOrSlice={0}
67
67
  minX={0}
68
68
  minY={0}
@@ -74,14 +74,14 @@ exports[`test default select component should render a default select component
74
74
  },
75
75
  {
76
76
  "flex": 0,
77
- "height": 28,
78
- "width": 28,
77
+ "height": 24,
78
+ "width": 24,
79
79
  },
80
80
  ]
81
81
  }
82
- vbHeight={27}
83
- vbWidth={26}
84
- width="28"
82
+ vbHeight={19}
83
+ vbWidth={11}
84
+ width={24}
85
85
  >
86
86
  <RNSVGGroup
87
87
  fill={null}
@@ -92,7 +92,7 @@ exports[`test default select component should render a default select component
92
92
  }
93
93
  >
94
94
  <RNSVGPath
95
- d="M9.75 5.625L17.3333 13.5L9.75 21.375"
95
+ d="M1.75 1.625L9.33333 9.5L1.75 17.375"
96
96
  propList={
97
97
  [
98
98
  "stroke",
@@ -32,7 +32,11 @@ export const DefaultSelect = ({label, onPress}: DefaultSelectProps) => {
32
32
  {label}
33
33
  </Heading3>
34
34
  </View>
35
- <Icon.Outline.ChevronRight color={Context.colors.ui.white} />
35
+ <Icon
36
+ style={'regular'}
37
+ name={'chevron-right'}
38
+ color={Context.colors.ui.white}
39
+ />
36
40
  </Pressable>
37
41
  );
38
42
  };
@@ -19,11 +19,11 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
19
19
  >
20
20
  <RNSVGSvgView
21
21
  align="xMidYMid"
22
- bbHeight="28"
23
- bbWidth="28"
22
+ bbHeight={26}
23
+ bbWidth={26}
24
24
  fill="none"
25
25
  focusable={false}
26
- height="28"
26
+ height={26}
27
27
  meetOrSlice={0}
28
28
  minX={0}
29
29
  minY={0}
@@ -35,14 +35,14 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
35
35
  },
36
36
  {
37
37
  "flex": 0,
38
- "height": 28,
39
- "width": 28,
38
+ "height": 26,
39
+ "width": 26,
40
40
  },
41
41
  ]
42
42
  }
43
- vbHeight={27}
44
- vbWidth={26}
45
- width="28"
43
+ vbHeight={23}
44
+ vbWidth={22}
45
+ width={26}
46
46
  >
47
47
  <RNSVGGroup
48
48
  fill={null}
@@ -53,7 +53,7 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
53
53
  }
54
54
  >
55
55
  <RNSVGPath
56
- 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"
56
+ 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"
57
57
  propList={
58
58
  [
59
59
  "stroke",
@@ -155,11 +155,11 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
155
155
  >
156
156
  <RNSVGSvgView
157
157
  align="xMidYMid"
158
- bbHeight="28"
159
- bbWidth="28"
158
+ bbHeight={24}
159
+ bbWidth={24}
160
160
  fill="none"
161
161
  focusable={false}
162
- height="28"
162
+ height={24}
163
163
  meetOrSlice={0}
164
164
  minX={0}
165
165
  minY={0}
@@ -171,14 +171,14 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
171
171
  },
172
172
  {
173
173
  "flex": 0,
174
- "height": 28,
175
- "width": 28,
174
+ "height": 24,
175
+ "width": 24,
176
176
  },
177
177
  ]
178
178
  }
179
- vbHeight={27}
180
- vbWidth={26}
181
- width="28"
179
+ vbHeight={21}
180
+ vbWidth={20}
181
+ width={24}
182
182
  >
183
183
  <RNSVGGroup
184
184
  fill={null}
@@ -189,7 +189,7 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
189
189
  }
190
190
  >
191
191
  <RNSVGPath
192
- d="M4.33301 4.5V10.125H4.96298M21.5993 12.375C21.0662 7.9354 17.4193 4.5 12.9997 4.5C9.36251 4.5 6.24866 6.82669 4.96298 10.125M4.96298 10.125H9.74967M21.6663 22.5V16.875H21.0364M21.0364 16.875C19.7507 20.1733 16.6368 22.5 12.9997 22.5C8.58009 22.5 4.93317 19.0646 4.40006 14.625M21.0364 16.875H16.2497"
192
+ d="M1.33337 1.5V7.125H1.96335M18.5997 9.375C18.0665 4.9354 14.4196 1.5 10 1.5C6.36288 1.5 3.24902 3.82669 1.96335 7.125M1.96335 7.125H6.75004M18.6667 19.5V13.875H18.0367M18.0367 13.875C16.7511 17.1733 13.6372 19.5 10 19.5C5.58045 19.5 1.93353 16.0646 1.40043 11.625M18.0367 13.875H13.25"
193
193
  propList={
194
194
  [
195
195
  "stroke",
@@ -233,11 +233,11 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
233
233
  >
234
234
  <RNSVGSvgView
235
235
  align="xMidYMid"
236
- bbHeight="28"
237
- bbWidth="28"
236
+ bbHeight={24}
237
+ bbWidth={24}
238
238
  fill="none"
239
239
  focusable={false}
240
- height="28"
240
+ height={24}
241
241
  meetOrSlice={0}
242
242
  minX={0}
243
243
  minY={0}
@@ -249,14 +249,14 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
249
249
  },
250
250
  {
251
251
  "flex": 0,
252
- "height": 28,
253
- "width": 28,
252
+ "height": 24,
253
+ "width": 24,
254
254
  },
255
255
  ]
256
256
  }
257
- vbHeight={28}
258
- vbWidth={28}
259
- width="28"
257
+ vbHeight={22}
258
+ vbWidth={21}
259
+ width={24}
260
260
  >
261
261
  <RNSVGGroup
262
262
  fill={null}
@@ -267,7 +267,7 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
267
267
  }
268
268
  >
269
269
  <RNSVGPath
270
- d="M21.875 8.375L20.8993 22.0353C20.8152 23.2127 19.8354 24.125 18.655 24.125H9.34502C8.16458 24.125 7.18484 23.2127 7.10074 22.0353L6.125 8.375M11.75 12.875V19.625M16.25 12.875V19.625M17.375 8.375V5C17.375 4.37868 16.8713 3.875 16.25 3.875H11.75C11.1287 3.875 10.625 4.37868 10.625 5V8.375M5 8.375H23"
270
+ d="M18.375 5.58333L17.3993 18.7377C17.3152 19.8715 16.3354 20.75 15.155 20.75H5.84502C4.66458 20.75 3.68484 19.8715 3.60074 18.7377L2.625 5.58333M8.25 9.91667V16.4167M12.75 9.91667V16.4167M13.875 5.58333V2.33333C13.875 1.73502 13.3713 1.25 12.75 1.25H8.25C7.62868 1.25 7.125 1.73502 7.125 2.33333V5.58333M1.5 5.58333H19.5"
271
271
  propList={
272
272
  [
273
273
  "stroke",
@@ -37,12 +37,20 @@ const FailedTextBubble = ({
37
37
  <View style={styles.swipedRow}>
38
38
  <Animated.View style={[styles.swipedIcon, {opacity}]}>
39
39
  <Pressable onPress={onPressRefresh}>
40
- <Icon.Outline.Refresh color={context.colors.ui.error.xlight} />
40
+ <Icon
41
+ style={'regular'}
42
+ name={'refresh'}
43
+ color={context.colors.ui.error.xlight}
44
+ />
41
45
  </Pressable>
42
46
  </Animated.View>
43
47
  <Animated.View style={[styles.swipedIcon, {opacity}]}>
44
48
  <Pressable onPress={onPressDelete}>
45
- <Icon.Outline.Trash color={context.colors.ui.error.xlight} />
49
+ <Icon
50
+ style={'regular'}
51
+ name={'trash'}
52
+ color={context.colors.ui.error.xlight}
53
+ />
46
54
  </Pressable>
47
55
  </Animated.View>
48
56
  </View>
@@ -52,8 +60,11 @@ const FailedTextBubble = ({
52
60
  return (
53
61
  <GestureHandlerRootView style={{flexDirection: 'row'}}>
54
62
  <View style={styles.iconContainer}>
55
- <Icon.Outline.ExclamationCircle
63
+ <Icon
64
+ style={'regular'}
65
+ name={'exclamation-circle'}
56
66
  color={context.colors.ui.error.default}
67
+ size={26}
57
68
  />
58
69
  </View>
59
70
 
@@ -0,0 +1,95 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`language button should render a language button in a black text color, medium bold 1`] = `
4
+ <View
5
+ accessible={true}
6
+ collapsable={false}
7
+ focusable={true}
8
+ onBlur={[Function]}
9
+ onClick={[Function]}
10
+ onFocus={[Function]}
11
+ onResponderGrant={[Function]}
12
+ onResponderMove={[Function]}
13
+ onResponderRelease={[Function]}
14
+ onResponderTerminate={[Function]}
15
+ onResponderTerminationRequest={[Function]}
16
+ onStartShouldSetResponder={[Function]}
17
+ style={
18
+ {
19
+ "alignItems": "center",
20
+ "justifyContent": "center",
21
+ "minHeight": 42,
22
+ "minWidth": 42,
23
+ }
24
+ }
25
+ >
26
+ <Text
27
+ style={
28
+ [
29
+ [
30
+ {
31
+ "fontFamily": "SourceSansProBold",
32
+ "fontSize": 16,
33
+ "lineHeight": 22.4,
34
+ },
35
+ ],
36
+ {
37
+ "color": "#000000",
38
+ "textAlign": "center",
39
+ "width": "100%",
40
+ },
41
+ undefined,
42
+ ]
43
+ }
44
+ >
45
+ FR
46
+ </Text>
47
+ </View>
48
+ `;
49
+
50
+ exports[`language button should render a language button in a white text color, medium bold 1`] = `
51
+ <View
52
+ accessible={true}
53
+ collapsable={false}
54
+ focusable={true}
55
+ onBlur={[Function]}
56
+ onClick={[Function]}
57
+ onFocus={[Function]}
58
+ onResponderGrant={[Function]}
59
+ onResponderMove={[Function]}
60
+ onResponderRelease={[Function]}
61
+ onResponderTerminate={[Function]}
62
+ onResponderTerminationRequest={[Function]}
63
+ onStartShouldSetResponder={[Function]}
64
+ style={
65
+ {
66
+ "alignItems": "center",
67
+ "justifyContent": "center",
68
+ "minHeight": 42,
69
+ "minWidth": 42,
70
+ }
71
+ }
72
+ >
73
+ <Text
74
+ style={
75
+ [
76
+ [
77
+ {
78
+ "fontFamily": "SourceSansProBold",
79
+ "fontSize": 16,
80
+ "lineHeight": 22.4,
81
+ },
82
+ ],
83
+ {
84
+ "color": "#FFFFFF",
85
+ "textAlign": "center",
86
+ "width": "100%",
87
+ },
88
+ undefined,
89
+ ]
90
+ }
91
+ >
92
+ NL
93
+ </Text>
94
+ </View>
95
+ `;
@@ -0,0 +1,7 @@
1
+ declare type LanguageButtonProps = {
2
+ label: string;
3
+ onPress?: () => void;
4
+ textColor?: string;
5
+ };
6
+ export declare const LanguageButton: ({ label, onPress, textColor, }: LanguageButtonProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ import {useContext} from 'react';
3
+ import {Pressable} from 'react-native';
4
+ import {ThemeCtx} from '../../../context/theme.context';
5
+ import {Stylesheet} from './language-button.styles';
6
+ import {Heading4} from '../../atoms/heading-components';
7
+
8
+ type LanguageButtonProps = {
9
+ label: string;
10
+ onPress?: () => void;
11
+ textColor?: string;
12
+ };
13
+
14
+ export const LanguageButton = ({
15
+ label,
16
+ onPress,
17
+ textColor,
18
+ }: LanguageButtonProps) => {
19
+ const Context = useContext(ThemeCtx);
20
+ const styles = Stylesheet();
21
+
22
+ return (
23
+ <Pressable onPress={onPress} style={styles.container}>
24
+ <Heading4
25
+ bold={true}
26
+ textAlign={'center'}
27
+ textColor={textColor ? textColor : Context.colors.ui.white}
28
+ >
29
+ {label}
30
+ </Heading4>
31
+ </Pressable>
32
+ );
33
+ };
@@ -0,0 +1 @@
1
+ export declare const LanguageButtonPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,29 @@
1
+ import React, {useContext} from 'react';
2
+ import {ThemeCtx} from '../../../context/theme.context';
3
+ import {LanguageButton} from './language-button.component';
4
+
5
+ const {View} = require('react-native');
6
+
7
+ export const LanguageButtonPreview = ({}: {}) => {
8
+ const Context = useContext(ThemeCtx);
9
+ return (
10
+ <View
11
+ style={{
12
+ flex: 1,
13
+ alignItems: 'center',
14
+ justifyContent: 'center',
15
+ backgroundColor: Context.colors.main['0'],
16
+ }}
17
+ >
18
+ <LanguageButton
19
+ label={'NL'}
20
+ onPress={() => console.log('change language')}
21
+ />
22
+ <LanguageButton
23
+ label={'FR'}
24
+ onPress={() => console.log('change language')}
25
+ textColor={'#FF0000'}
26
+ />
27
+ </View>
28
+ );
29
+ };
@@ -0,0 +1,8 @@
1
+ export function Stylesheet(): {
2
+ container: {
3
+ minWidth: number;
4
+ minHeight: number;
5
+ justifyContent: 'center';
6
+ alignItems: 'center';
7
+ };
8
+ };
@@ -0,0 +1,12 @@
1
+ import {StyleSheet} from 'react-native';
2
+ import {Scale} from '../../../theme/scale';
3
+
4
+ export const Stylesheet = () =>
5
+ StyleSheet.create({
6
+ container: {
7
+ minWidth: Scale.m * 2.625,
8
+ minHeight: Scale.m * 2.625,
9
+ justifyContent: 'center',
10
+ alignItems: 'center',
11
+ },
12
+ });
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import render from 'react-test-renderer';
3
+ import {LanguageButton} from './language-button.component';
4
+
5
+ describe('language button', () => {
6
+ it('should render a language button in a white text color, medium bold', function () {
7
+ const tree = render
8
+ .create(
9
+ <LanguageButton
10
+ label="NL"
11
+ onPress={() => console.log('choose language')}
12
+ />
13
+ )
14
+ .toJSON();
15
+ expect(tree).toMatchSnapshot();
16
+ });
17
+ it('should render a language button in a black text color, medium bold', () => {
18
+ const tree = render
19
+ .create(
20
+ <LanguageButton
21
+ label="FR"
22
+ onPress={() => console.log('choose language')}
23
+ textColor={'#000000'}
24
+ />
25
+ )
26
+ .toJSON();
27
+ expect(tree).toMatchSnapshot();
28
+ });
29
+ });