@tactics/toddle-styleguide 1.3.2 → 1.4.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 (309) hide show
  1. package/App.d.ts +2 -1
  2. package/index.d.ts +2 -1
  3. package/index.tsx +2 -0
  4. package/package.json +20 -20
  5. package/src/components/atoms/animated-wave/animated-wave.component.d.ts +2 -1
  6. package/src/components/atoms/animated-wave/animated-wave.styles.d.ts +19 -19
  7. package/src/components/atoms/backdrop/backdrop.component.d.ts +5 -7
  8. package/src/components/atoms/backdrop/backdrop.styles.d.ts +9 -9
  9. package/src/components/atoms/background-gradient/background-gradient.component.d.ts +2 -1
  10. package/src/components/atoms/background-gradient/background-gradient.preview.d.ts +2 -1
  11. package/src/components/atoms/background-gradient/background-gradient.styles.d.ts +6 -6
  12. package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +18 -18
  13. package/src/components/atoms/calendar/calendar.component.d.ts +7 -11
  14. package/src/components/atoms/calendar/calendar.preview.d.ts +2 -1
  15. package/src/components/atoms/check-switch/check-switch.component.d.ts +4 -3
  16. package/src/components/atoms/check-switch/check-switch.preview.d.ts +2 -1
  17. package/src/components/atoms/footer/footer.component.d.ts +6 -6
  18. package/src/components/atoms/footer/footer.preview.d.ts +2 -1
  19. package/src/components/atoms/footer/footer.styles.d.ts +12 -13
  20. package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.component.d.ts +3 -10
  21. package/src/components/atoms/heading-components/heading1/heading1.component.d.ts +3 -10
  22. package/src/components/atoms/heading-components/heading2/heading2.component.d.ts +3 -10
  23. package/src/components/atoms/heading-components/heading3/heading3.component.d.ts +3 -10
  24. package/src/components/atoms/heading-components/heading4/heading4.component.d.ts +3 -10
  25. package/src/components/atoms/heading-components/headings.preview.d.ts +2 -1
  26. package/src/components/atoms/heading-components/index.d.ts +6 -6
  27. package/src/components/atoms/image-bubble/image-bubble.component.d.ts +7 -9
  28. package/src/components/atoms/image-bubble/image-bubble.preview.d.ts +2 -1
  29. package/src/components/atoms/increment-input/increment-input.component.d.ts +5 -8
  30. package/src/components/atoms/increment-input/increment-input.preview.d.ts +2 -1
  31. package/src/components/atoms/increment-input/increment-input.styles.d.ts +33 -34
  32. package/src/components/atoms/line/line.component.d.ts +5 -8
  33. package/src/components/atoms/line/line.preview.d.ts +2 -1
  34. package/src/components/atoms/line/line.preview.tsx +1 -0
  35. package/src/components/atoms/logo/logo.component.d.ts +5 -4
  36. package/src/components/atoms/logo/logo.preview.d.ts +2 -1
  37. package/src/components/atoms/paragraph-components/index.d.ts +4 -4
  38. package/src/components/atoms/paragraph-components/paragraph/paragraph.component.d.ts +3 -10
  39. package/src/components/atoms/paragraph-components/paragraph-components.preview.d.ts +2 -1
  40. package/src/components/atoms/paragraph-components/small-text/small-text.component.d.ts +3 -10
  41. package/src/components/atoms/paragraph-components/tiny-text/tiny-text.component.d.ts +3 -10
  42. package/src/components/atoms/quick-message/quick-message.component.d.ts +6 -10
  43. package/src/components/atoms/quick-message/quick-message.component.tsx +1 -0
  44. package/src/components/atoms/quick-message/quick-message.preview.d.ts +2 -1
  45. package/src/components/atoms/quick-message/quick-message.preview.tsx +1 -0
  46. package/src/components/atoms/quick-message/quick-message.styles.d.ts +13 -16
  47. package/src/components/atoms/split-container/split-container.component.d.ts +4 -7
  48. package/src/components/atoms/split-container/split-container.preview.d.ts +2 -1
  49. package/src/components/atoms/split-container/split-container.styles.d.ts +12 -12
  50. package/src/components/atoms/static-wave/static-wave.component.d.ts +7 -11
  51. package/src/components/atoms/text-input/text-input.component.d.ts +7 -10
  52. package/src/components/atoms/text-input/text-input.preview.d.ts +2 -1
  53. package/src/components/molecules/avatar/avatar.component.d.ts +12 -18
  54. package/src/components/molecules/avatar/avatar.preview.d.ts +2 -1
  55. package/src/components/molecules/blocked-message/blocked-message.component.d.ts +3 -4
  56. package/src/components/molecules/blocked-message/blocked-message.preview.d.ts +2 -1
  57. package/src/components/molecules/button/button.component.d.ts +12 -20
  58. package/src/components/molecules/button/button.preview.d.ts +2 -1
  59. package/src/components/molecules/calendar-select/calendar-select.component.d.ts +8 -12
  60. package/src/components/molecules/calendar-select/calendar-select.preview.d.ts +2 -1
  61. package/src/components/molecules/cancel-link/cancel-link.component.d.ts +5 -4
  62. package/src/components/molecules/cancel-link/cancel-link.preview.d.ts +2 -1
  63. package/src/components/molecules/checkbox/checkbox.component.d.ts +6 -9
  64. package/src/components/molecules/checkbox/checkbox.preview.d.ts +2 -1
  65. package/src/components/molecules/contact-role/contact-role.component.d.ts +4 -6
  66. package/src/components/molecules/contact-role/contact-role.preview.d.ts +2 -1
  67. package/src/components/molecules/date-input/date-input.component.d.ts +5 -7
  68. package/src/components/molecules/date-input/date-input.preview.d.ts +2 -1
  69. package/src/components/molecules/date-input/date-input.styles.d.ts +16 -22
  70. package/src/components/molecules/day/day.component.d.ts +7 -6
  71. package/src/components/molecules/default-select/default-select.component.d.ts +4 -6
  72. package/src/components/molecules/default-select/default-select.preview.d.ts +2 -1
  73. package/src/components/molecules/default-select/default-select.styles.d.ts +11 -11
  74. package/src/components/molecules/department_logo/department-logo.component.d.ts +4 -5
  75. package/src/components/molecules/department_logo/department-logo.preview.d.ts +2 -1
  76. package/src/components/molecules/failed-to-send/failed-bubble.component.d.ts +7 -11
  77. package/src/components/molecules/filter-range/filter-range.component.d.ts +8 -14
  78. package/src/components/molecules/filter-range/filter-range.preview.d.ts +2 -1
  79. package/src/components/molecules/filter-range/filter-range.styles.d.ts +20 -20
  80. package/src/components/molecules/filter-tab/filter-tab.component.d.ts +8 -11
  81. package/src/components/molecules/filter-tab/filter-tab.preview.d.ts +2 -1
  82. package/src/components/molecules/filter-tab/filter-tab.styles.d.ts +53 -60
  83. package/src/components/molecules/info/info.component.d.ts +5 -4
  84. package/src/components/molecules/info/info.preview.d.ts +2 -1
  85. package/src/components/molecules/info/info.styles.d.ts +14 -22
  86. package/src/components/molecules/language-button/language-button.component.d.ts +5 -8
  87. package/src/components/molecules/language-button/language-button.preview.d.ts +2 -1
  88. package/src/components/molecules/message-input/message-input.component.d.ts +7 -10
  89. package/src/components/molecules/message-input/message-input.preview.d.ts +2 -1
  90. package/src/components/molecules/message-input/message-input.styles.d.ts +31 -31
  91. package/src/components/molecules/more-info-button/more-info-button.component.d.ts +5 -8
  92. package/src/components/molecules/more-info-button/more-info-button.preview.d.ts +2 -1
  93. package/src/components/molecules/password-input/password-input.component.d.ts +6 -9
  94. package/src/components/molecules/password-input/password-input.preview.d.ts +2 -1
  95. package/src/components/molecules/password-input/password-input.styles.d.ts +27 -27
  96. package/src/components/molecules/pill/pill.component.d.ts +6 -5
  97. package/src/components/molecules/pill/pill.preview.d.ts +2 -1
  98. package/src/components/molecules/pressable-icon/pressable-icon.component.d.ts +5 -10
  99. package/src/components/molecules/pressable-icon/pressable-icon.preview.d.ts +2 -1
  100. package/src/components/molecules/quick-filter/quick-filter.component.d.ts +10 -16
  101. package/src/components/molecules/quick-filter/quick-filter.preview.d.ts +2 -1
  102. package/src/components/molecules/search-input/search.component.d.ts +8 -12
  103. package/src/components/molecules/search-input/search.preview.d.ts +2 -1
  104. package/src/components/molecules/search-input/search.styles.d.ts +31 -31
  105. package/src/components/molecules/select-link/select-link.component.d.ts +5 -4
  106. package/src/components/molecules/select-link/select-link.preview.d.ts +2 -1
  107. package/src/components/molecules/select-list-item/select-list-item-preview.d.ts +2 -1
  108. package/src/components/molecules/select-list-item/select-list-item.component.d.ts +7 -13
  109. package/src/components/molecules/select-list-item/select-list-item.styles.d.ts +28 -39
  110. package/src/components/molecules/select-picker/select-picker.component.d.ts +9 -13
  111. package/src/components/molecules/select-picker/select-picker.preview.d.ts +2 -1
  112. package/src/components/molecules/select-picker/select-picker.styles.d.ts +30 -31
  113. package/src/components/molecules/send-bubble/send-text-bubble.component.d.ts +8 -13
  114. package/src/components/molecules/snackbar/snackbar.component.d.ts +6 -5
  115. package/src/components/molecules/snackbar/snackbar.preview.d.ts +2 -1
  116. package/src/components/molecules/swipe/swipe.component.d.ts +5 -5
  117. package/src/components/molecules/swipe/swipe.preview.d.ts +2 -1
  118. package/src/components/molecules/tag/tag.component.d.ts +7 -11
  119. package/src/components/molecules/tag/tag.preview.d.ts +2 -1
  120. package/src/components/molecules/time-picker/time-picker.component.d.ts +6 -10
  121. package/src/components/molecules/time-picker/time-picker.component.tsx +1 -0
  122. package/src/components/molecules/time-picker/time-picker.preview.d.ts +2 -1
  123. package/src/components/molecules/time-tracker/time-tracker.component.d.ts +7 -10
  124. package/src/components/molecules/time-tracker/time-tracker.preview.d.ts +2 -1
  125. package/src/components/molecules/timeline/timeline.component.d.ts +4 -6
  126. package/src/components/molecules/timeline/timeline.preview.d.ts +2 -1
  127. package/src/components/molecules/timestamp/timestamp.component.d.ts +5 -4
  128. package/src/components/molecules/wave-background/wave.component.d.ts +3 -7
  129. package/src/components/molecules/wave-background/wave.preview.d.ts +2 -1
  130. package/src/components/molecules/wide-button/wide-button.component.d.ts +7 -11
  131. package/src/components/molecules/wide-button/wide-button.preview.d.ts +2 -1
  132. package/src/components/molecules/wide-button/wide-button.styles.d.ts +10 -15
  133. package/src/components/organisms/child-list-item/child-list-item.component.d.ts +18 -34
  134. package/src/components/organisms/child-list-item/child-list-item.preview.d.ts +2 -1
  135. package/src/components/organisms/child-list-item/child-list-item.styles.d.ts +35 -38
  136. package/src/components/organisms/child-list-item/components/child-list-tag.component.d.ts +4 -6
  137. package/src/components/organisms/contact-item/contact-item.component.d.ts +7 -11
  138. package/src/components/organisms/contact-item/contact-item.preview.d.ts +2 -1
  139. package/src/components/organisms/contact-item/contact-item.styles.d.ts +14 -13
  140. package/src/components/organisms/day-select/day-select.component.d.ts +7 -10
  141. package/src/components/organisms/day-select/day-select.component.tsx +40 -31
  142. package/src/components/organisms/day-select/day-select.preview.d.ts +2 -1
  143. package/src/components/organisms/day-select/day-select.preview.tsx +1 -1
  144. package/src/components/organisms/day-select/day-select.styles.js +8 -0
  145. package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.component.d.ts +4 -6
  146. package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.component.tsx +1 -0
  147. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +8 -13
  148. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +1 -0
  149. package/src/components/organisms/journal-entry/journal-entry.component.d.ts +17 -30
  150. package/src/components/organisms/journal-entry/journal-entry.preview.d.ts +2 -1
  151. package/src/components/organisms/journal-entry/journal-entry.preview.tsx +1 -0
  152. package/src/components/organisms/journal-entry/journal-entry.styles.d.ts +22 -25
  153. package/src/components/organisms/loading-indicator/animation-style.animate.d.ts +3 -13
  154. package/src/components/organisms/loading-indicator/dot.component.d.ts +3 -3
  155. package/src/components/organisms/loading-indicator/loading-indicator.component.d.ts +2 -9
  156. package/src/components/organisms/loading-indicator/loading-indicator.preview.d.ts +2 -1
  157. package/src/components/organisms/my-child-list-item/my-child-list-item.component.d.ts +10 -16
  158. package/src/components/organisms/my-child-list-item/my-child-list-item.preview.d.ts +2 -1
  159. package/src/components/organisms/my-child-list-item/my-child-list-item.styles.d.ts +31 -31
  160. package/src/components/organisms/person-info-card/person-info-card.component.d.ts +11 -18
  161. package/src/components/organisms/person-info-card/person-info-card.component.tsx +1 -0
  162. package/src/components/organisms/person-info-card/person-info-card.preview.d.ts +2 -1
  163. package/src/components/organisms/tab-view/tab-view.component.d.ts +8 -12
  164. package/src/components/organisms/tab-view/tab-view.component.tsx +1 -0
  165. package/src/components/organisms/tab-view/tab-view.preview.d.ts +2 -1
  166. package/src/components/organisms/tab-view/tab-view.preview.tsx +1 -0
  167. package/src/components/organisms/tab-view/tab-view.styles.d.ts +8 -8
  168. package/src/components/organisms/text-bubble/text-bubble.component.d.ts +13 -21
  169. package/src/components/organisms/text-bubble/text-bubble.preview.d.ts +2 -1
  170. package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +14 -14
  171. package/src/components/templates/modal/components/fade-panel.component.d.ts +7 -14
  172. package/src/components/templates/modal/components/fade-panel.styles.d.ts +13 -17
  173. package/src/components/templates/modal/modal.component.d.ts +6 -12
  174. package/src/components/templates/modal/modal.preview.d.ts +2 -1
  175. package/src/components/templates/modal/modal.styles.d.ts +21 -21
  176. package/src/components/templates/popover/components/foreground/foreground.component.d.ts +4 -4
  177. package/src/components/templates/popover/components/foreground/foreground.styles.d.ts +10 -10
  178. package/src/components/templates/popover/components/modal/close/close.component.d.ts +5 -4
  179. package/src/components/templates/popover/components/modal/heading/heading.component.d.ts +5 -4
  180. package/src/components/templates/popover/components/modal/heading/heading.styles.d.ts +12 -12
  181. package/src/components/templates/popover/components/modal/modal.component.d.ts +9 -17
  182. package/src/components/templates/popover/components/modal/modal.styles.d.ts +17 -17
  183. package/src/components/templates/popover/components/modal/scroll-content/scroll-content.component.d.ts +3 -5
  184. package/src/components/templates/popover/popover.component.d.ts +8 -15
  185. package/src/components/templates/popover/popover.preview.d.ts +2 -1
  186. package/src/components/templates/popover/popover.styles.d.ts +9 -9
  187. package/src/components/templates/popover-action/popover-action.component.d.ts +4 -8
  188. package/src/components/templates/popover-action/popover-action.preview.d.ts +2 -1
  189. package/src/components/templates/popover-action/popover-action.styles.d.ts +26 -26
  190. package/src/context/loading-dots.context.d.ts +7 -10
  191. package/src/context/theme.context.d.ts +49 -47
  192. package/src/gradients/main/main.gradient.d.ts +3 -4
  193. package/src/icons/index.d.ts +3 -7
  194. package/src/icons/index.tsx +1 -0
  195. package/src/icons/outline/calendar/calendar.icon.d.ts +3 -2
  196. package/src/icons/outline/chat/chat.icon.d.ts +3 -2
  197. package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +3 -2
  198. package/src/icons/outline/check-circle/check-circle.icon.d.ts +3 -5
  199. package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +3 -5
  200. package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +3 -5
  201. package/src/icons/outline/clock/clock.icon.d.ts +3 -2
  202. package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +3 -5
  203. package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +3 -5
  204. package/src/icons/outline/document-text/document-text.icon.d.ts +3 -5
  205. package/src/icons/outline/exclamation/exclamation.icon.d.ts +3 -5
  206. package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +3 -5
  207. package/src/icons/outline/eye/eye.icon.d.ts +3 -2
  208. package/src/icons/outline/eye-off/eye-off.icon.d.ts +3 -2
  209. package/src/icons/outline/filter/filter.icon.d.ts +3 -2
  210. package/src/icons/outline/information-circle/information-circle.icon.d.ts +3 -5
  211. package/src/icons/outline/logout/logout.icon.d.ts +3 -2
  212. package/src/icons/outline/mail/mail.icon.d.ts +3 -2
  213. package/src/icons/outline/mail-open/mail-open.icon.d.ts +3 -2
  214. package/src/icons/outline/menu/menu.icon.d.ts +3 -2
  215. package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +3 -5
  216. package/src/icons/outline/office-building/office-building.icon.d.ts +3 -5
  217. package/src/icons/outline/outline-default.preview.d.ts +2 -1
  218. package/src/icons/outline/outline-grey.preview.d.ts +2 -1
  219. package/src/icons/outline/outline-white.preview.d.ts +2 -1
  220. package/src/icons/outline/outline.d.ts +2 -6
  221. package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +3 -5
  222. package/src/icons/outline/paperclip/paperclip.icon.d.ts +3 -5
  223. package/src/icons/outline/pencil/pencil.icon.d.ts +3 -2
  224. package/src/icons/outline/phone/phone.icon.d.ts +3 -2
  225. package/src/icons/outline/plus/plus.icon.d.ts +3 -2
  226. package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +3 -5
  227. package/src/icons/outline/qrcode/qrcode.icon.d.ts +3 -2
  228. package/src/icons/outline/refresh/refresh.icon.d.ts +3 -2
  229. package/src/icons/outline/search/search.icon.d.ts +3 -2
  230. package/src/icons/outline/selector/selector.icon.d.ts +3 -2
  231. package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +3 -5
  232. package/src/icons/outline/status-online/status-online.icon.d.ts +3 -5
  233. package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +3 -2
  234. package/src/icons/outline/trash/trash.icon.d.ts +3 -2
  235. package/src/icons/outline/user/user.icon.d.ts +3 -2
  236. package/src/icons/outline/user-group/user-group.icon.d.ts +3 -5
  237. package/src/icons/outline/users/users.icon.d.ts +3 -2
  238. package/src/icons/outline/xmark/xmark.icon.d.ts +3 -2
  239. package/src/icons/solid/calendar/calendar.icon.d.ts +3 -2
  240. package/src/icons/solid/chat/chat.icon.d.ts +3 -2
  241. package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +3 -2
  242. package/src/icons/solid/check-circle/check-circle.icon.d.ts +3 -5
  243. package/src/icons/solid/chevron-left/chevron-left.icon.d.ts +3 -5
  244. package/src/icons/solid/chevron-right/chevron-right.icon.d.ts +3 -5
  245. package/src/icons/solid/clock/clock-solid.icon.d.ts +3 -2
  246. package/src/icons/solid/cloud-download/cloud-download.icon.d.ts +3 -5
  247. package/src/icons/solid/currency-euro/currency-euro.icon.d.ts +3 -5
  248. package/src/icons/solid/document-text/document-text-solid.icon.d.ts +3 -5
  249. package/src/icons/solid/exclamation/exclamation.icon.d.ts +3 -5
  250. package/src/icons/solid/exclamation-circle/exclamation-circle.icon.d.ts +3 -5
  251. package/src/icons/solid/eye/eye.icon.d.ts +3 -2
  252. package/src/icons/solid/eye-off/eye-off.icon.d.ts +3 -2
  253. package/src/icons/solid/filter/filter.icon.d.ts +3 -2
  254. package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +3 -5
  255. package/src/icons/solid/logout/logout.icon.d.ts +3 -2
  256. package/src/icons/solid/mail/mail.icon.d.ts +3 -2
  257. package/src/icons/solid/mail-open/mail-open.icon.d.ts +3 -2
  258. package/src/icons/solid/menu/menu.icon.d.ts +3 -2
  259. package/src/icons/solid/minus-sm/minus-sm.icon.d.ts +3 -5
  260. package/src/icons/solid/office-building/office-building.icon.d.ts +3 -5
  261. package/src/icons/solid/paper-airplane/paper-airplane.icon.d.ts +3 -5
  262. package/src/icons/solid/paperclip/paperclip.icon.d.ts +3 -5
  263. package/src/icons/solid/pencil/pencil-solid.icon.d.ts +3 -2
  264. package/src/icons/solid/phone/phone-solid.icon.d.ts +3 -2
  265. package/src/icons/solid/plus/plus.icon.d.ts +3 -2
  266. package/src/icons/solid/plus-sm/plus-sm.icon.d.ts +3 -5
  267. package/src/icons/solid/qrcode/qrcode.icon.d.ts +3 -2
  268. package/src/icons/solid/refresh/refresh-solid.icon.d.ts +3 -2
  269. package/src/icons/solid/search/search.icon.d.ts +3 -2
  270. package/src/icons/solid/selector/selector.icon.d.ts +3 -2
  271. package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.d.ts +3 -5
  272. package/src/icons/solid/solid.d.ts +2 -6
  273. package/src/icons/solid/solid.preview.d.ts +2 -1
  274. package/src/icons/solid/status-online/status-online-solid.icon.d.ts +3 -5
  275. package/src/icons/solid/thumb-up/thumb-up.icon.d.ts +3 -2
  276. package/src/icons/solid/trash/trash-solid.icon.d.ts +3 -2
  277. package/src/icons/solid/user/user.icon.d.ts +3 -2
  278. package/src/icons/solid/user-group/user-group.icon.d.ts +3 -5
  279. package/src/icons/solid/users/users-solid.icon.d.ts +3 -2
  280. package/src/icons/solid/xmark/xmark.icon.d.ts +3 -2
  281. package/src/interfaces/icon.interface.d.ts +5 -5
  282. package/src/models/hex-color.model.d.ts +4 -4
  283. package/src/models/initials.model.d.ts +5 -5
  284. package/src/theme/font/font.d.ts +70 -70
  285. package/src/theme/font/index.d.ts +3 -3
  286. package/src/theme/provider/index.d.ts +3 -3
  287. package/src/theme/provider/parent.theme.d.ts +45 -45
  288. package/src/theme/provider/staff-member.theme.d.ts +45 -45
  289. package/src/theme/responsive/index.d.ts +2 -5
  290. package/src/theme/scale/index.d.ts +10 -10
  291. package/src/types/bubble-alignment.enum.d.ts +2 -2
  292. package/src/types/icontype.type.d.ts +1 -41
  293. package/src/types/keyboard-types.enum.d.ts +7 -7
  294. package/src/types/loading-dots.type.d.ts +6 -6
  295. package/src/types/size.enum.d.ts +3 -3
  296. package/src/types/text-properties.type.d.ts +8 -8
  297. package/src/types/visual-state.enum.d.ts +5 -5
  298. package/src/utilities/color-handler/color-handler.d.ts +2 -6
  299. package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +18 -18
  300. package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +16 -16
  301. package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +46 -103
  302. package/src/utilities/toddle-datetime/toddle-datetime.preview.d.ts +2 -1
  303. package/src/utilities/toddle-datetime/types/duration.type.d.ts +1 -1
  304. package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +2 -11
  305. package/tsconfig.json +1 -0
  306. package/src/components/organisms/day-select/day-select.styles.d.ts +0 -10
  307. package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.test.js +0 -25
  308. package/src/components/organisms/journal-entry/components/journal-entry-type/__snapshots__/journal-entry-type.test.js.snap +0 -304
  309. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.test.js +0 -51
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import {render} from '@testing-library/react-native';
3
- import {EntryTypeIndicator} from './entry-type-indicator.component';
4
-
5
- describe('EntryTypeIndicator', () => {
6
- it('should render without errors', () => {
7
- render(<EntryTypeIndicator send={true} />);
8
- });
9
-
10
- it('should apply loading animation when loading is true', () => {
11
- const {getByTestId} = render(
12
- <EntryTypeIndicator loading={true} send={false} />
13
- );
14
- const indicator = getByTestId('indicator');
15
- expect(indicator).toBeDefined();
16
- });
17
-
18
- it('should not apply loading animation when loading is false', () => {
19
- const {getByTestId} = render(
20
- <EntryTypeIndicator loading={false} send={true} />
21
- );
22
- const indicator = getByTestId('indicator');
23
- expect(indicator).toBeDefined();
24
- });
25
- });
@@ -1,304 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`JournalEntryType Snapshot renders correctly with prio=false and loading=false 1`] = `
4
- [
5
- <View
6
- style={
7
- {
8
- "alignItems": "center",
9
- "height": 32,
10
- "justifyContent": "center",
11
- "width": 32,
12
- }
13
- }
14
- >
15
- <View
16
- collapsable={false}
17
- style={
18
- {
19
- "backgroundColor": "rgba(224, 232, 249, 1)",
20
- "borderRadius": 8,
21
- "height": 16,
22
- "transform": [
23
- {
24
- "scale": 1,
25
- },
26
- ],
27
- "width": 16,
28
- }
29
- }
30
- testID="indicator"
31
- />
32
- </View>,
33
- <View
34
- style={
35
- {
36
- "flexDirection": "row",
37
- }
38
- }
39
- >
40
- <View>
41
- <Text
42
- style={
43
- [
44
- [
45
- {
46
- "fontFamily": "MontserratBold",
47
- "fontSize": 13,
48
- "lineHeight": 20.4,
49
- },
50
- ],
51
- {
52
- "color": "#515F6C",
53
- "textAlign": undefined,
54
- "width": "100%",
55
- },
56
- undefined,
57
- ]
58
- }
59
- >
60
- Type -
61
- </Text>
62
- </View>
63
- <View>
64
- <Text
65
- style={
66
- [
67
- [
68
- {
69
- "fontFamily": "Montserrat",
70
- "fontSize": 13,
71
- "lineHeight": 20.4,
72
- },
73
- ],
74
- {
75
- "color": "#515F6C",
76
- "textAlign": undefined,
77
- "width": "100%",
78
- },
79
- undefined,
80
- ]
81
- }
82
- >
83
- 12h 04m
84
- </Text>
85
- </View>
86
- </View>,
87
- ]
88
- `;
89
-
90
- exports[`JournalEntryType Snapshot renders correctly with prio=true and loading=false 1`] = `
91
- [
92
- <View
93
- style={
94
- {
95
- "alignItems": "center",
96
- "backgroundColor": "#FFFFFF",
97
- "borderColor": "#FFFFFF",
98
- "borderRadius": 50,
99
- "borderWidth": 4,
100
- "justifyContent": "center",
101
- }
102
- }
103
- >
104
- <RNSVGSvgView
105
- align="xMidYMid"
106
- bbHeight="24"
107
- bbWidth="24"
108
- fill="none"
109
- focusable={false}
110
- height={24}
111
- meetOrSlice={0}
112
- minX={0}
113
- minY={0}
114
- style={
115
- [
116
- {
117
- "backgroundColor": "transparent",
118
- "borderWidth": 0,
119
- },
120
- {
121
- "flex": 0,
122
- "height": 24,
123
- "width": 24,
124
- },
125
- ]
126
- }
127
- vbHeight={23}
128
- vbWidth={22}
129
- width={24}
130
- >
131
- <RNSVGGroup
132
- fill={null}
133
- propList={
134
- [
135
- "fill",
136
- ]
137
- }
138
- >
139
- <RNSVGPath
140
- 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"
141
- propList={
142
- [
143
- "stroke",
144
- "strokeWidth",
145
- "strokeLinecap",
146
- "strokeLinejoin",
147
- ]
148
- }
149
- stroke={
150
- {
151
- "payload": 4294618180,
152
- "type": 0,
153
- }
154
- }
155
- strokeLinecap={1}
156
- strokeLinejoin={1}
157
- strokeWidth="2"
158
- />
159
- </RNSVGGroup>
160
- </RNSVGSvgView>
161
- </View>,
162
- <View
163
- style={
164
- {
165
- "flexDirection": "row",
166
- }
167
- }
168
- >
169
- <View>
170
- <Text
171
- style={
172
- [
173
- [
174
- {
175
- "fontFamily": "MontserratBold",
176
- "fontSize": 13,
177
- "lineHeight": 20.4,
178
- },
179
- ],
180
- {
181
- "color": "#515F6C",
182
- "textAlign": undefined,
183
- "width": "100%",
184
- },
185
- undefined,
186
- ]
187
- }
188
- >
189
- Type -
190
- </Text>
191
- </View>
192
- <View>
193
- <Text
194
- style={
195
- [
196
- [
197
- {
198
- "fontFamily": "Montserrat",
199
- "fontSize": 13,
200
- "lineHeight": 20.4,
201
- },
202
- ],
203
- {
204
- "color": "#515F6C",
205
- "textAlign": undefined,
206
- "width": "100%",
207
- },
208
- undefined,
209
- ]
210
- }
211
- >
212
- 12h 04m
213
- </Text>
214
- </View>
215
- </View>,
216
- ]
217
- `;
218
-
219
- exports[`JournalEntryType Snapshot renders correctly with prio=true and loading=true 1`] = `
220
- [
221
- <View
222
- style={
223
- {
224
- "alignItems": "center",
225
- "height": 32,
226
- "justifyContent": "center",
227
- "width": 32,
228
- }
229
- }
230
- >
231
- <View
232
- collapsable={false}
233
- style={
234
- {
235
- "backgroundColor": "rgba(224, 232, 249, 1)",
236
- "borderRadius": 8,
237
- "height": 16,
238
- "transform": [
239
- {
240
- "scale": 1,
241
- },
242
- ],
243
- "width": 16,
244
- }
245
- }
246
- testID="indicator"
247
- />
248
- </View>,
249
- <View
250
- style={
251
- {
252
- "flexDirection": "row",
253
- }
254
- }
255
- >
256
- <View>
257
- <Text
258
- style={
259
- [
260
- [
261
- {
262
- "fontFamily": "MontserratBold",
263
- "fontSize": 13,
264
- "lineHeight": 20.4,
265
- },
266
- ],
267
- {
268
- "color": "#515F6C",
269
- "textAlign": undefined,
270
- "width": "100%",
271
- },
272
- undefined,
273
- ]
274
- }
275
- >
276
- Type -
277
- </Text>
278
- </View>
279
- <View>
280
- <Text
281
- style={
282
- [
283
- [
284
- {
285
- "fontFamily": "Montserrat",
286
- "fontSize": 13,
287
- "lineHeight": 20.4,
288
- },
289
- ],
290
- {
291
- "color": "#515F6C",
292
- "textAlign": undefined,
293
- "width": "100%",
294
- },
295
- undefined,
296
- ]
297
- }
298
- >
299
- 12h 04m
300
- </Text>
301
- </View>
302
- </View>,
303
- ]
304
- `;
@@ -1,51 +0,0 @@
1
- import React from 'react';
2
- import renderer from 'react-test-renderer';
3
- import {JournalEntryType} from './journal-entry-type.component';
4
- import {ToddleDateTime} from '../../../../../utilities/toddle-datetime/toddle-datetime.class';
5
-
6
- describe('JournalEntryType Snapshot', () => {
7
- it('renders correctly with prio=false and loading=false', () => {
8
- const tree = renderer
9
- .create(
10
- <JournalEntryType
11
- prio={false}
12
- type="Type"
13
- happenedAt={ToddleDateTime.now()}
14
- loading={false}
15
- send={true}
16
- />
17
- )
18
- .toJSON();
19
- expect(tree).toMatchSnapshot();
20
- });
21
-
22
- it('renders correctly with prio=true and loading=false', () => {
23
- const tree = renderer
24
- .create(
25
- <JournalEntryType
26
- prio={true}
27
- type="Type"
28
- happenedAt={ToddleDateTime.now()}
29
- loading={false}
30
- send={true}
31
- />
32
- )
33
- .toJSON();
34
- expect(tree).toMatchSnapshot();
35
- });
36
-
37
- it('renders correctly with prio=true and loading=true', () => {
38
- const tree = renderer
39
- .create(
40
- <JournalEntryType
41
- prio={true}
42
- type="Type"
43
- happenedAt={ToddleDateTime.now()}
44
- loading={true}
45
- send={false}
46
- />
47
- )
48
- .toJSON();
49
- expect(tree).toMatchSnapshot();
50
- });
51
- });