@tactics/toddle-styleguide 2.0.4 → 3.0.0

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 (238) hide show
  1. package/App.tsx +0 -12
  2. package/app.json +1 -0
  3. package/babel.config.js +14 -1
  4. package/index.d.ts +1 -5
  5. package/index.tsx +0 -8
  6. package/metro.config.js +11 -0
  7. package/package.json +1 -1
  8. package/src/components/atoms/backdrop/backdrop.component.d.ts +4 -7
  9. package/src/components/atoms/calendar/calendar.component.d.ts +6 -11
  10. package/src/components/atoms/check-switch/check-switch.component.d.ts +3 -6
  11. package/src/components/atoms/count/count.component.d.ts +3 -6
  12. package/src/components/atoms/footer/footer.component.d.ts +3 -9
  13. package/src/components/atoms/footer/footer.component.tsx +5 -7
  14. package/src/components/atoms/footer/footer.preview.tsx +0 -17
  15. package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.component.d.ts +2 -10
  16. package/src/components/atoms/heading-components/heading1/heading1.component.d.ts +2 -10
  17. package/src/components/atoms/heading-components/heading2/heading2.component.d.ts +2 -10
  18. package/src/components/atoms/heading-components/heading3/heading3.component.d.ts +2 -10
  19. package/src/components/atoms/heading-components/heading4/heading4.component.d.ts +2 -10
  20. package/src/components/atoms/heading-components/index.d.ts +6 -6
  21. package/src/components/atoms/image-bubble/image-bubble.component.d.ts +6 -9
  22. package/src/components/atoms/increment-input/increment-input.component.d.ts +4 -8
  23. package/src/components/atoms/line/line.component.d.ts +4 -8
  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 +2 -10
  27. package/src/components/atoms/paragraph-components/small-text/small-text.component.d.ts +2 -10
  28. package/src/components/atoms/paragraph-components/tiny-text/tiny-text.component.d.ts +2 -10
  29. package/src/components/atoms/quick-message/quick-message.component.d.ts +5 -10
  30. package/src/components/atoms/split-container/split-container.component.d.ts +4 -7
  31. package/src/components/atoms/static-wave/static-wave.component.d.ts +6 -11
  32. package/src/components/atoms/text-input/text-input.component.d.ts +6 -10
  33. package/src/components/atoms/text-input/text-input.preview.d.ts +1 -1
  34. package/src/components/molecules/amount/amount.component.d.ts +8 -15
  35. package/src/components/molecules/avatar/avatar.component.d.ts +12 -20
  36. package/src/components/molecules/bare-time-picker/bare-time-picker.component.d.ts +5 -10
  37. package/src/components/molecules/bare-time-picker/bare-time-picker.component.native.tsx +78 -0
  38. package/src/components/molecules/bare-time-picker/bare-time-picker.component.tsx +16 -42
  39. package/src/components/molecules/bare-time-picker/bare-time-picker.styles.d.ts +12 -6
  40. package/src/components/molecules/bare-time-picker/bare-time-picker.styles.js +6 -0
  41. package/src/components/molecules/blocked-message/blocked-message.component.d.ts +2 -4
  42. package/src/components/molecules/button/button.component.d.ts +11 -20
  43. package/src/components/molecules/calendar-select/calendar-select.component.d.ts +7 -12
  44. package/src/components/molecules/cancel-link/cancel-link.component.d.ts +4 -7
  45. package/src/components/molecules/checkbox/checkbox.component.d.ts +5 -9
  46. package/src/components/molecules/contact-role/contact-role.component.d.ts +3 -6
  47. package/src/components/molecules/context-label/context-label.component.d.ts +4 -7
  48. package/src/components/molecules/date-input/date-input.component.d.ts +4 -7
  49. package/src/components/molecules/default-select/default-select.component.d.ts +3 -6
  50. package/src/components/molecules/department_logo/department-logo.component.d.ts +3 -5
  51. package/src/components/molecules/failed-to-send/failed-bubble.component.d.ts +6 -11
  52. package/src/components/molecules/filter-range/filter-range.component.d.ts +7 -14
  53. package/src/components/molecules/filter-tab/filter-tab.component.d.ts +7 -11
  54. package/src/components/molecules/info/info.component.d.ts +5 -9
  55. package/src/components/molecules/inline-error/inline-error.component.d.ts +3 -3
  56. package/src/components/molecules/inline-notice/inline-notice.component.d.ts +3 -3
  57. package/src/components/molecules/language-button/language-button.component.d.ts +4 -8
  58. package/src/components/molecules/message-input/message-input.component.d.ts +6 -10
  59. package/src/components/molecules/more-info-button/more-info-button.component.d.ts +4 -8
  60. package/src/components/molecules/password-input/password-input.component.d.ts +5 -9
  61. package/src/components/molecules/pill/pill.component.d.ts +5 -5
  62. package/src/components/molecules/pressable-icon/pressable-icon.component.d.ts +5 -10
  63. package/src/components/molecules/quick-filter/quick-filter.component.d.ts +9 -16
  64. package/src/components/molecules/search-input/search.component.d.ts +7 -12
  65. package/src/components/molecules/search-input/search.preview.d.ts +1 -1
  66. package/src/components/molecules/select-link/select-link.component.d.ts +4 -7
  67. package/src/components/molecules/select-list-item/select-list-item.component.d.ts +9 -16
  68. package/src/components/molecules/select-picker/select-picker.component.d.ts +8 -13
  69. package/src/components/molecules/selectable-list-item/selectable-list-item.component.d.ts +8 -15
  70. package/src/components/molecules/send-bubble/send-text-bubble.component.d.ts +7 -13
  71. package/src/components/molecules/snackbar/snackbar.component.d.ts +5 -8
  72. package/src/components/molecules/swipe/swipe.component.d.ts +5 -8
  73. package/src/components/molecules/swipe/swipe.component.native.tsx +78 -0
  74. package/src/components/molecules/swipe/swipe.component.tsx +5 -63
  75. package/src/components/molecules/tag/tag.component.d.ts +6 -11
  76. package/src/components/molecules/time-picker/time-picker.component.d.ts +5 -10
  77. package/src/components/molecules/time-tracker/time-tracker.component.d.ts +6 -10
  78. package/src/components/molecules/timeline/timeline.component.d.ts +3 -6
  79. package/src/components/molecules/timestamp/timestamp.component.d.ts +4 -7
  80. package/src/components/molecules/wave-background/wave.component.d.ts +2 -7
  81. package/src/components/molecules/wide-button/wide-button.component.d.ts +6 -11
  82. package/src/components/organisms/child-list-item/child-list-item.component.d.ts +20 -38
  83. package/src/components/organisms/child-list-item/components/child-list-tag.component.d.ts +3 -6
  84. package/src/components/organisms/contact-item/contact-item.component.d.ts +6 -11
  85. package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.component.d.ts +3 -6
  86. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +7 -13
  87. package/src/components/organisms/journal-entry/journal-entry.component.d.ts +16 -30
  88. package/src/components/organisms/loading-indicator/animation-style.animate.d.ts +3 -13
  89. package/src/components/organisms/loading-indicator/dot.component.d.ts +3 -3
  90. package/src/components/organisms/loading-indicator/loading-indicator.component.d.ts +2 -9
  91. package/src/components/organisms/my-child-list-item/my-child-list-item.component.d.ts +9 -16
  92. package/src/components/organisms/person-info-card/person-info-card.component.d.ts +10 -18
  93. package/src/components/organisms/text-bubble/text-bubble.component.d.ts +12 -21
  94. package/src/components/organisms/timetable-edit/timetable-edit.component.d.ts +13 -25
  95. package/src/components/organisms/timetable-editor/components/timetable-edit-wrapper.d.ts +8 -14
  96. package/src/components/organisms/timetable-editor/timetable-editor-staff.component.d.ts +4 -7
  97. package/src/components/organisms/timetable-editor/timetable-editor.component.d.ts +4 -7
  98. package/src/components/templates/modal/components/fade-panel.component.d.ts +7 -14
  99. package/src/components/templates/modal/modal.component.d.ts +6 -12
  100. package/src/components/templates/popover/components/foreground/foreground.component.d.ts +4 -6
  101. package/src/components/templates/popover/components/modal/close/close.component.d.ts +4 -4
  102. package/src/components/templates/popover/components/modal/heading/heading.component.d.ts +4 -7
  103. package/src/components/templates/popover/components/modal/modal.component.d.ts +9 -17
  104. package/src/components/templates/popover/components/modal/scroll-content/scroll-content.component.d.ts +3 -5
  105. package/src/components/templates/popover/popover.component.d.ts +8 -15
  106. package/src/components/templates/popover-action/popover-action.component.tsx +1 -0
  107. package/src/context/loading-dots.context.d.ts +6 -9
  108. package/src/context/theme.context.d.ts +65 -65
  109. package/src/gradients/main/main.gradient.d.ts +2 -4
  110. package/src/icons/index.d.ts +2 -7
  111. package/src/icons/outline/calendar/calendar.icon.d.ts +2 -5
  112. package/src/icons/outline/chat/chat.icon.d.ts +2 -5
  113. package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +2 -5
  114. package/src/icons/outline/check-circle/check-circle.icon.d.ts +2 -5
  115. package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +2 -5
  116. package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +2 -5
  117. package/src/icons/outline/clock/clock.icon.d.ts +2 -5
  118. package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +2 -5
  119. package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +2 -5
  120. package/src/icons/outline/document-text/document-text.icon.d.ts +2 -5
  121. package/src/icons/outline/exclamation/exclamation.icon.d.ts +2 -5
  122. package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +2 -5
  123. package/src/icons/outline/eye/eye.icon.d.ts +2 -5
  124. package/src/icons/outline/eye-off/eye-off.icon.d.ts +2 -5
  125. package/src/icons/outline/filter/filter.icon.d.ts +2 -5
  126. package/src/icons/outline/information-circle/information-circle.icon.d.ts +2 -5
  127. package/src/icons/outline/logout/logout.icon.d.ts +2 -5
  128. package/src/icons/outline/mail/mail.icon.d.ts +2 -5
  129. package/src/icons/outline/mail-open/mail-open.icon.d.ts +2 -5
  130. package/src/icons/outline/menu/menu.icon.d.ts +2 -5
  131. package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +2 -5
  132. package/src/icons/outline/office-building/office-building.icon.d.ts +2 -5
  133. package/src/icons/outline/outline.d.ts +2 -6
  134. package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +2 -5
  135. package/src/icons/outline/paperclip/paperclip.icon.d.ts +2 -5
  136. package/src/icons/outline/pencil/pencil.icon.d.ts +2 -5
  137. package/src/icons/outline/phone/phone.icon.d.ts +2 -5
  138. package/src/icons/outline/photograph/photograph.icon.d.ts +2 -5
  139. package/src/icons/outline/plus/plus.icon.d.ts +2 -5
  140. package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +2 -5
  141. package/src/icons/outline/qrcode/qrcode.icon.d.ts +2 -5
  142. package/src/icons/outline/refresh/refresh.icon.d.ts +2 -5
  143. package/src/icons/outline/search/search.icon.d.ts +2 -5
  144. package/src/icons/outline/selector/selector.icon.d.ts +2 -5
  145. package/src/icons/outline/share/share.icon.d.ts +2 -5
  146. package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -5
  147. package/src/icons/outline/status-online/status-online.icon.d.ts +2 -5
  148. package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +2 -5
  149. package/src/icons/outline/trash/trash.icon.d.ts +2 -5
  150. package/src/icons/outline/user/user.icon.d.ts +2 -5
  151. package/src/icons/outline/user-group/user-group.icon.d.ts +2 -5
  152. package/src/icons/outline/users/users.icon.d.ts +2 -5
  153. package/src/icons/outline/xmark/xmark.icon.d.ts +2 -5
  154. package/src/icons/solid/calendar/calendar.icon.d.ts +2 -5
  155. package/src/icons/solid/chat/chat.icon.d.ts +2 -5
  156. package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -5
  157. package/src/icons/solid/check-circle/check-circle.icon.d.ts +2 -5
  158. package/src/icons/solid/chevron-left/chevron-left.icon.d.ts +2 -5
  159. package/src/icons/solid/chevron-right/chevron-right.icon.d.ts +2 -5
  160. package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -5
  161. package/src/icons/solid/cloud-download/cloud-download.icon.d.ts +2 -5
  162. package/src/icons/solid/currency-euro/currency-euro.icon.d.ts +2 -5
  163. package/src/icons/solid/document-text/document-text-solid.icon.d.ts +2 -5
  164. package/src/icons/solid/exclamation/exclamation.icon.d.ts +2 -5
  165. package/src/icons/solid/exclamation-circle/exclamation-circle.icon.d.ts +2 -5
  166. package/src/icons/solid/eye/eye.icon.d.ts +2 -5
  167. package/src/icons/solid/eye-off/eye-off.icon.d.ts +2 -5
  168. package/src/icons/solid/filter/filter.icon.d.ts +2 -5
  169. package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +2 -5
  170. package/src/icons/solid/logout/logout.icon.d.ts +2 -5
  171. package/src/icons/solid/mail/mail.icon.d.ts +2 -5
  172. package/src/icons/solid/mail-open/mail-open.icon.d.ts +2 -5
  173. package/src/icons/solid/menu/menu.icon.d.ts +2 -5
  174. package/src/icons/solid/minus-sm/minus-sm.icon.d.ts +2 -5
  175. package/src/icons/solid/office-building/office-building.icon.d.ts +2 -5
  176. package/src/icons/solid/paper-airplane/paper-airplane.icon.d.ts +2 -5
  177. package/src/icons/solid/paperclip/paperclip.icon.d.ts +2 -5
  178. package/src/icons/solid/pencil/pencil-solid.icon.d.ts +2 -5
  179. package/src/icons/solid/phone/phone-solid.icon.d.ts +2 -5
  180. package/src/icons/solid/photograph/photograph-solid.icon.d.ts +2 -5
  181. package/src/icons/solid/plus/plus.icon.d.ts +2 -5
  182. package/src/icons/solid/plus-sm/plus-sm.icon.d.ts +2 -5
  183. package/src/icons/solid/qrcode/qrcode.icon.d.ts +2 -5
  184. package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -5
  185. package/src/icons/solid/search/search.icon.d.ts +2 -5
  186. package/src/icons/solid/selector/selector.icon.d.ts +2 -5
  187. package/src/icons/solid/share/share.icon.d.ts +2 -5
  188. package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -5
  189. package/src/icons/solid/solid.d.ts +2 -6
  190. package/src/icons/solid/status-online/status-online-solid.icon.d.ts +2 -5
  191. package/src/icons/solid/thumb-up/thumb-up.icon.d.ts +2 -5
  192. package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -5
  193. package/src/icons/solid/user/user.icon.d.ts +2 -5
  194. package/src/icons/solid/user-group/user-group.icon.d.ts +2 -5
  195. package/src/icons/solid/users/users-solid.icon.d.ts +2 -5
  196. package/src/icons/solid/xmark/xmark.icon.d.ts +2 -5
  197. package/src/interfaces/icon.interface.d.ts +5 -5
  198. package/src/models/hex-color.model.d.ts +4 -4
  199. package/src/models/initials.model.d.ts +5 -5
  200. package/src/models/time-slot-record.d.ts +11 -11
  201. package/src/models/time-slot-sequence.d.ts +13 -15
  202. package/src/theme/font/font.d.ts +70 -70
  203. package/src/theme/font/index.d.ts +3 -3
  204. package/src/theme/provider/index.d.ts +3 -3
  205. package/src/theme/provider/parent.theme.d.ts +63 -63
  206. package/src/theme/provider/staff-member.theme.d.ts +63 -63
  207. package/src/theme/responsive/index.d.ts +2 -5
  208. package/src/theme/scale/index.d.ts +10 -10
  209. package/src/types/bubble-alignment.enum.d.ts +2 -2
  210. package/src/types/icontype.type.d.ts +1 -43
  211. package/src/types/keyboard-types.enum.d.ts +7 -7
  212. package/src/types/loading-dots.type.d.ts +6 -6
  213. package/src/types/size.enum.d.ts +3 -3
  214. package/src/types/state.enum.d.ts +4 -4
  215. package/src/types/text-properties.type.d.ts +8 -8
  216. package/src/types/timetable-edit.enum.d.ts +3 -3
  217. package/src/types/visual-state.enum.d.ts +5 -5
  218. package/src/utilities/color-handler/color-handler.d.ts +4 -12
  219. package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +18 -18
  220. package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +16 -16
  221. package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +46 -103
  222. package/src/utilities/toddle-datetime/types/duration.type.d.ts +1 -1
  223. package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +2 -11
  224. package/tsconfig.json +2 -1
  225. package/src/components/organisms/day-select/day-select.component.d.ts +0 -13
  226. package/src/components/organisms/day-select/day-select.component.tsx +0 -122
  227. package/src/components/organisms/day-select/day-select.preview.d.ts +0 -2
  228. package/src/components/organisms/day-select/day-select.preview.tsx +0 -23
  229. package/src/components/organisms/day-select/day-select.styles.d.ts +0 -18
  230. package/src/components/organisms/day-select/day-select.styles.js +0 -22
  231. package/src/components/organisms/tab-view/__snapshots__/tab-view.test.js.snap +0 -421
  232. package/src/components/organisms/tab-view/tab-view.component.d.ts +0 -16
  233. package/src/components/organisms/tab-view/tab-view.component.tsx +0 -49
  234. package/src/components/organisms/tab-view/tab-view.preview.d.ts +0 -2
  235. package/src/components/organisms/tab-view/tab-view.preview.tsx +0 -37
  236. package/src/components/organisms/tab-view/tab-view.styles.d.ts +0 -10
  237. package/src/components/organisms/tab-view/tab-view.styles.js +0 -14
  238. package/src/components/organisms/tab-view/tab-view.test.js +0 -37
@@ -1,17 +1,11 @@
1
- import {ToddleDateTime} from '../../../../../utilities/toddle-datetime/toddle-datetime.class';
1
+ import { ToddleDateTime } from '../../../../../utilities/toddle-datetime/toddle-datetime.class';
2
2
  import React from 'react';
3
3
  interface JournalEntryTypeProps {
4
- prio: boolean;
5
- type: string;
6
- happenedAt?: ToddleDateTime;
7
- loading?: boolean;
8
- send: boolean;
4
+ prio: boolean;
5
+ type: string;
6
+ happenedAt?: ToddleDateTime;
7
+ loading?: boolean;
8
+ send: boolean;
9
9
  }
10
- export declare const JournalEntryType: ({
11
- prio,
12
- type,
13
- happenedAt,
14
- loading,
15
- send,
16
- }: JournalEntryTypeProps) => React.JSX.Element;
10
+ export declare const JournalEntryType: ({ prio, type, happenedAt, loading, send, }: JournalEntryTypeProps) => React.JSX.Element;
17
11
  export {};
@@ -1,34 +1,20 @@
1
1
  import React from 'react';
2
- import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime.class';
3
- import {VisualState} from '../../../types/visual-state.enum';
2
+ import { ToddleDateTime } from '../../../utilities/toddle-datetime/toddle-datetime.class';
3
+ import { VisualState } from '../../../types/visual-state.enum';
4
4
  interface JournalEntryProps {
5
- id: string;
6
- prio: boolean;
7
- happenedAt?: ToddleDateTime;
8
- type: string;
9
- text: string;
10
- visualState: VisualState;
11
- createdAt?: ToddleDateTime;
12
- timestampLabel?: string;
13
- onFail?: (id: string) => void;
14
- onEdit?: (id: string) => void;
15
- onDelete?: (id: string) => void;
16
- afterAnimationComplete?: () => void;
17
- loadingNewEntry?: boolean;
5
+ id: string;
6
+ prio: boolean;
7
+ happenedAt?: ToddleDateTime;
8
+ type: string;
9
+ text: string;
10
+ visualState: VisualState;
11
+ createdAt?: ToddleDateTime;
12
+ timestampLabel?: string;
13
+ onFail?: (id: string) => void;
14
+ onEdit?: (id: string) => void;
15
+ onDelete?: (id: string) => void;
16
+ afterAnimationComplete?: () => void;
17
+ loadingNewEntry?: boolean;
18
18
  }
19
- export declare const JournalEntry: ({
20
- id,
21
- prio,
22
- happenedAt,
23
- type,
24
- text,
25
- visualState,
26
- createdAt,
27
- timestampLabel,
28
- onFail,
29
- onEdit,
30
- onDelete,
31
- afterAnimationComplete,
32
- loadingNewEntry,
33
- }: JournalEntryProps) => React.JSX.Element;
19
+ export declare const JournalEntry: ({ id, prio, happenedAt, type, text, visualState, createdAt, timestampLabel, onFail, onEdit, onDelete, afterAnimationComplete, loadingNewEntry, }: JournalEntryProps) => React.JSX.Element;
34
20
  export {};
@@ -1,13 +1,3 @@
1
- import {Animated} from 'react-native';
2
- export declare const animationStyle: (
3
- animation: string | undefined,
4
- node: Animated.Value,
5
- delay: number,
6
- size: number | undefined
7
- ) => any;
8
- export declare const styles: (
9
- animation: string | undefined,
10
- color: string | undefined,
11
- size: number | undefined,
12
- dynamicSize: Animated.Value | undefined
13
- ) => any;
1
+ import { Animated } from 'react-native';
2
+ export declare const animationStyle: (animation: string | undefined, node: Animated.Value, delay: number, size: number | undefined) => any;
3
+ export declare const styles: (animation: string | undefined, color: string | undefined, size: number | undefined, dynamicSize: Animated.Value | undefined) => any;
@@ -1,6 +1,6 @@
1
- import {Animated} from 'react-native';
1
+ import { Animated } from 'react-native';
2
2
  type DotProps = {
3
- dynamicSize: Animated.Value;
3
+ dynamicSize: Animated.Value;
4
4
  };
5
- export declare const Dot: ({dynamicSize}: DotProps) => JSX.Element;
5
+ export declare const Dot: ({ dynamicSize }: DotProps) => JSX.Element;
6
6
  export {};
@@ -1,9 +1,2 @@
1
- import {LoadingDotsProps} from '../../../types/loading-dots.type';
2
- export declare const LoadingIndicator: ({
3
- animation,
4
- dots,
5
- color,
6
- size,
7
- spacing,
8
- delay,
9
- }: LoadingDotsProps) => JSX.Element;
1
+ import { LoadingDotsProps } from '../../../types/loading-dots.type';
2
+ export declare const LoadingIndicator: ({ animation, dots, color, size, spacing, delay, }: LoadingDotsProps) => JSX.Element;
@@ -1,20 +1,13 @@
1
1
  import React from 'react';
2
- import {ImageSourcePropType} from 'react-native';
3
- import {Initials} from '../../../models/initials.model';
2
+ import { ImageSourcePropType } from 'react-native';
3
+ import { Initials } from '../../../models/initials.model';
4
4
  type MyChildListItemProps = {
5
- id: string;
6
- name: string;
7
- age: string;
8
- sourceAvatar: ImageSourcePropType | Initials;
9
- onPressChild: (id: string) => void;
10
- onPressArrow: (id: string) => void;
5
+ id: string;
6
+ name: string;
7
+ age: string;
8
+ sourceAvatar: ImageSourcePropType | Initials;
9
+ onPressChild: (id: string) => void;
10
+ onPressArrow: (id: string) => void;
11
11
  };
12
- export declare const MyChildListItem: ({
13
- id,
14
- name,
15
- age,
16
- sourceAvatar,
17
- onPressChild,
18
- onPressArrow,
19
- }: MyChildListItemProps) => React.JSX.Element;
12
+ export declare const MyChildListItem: ({ id, name, age, sourceAvatar, onPressChild, onPressArrow, }: MyChildListItemProps) => React.JSX.Element;
20
13
  export {};
@@ -1,22 +1,14 @@
1
- import {ImageSourcePropType, ViewStyle} from 'react-native';
2
- import {Initials} from '../../../models/initials.model';
1
+ import { ImageSourcePropType, ViewStyle } from 'react-native';
2
+ import { Initials } from '../../../models/initials.model';
3
3
  import React from 'react';
4
4
  interface IContactInfoCard {
5
- source: ImageSourcePropType | Initials;
6
- name: string;
7
- label?: string;
8
- isBlocked?: boolean;
9
- isActive?: boolean;
10
- style?: ViewStyle;
11
- isLoading?: boolean;
5
+ source: ImageSourcePropType | Initials;
6
+ name: string;
7
+ label?: string;
8
+ isBlocked?: boolean;
9
+ isActive?: boolean;
10
+ style?: ViewStyle;
11
+ isLoading?: boolean;
12
12
  }
13
- export declare const PersonInfoCard: ({
14
- source,
15
- isBlocked,
16
- isActive,
17
- name,
18
- label,
19
- style,
20
- isLoading,
21
- }: IContactInfoCard) => React.JSX.Element;
13
+ export declare const PersonInfoCard: ({ source, isBlocked, isActive, name, label, style, isLoading, }: IContactInfoCard) => React.JSX.Element;
22
14
  export {};
@@ -1,24 +1,15 @@
1
1
  import * as React from 'react';
2
- import {VisualState} from '../../../types/visual-state.enum';
3
- import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime.class';
2
+ import { VisualState } from '../../../types/visual-state.enum';
3
+ import { ToddleDateTime } from '../../../utilities/toddle-datetime/toddle-datetime.class';
4
4
  type TextBubbleProps = {
5
- id: string;
6
- text: string;
7
- visualState: VisualState;
8
- timestamp?: ToddleDateTime;
9
- timestampLabel?: string;
10
- onFail?: (id: string) => void;
11
- onEdit?: (id: string) => void;
12
- onDelete?: (id: string) => void;
5
+ id: string;
6
+ text: string;
7
+ visualState: VisualState;
8
+ timestamp?: ToddleDateTime;
9
+ timestampLabel?: string;
10
+ onFail?: (id: string) => void;
11
+ onEdit?: (id: string) => void;
12
+ onDelete?: (id: string) => void;
13
13
  };
14
- declare const TextBubble: ({
15
- id,
16
- text,
17
- visualState,
18
- timestamp,
19
- timestampLabel,
20
- onFail,
21
- onEdit,
22
- onDelete,
23
- }: TextBubbleProps) => React.JSX.Element;
24
- export {TextBubble as TextBubble};
14
+ declare const TextBubble: ({ id, text, visualState, timestamp, timestampLabel, onFail, onEdit, onDelete, }: TextBubbleProps) => React.JSX.Element;
15
+ export { TextBubble as TextBubble };
@@ -1,29 +1,17 @@
1
1
  import React from 'react';
2
- import {TimetableEditState} from '../../../types/timetable-edit.enum';
2
+ import { TimetableEditState } from '../../../types/timetable-edit.enum';
3
3
  interface TimetableEditProps {
4
- index: number;
5
- initialInHours: string;
6
- initialInMinutes: string;
7
- initialOutHours: string;
8
- initialOutMinutes: string;
9
- onChangeInHours: (value: string) => void;
10
- onChangeInMinutes: (value: string) => void;
11
- onChangeOutHours: (value: string) => void;
12
- onChangeOutMinutes: (value: string) => void;
13
- onPressTag: (val: TimetableEditState, index: number) => void;
14
- initialEditState: string;
4
+ index: number;
5
+ initialInHours: string;
6
+ initialInMinutes: string;
7
+ initialOutHours: string;
8
+ initialOutMinutes: string;
9
+ onChangeInHours: (value: string) => void;
10
+ onChangeInMinutes: (value: string) => void;
11
+ onChangeOutHours: (value: string) => void;
12
+ onChangeOutMinutes: (value: string) => void;
13
+ onPressTag: (val: TimetableEditState, index: number) => void;
14
+ initialEditState: string;
15
15
  }
16
- export declare const TimetableEdit: ({
17
- index,
18
- initialInHours,
19
- initialInMinutes,
20
- initialOutHours,
21
- initialOutMinutes,
22
- onChangeInHours,
23
- onChangeInMinutes,
24
- onChangeOutHours,
25
- onChangeOutMinutes,
26
- initialEditState,
27
- onPressTag,
28
- }: TimetableEditProps) => React.JSX.Element;
16
+ export declare const TimetableEdit: ({ index, initialInHours, initialInMinutes, initialOutHours, initialOutMinutes, onChangeInHours, onChangeInMinutes, onChangeOutHours, onChangeOutMinutes, initialEditState, onPressTag, }: TimetableEditProps) => React.JSX.Element;
29
17
  export {};
@@ -1,18 +1,12 @@
1
- import {TimeSlotRecord} from '../../../../models/time-slot-record';
1
+ import { TimeSlotRecord } from '../../../../models/time-slot-record';
2
2
  import React from 'react';
3
- import {TimetableEditState} from '../../../../types/timetable-edit.enum';
3
+ import { TimetableEditState } from '../../../../types/timetable-edit.enum';
4
4
  interface TimetableEditWrapperProps {
5
- index: number;
6
- record: TimeSlotRecord;
7
- onUpdate: (rec: TimeSlotRecord) => void;
8
- onPressTag: (val: TimetableEditState, index: number) => void;
9
- editState: TimetableEditState;
5
+ index: number;
6
+ record: TimeSlotRecord;
7
+ onUpdate: (rec: TimeSlotRecord) => void;
8
+ onPressTag: (val: TimetableEditState, index: number) => void;
9
+ editState: TimetableEditState;
10
10
  }
11
- export declare const TimetableEditWrapper: ({
12
- index,
13
- record,
14
- onUpdate,
15
- editState,
16
- onPressTag,
17
- }: TimetableEditWrapperProps) => React.JSX.Element;
11
+ export declare const TimetableEditWrapper: ({ index, record, onUpdate, editState, onPressTag, }: TimetableEditWrapperProps) => React.JSX.Element;
18
12
  export {};
@@ -1,11 +1,8 @@
1
1
  import React from 'react';
2
- import {TimeSlotSequence} from '../../../models/time-slot-sequence';
2
+ import { TimeSlotSequence } from '../../../models/time-slot-sequence';
3
3
  interface TimetableEditorStaffProps {
4
- sequence: TimeSlotSequence;
5
- onChange: (seq: TimeSlotSequence) => void;
4
+ sequence: TimeSlotSequence;
5
+ onChange: (seq: TimeSlotSequence) => void;
6
6
  }
7
- export declare const TimetableEditorStaff: ({
8
- sequence,
9
- onChange,
10
- }: TimetableEditorStaffProps) => React.JSX.Element;
7
+ export declare const TimetableEditorStaff: ({ sequence, onChange, }: TimetableEditorStaffProps) => React.JSX.Element;
11
8
  export {};
@@ -1,11 +1,8 @@
1
1
  import React from 'react';
2
- import {TimeSlotSequence} from '../../../models/time-slot-sequence';
2
+ import { TimeSlotSequence } from '../../../models/time-slot-sequence';
3
3
  interface TimetableEditorProps {
4
- sequence: TimeSlotSequence;
5
- onChange: (seq: TimeSlotSequence) => void;
4
+ sequence: TimeSlotSequence;
5
+ onChange: (seq: TimeSlotSequence) => void;
6
6
  }
7
- export declare const TimetableEditor: ({
8
- sequence,
9
- onChange,
10
- }: TimetableEditorProps) => React.JSX.Element;
7
+ export declare const TimetableEditor: ({ sequence, onChange }: TimetableEditorProps) => React.JSX.Element;
11
8
  export {};
@@ -1,18 +1,11 @@
1
1
  import React from 'react';
2
2
  type FadePanelProps = {
3
- title: string;
4
- subtitle?: string;
5
- isVisible: boolean;
6
- onClose: () => void;
7
- maxHeight: number;
8
- children: React.ReactNode;
3
+ title: string;
4
+ subtitle?: string;
5
+ isVisible: boolean;
6
+ onClose: () => void;
7
+ maxHeight: number;
8
+ children: React.ReactNode;
9
9
  };
10
- export declare const FadePanel: ({
11
- title,
12
- subtitle,
13
- isVisible,
14
- onClose,
15
- maxHeight,
16
- children,
17
- }: FadePanelProps) => React.JSX.Element;
10
+ export declare const FadePanel: ({ title, subtitle, isVisible, onClose, maxHeight, children, }: FadePanelProps) => React.JSX.Element;
18
11
  export {};
@@ -1,16 +1,10 @@
1
1
  import React from 'react';
2
2
  type ModalProps = {
3
- title: string;
4
- subtitle?: string;
5
- isVisible: boolean;
6
- onClose: () => void;
7
- children?: React.ReactNode;
3
+ title: string;
4
+ subtitle?: string;
5
+ isVisible: boolean;
6
+ onClose: () => void;
7
+ children?: React.ReactNode;
8
8
  };
9
- export declare const Modal: ({
10
- title,
11
- subtitle,
12
- isVisible,
13
- onClose,
14
- children,
15
- }: ModalProps) => React.JSX.Element;
9
+ export declare const Modal: ({ title, subtitle, isVisible, onClose, children, }: ModalProps) => React.JSX.Element;
16
10
  export {};
@@ -1,9 +1,7 @@
1
1
  import * as React from 'react';
2
- import {Modal} from '../modal/modal.component';
2
+ import { Modal } from '../modal/modal.component';
3
3
  type PopoverForegroundProps = {
4
- children: React.ReactElement<typeof Modal>;
4
+ children: React.ReactElement<typeof Modal>;
5
5
  };
6
- declare const Foreground: ({
7
- children,
8
- }: PopoverForegroundProps) => React.JSX.Element;
9
- export {Foreground as Foreground};
6
+ declare const Foreground: ({ children }: PopoverForegroundProps) => React.JSX.Element;
7
+ export { Foreground as Foreground };
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import {GestureResponderEvent} from 'react-native';
2
+ import { GestureResponderEvent } from 'react-native';
3
3
  type ModalCloseProps = {
4
- onPress: (event: GestureResponderEvent) => void;
4
+ onPress: (event: GestureResponderEvent) => void;
5
5
  };
6
- declare const Close: ({onPress}: ModalCloseProps) => React.JSX.Element;
7
- export {Close as Close};
6
+ declare const Close: ({ onPress }: ModalCloseProps) => React.JSX.Element;
7
+ export { Close as Close };
@@ -1,10 +1,7 @@
1
1
  import * as React from 'react';
2
2
  type ModalHeadingProps = {
3
- title: string;
4
- subtitle?: string;
3
+ title: string;
4
+ subtitle?: string;
5
5
  };
6
- declare const Heading: ({
7
- title,
8
- subtitle,
9
- }: ModalHeadingProps) => React.JSX.Element;
10
- export {Heading as Heading};
6
+ declare const Heading: ({ title, subtitle }: ModalHeadingProps) => React.JSX.Element;
7
+ export { Heading as Heading };
@@ -1,20 +1,12 @@
1
1
  import * as React from 'react';
2
2
  type PopoverModalProps = {
3
- onClose: () => void;
4
- title?: string;
5
- subtitle?: string;
6
- isVisible: boolean;
7
- children: React.ReactNode;
8
- windowHeight: number;
9
- disableSrollContent?: boolean;
3
+ onClose: () => void;
4
+ title?: string;
5
+ subtitle?: string;
6
+ isVisible: boolean;
7
+ children: React.ReactNode;
8
+ windowHeight: number;
9
+ disableSrollContent?: boolean;
10
10
  };
11
- declare const Modal: ({
12
- isVisible,
13
- title,
14
- subtitle,
15
- onClose,
16
- children,
17
- windowHeight,
18
- disableSrollContent,
19
- }: PopoverModalProps) => React.JSX.Element;
20
- export {Modal as Modal};
11
+ declare const Modal: ({ isVisible, title, subtitle, onClose, children, windowHeight, disableSrollContent, }: PopoverModalProps) => React.JSX.Element;
12
+ export { Modal as Modal };
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
2
  type ModalScrollContentProps = {
3
- children: React.ReactNode;
3
+ children: React.ReactNode;
4
4
  };
5
- declare const ScrollContent: ({
6
- children,
7
- }: ModalScrollContentProps) => React.JSX.Element;
8
- export {ScrollContent as ScrollContent};
5
+ declare const ScrollContent: ({ children }: ModalScrollContentProps) => React.JSX.Element;
6
+ export { ScrollContent as ScrollContent };
@@ -1,18 +1,11 @@
1
1
  import * as React from 'react';
2
2
  type PopoverProps = {
3
- onClose: () => void;
4
- title?: string;
5
- subtitle?: string;
6
- isVisible: boolean;
7
- children?: React.ReactNode;
8
- disableScrollContent?: boolean;
3
+ onClose: () => void;
4
+ title?: string;
5
+ subtitle?: string;
6
+ isVisible: boolean;
7
+ children?: React.ReactNode;
8
+ disableScrollContent?: boolean;
9
9
  };
10
- declare const Popover: ({
11
- isVisible,
12
- title,
13
- subtitle,
14
- onClose,
15
- children,
16
- disableScrollContent,
17
- }: PopoverProps) => React.JSX.Element;
18
- export {Popover as Popover};
10
+ declare const Popover: ({ isVisible, title, subtitle, onClose, children, disableScrollContent, }: PopoverProps) => React.JSX.Element;
11
+ export { Popover as Popover };
@@ -16,6 +16,7 @@ export const PopOverAction = ({
16
16
  children,
17
17
  touchBackDrop,
18
18
  }: PopOverActionProps) => {
19
+
19
20
  const [windowHeight, setWindowHeight] = useState(
20
21
  Dimensions.get('window').height
21
22
  );
@@ -1,11 +1,8 @@
1
- import React, {ReactNode} from 'react';
2
- import {LoadingDotsProps} from '../types/loading-dots.type';
1
+ import React, { ReactNode } from 'react';
2
+ import { LoadingDotsProps } from '../types/loading-dots.type';
3
3
  declare const useLoadingContext: () => LoadingDotsProps;
4
- declare const LoadingDotContextProvider: ({
5
- children,
6
- values,
7
- }: {
8
- children: ReactNode;
9
- values: LoadingDotsProps;
4
+ declare const LoadingDotContextProvider: ({ children, values, }: {
5
+ children: ReactNode;
6
+ values: LoadingDotsProps;
10
7
  }) => React.JSX.Element;
11
- export {LoadingDotContextProvider, useLoadingContext};
8
+ export { LoadingDotContextProvider, useLoadingContext };
@@ -2,71 +2,71 @@
2
2
  /// <reference types="node" />
3
3
  /// <reference types="react-native" />
4
4
  interface ThemeInterface {
5
- colors: {
6
- gradient: {
7
- 1: string[];
8
- 0: string[];
5
+ colors: {
6
+ gradient: {
7
+ 1: string[];
8
+ 0: string[];
9
+ };
10
+ main: {
11
+ 9: string;
12
+ 8: string;
13
+ 7: string;
14
+ 6: string;
15
+ 5: string;
16
+ 4: string;
17
+ 3: string;
18
+ 2: string;
19
+ 1: string;
20
+ 0: string;
21
+ };
22
+ state: {
23
+ unplanned: {
24
+ default: string;
25
+ dark: string;
26
+ };
27
+ expected: {
28
+ default: string;
29
+ dark: string;
30
+ };
31
+ in: {
32
+ default: string;
33
+ dark: string;
34
+ };
35
+ out: {
36
+ default: string;
37
+ dark: string;
38
+ };
39
+ };
40
+ ui: {
41
+ black: string;
42
+ white: string;
43
+ xlightgrey: string;
44
+ lightgrey: string;
45
+ grey: string;
46
+ darkgrey: string;
47
+ success: {
48
+ xlight: string;
49
+ light: string;
50
+ default: string;
51
+ dark: string;
52
+ };
53
+ warning: {
54
+ xlight: string;
55
+ light: string;
56
+ default: string;
57
+ dark: string;
58
+ };
59
+ error: {
60
+ xlight: string;
61
+ light: string;
62
+ default: string;
63
+ dark: string;
64
+ };
65
+ };
9
66
  };
10
- main: {
11
- 9: string;
12
- 8: string;
13
- 7: string;
14
- 6: string;
15
- 5: string;
16
- 4: string;
17
- 3: string;
18
- 2: string;
19
- 1: string;
20
- 0: string;
67
+ wave: {
68
+ path: NodeRequire;
21
69
  };
22
- state: {
23
- unplanned: {
24
- default: string;
25
- dark: string;
26
- };
27
- expected: {
28
- default: string;
29
- dark: string;
30
- };
31
- in: {
32
- default: string;
33
- dark: string;
34
- };
35
- out: {
36
- default: string;
37
- dark: string;
38
- };
39
- };
40
- ui: {
41
- black: string;
42
- white: string;
43
- xlightgrey: string;
44
- lightgrey: string;
45
- grey: string;
46
- darkgrey: string;
47
- success: {
48
- xlight: string;
49
- light: string;
50
- default: string;
51
- dark: string;
52
- };
53
- warning: {
54
- xlight: string;
55
- light: string;
56
- default: string;
57
- dark: string;
58
- };
59
- error: {
60
- xlight: string;
61
- light: string;
62
- default: string;
63
- dark: string;
64
- };
65
- };
66
- };
67
- wave: {
68
- path: NodeRequire;
69
- };
70
70
  }
71
- declare const ThemeCtx: import('react').Context<ThemeInterface>;
72
- export {ThemeCtx as ThemeCtx};
71
+ declare const ThemeCtx: import("react").Context<ThemeInterface>;
72
+ export { ThemeCtx as ThemeCtx };