@tactics/toddle-styleguide 0.1.5 → 0.1.7

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 (159) hide show
  1. package/App.tsx +16 -0
  2. package/package.json +1 -1
  3. package/src/components/atoms/avatar/avatar.component.d.ts +7 -7
  4. package/src/components/atoms/blocked-message/blocked-message.component.d.ts +4 -2
  5. package/src/components/atoms/button/button.component.d.ts +11 -6
  6. package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +33 -21
  7. package/src/components/atoms/calendar/calendar.component.d.ts +11 -6
  8. package/src/components/atoms/calendar-select/calendar-select.component.d.ts +8 -5
  9. package/src/components/atoms/cancel-link/cancel-link.component.d.ts +4 -4
  10. package/src/components/atoms/check-switch/check-switch.component.d.ts +3 -3
  11. package/src/components/atoms/checkbox/checkbox.component.d.ts +9 -5
  12. package/src/components/atoms/child-list-item/child-list-item.component.d.ts +19 -7
  13. package/src/components/atoms/child-list-item/child-list-item.component.tsx +7 -4
  14. package/src/components/atoms/contact-item/contact-item.component.d.ts +13 -7
  15. package/src/components/atoms/contact-role/contact-role.component.d.ts +6 -3
  16. package/src/components/atoms/date-input/date-input.component.d.ts +7 -4
  17. package/src/components/atoms/day-select/components/day/day.component.d.ts +6 -6
  18. package/src/components/atoms/day-select/day-select.component.d.ts +10 -6
  19. package/src/components/atoms/default-select/default-select.component.d.ts +6 -3
  20. package/src/components/atoms/department_logo/department-logo.component.d.ts +5 -3
  21. package/src/components/atoms/filter-range/filter-range.component.d.ts +14 -7
  22. package/src/components/atoms/filter-tab/filter-tab.component.d.ts +9 -6
  23. package/src/components/atoms/footer/footer.component.d.ts +3 -3
  24. package/src/components/atoms/image-bubble/image-bubble.component.d.ts +9 -6
  25. package/src/components/atoms/increment-input/increment-input.component.d.ts +6 -3
  26. package/src/components/atoms/info/info.component.d.ts +4 -4
  27. package/src/components/atoms/logo/logo.component.d.ts +4 -4
  28. package/src/components/atoms/message-input/__snapshots__/message-input.test.js.snap +699 -0
  29. package/src/components/atoms/message-input/message-input.component.d.ts +11 -0
  30. package/src/components/atoms/message-input/message-input.component.tsx +46 -0
  31. package/src/components/atoms/message-input/message-input.preview.d.ts +1 -0
  32. package/src/components/atoms/message-input/message-input.preview.tsx +41 -0
  33. package/src/components/atoms/message-input/message-input.styles.d.ts +26 -0
  34. package/src/components/atoms/message-input/message-input.styles.js +29 -0
  35. package/src/components/atoms/message-input/message-input.test.js +67 -0
  36. package/src/components/atoms/password-input/__snapshots__/password-input.test.js.snap +396 -0
  37. package/src/components/atoms/password-input/password-input.component.d.ts +9 -0
  38. package/src/components/atoms/password-input/password-input.component.tsx +51 -0
  39. package/src/components/atoms/password-input/password-input.preview.d.ts +1 -0
  40. package/src/components/atoms/password-input/password-input.preview.tsx +60 -0
  41. package/src/components/atoms/password-input/password-input.styles.d.ts +28 -0
  42. package/src/components/atoms/password-input/password-input.styles.js +32 -0
  43. package/src/components/atoms/password-input/password-input.test.js +46 -0
  44. package/src/components/atoms/pill/pill.component.d.ts +5 -5
  45. package/src/components/atoms/popover/components/backdrop/backdrop.component.d.ts +3 -3
  46. package/src/components/atoms/popover/components/foreground/foreground.component.d.ts +4 -4
  47. package/src/components/atoms/popover/components/modal/close/close.component.d.ts +4 -4
  48. package/src/components/atoms/popover/components/modal/heading/heading.component.d.ts +4 -4
  49. package/src/components/atoms/popover/components/modal/modal.component.d.ts +15 -8
  50. package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.d.ts +5 -3
  51. package/src/components/atoms/popover/popover.component.d.ts +13 -7
  52. package/src/components/atoms/pressable-icon/pressable-icon.component.d.ts +10 -5
  53. package/src/components/atoms/quick-filter/quick-filter.component.d.ts +14 -8
  54. package/src/components/atoms/search/search.component.d.ts +10 -6
  55. package/src/components/atoms/search/search.preview.d.ts +1 -1
  56. package/src/components/atoms/select-link/select-link.component.d.ts +4 -4
  57. package/src/components/atoms/select-list-item/select-list-item.component.d.ts +13 -7
  58. package/src/components/atoms/select-picker/select-picker.component.d.ts +13 -8
  59. package/src/components/atoms/snackbar/snackbar.component.d.ts +5 -5
  60. package/src/components/atoms/split-container/split-container.component.d.ts +7 -4
  61. package/src/components/atoms/swipe/swipe.component.d.ts +3 -3
  62. package/src/components/atoms/swipe/swipe.component.tsx +4 -4
  63. package/src/components/atoms/swipe/swipe.preview.tsx +1 -1
  64. package/src/components/atoms/tag/tag.component.d.ts +13 -8
  65. package/src/components/atoms/text-bubble/__snapshots__/text-bubble.test.js.snap +2055 -234
  66. package/src/components/atoms/text-bubble/components/failed-to-send/__snapshots__/failed-bubble.test.js.snap +330 -0
  67. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.component.d.ts +7 -0
  68. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.component.tsx +69 -0
  69. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.styles.d.ts +39 -0
  70. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.styles.js +42 -0
  71. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.test.js +19 -0
  72. package/src/components/atoms/text-bubble/components/send-bubble/__snapshots__/send-text-bubble.test.js.snap +1657 -0
  73. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.component.d.ts +11 -0
  74. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.component.tsx +78 -0
  75. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.styles.d.ts +75 -0
  76. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.styles.js +67 -0
  77. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.test.js +96 -0
  78. package/src/components/atoms/text-bubble/components/timestamp/timestamp.component.d.ts +3 -3
  79. package/src/components/atoms/text-bubble/text-bubble.component.d.ts +8 -4
  80. package/src/components/atoms/text-bubble/text-bubble.component.tsx +31 -5
  81. package/src/components/atoms/text-bubble/text-bubble.preview.tsx +62 -27
  82. package/src/components/atoms/text-bubble/text-bubble.styles.d.ts +18 -53
  83. package/src/components/atoms/text-bubble/text-bubble.styles.js +13 -46
  84. package/src/components/atoms/text-bubble/text-bubble.test.js +42 -0
  85. package/src/components/atoms/text-input/text-input.component.d.ts +10 -6
  86. package/src/components/atoms/text-input/text-input.preview.d.ts +1 -1
  87. package/src/components/atoms/time-tracker/time-tracker.component.d.ts +8 -5
  88. package/src/components/atoms/timeline/timeline.component.d.ts +6 -3
  89. package/src/components/atoms/wide-button/wide-button.component.d.ts +11 -6
  90. package/src/context/theme.context.d.ts +42 -42
  91. package/src/icons/index.d.ts +1 -0
  92. package/src/icons/outline/calendar/calendar.icon.d.ts +2 -2
  93. package/src/icons/outline/chat/chat.icon.d.ts +2 -2
  94. package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +2 -2
  95. package/src/icons/outline/check-circle/check-circle.icon.d.ts +2 -2
  96. package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +2 -2
  97. package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +2 -2
  98. package/src/icons/outline/clock/clock.icon.d.ts +2 -2
  99. package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +2 -2
  100. package/src/icons/outline/cross/cross.icon.d.ts +2 -2
  101. package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +2 -2
  102. package/src/icons/outline/document-text/document-text.icon.d.ts +2 -2
  103. package/src/icons/outline/exclamation/exclamation.icon.d.ts +2 -2
  104. package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +2 -2
  105. package/src/icons/outline/eye/eye.icon.d.ts +2 -2
  106. package/src/icons/outline/eye-off/eye-off.icon.d.ts +2 -0
  107. package/src/icons/outline/eye-off/eye-off.icon.tsx +20 -0
  108. package/src/icons/outline/filter/filter.icon.d.ts +2 -2
  109. package/src/icons/outline/information-circle/information-circle.icon.d.ts +2 -2
  110. package/src/icons/outline/logout/logout.icon.d.ts +2 -2
  111. package/src/icons/outline/mail/mail.icon.d.ts +2 -2
  112. package/src/icons/outline/mail-open/mail-open.icon.d.ts +2 -2
  113. package/src/icons/outline/menu/menu.icon.d.ts +2 -2
  114. package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +2 -2
  115. package/src/icons/outline/office-building/office-building.icon.d.ts +2 -2
  116. package/src/icons/outline/outline-default.preview.tsx +1 -0
  117. package/src/icons/outline/outline-grey.preview.tsx +1 -0
  118. package/src/icons/outline/outline-white.preview.tsx +1 -0
  119. package/src/icons/outline/outline.d.ts +1 -0
  120. package/src/icons/outline/outline.tsx +2 -0
  121. package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +2 -2
  122. package/src/icons/outline/paperclip/paperclip.icon.d.ts +2 -2
  123. package/src/icons/outline/pencil/pencil.icon.d.ts +2 -2
  124. package/src/icons/outline/phone/phone.icon.d.ts +2 -2
  125. package/src/icons/outline/plus/plus.icon.d.ts +2 -2
  126. package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +2 -2
  127. package/src/icons/outline/qrcode/qrcode.icon.d.ts +2 -2
  128. package/src/icons/outline/refresh/refresh.icon.d.ts +2 -2
  129. package/src/icons/outline/search/search.icon.d.ts +2 -2
  130. package/src/icons/outline/selector/selector.icon.d.ts +2 -2
  131. package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -2
  132. package/src/icons/outline/status-online/status-online.icon.d.ts +2 -2
  133. package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +2 -2
  134. package/src/icons/outline/trash/trash.icon.d.ts +2 -2
  135. package/src/icons/outline/user/user.icon.d.ts +2 -2
  136. package/src/icons/outline/user-group/user-group.icon.d.ts +2 -2
  137. package/src/icons/outline/users/users.icon.d.ts +2 -2
  138. package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -2
  139. package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -2
  140. package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +2 -2
  141. package/src/icons/solid/pencil/pencil-solid.icon.d.ts +2 -2
  142. package/src/icons/solid/phone/phone-solid.icon.d.ts +2 -2
  143. package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -2
  144. package/src/icons/solid/solid.d.ts +18 -8
  145. package/src/icons/solid/status-online/status-online-solid.icon.d.ts +2 -2
  146. package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -2
  147. package/src/models/initials.model.d.ts +5 -5
  148. package/src/theme/font/font.d.ts +70 -70
  149. package/src/theme/font/index.d.ts +3 -3
  150. package/src/theme/provider/index.d.ts +3 -3
  151. package/src/theme/provider/parent.theme.d.ts +40 -40
  152. package/src/theme/provider/staff-member.theme.d.ts +40 -40
  153. package/src/theme/scale/index.d.ts +10 -10
  154. package/src/types/bubble-alignment.enum.d.ts +2 -2
  155. package/src/types/icontype.type.d.ts +1 -1
  156. package/src/types/keyboard-types.enum.d.ts +7 -7
  157. package/src/types/size.enum.d.ts +3 -3
  158. package/src/types/visual-state.enum.d.ts +4 -4
  159. package/src/util/date.d.ts +1 -1
package/App.tsx CHANGED
@@ -53,6 +53,8 @@ import {DepartmentLogoPreview} from './src/components/atoms/department_logo/depa
53
53
  import {CalendarSelectPreview} from './src/components/atoms/calendar-select/calendar-select.preview';
54
54
  import {FooterPreview} from './src/components/atoms/footer/footer.preview';
55
55
  import {DefaulSelectPreview} from './src/components/atoms/default-select/default-select.preview';
56
+ import {PasswordInputPreview} from './src/components/atoms/password-input/password-input.preview';
57
+ import {MessageInputPreview} from './src/components/atoms/message-input/message-input.preview';
56
58
 
57
59
  const Stack = createNativeStackNavigator();
58
60
 
@@ -195,6 +197,14 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
195
197
  title="Default select"
196
198
  onPress={() => navigation.push('default-select')}
197
199
  />
200
+ <ReactBtn
201
+ title="Password Input Field"
202
+ onPress={() => navigation.push('password-input')}
203
+ />
204
+ <ReactBtn
205
+ title="Message input"
206
+ onPress={() => navigation.push('message-input')}
207
+ />
198
208
  </ScrollView>
199
209
  );
200
210
  };
@@ -315,10 +325,16 @@ function App() {
315
325
  <Stack.Screen name="calendar-select">
316
326
  {() => <CalendarSelectPreview />}
317
327
  </Stack.Screen>
328
+ <Stack.Screen name="password-input">
329
+ {() => <PasswordInputPreview />}
330
+ </Stack.Screen>
318
331
  <Stack.Screen name="footer">{() => <FooterPreview />}</Stack.Screen>
319
332
  <Stack.Screen name="default-select">
320
333
  {() => <DefaulSelectPreview />}
321
334
  </Stack.Screen>
335
+ <Stack.Screen name="message-input">
336
+ {() => <MessageInputPreview />}
337
+ </Stack.Screen>
322
338
  </Stack.Navigator>
323
339
  </NavigationContainer>
324
340
  </ThemeCtx.Provider>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
- import { ImageSourcePropType } from 'react-native';
3
- import { Size } from '../../../types/size.enum';
4
- import { Initials } from '../../../models/initials.model';
2
+ import {ImageSourcePropType} from 'react-native';
3
+ import {Size} from '../../../types/size.enum';
4
+ import {Initials} from '../../../models/initials.model';
5
5
  declare type AvatarProps = {
6
- source: ImageSourcePropType | Initials;
7
- size: Size;
8
- isBlocked?: boolean;
6
+ source: ImageSourcePropType | Initials;
7
+ size: Size;
8
+ isBlocked?: boolean;
9
9
  };
10
10
  declare const Avatar: React.FC<AvatarProps>;
11
- export { Avatar as Avatar };
11
+ export {Avatar as Avatar};
@@ -1,5 +1,7 @@
1
1
  declare type BlockedMessageProps = {
2
- message: string;
2
+ message: string;
3
3
  };
4
- export declare const BlockedMessage: ({ message }: BlockedMessageProps) => JSX.Element;
4
+ export declare const BlockedMessage: ({
5
+ message,
6
+ }: BlockedMessageProps) => JSX.Element;
5
7
  export {};
@@ -1,8 +1,13 @@
1
1
  declare type ButtonProps = {
2
- label: string;
3
- icon?: any;
4
- disabled?: boolean;
5
- onPress?: () => void;
2
+ label: string;
3
+ icon?: any;
4
+ disabled?: boolean;
5
+ onPress?: () => void;
6
6
  };
7
- declare const Button: ({ label, icon, disabled, onPress }: ButtonProps) => JSX.Element;
8
- export { Button as Button };
7
+ declare const Button: ({
8
+ label,
9
+ icon,
10
+ disabled,
11
+ onPress,
12
+ }: ButtonProps) => JSX.Element;
13
+ export {Button as Button};
@@ -1708,7 +1708,7 @@ exports[`Test for the calendar component renders a calendar where you can select
1708
1708
  }
1709
1709
  >
1710
1710
  <View
1711
- accessibilityLabel="today Vrijdag 13 Januari 2023 "
1711
+ accessibilityLabel=" Vrijdag 13 Januari 2023 "
1712
1712
  accessibilityRole="button"
1713
1713
  accessibilityState={
1714
1714
  {
@@ -1728,10 +1728,6 @@ exports[`Test for the calendar component renders a calendar where you can select
1728
1728
  style={
1729
1729
  {
1730
1730
  "alignItems": "center",
1731
- "borderColor": "#7B93DB",
1732
- "borderRadius": 21,
1733
- "borderStyle": "solid",
1734
- "borderWidth": 1,
1735
1731
  "height": 42,
1736
1732
  "justifyContent": "center",
1737
1733
  "opacity": 1,
@@ -1751,9 +1747,6 @@ exports[`Test for the calendar component renders a calendar where you can select
1751
1747
  "lineHeight": 22.4,
1752
1748
  "marginTop": 4,
1753
1749
  },
1754
- {
1755
- "color": "#7B93DB",
1756
- },
1757
1750
  ]
1758
1751
  }
1759
1752
  >
@@ -2139,7 +2132,7 @@ exports[`Test for the calendar component renders a calendar where you can select
2139
2132
  }
2140
2133
  >
2141
2134
  <View
2142
- accessibilityLabel=" Donderdag 19 Januari 2023 "
2135
+ accessibilityLabel="today Donderdag 19 Januari 2023 "
2143
2136
  accessibilityRole="button"
2144
2137
  accessibilityState={
2145
2138
  {
@@ -2159,6 +2152,10 @@ exports[`Test for the calendar component renders a calendar where you can select
2159
2152
  style={
2160
2153
  {
2161
2154
  "alignItems": "center",
2155
+ "borderColor": "#7B93DB",
2156
+ "borderRadius": 21,
2157
+ "borderStyle": "solid",
2158
+ "borderWidth": 1,
2162
2159
  "height": 42,
2163
2160
  "justifyContent": "center",
2164
2161
  "opacity": 1,
@@ -2178,6 +2175,9 @@ exports[`Test for the calendar component renders a calendar where you can select
2178
2175
  "lineHeight": 22.4,
2179
2176
  "marginTop": 4,
2180
2177
  },
2178
+ {
2179
+ "color": "#7B93DB",
2180
+ },
2181
2181
  ]
2182
2182
  }
2183
2183
  >
@@ -2208,7 +2208,7 @@ exports[`Test for the calendar component renders a calendar where you can select
2208
2208
  }
2209
2209
  >
2210
2210
  <View
2211
- accessibilityLabel=" Vrijdag 20 Januari 2023 "
2211
+ accessibilityLabel="today Vrijdag 20 Januari 2023 "
2212
2212
  accessibilityRole="button"
2213
2213
  accessibilityState={
2214
2214
  {
@@ -2228,6 +2228,10 @@ exports[`Test for the calendar component renders a calendar where you can select
2228
2228
  style={
2229
2229
  {
2230
2230
  "alignItems": "center",
2231
+ "borderColor": "#7B93DB",
2232
+ "borderRadius": 21,
2233
+ "borderStyle": "solid",
2234
+ "borderWidth": 1,
2231
2235
  "height": 42,
2232
2236
  "justifyContent": "center",
2233
2237
  "opacity": 1,
@@ -2247,6 +2251,9 @@ exports[`Test for the calendar component renders a calendar where you can select
2247
2251
  "lineHeight": 22.4,
2248
2252
  "marginTop": 4,
2249
2253
  },
2254
+ {
2255
+ "color": "#7B93DB",
2256
+ },
2250
2257
  ]
2251
2258
  }
2252
2259
  >
@@ -5140,8 +5147,7 @@ exports[`Test for the calendar component renders a calendar where you can select
5140
5147
  }
5141
5148
  >
5142
5149
  <View
5143
- accessibilityLabel="today Vrijdag 13 Januari 2023 "
5144
- accessibilityRole="button"
5150
+ accessibilityLabel=" Vrijdag 13 Januari 2023 "
5145
5151
  accessibilityState={
5146
5152
  {
5147
5153
  "disabled": false,
@@ -5160,10 +5166,6 @@ exports[`Test for the calendar component renders a calendar where you can select
5160
5166
  style={
5161
5167
  {
5162
5168
  "alignItems": "center",
5163
- "borderColor": "#7B93DB",
5164
- "borderRadius": 21,
5165
- "borderStyle": "solid",
5166
- "borderWidth": 1,
5167
5169
  "height": 42,
5168
5170
  "justifyContent": "center",
5169
5171
  "opacity": 1,
@@ -5184,7 +5186,7 @@ exports[`Test for the calendar component renders a calendar where you can select
5184
5186
  "marginTop": 4,
5185
5187
  },
5186
5188
  {
5187
- "color": "#7B93DB",
5189
+ "color": "#9AA5B1",
5188
5190
  },
5189
5191
  ]
5190
5192
  }
@@ -5581,7 +5583,8 @@ exports[`Test for the calendar component renders a calendar where you can select
5581
5583
  }
5582
5584
  >
5583
5585
  <View
5584
- accessibilityLabel=" Donderdag 19 Januari 2023 "
5586
+ accessibilityLabel="today Donderdag 19 Januari 2023 "
5587
+ accessibilityRole="button"
5585
5588
  accessibilityState={
5586
5589
  {
5587
5590
  "disabled": false,
@@ -5600,6 +5603,10 @@ exports[`Test for the calendar component renders a calendar where you can select
5600
5603
  style={
5601
5604
  {
5602
5605
  "alignItems": "center",
5606
+ "borderColor": "#7B93DB",
5607
+ "borderRadius": 21,
5608
+ "borderStyle": "solid",
5609
+ "borderWidth": 1,
5603
5610
  "height": 42,
5604
5611
  "justifyContent": "center",
5605
5612
  "opacity": 1,
@@ -5620,7 +5627,7 @@ exports[`Test for the calendar component renders a calendar where you can select
5620
5627
  "marginTop": 4,
5621
5628
  },
5622
5629
  {
5623
- "color": "#9AA5B1",
5630
+ "color": "#7B93DB",
5624
5631
  },
5625
5632
  ]
5626
5633
  }
@@ -5652,7 +5659,8 @@ exports[`Test for the calendar component renders a calendar where you can select
5652
5659
  }
5653
5660
  >
5654
5661
  <View
5655
- accessibilityLabel=" Vrijdag 20 Januari 2023 "
5662
+ accessibilityLabel="today Vrijdag 20 Januari 2023 "
5663
+ accessibilityRole="button"
5656
5664
  accessibilityState={
5657
5665
  {
5658
5666
  "disabled": false,
@@ -5671,6 +5679,10 @@ exports[`Test for the calendar component renders a calendar where you can select
5671
5679
  style={
5672
5680
  {
5673
5681
  "alignItems": "center",
5682
+ "borderColor": "#7B93DB",
5683
+ "borderRadius": 21,
5684
+ "borderStyle": "solid",
5685
+ "borderWidth": 1,
5674
5686
  "height": 42,
5675
5687
  "justifyContent": "center",
5676
5688
  "opacity": 1,
@@ -5691,7 +5703,7 @@ exports[`Test for the calendar component renders a calendar where you can select
5691
5703
  "marginTop": 4,
5692
5704
  },
5693
5705
  {
5694
- "color": "#9AA5B1",
5706
+ "color": "#7B93DB",
5695
5707
  },
5696
5708
  ]
5697
5709
  }
@@ -1,9 +1,14 @@
1
- import { DateTime } from 'luxon';
1
+ import {DateTime} from 'luxon';
2
2
  declare type CalendarProps = {
3
- onDayPress: (day: DateTime) => void;
4
- selected: DateTime;
5
- minDate?: string;
6
- maxDate?: string;
3
+ onDayPress: (day: DateTime) => void;
4
+ selected: DateTime;
5
+ minDate?: string;
6
+ maxDate?: string;
7
7
  };
8
- export declare const Calendar: ({ onDayPress, selected, minDate, maxDate, }: CalendarProps) => JSX.Element;
8
+ export declare const Calendar: ({
9
+ onDayPress,
10
+ selected,
11
+ minDate,
12
+ maxDate,
13
+ }: CalendarProps) => JSX.Element;
9
14
  export {};
@@ -1,7 +1,10 @@
1
- import { DateTime } from 'luxon';
1
+ import {DateTime} from 'luxon';
2
2
  declare type CalendarSelectProps = {
3
- onPressDate: (date: DateTime) => void;
4
- startDate: DateTime;
3
+ onPressDate: (date: DateTime) => void;
4
+ startDate: DateTime;
5
5
  };
6
- declare const CalendarSelect: ({ onPressDate, startDate }: CalendarSelectProps) => JSX.Element;
7
- export { CalendarSelect as CalendarSelect };
6
+ declare const CalendarSelect: ({
7
+ onPressDate,
8
+ startDate,
9
+ }: CalendarSelectProps) => JSX.Element;
10
+ export {CalendarSelect as CalendarSelect};
@@ -1,6 +1,6 @@
1
1
  declare type CancelLinkProps = {
2
- label: string;
3
- onPress: () => void;
2
+ label: string;
3
+ onPress: () => void;
4
4
  };
5
- declare const CancelLink: ({ label, onPress }: CancelLinkProps) => JSX.Element;
6
- export { CancelLink as CancelLink };
5
+ declare const CancelLink: ({label, onPress}: CancelLinkProps) => JSX.Element;
6
+ export {CancelLink as CancelLink};
@@ -1,6 +1,6 @@
1
1
  declare type CheckProps = {
2
- value: boolean;
3
- onToggle: () => void;
2
+ value: boolean;
3
+ onToggle: () => void;
4
4
  };
5
- export declare const Check: ({ value, onToggle }: CheckProps) => JSX.Element;
5
+ export declare const Check: ({value, onToggle}: CheckProps) => JSX.Element;
6
6
  export {};
@@ -1,7 +1,11 @@
1
1
  declare type CheckboxProps = {
2
- value: boolean;
3
- onValueChange: () => void;
4
- label: string;
2
+ value: boolean;
3
+ onValueChange: () => void;
4
+ label: string;
5
5
  };
6
- declare const Checkbox: ({ value, onValueChange, label }: CheckboxProps) => JSX.Element;
7
- export { Checkbox as Checkbox };
6
+ declare const Checkbox: ({
7
+ value,
8
+ onValueChange,
9
+ label,
10
+ }: CheckboxProps) => JSX.Element;
11
+ export {Checkbox as Checkbox};
@@ -1,18 +1,30 @@
1
- import { ImageSourcePropType } from 'react-native';
2
- import { Initials } from '../../../models/initials.model';
3
- import { VisualState } from '../../../types/visual-state.enum';
1
+ import {ImageSourcePropType} from 'react-native';
2
+ import {Initials} from '../../../models/initials.model';
3
+ import {VisualState} from '../../../types/visual-state.enum';
4
4
  declare type ChildListItemProps = {
5
5
  id: string;
6
6
  name: string;
7
7
  label: string;
8
8
  selectable: boolean;
9
9
  isSelected: boolean;
10
- onPressArrow: () => void;
11
- onPressText: () => void;
10
+ onPressArrow: (id: string) => void;
11
+ onPressText: (id: string) => void;
12
12
  onSelect: (id: string) => void;
13
13
  sourceAvatar: ImageSourcePropType | Initials;
14
14
  textTimeTracker: string;
15
15
  visualStateTimeTracker: VisualState;
16
16
  };
17
- declare const ChildListItem: ({ id, name, label, selectable, isSelected, onPressArrow, onPressText, onSelect, sourceAvatar, textTimeTracker, visualStateTimeTracker, }: ChildListItemProps) => JSX.Element;
18
- export { ChildListItem as ChildListItem };
17
+ declare const ChildListItem: ({
18
+ id,
19
+ name,
20
+ label,
21
+ selectable,
22
+ isSelected,
23
+ onPressArrow,
24
+ onPressText,
25
+ onSelect,
26
+ sourceAvatar,
27
+ textTimeTracker,
28
+ visualStateTimeTracker,
29
+ }: ChildListItemProps) => JSX.Element;
30
+ export {ChildListItem as ChildListItem};
@@ -16,8 +16,8 @@ type ChildListItemProps = {
16
16
  label: string;
17
17
  selectable: boolean;
18
18
  isSelected: boolean;
19
- onPressArrow: () => void;
20
- onPressText: () => void;
19
+ onPressArrow: (id: string) => void;
20
+ onPressText: (id: string) => void;
21
21
  onSelect: (id: string) => void;
22
22
  sourceAvatar: ImageSourcePropType | Initials;
23
23
  textTimeTracker: string;
@@ -46,7 +46,7 @@ const ChildListItem = ({
46
46
  );
47
47
 
48
48
  const onPressSelectable = () => {
49
- selectable ? onSelect(id) : onPressText();
49
+ selectable ? onSelect(id) : onPressText(id);
50
50
  };
51
51
 
52
52
  return (
@@ -72,7 +72,10 @@ const ChildListItem = ({
72
72
  </Pressable>
73
73
  <>
74
74
  {!selectable ? (
75
- <Pressable onPress={onPressArrow} style={styles.iconContainer}>
75
+ <Pressable
76
+ onPress={(id) => onPressArrow}
77
+ style={styles.iconContainer}
78
+ >
76
79
  <ChevronRightIcon />
77
80
  </Pressable>
78
81
  ) : null}
@@ -1,9 +1,15 @@
1
1
  declare type ContactItemProps = {
2
- name: string;
3
- firstname: string;
4
- label: string;
5
- onPress?: () => void;
6
- isBlocked?: boolean;
2
+ name: string;
3
+ firstname: string;
4
+ label: string;
5
+ onPress?: () => void;
6
+ isBlocked?: boolean;
7
7
  };
8
- declare const ContactItem: ({ name, firstname, label, onPress, isBlocked, }: ContactItemProps) => JSX.Element;
9
- export { ContactItem as ContactItem };
8
+ declare const ContactItem: ({
9
+ name,
10
+ firstname,
11
+ label,
12
+ onPress,
13
+ isBlocked,
14
+ }: ContactItemProps) => JSX.Element;
15
+ export {ContactItem as ContactItem};
@@ -1,6 +1,9 @@
1
1
  declare type ContactRoleProps = {
2
- name: string;
3
- role?: string;
2
+ name: string;
3
+ role?: string;
4
4
  };
5
- export declare const ContactRole: ({ name, role }: ContactRoleProps) => JSX.Element;
5
+ export declare const ContactRole: ({
6
+ name,
7
+ role,
8
+ }: ContactRoleProps) => JSX.Element;
6
9
  export {};
@@ -1,7 +1,10 @@
1
- import { DateTime } from 'luxon';
1
+ import {DateTime} from 'luxon';
2
2
  declare type DateInputProps = {
3
- onPress: () => void;
4
- value: DateTime;
3
+ onPress: () => void;
4
+ value: DateTime;
5
5
  };
6
- export declare const DateInput: ({ onPress, value }: DateInputProps) => JSX.Element;
6
+ export declare const DateInput: ({
7
+ onPress,
8
+ value,
9
+ }: DateInputProps) => JSX.Element;
7
10
  export {};
@@ -1,8 +1,8 @@
1
- import { DateTime } from 'luxon';
1
+ import {DateTime} from 'luxon';
2
2
  declare type DayProps = {
3
- date: DateTime;
4
- onSelect: (date: DateTime) => void;
5
- isSelected?: boolean;
3
+ date: DateTime;
4
+ onSelect: (date: DateTime) => void;
5
+ isSelected?: boolean;
6
6
  };
7
- declare const Day: ({ onSelect, date, isSelected }: DayProps) => JSX.Element;
8
- export { Day as Day };
7
+ declare const Day: ({onSelect, date, isSelected}: DayProps) => JSX.Element;
8
+ export {Day as Day};
@@ -1,8 +1,12 @@
1
- import { DateTime } from 'luxon';
1
+ import {DateTime} from 'luxon';
2
2
  declare type DaySelectProps = {
3
- onSelectDate: (date: DateTime) => void;
4
- startDate: DateTime;
5
- selectedDate: DateTime;
3
+ onSelectDate: (date: DateTime) => void;
4
+ startDate: DateTime;
5
+ selectedDate: DateTime;
6
6
  };
7
- declare const DaySelect: ({ onSelectDate, selectedDate, startDate }: DaySelectProps) => JSX.Element;
8
- export { DaySelect as DaySelect };
7
+ declare const DaySelect: ({
8
+ onSelectDate,
9
+ selectedDate,
10
+ startDate,
11
+ }: DaySelectProps) => JSX.Element;
12
+ export {DaySelect as DaySelect};
@@ -1,6 +1,9 @@
1
1
  declare type DefaultSelectProps = {
2
- label: string;
3
- onPress: () => void;
2
+ label: string;
3
+ onPress: () => void;
4
4
  };
5
- export declare const DefaultSelect: ({ label, onPress }: DefaultSelectProps) => JSX.Element;
5
+ export declare const DefaultSelect: ({
6
+ label,
7
+ onPress,
8
+ }: DefaultSelectProps) => JSX.Element;
6
9
  export {};
@@ -1,5 +1,7 @@
1
1
  declare type DepartmentLogoProps = {
2
- department: string;
2
+ department: string;
3
3
  };
4
- declare const DepartmentLogo: ({ department }: DepartmentLogoProps) => JSX.Element;
5
- export { DepartmentLogo as DepartmentLogo };
4
+ declare const DepartmentLogo: ({
5
+ department,
6
+ }: DepartmentLogoProps) => JSX.Element;
7
+ export {DepartmentLogo as DepartmentLogo};
@@ -1,10 +1,17 @@
1
1
  declare 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,9 +1,12 @@
1
1
  declare type FilterTab = {
2
- tabItem: {
3
- value: string;
4
- label: string;
5
- }[];
6
- filterValue: (value: string) => void;
2
+ tabItem: {
3
+ value: string;
4
+ label: string;
5
+ }[];
6
+ filterValue: (value: string) => void;
7
7
  };
8
- export declare const FilterTab: ({ tabItem, filterValue }: FilterTab) => JSX.Element;
8
+ export declare const FilterTab: ({
9
+ tabItem,
10
+ filterValue,
11
+ }: FilterTab) => JSX.Element;
9
12
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  declare type FooterProps = {
3
- child: React.ReactNode;
3
+ child: React.ReactNode;
4
4
  };
5
- declare const Footer: ({ child }: FooterProps) => JSX.Element;
6
- export { Footer as Footer };
5
+ declare const Footer: ({child}: FooterProps) => JSX.Element;
6
+ export {Footer as Footer};
@@ -1,8 +1,11 @@
1
- import { ImageSourcePropType } from 'react-native';
2
- import { BubbleAlignment } from '../../../types/bubble-alignment.enum';
1
+ import {ImageSourcePropType} from 'react-native';
2
+ import {BubbleAlignment} from '../../../types/bubble-alignment.enum';
3
3
  declare type ImageBubbleProps = {
4
- source: ImageSourcePropType;
5
- bubbleAlignment: BubbleAlignment;
4
+ source: ImageSourcePropType;
5
+ bubbleAlignment: BubbleAlignment;
6
6
  };
7
- declare const ImageBubble: ({ source, bubbleAlignment }: ImageBubbleProps) => JSX.Element;
8
- export { ImageBubble as ImageBubble };
7
+ declare const ImageBubble: ({
8
+ source,
9
+ bubbleAlignment,
10
+ }: ImageBubbleProps) => JSX.Element;
11
+ export {ImageBubble as ImageBubble};
@@ -1,6 +1,9 @@
1
1
  declare type IncrementInputProps = {
2
- value: number;
3
- onPress: (number: number) => void;
2
+ value: number;
3
+ onPress: (number: number) => void;
4
4
  };
5
- export declare const IncrementInput: ({ value, onPress }: IncrementInputProps) => JSX.Element;
5
+ export declare const IncrementInput: ({
6
+ value,
7
+ onPress,
8
+ }: IncrementInputProps) => JSX.Element;
6
9
  export {};
@@ -1,6 +1,6 @@
1
1
  declare 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,6 +1,6 @@
1
1
  declare type logoProps = {
2
- colorIsWhite?: boolean;
3
- big?: boolean;
2
+ colorIsWhite?: boolean;
3
+ big?: boolean;
4
4
  };
5
- declare const Logo: ({ colorIsWhite, big }: logoProps) => JSX.Element;
6
- export { Logo as Logo };
5
+ declare const Logo: ({colorIsWhite, big}: logoProps) => JSX.Element;
6
+ export {Logo as Logo};