@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
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import render from 'react-test-renderer';
3
+ import {MoreInfoButton} from './more-info-button.component';
4
+
5
+ describe('more info button', () => {
6
+ it('should render a more info button in a white text color, underlined', function () {
7
+ const tree = render
8
+ .create(
9
+ <MoreInfoButton
10
+ label="More info"
11
+ onPress={() => console.log('do something')}
12
+ />
13
+ )
14
+ .toJSON();
15
+ expect(tree).toMatchSnapshot();
16
+ });
17
+ it('should render a more info button in a black text color, underlined', () => {
18
+ const tree = render
19
+ .create(
20
+ <MoreInfoButton
21
+ label="Meer info"
22
+ onPress={() => console.log('do something')}
23
+ textColor={'#000000'}
24
+ />
25
+ )
26
+ .toJSON();
27
+ expect(tree).toMatchSnapshot();
28
+ });
29
+ });
@@ -64,11 +64,11 @@ exports[`Visual test for the password input field shows a password input field w
64
64
  >
65
65
  <RNSVGSvgView
66
66
  align="xMidYMid"
67
- bbHeight="28"
68
- bbWidth="28"
67
+ bbHeight={24}
68
+ bbWidth={24}
69
69
  fill="none"
70
70
  focusable={false}
71
- height="28"
71
+ height={24}
72
72
  meetOrSlice={0}
73
73
  minX={0}
74
74
  minY={0}
@@ -80,14 +80,14 @@ exports[`Visual test for the password input field shows a password input field w
80
80
  },
81
81
  {
82
82
  "flex": 0,
83
- "height": 28,
84
- "width": 28,
83
+ "height": 24,
84
+ "width": 24,
85
85
  },
86
86
  ]
87
87
  }
88
- vbHeight={27}
89
- vbWidth={27}
90
- width="28"
88
+ vbHeight={19}
89
+ vbWidth={25}
90
+ width={24}
91
91
  >
92
92
  <RNSVGGroup
93
93
  fill={null}
@@ -98,7 +98,7 @@ exports[`Visual test for the password input field shows a password input field w
98
98
  }
99
99
  >
100
100
  <RNSVGPath
101
- d="M16.875 13.5C16.875 15.364 15.3639 16.875 13.5 16.875C11.636 16.875 10.125 15.364 10.125 13.5C10.125 11.636 11.636 10.125 13.5 10.125C15.3639 10.125 16.875 11.636 16.875 13.5Z"
101
+ d="M15.875 9.5C15.875 11.364 14.3639 12.875 12.5 12.875C10.636 12.875 9.12497 11.364 9.12497 9.5C9.12497 7.63604 10.636 6.125 12.5 6.125C14.3639 6.125 15.875 7.63604 15.875 9.5Z"
102
102
  propList={
103
103
  [
104
104
  "stroke",
@@ -113,7 +113,7 @@ exports[`Visual test for the password input field shows a password input field w
113
113
  strokeWidth="2"
114
114
  />
115
115
  <RNSVGPath
116
- d="M2.7655 13.5C4.19906 8.93574 8.46313 5.625 13.5005 5.625C18.5378 5.625 22.8019 8.93578 24.2354 13.5C22.8019 18.0643 18.5378 21.375 13.5005 21.375C8.46313 21.375 4.19904 18.0642 2.7655 13.5Z"
116
+ d="M1.7655 9.49996C3.19906 4.93574 7.46313 1.625 12.5005 1.625C17.5378 1.625 21.8019 4.93578 23.2354 9.50004C21.8019 14.0643 17.5378 17.375 12.5005 17.375C7.46313 17.375 3.19904 14.0642 1.7655 9.49996Z"
117
117
  propList={
118
118
  [
119
119
  "stroke",
@@ -198,11 +198,11 @@ exports[`Visual test for the password input field shows a password input field w
198
198
  >
199
199
  <RNSVGSvgView
200
200
  align="xMidYMid"
201
- bbHeight="28"
202
- bbWidth="28"
201
+ bbHeight={24}
202
+ bbWidth={24}
203
203
  fill="none"
204
204
  focusable={false}
205
- height="28"
205
+ height={24}
206
206
  meetOrSlice={0}
207
207
  minX={0}
208
208
  minY={0}
@@ -214,14 +214,14 @@ exports[`Visual test for the password input field shows a password input field w
214
214
  },
215
215
  {
216
216
  "flex": 0,
217
- "height": 28,
218
- "width": 28,
217
+ "height": 24,
218
+ "width": 24,
219
219
  },
220
220
  ]
221
221
  }
222
- vbHeight={27}
223
- vbWidth={27}
224
- width="28"
222
+ vbHeight={19}
223
+ vbWidth={25}
224
+ width={24}
225
225
  >
226
226
  <RNSVGGroup
227
227
  fill={null}
@@ -232,7 +232,7 @@ exports[`Visual test for the password input field shows a password input field w
232
232
  }
233
233
  >
234
234
  <RNSVGPath
235
- d="M16.875 13.5C16.875 15.364 15.3639 16.875 13.5 16.875C11.636 16.875 10.125 15.364 10.125 13.5C10.125 11.636 11.636 10.125 13.5 10.125C15.3639 10.125 16.875 11.636 16.875 13.5Z"
235
+ d="M15.875 9.5C15.875 11.364 14.3639 12.875 12.5 12.875C10.636 12.875 9.12497 11.364 9.12497 9.5C9.12497 7.63604 10.636 6.125 12.5 6.125C14.3639 6.125 15.875 7.63604 15.875 9.5Z"
236
236
  propList={
237
237
  [
238
238
  "stroke",
@@ -247,7 +247,7 @@ exports[`Visual test for the password input field shows a password input field w
247
247
  strokeWidth="2"
248
248
  />
249
249
  <RNSVGPath
250
- d="M2.7655 13.5C4.19906 8.93574 8.46313 5.625 13.5005 5.625C18.5378 5.625 22.8019 8.93578 24.2354 13.5C22.8019 18.0643 18.5378 21.375 13.5005 21.375C8.46313 21.375 4.19904 18.0642 2.7655 13.5Z"
250
+ d="M1.7655 9.49996C3.19906 4.93574 7.46313 1.625 12.5005 1.625C17.5378 1.625 21.8019 4.93578 23.2354 9.50004C21.8019 14.0643 17.5378 17.375 12.5005 17.375C7.46313 17.375 3.19904 14.0642 1.7655 9.49996Z"
251
251
  propList={
252
252
  [
253
253
  "stroke",
@@ -332,11 +332,11 @@ exports[`Visual test for the password input field shows a password input field w
332
332
  >
333
333
  <RNSVGSvgView
334
334
  align="xMidYMid"
335
- bbHeight="28"
336
- bbWidth="28"
335
+ bbHeight={24}
336
+ bbWidth={24}
337
337
  fill="none"
338
338
  focusable={false}
339
- height="28"
339
+ height={24}
340
340
  meetOrSlice={0}
341
341
  minX={0}
342
342
  minY={0}
@@ -348,14 +348,14 @@ exports[`Visual test for the password input field shows a password input field w
348
348
  },
349
349
  {
350
350
  "flex": 0,
351
- "height": 28,
352
- "width": 28,
351
+ "height": 24,
352
+ "width": 24,
353
353
  },
354
354
  ]
355
355
  }
356
- vbHeight={27}
357
- vbWidth={27}
358
- width="28"
356
+ vbHeight={19}
357
+ vbWidth={25}
358
+ width={24}
359
359
  >
360
360
  <RNSVGGroup
361
361
  fill={null}
@@ -366,7 +366,7 @@ exports[`Visual test for the password input field shows a password input field w
366
366
  }
367
367
  >
368
368
  <RNSVGPath
369
- d="M16.875 13.5C16.875 15.364 15.3639 16.875 13.5 16.875C11.636 16.875 10.125 15.364 10.125 13.5C10.125 11.636 11.636 10.125 13.5 10.125C15.3639 10.125 16.875 11.636 16.875 13.5Z"
369
+ d="M15.875 9.5C15.875 11.364 14.3639 12.875 12.5 12.875C10.636 12.875 9.12497 11.364 9.12497 9.5C9.12497 7.63604 10.636 6.125 12.5 6.125C14.3639 6.125 15.875 7.63604 15.875 9.5Z"
370
370
  propList={
371
371
  [
372
372
  "stroke",
@@ -381,7 +381,7 @@ exports[`Visual test for the password input field shows a password input field w
381
381
  strokeWidth="2"
382
382
  />
383
383
  <RNSVGPath
384
- d="M2.7655 13.5C4.19906 8.93574 8.46313 5.625 13.5005 5.625C18.5378 5.625 22.8019 8.93578 24.2354 13.5C22.8019 18.0643 18.5378 21.375 13.5005 21.375C8.46313 21.375 4.19904 18.0642 2.7655 13.5Z"
384
+ d="M1.7655 9.49996C3.19906 4.93574 7.46313 1.625 12.5005 1.625C17.5378 1.625 21.8019 4.93578 23.2354 9.50004C21.8019 14.0643 17.5378 17.375 12.5005 17.375C7.46313 17.375 3.19904 14.0642 1.7655 9.49996Z"
385
385
  propList={
386
386
  [
387
387
  "stroke",
@@ -42,9 +42,17 @@ export const PasswordInput = ({
42
42
  onPress={() => setSecure(!secure)}
43
43
  >
44
44
  {secure ? (
45
- <Icon.Outline.Eye color={Context.colors.main['3']} />
45
+ <Icon
46
+ style={'regular'}
47
+ name={'eye'}
48
+ color={Context.colors.main['3']}
49
+ />
46
50
  ) : (
47
- <Icon.Outline.EyeOff color={Context.colors.main['3']} />
51
+ <Icon
52
+ style={'regular'}
53
+ name={'eye-off'}
54
+ color={Context.colors.main['3']}
55
+ />
48
56
  )}
49
57
  </Pressable>
50
58
  </View>
@@ -40,11 +40,11 @@ exports[`pressable-icon test render a default disabled pressable icon 1`] = `
40
40
  >
41
41
  <RNSVGSvgView
42
42
  align="xMidYMid"
43
- bbHeight="28"
44
- bbWidth="28"
43
+ bbHeight={24}
44
+ bbWidth={24}
45
45
  fill="none"
46
46
  focusable={false}
47
- height="28"
47
+ height={24}
48
48
  meetOrSlice={0}
49
49
  minX={0}
50
50
  minY={0}
@@ -56,14 +56,14 @@ exports[`pressable-icon test render a default disabled pressable icon 1`] = `
56
56
  },
57
57
  {
58
58
  "flex": 0,
59
- "height": 28,
60
- "width": 28,
59
+ "height": 24,
60
+ "width": 24,
61
61
  },
62
62
  ]
63
63
  }
64
- vbHeight={28}
65
- vbWidth={28}
66
- width="28"
64
+ vbHeight={19}
65
+ vbWidth={23}
66
+ width={24}
67
67
  >
68
68
  <RNSVGGroup
69
69
  fill={null}
@@ -74,7 +74,7 @@ exports[`pressable-icon test render a default disabled pressable icon 1`] = `
74
74
  }
75
75
  >
76
76
  <RNSVGPath
77
- 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"
77
+ d="M1.375 5L10.2519 10.9179C11.0077 11.4218 11.9923 11.4218 12.7481 10.9179L21.625 5M3.625 17.375H19.375C20.6176 17.375 21.625 16.3676 21.625 15.125V3.875C21.625 2.63236 20.6176 1.625 19.375 1.625H3.625C2.38236 1.625 1.375 2.63236 1.375 3.875V15.125C1.375 16.3676 2.38236 17.375 3.625 17.375Z"
78
78
  propList={
79
79
  [
80
80
  "stroke",
@@ -129,11 +129,11 @@ exports[`pressable-icon test render a default pressable icon 1`] = `
129
129
  >
130
130
  <RNSVGSvgView
131
131
  align="xMidYMid"
132
- bbHeight="28"
133
- bbWidth="28"
132
+ bbHeight={24}
133
+ bbWidth={24}
134
134
  fill="none"
135
135
  focusable={false}
136
- height="28"
136
+ height={24}
137
137
  meetOrSlice={0}
138
138
  minX={0}
139
139
  minY={0}
@@ -145,14 +145,14 @@ exports[`pressable-icon test render a default pressable icon 1`] = `
145
145
  },
146
146
  {
147
147
  "flex": 0,
148
- "height": 28,
149
- "width": 28,
148
+ "height": 24,
149
+ "width": 24,
150
150
  },
151
151
  ]
152
152
  }
153
- vbHeight={27}
154
- vbWidth={27}
155
- width="28"
153
+ vbHeight={23}
154
+ vbWidth={23}
155
+ width={24}
156
156
  >
157
157
  <RNSVGGroup
158
158
  fill={null}
@@ -163,7 +163,7 @@ exports[`pressable-icon test render a default pressable icon 1`] = `
163
163
  }
164
164
  >
165
165
  <RNSVGPath
166
- d="M11.25 11.25H5.8906C4.21799 11.25 3.13012 13.0102 3.87814 14.5062L7.81564 22.3812C8.19677 23.1435 8.97586 23.625 9.8281 23.625H14.348C14.532 23.625 14.7153 23.6024 14.8937 23.5578L19.125 22.5M11.25 11.25V5.625C11.25 4.38236 12.2574 3.375 13.5 3.375H13.6074C14.1694 3.375 14.625 3.83059 14.625 4.39259C14.625 5.19618 14.8629 5.9818 15.3086 6.65043L19.125 12.375V22.5M11.25 11.25H13.5M19.125 22.5H21.375C22.6177 22.5 23.625 21.4926 23.625 20.25V13.5C23.625 12.2574 22.6177 11.25 21.375 11.25H18.5625"
166
+ d="M13.75 9.25H19.1094C20.782 9.25 21.8699 11.0102 21.1219 12.5062L17.1844 20.3812C16.8033 21.1435 16.0242 21.625 15.1719 21.625H10.652C10.468 21.625 10.2848 21.6024 10.1063 21.5578L5.875 20.5M13.75 9.25V3.625C13.75 2.38236 12.7426 1.375 11.5 1.375H11.3926C10.8306 1.375 10.375 1.83059 10.375 2.39259C10.375 3.19618 10.1371 3.9818 9.69138 4.65043L5.875 10.375V20.5M13.75 9.25H11.5M5.875 20.5H3.625C2.38236 20.5 1.375 19.4926 1.375 18.25V11.5C1.375 10.2574 2.38236 9.25 3.625 9.25H6.4375"
167
167
  propList={
168
168
  [
169
169
  "stroke",
@@ -218,11 +218,11 @@ exports[`pressable-icon test render an inverted pressable icon 1`] = `
218
218
  >
219
219
  <RNSVGSvgView
220
220
  align="xMidYMid"
221
- bbHeight="28"
222
- bbWidth="28"
221
+ bbHeight={24}
222
+ bbWidth={24}
223
223
  fill="none"
224
224
  focusable={false}
225
- height="28"
225
+ height={24}
226
226
  meetOrSlice={0}
227
227
  minX={0}
228
228
  minY={0}
@@ -234,14 +234,14 @@ exports[`pressable-icon test render an inverted pressable icon 1`] = `
234
234
  },
235
235
  {
236
236
  "flex": 0,
237
- "height": 28,
238
- "width": 28,
237
+ "height": 24,
238
+ "width": 24,
239
239
  },
240
240
  ]
241
241
  }
242
- vbHeight={26}
243
- vbWidth={26}
244
- width="28"
242
+ vbHeight={22}
243
+ vbWidth={22}
244
+ width={24}
245
245
  >
246
246
  <RNSVGGroup
247
247
  fill={null}
@@ -252,7 +252,7 @@ exports[`pressable-icon test render an inverted pressable icon 1`] = `
252
252
  }
253
253
  >
254
254
  <RNSVGPath
255
- 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"
255
+ d="M1.25 2.25C1.25 1.69772 1.69772 1.25 2.25 1.25H19.75C20.3023 1.25 20.75 1.69772 20.75 2.25V5.16912C20.75 5.43434 20.6446 5.68869 20.4571 5.87623L13.4596 12.8738C13.272 13.0613 13.1667 13.3157 13.1667 13.5809V16.4167L8.83333 20.75V13.5809C8.83333 13.3157 8.72798 13.0613 8.54044 12.8738L1.54289 5.87623C1.35536 5.68869 1.25 5.43434 1.25 5.16912V2.25Z"
256
256
  propList={
257
257
  [
258
258
  "stroke",
@@ -312,11 +312,11 @@ exports[`pressable-icon test render an inverted pressable icon that is disabled
312
312
  >
313
313
  <RNSVGSvgView
314
314
  align="xMidYMid"
315
- bbHeight="28"
316
- bbWidth="28"
315
+ bbHeight={24}
316
+ bbWidth={24}
317
317
  fill="none"
318
318
  focusable={false}
319
- height="28"
319
+ height={24}
320
320
  meetOrSlice={0}
321
321
  minX={0}
322
322
  minY={0}
@@ -328,14 +328,14 @@ exports[`pressable-icon test render an inverted pressable icon that is disabled
328
328
  },
329
329
  {
330
330
  "flex": 0,
331
- "height": 28,
332
- "width": 28,
331
+ "height": 24,
332
+ "width": 24,
333
333
  },
334
334
  ]
335
335
  }
336
- vbHeight={22}
337
- vbWidth={24}
338
- width="28"
336
+ vbHeight={18}
337
+ vbWidth={17}
338
+ width={24}
339
339
  >
340
340
  <RNSVGGroup
341
341
  fill={null}
@@ -347,7 +347,7 @@ exports[`pressable-icon test render an inverted pressable icon that is disabled
347
347
  >
348
348
  <RNSVGPath
349
349
  clipRule={0}
350
- d="M10.8502 2.2002C10.4146 2.2002 10.0164 2.4356 9.8216 2.80826L8.98946 4.4002H5.1002C4.46507 4.4002 3.9502 4.89268 3.9502 5.5002C3.9502 6.10771 4.46507 6.6002 5.1002 6.6002L5.1002 17.6002C5.1002 18.8152 6.12994 19.8002 7.4002 19.8002H16.6002C17.8705 19.8002 18.9002 18.8152 18.9002 17.6002V6.6002C19.5353 6.6002 20.0502 6.10771 20.0502 5.5002C20.0502 4.89268 19.5353 4.4002 18.9002 4.4002H15.0109L14.1788 2.80826C13.984 2.4356 13.5858 2.2002 13.1502 2.2002H10.8502ZM8.5502 8.8002C8.5502 8.19268 9.06507 7.7002 9.7002 7.7002C10.3353 7.7002 10.8502 8.19268 10.8502 8.8002V15.4002C10.8502 16.0077 10.3353 16.5002 9.7002 16.5002C9.06507 16.5002 8.5502 16.0077 8.5502 15.4002V8.8002ZM14.3002 7.7002C13.6651 7.7002 13.1502 8.19268 13.1502 8.8002V15.4002C13.1502 16.0077 13.6651 16.5002 14.3002 16.5002C14.9353 16.5002 15.4502 16.0077 15.4502 15.4002V8.8002C15.4502 8.19268 14.9353 7.7002 14.3002 7.7002Z"
350
+ d="M7.34995 0.200012C6.91436 0.200012 6.51616 0.435415 6.32136 0.808077L5.48921 2.40001H1.59995C0.964824 2.40001 0.449951 2.8925 0.449951 3.50001C0.449951 4.10753 0.964824 4.60001 1.59995 4.60001L1.59995 15.6C1.59995 16.815 2.6297 17.8 3.89995 17.8H13.1C14.3702 17.8 15.4 16.815 15.4 15.6V4.60001C16.0351 4.60001 16.55 4.10753 16.55 3.50001C16.55 2.8925 16.0351 2.40001 15.4 2.40001H11.5107L10.6785 0.808077C10.4837 0.435415 10.0855 0.200012 9.64995 0.200012H7.34995ZM5.04995 6.80001C5.04995 6.1925 5.56482 5.70001 6.19995 5.70001C6.83508 5.70001 7.34995 6.1925 7.34995 6.80001V13.4C7.34995 14.0075 6.83508 14.5 6.19995 14.5C5.56482 14.5 5.04995 14.0075 5.04995 13.4V6.80001ZM10.8 5.70001C10.1648 5.70001 9.64995 6.1925 9.64995 6.80001V13.4C9.64995 14.0075 10.1648 14.5 10.8 14.5C11.4351 14.5 11.95 14.0075 11.95 13.4V6.80001C11.95 6.1925 11.4351 5.70001 10.8 5.70001Z"
351
351
  fill={4283522924}
352
352
  fillRule={0}
353
353
  propList={
@@ -13,22 +13,22 @@ export const PressableIconPreview = ({}: {}) => {
13
13
  }}
14
14
  >
15
15
  <PressableIcon
16
- icon={<Icon.Outline.Mail key={'random'} />}
16
+ icon={<Icon style={'regular'} name={'mail'} key={'random'} />}
17
17
  onPress={() => console.log('Pressed')}
18
18
  />
19
19
  <PressableIcon
20
- icon={<Icon.Solid.Phone key={'test'} />}
20
+ icon={<Icon style={'regular'} name={'phone'} key={'test'} />}
21
21
  inverted={true}
22
22
  disabled={true}
23
23
  onPress={() => console.log('Pressed')}
24
24
  />
25
25
  <PressableIcon
26
- icon={<Icon.Solid.ChatAlt key={'testen'} />}
26
+ icon={<Icon style={'solid'} name={'chat-alt'} key={'testen'} />}
27
27
  inverted={true}
28
28
  onPress={() => console.log('Pressed')}
29
29
  />
30
30
  <PressableIcon
31
- icon={<Icon.Outline.Plus key={'hello'} />}
31
+ icon={<Icon style={'regular'} name={'plus'} key={'hello'} />}
32
32
  disabled={true}
33
33
  onPress={() => console.log('Pressed')}
34
34
  />
@@ -6,7 +6,11 @@ import {Icon} from '../../../icons';
6
6
  describe('pressable-icon test', () => {
7
7
  it('render a default pressable icon', function () {
8
8
  const tree = render
9
- .create(<PressableIcon icon={<Icon.Outline.ThumbUp key="default" />} />)
9
+ .create(
10
+ <PressableIcon
11
+ icon={<Icon style={'regular'} name={'thumb-up'} key="default" />}
12
+ />
13
+ )
10
14
  .toJSON();
11
15
  expect(tree).toMatchSnapshot();
12
16
  });
@@ -14,7 +18,7 @@ describe('pressable-icon test', () => {
14
18
  const tree = render
15
19
  .create(
16
20
  <PressableIcon
17
- icon={<Icon.Outline.Mail key="disabled" />}
21
+ icon={<Icon style={'regular'} name={'mail'} key="disabled" />}
18
22
  disabled={true}
19
23
  />
20
24
  )
@@ -25,7 +29,7 @@ describe('pressable-icon test', () => {
25
29
  const tree = render
26
30
  .create(
27
31
  <PressableIcon
28
- icon={<Icon.Outline.Filter key="inverted" />}
32
+ icon={<Icon style={'regular'} name={'filter'} key="inverted" />}
29
33
  inverted={true}
30
34
  />
31
35
  )
@@ -36,7 +40,7 @@ describe('pressable-icon test', () => {
36
40
  const tree = render
37
41
  .create(
38
42
  <PressableIcon
39
- icon={<Icon.Solid.Trash key="disabled inverted" />}
43
+ icon={<Icon style={'solid'} name={'trash'} key="disabled inverted" />}
40
44
  inverted={true}
41
45
  disabled={true}
42
46
  />
@@ -12,6 +12,10 @@ exports[`test search shows search field 1`] = `
12
12
  "borderWidth": 1,
13
13
  "flexDirection": "row",
14
14
  "overflow": "hidden",
15
+ "paddingBottom": 8,
16
+ "paddingLeft": 16,
17
+ "paddingRight": 16,
18
+ "paddingTop": 8,
15
19
  "width": "100%",
16
20
  }
17
21
  }
@@ -34,10 +38,6 @@ exports[`test search shows search field 1`] = `
34
38
  "fontFamily": "SourceSansPro",
35
39
  "fontSize": 16,
36
40
  "lineHeight": 20,
37
- "paddingBottom": 0,
38
- "paddingLeft": 16,
39
- "paddingRight": 16,
40
- "paddingTop": 0,
41
41
  }
42
42
  }
43
43
  />
@@ -57,20 +57,17 @@ exports[`test search shows search field 1`] = `
57
57
  onStartShouldSetResponder={[Function]}
58
58
  style={
59
59
  {
60
- "paddingBottom": 7,
61
- "paddingLeft": 16,
62
- "paddingRight": 16,
63
- "paddingTop": 7,
60
+ "marginLeft": 16,
64
61
  }
65
62
  }
66
63
  >
67
64
  <RNSVGSvgView
68
65
  align="xMidYMid"
69
- bbHeight="28"
70
- bbWidth="28"
66
+ bbHeight={24}
67
+ bbWidth={24}
71
68
  fill="none"
72
69
  focusable={false}
73
- height="28"
70
+ height={24}
74
71
  meetOrSlice={0}
75
72
  minX={0}
76
73
  minY={0}
@@ -82,14 +79,14 @@ exports[`test search shows search field 1`] = `
82
79
  },
83
80
  {
84
81
  "flex": 0,
85
- "height": 28,
86
- "width": 28,
82
+ "height": 24,
83
+ "width": 24,
87
84
  },
88
85
  ]
89
86
  }
90
- vbHeight={27}
91
- vbWidth={27}
92
- width="28"
87
+ vbHeight={23}
88
+ vbWidth={23}
89
+ width={24}
93
90
  >
94
91
  <RNSVGGroup
95
92
  fill={null}
@@ -100,7 +97,7 @@ exports[`test search shows search field 1`] = `
100
97
  }
101
98
  >
102
99
  <RNSVGPath
103
- d="M23.625 23.625L16.875 16.875M19.125 11.25C19.125 15.5992 15.5992 19.125 11.25 19.125C6.90076 19.125 3.375 15.5992 3.375 11.25C3.375 6.90076 6.90076 3.375 11.25 3.375C15.5992 3.375 19.125 6.90076 19.125 11.25Z"
100
+ d="M21.625 21.625L14.875 14.875M17.125 9.25C17.125 13.5992 13.5992 17.125 9.25 17.125C4.90076 17.125 1.375 13.5992 1.375 9.25C1.375 4.90076 4.90076 1.375 9.25 1.375C13.5992 1.375 17.125 4.90076 17.125 9.25Z"
104
101
  propList={
105
102
  [
106
103
  "stroke",
@@ -109,7 +106,7 @@ exports[`test search shows search field 1`] = `
109
106
  "strokeLinejoin",
110
107
  ]
111
108
  }
112
- stroke={4279837036}
109
+ stroke={4280232243}
113
110
  strokeLinecap={1}
114
111
  strokeLinejoin={1}
115
112
  strokeWidth="2"
@@ -5,7 +5,7 @@ import {View, TextInput as NativeTextInput, Pressable} from 'react-native';
5
5
  import {ThemeCtx} from '../../../context/theme.context';
6
6
  import {Stylesheet} from './search.styles';
7
7
  import {KeyBoardTypes} from '../../../types/keyboard-types.enum';
8
- import {SearchIcon} from '../../../icons/outline/search/search.icon';
8
+ import {Icon} from '../../../icons/index';
9
9
 
10
10
  type SearchProps = {
11
11
  placeholder?: string;
@@ -41,7 +41,11 @@ const Search = ({
41
41
  onPress={() => onPressSearch(value)}
42
42
  style={styles.iconContainer}
43
43
  >
44
- <SearchIcon />
44
+ <Icon
45
+ style={'regular'}
46
+ name={'search'}
47
+ color={context.colors.ui.black}
48
+ />
45
49
  </Pressable>
46
50
  </View>
47
51
  );
@@ -16,23 +16,20 @@ export const Stylesheet = (context) =>
16
16
  backgroundColor: context.colors.ui.white,
17
17
  overflow: 'hidden',
18
18
  alignItems: 'center',
19
+ paddingLeft: Scale.m,
20
+ paddingTop: Scale.xs,
21
+ paddingRight: Scale.m,
22
+ paddingBottom: Scale.xs,
19
23
  },
20
24
  textInputContainer: {
21
25
  flex: 1,
22
26
  },
23
27
  input: {
24
- paddingLeft: Scale.m,
25
- paddingTop: 0,
26
- paddingBottom: 0,
27
- paddingRight: Scale.m,
28
28
  ...Font.medium,
29
29
  lineHeight: 20,
30
30
  color: context.colors.ui.black,
31
31
  },
32
32
  iconContainer: {
33
- paddingLeft: Scale.m,
34
- paddingTop: Scale.xs - 1,
35
- paddingRight: Scale.m,
36
- paddingBottom: Scale.xs - 1,
33
+ marginLeft: Scale.m,
37
34
  },
38
35
  });