@tactics/toddle-styleguide 1.2.9 → 1.3.1

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 (267) hide show
  1. package/App.tsx +14 -1
  2. package/index.d.ts +2 -1
  3. package/index.tsx +2 -0
  4. package/package.json +1 -1
  5. package/src/components/atoms/backdrop/backdrop.component.d.ts +7 -4
  6. package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +18 -18
  7. package/src/components/atoms/calendar/calendar.component.d.ts +11 -6
  8. package/src/components/atoms/check-switch/check-switch.component.d.ts +3 -3
  9. package/src/components/atoms/footer/footer.component.d.ts +6 -6
  10. package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.component.d.ts +10 -2
  11. package/src/components/atoms/heading-components/heading1/heading1.component.d.ts +10 -2
  12. package/src/components/atoms/heading-components/heading2/heading2.component.d.ts +10 -2
  13. package/src/components/atoms/heading-components/heading3/heading3.component.d.ts +10 -2
  14. package/src/components/atoms/heading-components/heading4/heading4.component.d.ts +10 -2
  15. package/src/components/atoms/heading-components/index.d.ts +6 -6
  16. package/src/components/atoms/image-bubble/image-bubble.component.d.ts +9 -6
  17. package/src/components/atoms/increment-input/increment-input.component.d.ts +8 -4
  18. package/src/components/atoms/line/line.component.d.ts +12 -0
  19. package/src/components/atoms/line/line.component.tsx +23 -0
  20. package/src/components/atoms/line/line.preview.d.ts +1 -0
  21. package/src/components/atoms/line/line.preview.tsx +54 -0
  22. package/src/components/atoms/line/line.styles.d.ts +12 -0
  23. package/src/components/atoms/line/line.styles.js +10 -0
  24. package/src/components/atoms/logo/logo.component.d.ts +4 -4
  25. package/src/components/atoms/paragraph-components/index.d.ts +4 -4
  26. package/src/components/atoms/paragraph-components/paragraph/paragraph.component.d.ts +10 -2
  27. package/src/components/atoms/paragraph-components/small-text/small-text.component.d.ts +10 -2
  28. package/src/components/atoms/paragraph-components/tiny-text/tiny-text.component.d.ts +10 -2
  29. package/src/components/atoms/quick-message/quick-message.component.d.ts +10 -5
  30. package/src/components/atoms/quick-message/quick-message.styles.d.ts +16 -13
  31. package/src/components/atoms/split-container/split-container.component.d.ts +7 -4
  32. package/src/components/atoms/static-wave/static-wave.component.d.ts +11 -6
  33. package/src/components/atoms/text-input/__snapshots__/text-input.test.js.snap +38 -78
  34. package/src/components/atoms/text-input/text-input.component.d.ts +10 -6
  35. package/src/components/atoms/text-input/text-input.preview.d.ts +1 -1
  36. package/src/components/atoms/text-input/text-input.styles.d.ts +33 -25
  37. package/src/components/molecules/avatar/avatar.component.d.ts +18 -11
  38. package/src/components/molecules/blocked-message/blocked-message.component.d.ts +4 -2
  39. package/src/components/molecules/button/button.component.d.ts +20 -11
  40. package/src/components/molecules/calendar-select/calendar-select.component.d.ts +12 -7
  41. package/src/components/molecules/cancel-link/cancel-link.component.d.ts +4 -4
  42. package/src/components/molecules/checkbox/checkbox.component.d.ts +9 -5
  43. package/src/components/molecules/contact-role/contact-role.component.d.ts +6 -3
  44. package/src/components/molecules/date-input/date-input.component.d.ts +7 -4
  45. package/src/components/molecules/day/__snapshots__/day.test.js.snap +24 -24
  46. package/src/components/molecules/day/day.component.d.ts +6 -6
  47. package/src/components/molecules/day/day.styles.d.ts +34 -26
  48. package/src/components/molecules/default-select/default-select.component.d.ts +6 -3
  49. package/src/components/molecules/department_logo/department-logo.component.d.ts +5 -3
  50. package/src/components/molecules/failed-to-send/__snapshots__/failed-bubble.test.js.snap +27 -36
  51. package/src/components/molecules/failed-to-send/failed-bubble.component.d.ts +11 -6
  52. package/src/components/molecules/failed-to-send/failed-bubble.component.tsx +40 -23
  53. package/src/components/molecules/failed-to-send/failed-bubble.styles.d.ts +9 -10
  54. package/src/components/molecules/failed-to-send/failed-bubble.styles.js +9 -6
  55. package/src/components/molecules/filter-range/filter-range.component.d.ts +14 -7
  56. package/src/components/molecules/filter-tab/filter-tab.component.d.ts +11 -7
  57. package/src/components/molecules/info/info.component.d.ts +4 -4
  58. package/src/components/molecules/language-button/language-button.component.d.ts +8 -4
  59. package/src/components/molecules/message-input/__snapshots__/message-input.test.js.snap +64 -388
  60. package/src/components/molecules/message-input/message-input.component.d.ts +10 -7
  61. package/src/components/molecules/message-input/message-input.component.tsx +9 -9
  62. package/src/components/molecules/message-input/message-input.preview.tsx +2 -2
  63. package/src/components/molecules/message-input/message-input.styles.d.ts +13 -6
  64. package/src/components/molecules/message-input/message-input.styles.js +14 -6
  65. package/src/components/molecules/message-input/message-input.test.js +0 -4
  66. package/src/components/molecules/more-info-button/more-info-button.component.d.ts +8 -4
  67. package/src/components/molecules/password-input/__snapshots__/password-input.test.js.snap +53 -68
  68. package/src/components/molecules/password-input/password-input.component.d.ts +9 -5
  69. package/src/components/molecules/password-input/password-input.styles.d.ts +27 -27
  70. package/src/components/molecules/pill/pill.component.d.ts +5 -5
  71. package/src/components/molecules/pressable-icon/pressable-icon.component.d.ts +10 -5
  72. package/src/components/molecules/quick-filter/quick-filter.component.d.ts +16 -9
  73. package/src/components/molecules/search-input/__snapshots__/search.test.js.snap +20 -31
  74. package/src/components/molecules/search-input/search.component.d.ts +12 -7
  75. package/src/components/molecules/search-input/search.preview.d.ts +1 -1
  76. package/src/components/molecules/search-input/search.styles.d.ts +31 -31
  77. package/src/components/molecules/search-input/search.styles.js +0 -3
  78. package/src/components/molecules/select-link/select-link.component.d.ts +4 -4
  79. package/src/components/molecules/select-list-item/select-list-item.component.d.ts +13 -7
  80. package/src/components/molecules/select-picker/select-picker.component.d.ts +13 -8
  81. package/src/components/molecules/send-bubble/__snapshots__/send-text-bubble.test.js.snap +240 -242
  82. package/src/components/molecules/send-bubble/send-text-bubble.component.d.ts +14 -10
  83. package/src/components/molecules/send-bubble/send-text-bubble.component.tsx +32 -26
  84. package/src/components/molecules/send-bubble/send-text-bubble.styles.d.ts +59 -58
  85. package/src/components/molecules/send-bubble/send-text-bubble.styles.js +5 -11
  86. package/src/components/molecules/send-bubble/send-text-bubble.test.js +6 -17
  87. package/src/components/molecules/snackbar/snackbar.component.d.ts +5 -5
  88. package/src/components/molecules/swipe/swipe.component.d.ts +5 -5
  89. package/src/components/molecules/tag/tag.component.d.ts +11 -6
  90. package/src/components/molecules/time-picker/time-picker.component.d.ts +10 -5
  91. package/src/components/molecules/time-tracker/time-tracker.component.d.ts +10 -6
  92. package/src/components/molecules/timeline/__snapshots__/timeline.test.js.snap +4 -4
  93. package/src/components/molecules/timeline/timeline.component.d.ts +6 -3
  94. package/src/components/molecules/timeline/timeline.styles.d.ts +49 -39
  95. package/src/components/molecules/timestamp/__snapshots__/timestamp.test.js.snap +2 -1
  96. package/src/components/molecules/timestamp/timestamp.component.d.ts +4 -4
  97. package/src/components/molecules/wave-background/wave.component.d.ts +7 -2
  98. package/src/components/molecules/wide-button/wide-button.component.d.ts +11 -6
  99. package/src/components/organisms/child-list-item/child-list-item.component.d.ts +34 -18
  100. package/src/components/organisms/child-list-item/child-list-item.styles.d.ts +38 -35
  101. package/src/components/organisms/child-list-item/components/child-list-tag.component.d.ts +6 -3
  102. package/src/components/organisms/child-list-item/components/child-list-tag.styles.d.ts +12 -9
  103. package/src/components/organisms/contact-item/contact-item.component.d.ts +11 -6
  104. package/src/components/organisms/day-select/day-select.component.d.ts +10 -6
  105. package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.component.d.ts +9 -0
  106. package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.component.tsx +95 -0
  107. package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.styles.d.ts +13 -0
  108. package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.styles.js +17 -0
  109. package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.test.js +25 -0
  110. package/src/components/organisms/journal-entry/components/index.d.ts +2 -0
  111. package/src/components/organisms/journal-entry/components/index.ts +2 -0
  112. package/src/components/organisms/journal-entry/components/journal-entry-type/__snapshots__/journal-entry-type.test.js.snap +304 -0
  113. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +16 -0
  114. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +60 -0
  115. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.styles.d.ts +13 -0
  116. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.styles.js +16 -0
  117. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.test.js +51 -0
  118. package/src/components/organisms/journal-entry/journal-entry.component.d.ts +33 -0
  119. package/src/components/organisms/journal-entry/journal-entry.component.tsx +132 -0
  120. package/src/components/organisms/journal-entry/journal-entry.preview.d.ts +1 -0
  121. package/src/components/organisms/journal-entry/journal-entry.preview.tsx +213 -0
  122. package/src/components/organisms/journal-entry/journal-entry.styles.d.ts +26 -0
  123. package/src/components/organisms/journal-entry/journal-entry.styles.js +27 -0
  124. package/src/components/organisms/loading-indicator/animation-style.animate.d.ts +13 -3
  125. package/src/components/organisms/loading-indicator/dot.component.d.ts +3 -3
  126. package/src/components/organisms/loading-indicator/loading-indicator.component.d.ts +9 -2
  127. package/src/components/organisms/my-child-list-item/my-child-list-item.component.d.ts +16 -9
  128. package/src/components/organisms/my-child-list-item/my-child-list-item.component.tsx +1 -2
  129. package/src/components/organisms/my-child-list-item/my-child-list-item.styles.d.ts +31 -31
  130. package/src/components/organisms/person-info-card/person-info-card.component.d.ts +18 -10
  131. package/src/components/organisms/tab-view/tab-view.component.d.ts +12 -8
  132. package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +858 -635
  133. package/src/components/organisms/text-bubble/text-bubble.component.d.ts +21 -15
  134. package/src/components/organisms/text-bubble/text-bubble.component.tsx +19 -27
  135. package/src/components/organisms/text-bubble/text-bubble.preview.tsx +66 -73
  136. package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +16 -32
  137. package/src/components/organisms/text-bubble/text-bubble.styles.js +15 -34
  138. package/src/components/organisms/text-bubble/text-bubble.test.js +7 -7
  139. package/src/components/templates/modal/components/fade-panel.component.d.ts +16 -8
  140. package/src/components/templates/modal/modal.component.d.ts +14 -7
  141. package/src/components/templates/modal/modal.styles.d.ts +3 -0
  142. package/src/components/templates/modal/modal.styles.js +3 -0
  143. package/src/components/templates/popover/components/foreground/foreground.component.d.ts +4 -4
  144. package/src/components/templates/popover/components/foreground/foreground.component.tsx +1 -5
  145. package/src/components/templates/popover/components/foreground/foreground.styles.d.ts +2 -2
  146. package/src/components/templates/popover/components/foreground/foreground.styles.js +4 -4
  147. package/src/components/templates/popover/components/modal/close/close.component.d.ts +4 -4
  148. package/src/components/templates/popover/components/modal/heading/heading.component.d.ts +4 -4
  149. package/src/components/templates/popover/components/modal/modal.component.d.ts +17 -9
  150. package/src/components/templates/popover/components/modal/scroll-content/scroll-content.component.d.ts +5 -3
  151. package/src/components/templates/popover/popover.component.d.ts +15 -8
  152. package/src/components/templates/popover/popover.component.tsx +1 -2
  153. package/src/components/templates/popover/popover.styles.d.ts +3 -0
  154. package/src/components/templates/popover/popover.styles.js +1 -0
  155. package/src/components/templates/popover-action/popover-action.component.d.ts +8 -4
  156. package/src/components/templates/popover-action/popover-action.component.tsx +6 -1
  157. package/src/components/templates/popover-action/popover-action.styles.d.ts +4 -2
  158. package/src/components/templates/popover-action/popover-action.styles.js +4 -2
  159. package/src/context/loading-dots.context.d.ts +9 -6
  160. package/src/context/theme.context.d.ts +47 -47
  161. package/src/gradients/main/main.gradient.d.ts +4 -2
  162. package/src/icons/index.d.ts +7 -2
  163. package/src/icons/outline/calendar/calendar.icon.d.ts +2 -2
  164. package/src/icons/outline/chat/chat.icon.d.ts +2 -2
  165. package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +2 -2
  166. package/src/icons/outline/check-circle/check-circle.icon.d.ts +5 -2
  167. package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +5 -2
  168. package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +5 -2
  169. package/src/icons/outline/clock/clock.icon.d.ts +2 -2
  170. package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +5 -2
  171. package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +5 -2
  172. package/src/icons/outline/document-text/document-text.icon.d.ts +5 -2
  173. package/src/icons/outline/exclamation/exclamation.icon.d.ts +5 -2
  174. package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +5 -2
  175. package/src/icons/outline/eye/eye.icon.d.ts +2 -2
  176. package/src/icons/outline/eye-off/eye-off.icon.d.ts +2 -2
  177. package/src/icons/outline/filter/filter.icon.d.ts +2 -2
  178. package/src/icons/outline/information-circle/information-circle.icon.d.ts +5 -2
  179. package/src/icons/outline/logout/logout.icon.d.ts +2 -2
  180. package/src/icons/outline/mail/mail.icon.d.ts +2 -2
  181. package/src/icons/outline/mail-open/mail-open.icon.d.ts +2 -2
  182. package/src/icons/outline/menu/menu.icon.d.ts +2 -2
  183. package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +5 -2
  184. package/src/icons/outline/office-building/office-building.icon.d.ts +5 -2
  185. package/src/icons/outline/outline.d.ts +6 -2
  186. package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +5 -2
  187. package/src/icons/outline/paperclip/paperclip.icon.d.ts +5 -2
  188. package/src/icons/outline/pencil/pencil.icon.d.ts +2 -2
  189. package/src/icons/outline/phone/phone.icon.d.ts +2 -2
  190. package/src/icons/outline/plus/plus.icon.d.ts +2 -2
  191. package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +5 -2
  192. package/src/icons/outline/qrcode/qrcode.icon.d.ts +2 -2
  193. package/src/icons/outline/refresh/refresh.icon.d.ts +2 -2
  194. package/src/icons/outline/search/search.icon.d.ts +2 -2
  195. package/src/icons/outline/selector/selector.icon.d.ts +2 -2
  196. package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +5 -2
  197. package/src/icons/outline/status-online/status-online.icon.d.ts +5 -2
  198. package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +2 -2
  199. package/src/icons/outline/trash/trash.icon.d.ts +2 -2
  200. package/src/icons/outline/user/user.icon.d.ts +2 -2
  201. package/src/icons/outline/user-group/user-group.icon.d.ts +5 -2
  202. package/src/icons/outline/users/users.icon.d.ts +2 -2
  203. package/src/icons/outline/xmark/xmark.icon.d.ts +2 -2
  204. package/src/icons/solid/calendar/calendar.icon.d.ts +2 -2
  205. package/src/icons/solid/chat/chat.icon.d.ts +2 -2
  206. package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -2
  207. package/src/icons/solid/check-circle/check-circle.icon.d.ts +5 -2
  208. package/src/icons/solid/chevron-left/chevron-left.icon.d.ts +5 -2
  209. package/src/icons/solid/chevron-right/chevron-right.icon.d.ts +5 -2
  210. package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -2
  211. package/src/icons/solid/cloud-download/cloud-download.icon.d.ts +5 -2
  212. package/src/icons/solid/currency-euro/currency-euro.icon.d.ts +5 -2
  213. package/src/icons/solid/document-text/document-text-solid.icon.d.ts +5 -2
  214. package/src/icons/solid/exclamation/exclamation.icon.d.ts +5 -2
  215. package/src/icons/solid/exclamation-circle/exclamation-circle.icon.d.ts +5 -2
  216. package/src/icons/solid/eye/eye.icon.d.ts +2 -2
  217. package/src/icons/solid/eye-off/eye-off.icon.d.ts +2 -2
  218. package/src/icons/solid/filter/filter.icon.d.ts +2 -2
  219. package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +5 -2
  220. package/src/icons/solid/logout/logout.icon.d.ts +2 -2
  221. package/src/icons/solid/mail/mail.icon.d.ts +2 -2
  222. package/src/icons/solid/mail-open/mail-open.icon.d.ts +2 -2
  223. package/src/icons/solid/menu/menu.icon.d.ts +2 -2
  224. package/src/icons/solid/minus-sm/minus-sm.icon.d.ts +5 -2
  225. package/src/icons/solid/office-building/office-building.icon.d.ts +5 -2
  226. package/src/icons/solid/paper-airplane/paper-airplane.icon.d.ts +5 -2
  227. package/src/icons/solid/paperclip/paperclip.icon.d.ts +5 -2
  228. package/src/icons/solid/pencil/pencil-solid.icon.d.ts +2 -2
  229. package/src/icons/solid/phone/phone-solid.icon.d.ts +2 -2
  230. package/src/icons/solid/plus/plus.icon.d.ts +2 -2
  231. package/src/icons/solid/plus-sm/plus-sm.icon.d.ts +5 -2
  232. package/src/icons/solid/qrcode/qrcode.icon.d.ts +2 -2
  233. package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -2
  234. package/src/icons/solid/search/search.icon.d.ts +2 -2
  235. package/src/icons/solid/selector/selector.icon.d.ts +2 -2
  236. package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.d.ts +5 -2
  237. package/src/icons/solid/solid.d.ts +6 -2
  238. package/src/icons/solid/status-online/status-online-solid.icon.d.ts +5 -2
  239. package/src/icons/solid/thumb-up/thumb-up.icon.d.ts +2 -2
  240. package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -2
  241. package/src/icons/solid/user/user.icon.d.ts +2 -2
  242. package/src/icons/solid/user-group/user-group.icon.d.ts +5 -2
  243. package/src/icons/solid/users/users-solid.icon.d.ts +2 -2
  244. package/src/icons/solid/xmark/xmark.icon.d.ts +2 -2
  245. package/src/interfaces/icon.interface.d.ts +5 -5
  246. package/src/models/hex-color.model.d.ts +4 -4
  247. package/src/models/initials.model.d.ts +5 -5
  248. package/src/theme/font/font.d.ts +70 -70
  249. package/src/theme/font/index.d.ts +3 -3
  250. package/src/theme/provider/index.d.ts +3 -3
  251. package/src/theme/provider/parent.theme.d.ts +45 -45
  252. package/src/theme/provider/staff-member.theme.d.ts +45 -45
  253. package/src/theme/responsive/index.d.ts +5 -2
  254. package/src/theme/scale/index.d.ts +10 -10
  255. package/src/types/bubble-alignment.enum.d.ts +2 -2
  256. package/src/types/icontype.type.d.ts +41 -1
  257. package/src/types/keyboard-types.enum.d.ts +7 -7
  258. package/src/types/loading-dots.type.d.ts +6 -6
  259. package/src/types/size.enum.d.ts +3 -3
  260. package/src/types/text-properties.type.d.ts +8 -8
  261. package/src/types/visual-state.enum.d.ts +5 -5
  262. package/src/utilities/color-handler/color-handler.d.ts +6 -2
  263. package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +18 -18
  264. package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +16 -16
  265. package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +103 -46
  266. package/src/utilities/toddle-datetime/types/duration.type.d.ts +1 -1
  267. package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +11 -2
@@ -5,6 +5,7 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
5
5
  style={
6
6
  {
7
7
  "flexDirection": "row",
8
+ "gap": 12,
8
9
  }
9
10
  }
10
11
  >
@@ -13,7 +14,6 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
13
14
  {
14
15
  "justifyContent": "center",
15
16
  "padding": 2,
16
- "width": "14%",
17
17
  }
18
18
  }
19
19
  >
@@ -79,16 +79,16 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
79
79
  style={
80
80
  {
81
81
  "backgroundColor": "#F16868",
82
- "borderBottomLeftRadius": 32,
83
- "borderBottomRightRadius": 8,
84
- "borderRadius": 24,
82
+ "borderBottomLeftRadius": 8,
83
+ "borderBottomRightRadius": 32,
84
+ "borderTopLeftRadius": 24,
85
+ "borderTopRightRadius": 24,
86
+ "flex": 1,
85
87
  "justifyContent": "center",
86
- "overflow": "hidden",
87
88
  "paddingBottom": 16,
88
89
  "paddingLeft": 24,
89
90
  "paddingRight": 24,
90
91
  "paddingTop": 16,
91
- "width": "86%",
92
92
  }
93
93
  }
94
94
  >
@@ -199,8 +199,8 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
199
199
  },
200
200
  ]
201
201
  }
202
- vbHeight={21}
203
- vbWidth={20}
202
+ vbHeight={18}
203
+ vbWidth={16}
204
204
  width={24}
205
205
  >
206
206
  <RNSVGGroup
@@ -212,24 +212,18 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
212
212
  }
213
213
  >
214
214
  <RNSVGPath
215
- 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"
216
- propList={
217
- [
218
- "stroke",
219
- "strokeWidth",
220
- "strokeLinecap",
221
- "strokeLinejoin",
222
- ]
223
- }
224
- stroke={
215
+ d="M1.40005 0.200012C2.00756 0.200012 2.50005 0.692499 2.50005 1.30001V3.61139C3.89715 2.18539 5.84462 1.30001 8.00005 1.30001C11.3544 1.30001 14.2051 3.44426 15.2616 6.43344C15.4641 7.00623 15.1639 7.63468 14.5911 7.83714C14.0183 8.03959 13.3898 7.73937 13.1874 7.16658C12.4318 5.02891 10.3931 3.50001 8.00005 3.50001C6.20162 3.50001 4.60329 4.36353 3.59934 5.70001H6.90005C7.50756 5.70001 8.00005 6.1925 8.00005 6.80001C8.00005 7.40752 7.50756 7.90001 6.90005 7.90001H1.40005C0.792536 7.90001 0.300049 7.40752 0.300049 6.80001V1.30001C0.300049 0.692499 0.792536 0.200012 1.40005 0.200012ZM1.40903 10.1629C1.98182 9.96044 2.61027 10.2607 2.81273 10.8334C3.56828 12.9711 5.60703 14.5 8.00005 14.5C9.79847 14.5 11.3968 13.6365 12.4008 12.3L9.10005 12.3C8.49254 12.3 8.00005 11.8075 8.00005 11.2C8.00005 10.5925 8.49254 10.1 9.10005 10.1H14.6C14.8918 10.1 15.1716 10.2159 15.3779 10.4222C15.5842 10.6285 15.7 10.9083 15.7 11.2V16.7C15.7 17.3075 15.2076 17.8 14.6 17.8C13.9925 17.8 13.5 17.3075 13.5 16.7V14.3886C12.1029 15.8146 10.1555 16.7 8.00005 16.7C4.6457 16.7 1.795 14.5558 0.738478 11.5666C0.536026 10.9938 0.836243 10.3653 1.40903 10.1629Z"
216
+ fill={
225
217
  {
226
218
  "payload": 4294695385,
227
219
  "type": 0,
228
220
  }
229
221
  }
230
- strokeLinecap={1}
231
- strokeLinejoin={1}
232
- strokeWidth="2"
222
+ propList={
223
+ [
224
+ "fill",
225
+ ]
226
+ }
233
227
  />
234
228
  </RNSVGGroup>
235
229
  </RNSVGSvgView>
@@ -300,8 +294,8 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
300
294
  },
301
295
  ]
302
296
  }
303
- vbHeight={22}
304
- vbWidth={21}
297
+ vbHeight={18}
298
+ vbWidth={17}
305
299
  width={24}
306
300
  >
307
301
  <RNSVGGroup
@@ -313,24 +307,21 @@ exports[`Failed text bubble test shows a failed to send text bubble that is swip
313
307
  }
314
308
  >
315
309
  <RNSVGPath
316
- 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"
317
- propList={
318
- [
319
- "stroke",
320
- "strokeWidth",
321
- "strokeLinecap",
322
- "strokeLinejoin",
323
- ]
324
- }
325
- stroke={
310
+ clipRule={0}
311
+ 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"
312
+ fill={
326
313
  {
327
314
  "payload": 4294695385,
328
315
  "type": 0,
329
316
  }
330
317
  }
331
- strokeLinecap={1}
332
- strokeLinejoin={1}
333
- strokeWidth="2"
318
+ fillRule={0}
319
+ propList={
320
+ [
321
+ "fill",
322
+ "fillRule",
323
+ ]
324
+ }
334
325
  />
335
326
  </RNSVGGroup>
336
327
  </RNSVGSvgView>
@@ -1,8 +1,13 @@
1
1
  type FailedBubbleProps = {
2
- id: string;
3
- text: string;
4
- onPressRefresh: (id: string) => void;
5
- onPressDelete: (id: string) => void;
2
+ id: string;
3
+ text: string;
4
+ onPressRefresh?: (id: string) => void;
5
+ onPressDelete?: (id: string) => void;
6
6
  };
7
- declare const FailedTextBubble: ({ id, text, onPressRefresh, onPressDelete, }: FailedBubbleProps) => JSX.Element;
8
- export { FailedTextBubble };
7
+ declare const FailedTextBubble: ({
8
+ id,
9
+ text,
10
+ onPressRefresh,
11
+ onPressDelete,
12
+ }: FailedBubbleProps) => JSX.Element;
13
+ export {FailedTextBubble};
@@ -12,8 +12,8 @@ import {SmallText} from '../../atoms/paragraph-components';
12
12
  type FailedBubbleProps = {
13
13
  id: string;
14
14
  text: string;
15
- onPressRefresh: (id: string) => void;
16
- onPressDelete: (id: string) => void;
15
+ onPressRefresh?: (id: string) => void;
16
+ onPressDelete?: (id: string) => void;
17
17
  };
18
18
 
19
19
  const FailedTextBubble = ({
@@ -37,30 +37,38 @@ const FailedTextBubble = ({
37
37
 
38
38
  return (
39
39
  <View style={styles.swipedRow}>
40
- <Animated.View style={[styles.swipedIcon, {opacity}]}>
41
- <Pressable onPress={() => onPressRefresh(id)} testID="refresh-button">
42
- <Icon
43
- style={'regular'}
44
- name={'refresh'}
45
- color={context.colors.ui.error.xlight}
46
- />
47
- </Pressable>
48
- </Animated.View>
49
- <Animated.View style={[styles.swipedIcon, {opacity}]}>
50
- <Pressable onPress={() => onPressDelete(id)} testID="delete-button">
51
- <Icon
52
- style={'regular'}
53
- name={'trash'}
54
- color={context.colors.ui.error.xlight}
55
- />
56
- </Pressable>
57
- </Animated.View>
40
+ {onPressRefresh && (
41
+ <Animated.View style={[styles.swipedIcon, {opacity}]}>
42
+ <Pressable
43
+ onPress={() => onPressRefresh(id)}
44
+ testID="refresh-button"
45
+ >
46
+ <Icon
47
+ style={'solid'}
48
+ name={'refresh'}
49
+ color={context.colors.ui.error.xlight}
50
+ />
51
+ </Pressable>
52
+ </Animated.View>
53
+ )}
54
+
55
+ {onPressDelete && (
56
+ <Animated.View style={[styles.swipedIcon, {opacity}]}>
57
+ <Pressable onPress={() => onPressDelete(id)} testID="delete-button">
58
+ <Icon
59
+ style={'solid'}
60
+ name={'trash'}
61
+ color={context.colors.ui.error.xlight}
62
+ />
63
+ </Pressable>
64
+ </Animated.View>
65
+ )}
58
66
  </View>
59
67
  );
60
68
  };
61
69
 
62
70
  return (
63
- <GestureHandlerRootView style={{flexDirection: 'row'}}>
71
+ <GestureHandlerRootView style={styles.rootContainer}>
64
72
  <View style={styles.iconContainer}>
65
73
  <Icon
66
74
  style={'regular'}
@@ -71,11 +79,20 @@ const FailedTextBubble = ({
71
79
  </View>
72
80
 
73
81
  <View style={styles.textBubbleContainer}>
74
- <Swipeable renderRightActions={RenderRefreshDeleteAction}>
82
+ {onPressRefresh && onPressDelete ? (
83
+ <Swipeable renderRightActions={RenderRefreshDeleteAction}>
84
+ <SmallText
85
+ textColor={context.colors.ui.white}
86
+ addStyle={styles.text}
87
+ >
88
+ {text}
89
+ </SmallText>
90
+ </Swipeable>
91
+ ) : (
75
92
  <SmallText textColor={context.colors.ui.white} addStyle={styles.text}>
76
93
  {text}
77
94
  </SmallText>
78
- </Swipeable>
95
+ )}
79
96
  </View>
80
97
  </GestureHandlerRootView>
81
98
  );
@@ -1,30 +1,29 @@
1
1
  export function Stylesheet(context: any): {
2
+ rootContainer: {
3
+ flexDirection: 'row';
4
+ gap: number;
5
+ };
2
6
  iconContainer: {
3
- width: string;
4
7
  padding: number;
5
8
  justifyContent: 'center';
6
9
  };
7
10
  textBubbleContainer: {
8
- width: string;
11
+ flex: number;
9
12
  paddingLeft: number;
10
13
  paddingTop: number;
11
14
  paddingRight: number;
12
15
  paddingBottom: number;
13
- borderRadius: number;
14
- overflow: 'hidden';
15
16
  justifyContent: 'center';
16
17
  backgroundColor: any;
17
- borderBottomRightRadius: number;
18
+ borderTopLeftRadius: number;
19
+ borderTopRightRadius: number;
18
20
  borderBottomLeftRadius: number;
21
+ borderBottomRightRadius: number;
19
22
  };
20
23
  text: {
24
+ minHeight: number;
21
25
  textAlignVertical: 'center';
22
26
  backgroundColor: any;
23
- color: any;
24
- fontFamily: string;
25
- fontSize: number;
26
- lineHeight: number;
27
- minHeight: number;
28
27
  };
29
28
  swipedIcon: {
30
29
  alignItems: 'center';
@@ -3,23 +3,26 @@ import {Scale} from '../../../theme/scale/index';
3
3
 
4
4
  export const Stylesheet = (context) =>
5
5
  StyleSheet.create({
6
+ rootContainer: {
7
+ flexDirection: 'row',
8
+ gap: Scale.s,
9
+ },
6
10
  iconContainer: {
7
- width: '14%',
8
11
  padding: Scale.xxxs,
9
12
  justifyContent: 'center',
10
13
  },
11
14
  textBubbleContainer: {
12
- width: '86%',
15
+ flex: 1,
13
16
  paddingLeft: Scale.l,
14
17
  paddingTop: Scale.m,
15
18
  paddingRight: Scale.l,
16
19
  paddingBottom: Scale.m,
17
- borderRadius: Scale.l,
18
- overflow: 'hidden',
19
20
  justifyContent: 'center',
20
21
  backgroundColor: context.colors.ui.error.default,
21
- borderBottomRightRadius: Scale.xs,
22
- borderBottomLeftRadius: Scale.xl,
22
+ borderTopLeftRadius: Scale.l,
23
+ borderTopRightRadius: Scale.l,
24
+ borderBottomLeftRadius: Scale.xs,
25
+ borderBottomRightRadius: Scale.xl,
23
26
  },
24
27
  text: {
25
28
  minHeight: 30,
@@ -1,10 +1,17 @@
1
1
  type FilterRangeProps = {
2
- value: number | number[];
3
- onChange: (value: number | number[]) => void;
4
- minValue: number;
5
- maxValue: number;
6
- prefix?: string;
7
- suffix?: string;
2
+ value: number | number[];
3
+ onChange: (value: number | number[]) => void;
4
+ minValue: number;
5
+ maxValue: number;
6
+ prefix?: string;
7
+ suffix?: string;
8
8
  };
9
- export declare const FilterRange: ({ value, minValue, maxValue, onChange, prefix, suffix, }: FilterRangeProps) => JSX.Element;
9
+ export declare const FilterRange: ({
10
+ value,
11
+ minValue,
12
+ maxValue,
13
+ onChange,
14
+ prefix,
15
+ suffix,
16
+ }: FilterRangeProps) => JSX.Element;
10
17
  export {};
@@ -1,10 +1,14 @@
1
1
  type FilterTab = {
2
- tabItem: {
3
- value: string;
4
- label: string;
5
- }[];
6
- setFilterValue: (value: string) => void;
7
- setActivePage?: (index: number) => void;
2
+ tabItem: {
3
+ value: string;
4
+ label: string;
5
+ }[];
6
+ setFilterValue: (value: string) => void;
7
+ setActivePage?: (index: number) => void;
8
8
  };
9
- export declare const FilterTab: ({ tabItem, setFilterValue, setActivePage, }: FilterTab) => JSX.Element;
9
+ export declare const FilterTab: ({
10
+ tabItem,
11
+ setFilterValue,
12
+ setActivePage,
13
+ }: FilterTab) => JSX.Element;
10
14
  export {};
@@ -1,6 +1,6 @@
1
1
  type InfoProps = {
2
- label: string;
3
- description: string;
2
+ label: string;
3
+ description: string;
4
4
  };
5
- declare const Info: ({ label, description }: InfoProps) => JSX.Element;
6
- export { Info as Info };
5
+ declare const Info: ({label, description}: InfoProps) => JSX.Element;
6
+ export {Info as Info};
@@ -1,7 +1,11 @@
1
1
  type LanguageButtonProps = {
2
- label: string;
3
- onPress?: () => void;
4
- textColor?: string;
2
+ label: string;
3
+ onPress?: () => void;
4
+ textColor?: string;
5
5
  };
6
- export declare const LanguageButton: ({ label, onPress, textColor, }: LanguageButtonProps) => JSX.Element;
6
+ export declare const LanguageButton: ({
7
+ label,
8
+ onPress,
9
+ textColor,
10
+ }: LanguageButtonProps) => JSX.Element;
7
11
  export {};