@tactics/toddle-styleguide 0.1.4 → 0.1.6

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 (199) hide show
  1. package/App.tsx +32 -5
  2. package/index.d.ts +8 -4
  3. package/index.tsx +48 -40
  4. package/package.json +1 -1
  5. package/src/components/atoms/avatar/avatar.component.d.ts +7 -7
  6. package/src/components/atoms/blocked-message/blocked-message.component.d.ts +2 -4
  7. package/src/components/atoms/button/button.component.d.ts +6 -11
  8. package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +33 -21
  9. package/src/components/atoms/calendar/calendar.component.d.ts +6 -11
  10. package/src/components/atoms/calendar-select/calendar-select.component.d.ts +5 -8
  11. package/src/components/atoms/cancel-link/cancel-link.component.d.ts +4 -4
  12. package/src/components/atoms/check-switch/check-switch.component.d.ts +3 -3
  13. package/src/components/atoms/checkbox/checkbox.component.d.ts +5 -9
  14. package/src/components/atoms/child-list-item/child-list-item.component.d.ts +16 -28
  15. package/src/components/atoms/child-list-item/child-list-item.component.tsx +7 -4
  16. package/src/components/atoms/contact-item/contact-item.component.d.ts +7 -13
  17. package/src/components/atoms/contact-role/contact-role.component.d.ts +3 -6
  18. package/src/components/atoms/date-input/date-input.component.d.ts +4 -7
  19. package/src/components/atoms/day-select/components/day/day.component.d.ts +6 -6
  20. package/src/components/atoms/day-select/day-select.component.d.ts +6 -10
  21. package/src/components/atoms/default-select/__snapshots__/default-select.test.js.snap +102 -0
  22. package/src/components/atoms/default-select/default-select.component.d.ts +6 -0
  23. package/src/components/atoms/default-select/default-select.component.tsx +33 -0
  24. package/src/components/atoms/default-select/default-select.preview.d.ts +1 -0
  25. package/src/components/atoms/default-select/default-select.preview.tsx +34 -0
  26. package/src/components/atoms/default-select/default-select.styles.d.ts +20 -0
  27. package/src/components/atoms/default-select/default-select.styles.js +23 -0
  28. package/src/components/atoms/default-select/default-select.test.js +17 -0
  29. package/src/components/atoms/department_logo/department-logo.component.d.ts +3 -5
  30. package/src/components/atoms/filter-range/filter-range.component.d.ts +7 -14
  31. package/src/components/atoms/filter-tab/filter-tab.component.d.ts +6 -9
  32. package/src/components/atoms/footer/__snapshots__/footer.test.js.snap +68 -0
  33. package/src/components/atoms/footer/footer.component.d.ts +6 -0
  34. package/src/components/atoms/footer/footer.component.tsx +19 -0
  35. package/src/components/atoms/footer/footer.preview.d.ts +1 -0
  36. package/src/components/atoms/footer/footer.preview.tsx +29 -0
  37. package/src/components/atoms/footer/footer.styles.d.ts +15 -0
  38. package/src/components/atoms/footer/footer.styles.js +21 -0
  39. package/src/components/atoms/footer/footer.test.js +13 -0
  40. package/src/components/atoms/image-bubble/image-bubble.component.d.ts +6 -9
  41. package/src/components/atoms/increment-input/increment-input.component.d.ts +3 -6
  42. package/src/components/atoms/info/info.component.d.ts +4 -4
  43. package/src/components/atoms/logo/logo.component.d.ts +4 -4
  44. package/src/components/atoms/message-input/__snapshots__/message-input.test.js.snap +699 -0
  45. package/src/components/atoms/message-input/message-input.component.d.ts +11 -0
  46. package/src/components/atoms/message-input/message-input.component.tsx +46 -0
  47. package/src/components/atoms/message-input/message-input.preview.d.ts +1 -0
  48. package/src/components/atoms/message-input/message-input.preview.tsx +41 -0
  49. package/src/components/atoms/message-input/message-input.styles.d.ts +26 -0
  50. package/src/components/atoms/message-input/message-input.styles.js +29 -0
  51. package/src/components/atoms/message-input/message-input.test.js +67 -0
  52. package/src/components/atoms/password-input/__snapshots__/password-input.test.js.snap +396 -0
  53. package/src/components/atoms/password-input/password-input.component.d.ts +9 -0
  54. package/src/components/atoms/password-input/password-input.component.tsx +51 -0
  55. package/src/components/atoms/password-input/password-input.preview.d.ts +1 -0
  56. package/src/components/atoms/password-input/password-input.preview.tsx +60 -0
  57. package/src/components/atoms/password-input/password-input.styles.d.ts +28 -0
  58. package/src/components/atoms/password-input/password-input.styles.js +32 -0
  59. package/src/components/atoms/password-input/password-input.test.js +46 -0
  60. package/src/components/atoms/pill/pill.component.d.ts +5 -5
  61. package/src/components/atoms/popover/components/backdrop/backdrop.component.d.ts +3 -3
  62. package/src/components/atoms/popover/components/foreground/foreground.component.d.ts +4 -4
  63. package/src/components/atoms/popover/components/modal/close/close.component.d.ts +4 -4
  64. package/src/components/atoms/popover/components/modal/heading/heading.component.d.ts +4 -4
  65. package/src/components/atoms/popover/components/modal/modal.component.d.ts +8 -15
  66. package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.d.ts +3 -5
  67. package/src/components/atoms/popover/popover.component.d.ts +7 -13
  68. package/src/components/atoms/pressable-icon/pressable-icon.component.d.ts +5 -10
  69. package/src/components/atoms/quick-filter/quick-filter.component.d.ts +8 -14
  70. package/src/components/atoms/search/search.component.d.ts +6 -10
  71. package/src/components/atoms/search/search.preview.d.ts +1 -1
  72. package/src/components/atoms/select-link/__snapshots__/select-link.test.js.snap +45 -0
  73. package/src/components/atoms/select-link/select-link.component.d.ts +6 -0
  74. package/src/components/atoms/select-link/select-link.component.tsx +26 -0
  75. package/src/components/atoms/select-link/select-link.preview.d.ts +1 -0
  76. package/src/components/atoms/select-link/select-link.preview.tsx +20 -0
  77. package/src/components/atoms/select-link/select-link.styles.d.ts +17 -0
  78. package/src/components/atoms/select-link/select-link.styles.js +20 -0
  79. package/src/components/atoms/select-link/select-link.test.js +17 -0
  80. package/src/components/atoms/select-list-item/__snapshots__/select-list-item.test.js.snap +193 -1
  81. package/src/components/atoms/select-list-item/select-list-item.component.d.ts +7 -13
  82. package/src/components/atoms/select-list-item/select-list-item.test.js +1 -1
  83. package/src/components/atoms/select-picker/select-picker.component.d.ts +8 -13
  84. package/src/components/atoms/snackbar/snackbar.component.d.ts +5 -5
  85. package/src/components/atoms/split-container/__snapshots__/split-container.test.js.snap +247 -0
  86. package/src/components/atoms/split-container/split-container.component.d.ts +7 -0
  87. package/src/components/atoms/split-container/split-container.component.tsx +27 -0
  88. package/src/components/atoms/split-container/split-container.preview.d.ts +1 -0
  89. package/src/components/atoms/split-container/split-container.preview.tsx +62 -0
  90. package/src/components/atoms/{form-actions/form-action.styles.d.ts → split-container/split-container.styles.d.ts} +1 -1
  91. package/src/components/atoms/{form-actions/form-action.styles.js → split-container/split-container.styles.js} +1 -1
  92. package/src/components/atoms/split-container/split-container.test.js +45 -0
  93. package/src/components/atoms/swipe/swipe.component.d.ts +3 -3
  94. package/src/components/atoms/tag/tag.component.d.ts +8 -13
  95. package/src/components/atoms/text-bubble/__snapshots__/text-bubble.test.js.snap +2187 -196
  96. package/src/components/atoms/text-bubble/components/failed-to-send/__snapshots__/failed-bubble.test.js.snap +330 -0
  97. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.component.d.ts +7 -0
  98. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.component.tsx +69 -0
  99. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.styles.d.ts +39 -0
  100. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.styles.js +42 -0
  101. package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.test.js +19 -0
  102. package/src/components/atoms/text-bubble/components/send-bubble/__snapshots__/send-text-bubble.test.js.snap +1657 -0
  103. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.component.d.ts +11 -0
  104. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.component.tsx +78 -0
  105. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.styles.d.ts +75 -0
  106. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.styles.js +67 -0
  107. package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.test.js +96 -0
  108. package/src/components/atoms/text-bubble/components/timestamp/timestamp.component.d.ts +6 -0
  109. package/src/components/atoms/text-bubble/components/timestamp/timestamp.component.tsx +20 -0
  110. package/src/components/atoms/text-bubble/components/timestamp/timestamp.styles.d.ts +10 -0
  111. package/src/components/atoms/text-bubble/components/timestamp/timestamp.styles.js +12 -0
  112. package/src/components/atoms/text-bubble/text-bubble.component.d.ts +13 -8
  113. package/src/components/atoms/text-bubble/text-bubble.component.tsx +40 -7
  114. package/src/components/atoms/text-bubble/text-bubble.preview.tsx +60 -5
  115. package/src/components/atoms/text-bubble/text-bubble.styles.d.ts +22 -52
  116. package/src/components/atoms/text-bubble/text-bubble.styles.js +18 -47
  117. package/src/components/atoms/text-bubble/text-bubble.test.js +49 -0
  118. package/src/components/atoms/text-input/text-input.component.d.ts +6 -10
  119. package/src/components/atoms/text-input/text-input.preview.d.ts +1 -1
  120. package/src/components/atoms/time-tracker/time-tracker.component.d.ts +5 -8
  121. package/src/components/atoms/timeline/timeline.component.d.ts +3 -6
  122. package/src/components/atoms/wide-button/wide-button.component.d.ts +6 -11
  123. package/src/context/theme.context.d.ts +42 -42
  124. package/src/icons/index.d.ts +52 -103
  125. package/src/icons/outline/calendar/calendar.icon.d.ts +2 -2
  126. package/src/icons/outline/chat/chat.icon.d.ts +2 -2
  127. package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +2 -2
  128. package/src/icons/outline/check-circle/check-circle.icon.d.ts +2 -2
  129. package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +2 -2
  130. package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +2 -2
  131. package/src/icons/outline/clock/clock.icon.d.ts +2 -2
  132. package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +2 -2
  133. package/src/icons/outline/cross/cross.icon.d.ts +2 -2
  134. package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +2 -2
  135. package/src/icons/outline/document-text/document-text.icon.d.ts +2 -2
  136. package/src/icons/outline/exclamation/exclamation.icon.d.ts +2 -2
  137. package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +2 -2
  138. package/src/icons/outline/eye/eye.icon.d.ts +2 -2
  139. package/src/icons/outline/eye-off/eye-off.icon.d.ts +2 -0
  140. package/src/icons/outline/eye-off/eye-off.icon.tsx +20 -0
  141. package/src/icons/outline/filter/filter.icon.d.ts +2 -2
  142. package/src/icons/outline/information-circle/information-circle.icon.d.ts +2 -2
  143. package/src/icons/outline/logout/logout.icon.d.ts +2 -2
  144. package/src/icons/outline/mail/mail.icon.d.ts +2 -2
  145. package/src/icons/outline/mail-open/mail-open.icon.d.ts +2 -2
  146. package/src/icons/outline/menu/menu.icon.d.ts +2 -2
  147. package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +2 -2
  148. package/src/icons/outline/office-building/office-building.icon.d.ts +2 -2
  149. package/src/icons/outline/outline-default.preview.tsx +1 -0
  150. package/src/icons/outline/outline-grey.preview.tsx +1 -0
  151. package/src/icons/outline/outline-white.preview.tsx +1 -0
  152. package/src/icons/outline/outline.d.ts +40 -95
  153. package/src/icons/outline/outline.tsx +2 -0
  154. package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +2 -2
  155. package/src/icons/outline/paperclip/paperclip.icon.d.ts +2 -2
  156. package/src/icons/outline/pencil/pencil.icon.d.ts +2 -2
  157. package/src/icons/outline/phone/phone.icon.d.ts +2 -2
  158. package/src/icons/outline/plus/plus.icon.d.ts +2 -2
  159. package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +2 -2
  160. package/src/icons/outline/qrcode/qrcode.icon.d.ts +2 -2
  161. package/src/icons/outline/refresh/refresh.icon.d.ts +2 -2
  162. package/src/icons/outline/search/search.icon.d.ts +2 -2
  163. package/src/icons/outline/selector/selector.icon.d.ts +2 -2
  164. package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -2
  165. package/src/icons/outline/status-online/status-online.icon.d.ts +2 -2
  166. package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +2 -2
  167. package/src/icons/outline/trash/trash.icon.d.ts +2 -2
  168. package/src/icons/outline/user/user.icon.d.ts +2 -2
  169. package/src/icons/outline/user-group/user-group.icon.d.ts +2 -2
  170. package/src/icons/outline/users/users.icon.d.ts +2 -2
  171. package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -2
  172. package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -2
  173. package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +2 -2
  174. package/src/icons/solid/pencil/pencil-solid.icon.d.ts +2 -2
  175. package/src/icons/solid/phone/phone-solid.icon.d.ts +2 -2
  176. package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -2
  177. package/src/icons/solid/solid.d.ts +8 -18
  178. package/src/icons/solid/status-online/status-online-solid.icon.d.ts +2 -2
  179. package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -2
  180. package/src/models/initials.model.d.ts +5 -5
  181. package/src/theme/font/font.d.ts +70 -70
  182. package/src/theme/font/index.d.ts +3 -3
  183. package/src/theme/provider/index.d.ts +3 -3
  184. package/src/theme/provider/parent.theme.d.ts +40 -40
  185. package/src/theme/provider/staff-member.theme.d.ts +40 -40
  186. package/src/theme/scale/index.d.ts +10 -10
  187. package/src/types/bubble-alignment.enum.d.ts +2 -2
  188. package/src/types/icontype.type.d.ts +1 -1
  189. package/src/types/keyboard-types.enum.d.ts +7 -7
  190. package/src/types/size.enum.d.ts +3 -3
  191. package/src/types/visual-state.enum.d.ts +4 -4
  192. package/src/util/date.d.ts +2 -1
  193. package/src/util/date.tsx +10 -0
  194. package/src/components/atoms/form-actions/__snapshots__/form-action.test.js.snap +0 -176
  195. package/src/components/atoms/form-actions/form-action.component.d.ts +0 -7
  196. package/src/components/atoms/form-actions/form-action.component.tsx +0 -27
  197. package/src/components/atoms/form-actions/form-action.preview.d.ts +0 -1
  198. package/src/components/atoms/form-actions/form-action.preview.tsx +0 -29
  199. package/src/components/atoms/form-actions/form-action.test.js +0 -32
package/App.tsx CHANGED
@@ -33,7 +33,7 @@ import {CheckboxPreview} from './src/components/atoms/checkbox/checkbox.preview'
33
33
  import {CheckPreview} from './src/components/atoms/check-switch/check-switch.preview';
34
34
  import {WideButtonPreview} from './src/components/atoms/wide-button/wide-button.preview';
35
35
  import {PressableIconPreview} from './src/components/atoms/pressable-icon/pressable-icon.preview';
36
- import {FormActionPreview} from './src/components/atoms/form-actions/form-action.preview';
36
+ import {SplitContainerPreview} from './src/components/atoms/split-container/split-container.preview';
37
37
  import {CalendarPreview} from './src/components/atoms/calendar/calendar.preview';
38
38
  import {QuickFilterPreview} from './src/components/atoms/quick-filter/quick-filter.prevriew';
39
39
  import {DateInputPreview} from './src/components/atoms/date-input/date-input.preview';
@@ -51,6 +51,10 @@ import {SearchPreview} from './src/components/atoms/search/search.preview';
51
51
  import {BlockedMessagePreview} from './src/components/atoms/blocked-message/blocked-message.preview';
52
52
  import {DepartmentLogoPreview} from './src/components/atoms/department_logo/department-logo.preview';
53
53
  import {CalendarSelectPreview} from './src/components/atoms/calendar-select/calendar-select.preview';
54
+ import {FooterPreview} from './src/components/atoms/footer/footer.preview';
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';
54
58
 
55
59
  const Stack = createNativeStackNavigator();
56
60
 
@@ -132,8 +136,8 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
132
136
  />
133
137
  <ReactBtn title="Tag" onPress={() => navigation.push('tag')} />
134
138
  <ReactBtn
135
- title="formAction"
136
- onPress={() => navigation.push('form-action')}
139
+ title="split-container"
140
+ onPress={() => navigation.push('split-container')}
137
141
  />
138
142
  <ReactBtn
139
143
  title="Select Picker"
@@ -188,6 +192,19 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
188
192
  title="calendarSelect"
189
193
  onPress={() => navigation.push('calendar-select')}
190
194
  />
195
+ <ReactBtn title="footer" onPress={() => navigation.push('footer')} />
196
+ <ReactBtn
197
+ title="Default select"
198
+ onPress={() => navigation.push('default-select')}
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
+ />
191
208
  </ScrollView>
192
209
  );
193
210
  };
@@ -263,8 +280,8 @@ function App() {
263
280
  {() => <TimeTrackerPreview />}
264
281
  </Stack.Screen>
265
282
  <Stack.Screen name="tag">{() => <TagPreview />}</Stack.Screen>
266
- <Stack.Screen name="form-action">
267
- {() => <FormActionPreview />}
283
+ <Stack.Screen name="split-container">
284
+ {() => <SplitContainerPreview />}
268
285
  </Stack.Screen>
269
286
  <Stack.Screen name="select-picker">
270
287
  {() => <SelectPickerPreview />}
@@ -308,6 +325,16 @@ function App() {
308
325
  <Stack.Screen name="calendar-select">
309
326
  {() => <CalendarSelectPreview />}
310
327
  </Stack.Screen>
328
+ <Stack.Screen name="password-input">
329
+ {() => <PasswordInputPreview />}
330
+ </Stack.Screen>
331
+ <Stack.Screen name="footer">{() => <FooterPreview />}</Stack.Screen>
332
+ <Stack.Screen name="default-select">
333
+ {() => <DefaulSelectPreview />}
334
+ </Stack.Screen>
335
+ <Stack.Screen name="message-input">
336
+ {() => <MessageInputPreview />}
337
+ </Stack.Screen>
311
338
  </Stack.Navigator>
312
339
  </NavigationContainer>
313
340
  </ThemeCtx.Provider>
package/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import { Checkbox } from './src/components/atoms/checkbox/checkbox.component';
8
8
  import { ChildListItem } from './src/components/atoms/child-list-item/child-list-item.component';
9
9
  import { ContactItem } from './src/components/atoms/contact-item/contact-item.component';
10
10
  import { FilterTab } from './src/components/atoms/filter-tab/filter-tab.component';
11
- import { FormAction } from './src/components/atoms/form-actions/form-action.component';
11
+ import { SplitContainer } from './src/components/atoms/split-container/split-container.component';
12
12
  import { ImageBubble } from './src/components/atoms/image-bubble/image-bubble.component';
13
13
  import { Info } from './src/components/atoms/info/info.component';
14
14
  import { Pill } from './src/components/atoms/pill/pill.component';
@@ -28,13 +28,17 @@ import { IncrementInput } from './src/components/atoms/increment-input/increment
28
28
  import { Swipe } from './src/components/atoms/swipe/swipe.component';
29
29
  import { Logo } from './src/components/atoms/logo/logo.component';
30
30
  import { DaySelect } from './src/components/atoms/day-select/day-select.component';
31
- import { Search } from "./src/components/atoms/search/search.component";
31
+ import { Search } from './src/components/atoms/search/search.component';
32
32
  import { BlockedMessage } from './src/components/atoms/blocked-message/blocked-message.component';
33
33
  import { DepartmentLogo } from './src/components/atoms/department_logo/department-logo.component';
34
34
  import { ContactRole } from './src/components/atoms/contact-role/contact-role.component';
35
35
  import { Timeline } from './src/components/atoms/timeline/timeline.component';
36
36
  import { SelectPicker } from './src/components/atoms/select-picker/select-picker.component';
37
- import { CalendarSelect } from "./src/components/atoms/calendar-select/calendar-select.component";
37
+ import { CalendarSelect } from './src/components/atoms/calendar-select/calendar-select.component';
38
+ import { DateInput } from './src/components/atoms/date-input/date-input.component';
39
+ import { FilterRange } from './src/components/atoms/filter-range/filter-range.component';
40
+ import { Footer } from './src/components/atoms/footer/footer.component';
41
+ import { DefaultSelect } from './src/components/atoms/default-select/default-select.component';
38
42
  import { BubbleAlignment } from './src/types/bubble-alignment.enum';
39
43
  import { KeyBoardTypes } from './src/types/keyboard-types.enum';
40
44
  import { Size } from './src/types/size.enum';
@@ -42,4 +46,4 @@ import { VisualState } from './src/types/visual-state.enum';
42
46
  import { Initials } from './src/models/initials.model';
43
47
  import { ThemeCtx } from './src/context/theme.context';
44
48
  import { Scale } from './src/theme/scale/index';
45
- export { Initials, BubbleAlignment, KeyBoardTypes, Size, Scale, VisualState, ThemeCtx, Avatar, Button, CancelLink, Check, Checkbox, ChildListItem, ContactItem, FilterTab, FormAction, ImageBubble, Info, Pill, Popover, PressableIcon, QuickFilter, Search, SelectListItem, Snackbar, Tag, TextBubble, TextInput, TimeTracker, WideButton, Icon, Calendar, IncrementInput, Swipe, Logo, DaySelect, BlockedMessage, DepartmentLogo, ContactRole, Timeline, SelectPicker, CalendarSelect };
49
+ export { Initials, BubbleAlignment, KeyBoardTypes, Size, Scale, VisualState, ThemeCtx, Avatar, Button, CancelLink, Check, Checkbox, ChildListItem, ContactItem, FilterTab, SplitContainer, ImageBubble, Info, Pill, Popover, PressableIcon, QuickFilter, Search, SelectListItem, Snackbar, Tag, TextBubble, TextInput, TimeTracker, WideButton, Icon, Calendar, IncrementInput, Swipe, Logo, DaySelect, BlockedMessage, DepartmentLogo, ContactRole, Timeline, SelectPicker, CalendarSelect, DateInput, FilterRange, Footer, DefaultSelect, };
package/index.tsx CHANGED
@@ -16,7 +16,7 @@ import {Checkbox} from './src/components/atoms/checkbox/checkbox.component';
16
16
  import {ChildListItem} from './src/components/atoms/child-list-item/child-list-item.component';
17
17
  import {ContactItem} from './src/components/atoms/contact-item/contact-item.component';
18
18
  import {FilterTab} from './src/components/atoms/filter-tab/filter-tab.component';
19
- import {FormAction} from './src/components/atoms/form-actions/form-action.component';
19
+ import {SplitContainer} from './src/components/atoms/split-container/split-container.component';
20
20
  import {ImageBubble} from './src/components/atoms/image-bubble/image-bubble.component';
21
21
  import {Info} from './src/components/atoms/info/info.component';
22
22
  import {Pill} from './src/components/atoms/pill/pill.component';
@@ -36,13 +36,17 @@ import {IncrementInput} from './src/components/atoms/increment-input/increment-i
36
36
  import {Swipe} from './src/components/atoms/swipe/swipe.component';
37
37
  import {Logo} from './src/components/atoms/logo/logo.component';
38
38
  import {DaySelect} from './src/components/atoms/day-select/day-select.component';
39
- import {Search} from "./src/components/atoms/search/search.component";
39
+ import {Search} from './src/components/atoms/search/search.component';
40
40
  import {BlockedMessage} from './src/components/atoms/blocked-message/blocked-message.component';
41
41
  import {DepartmentLogo} from './src/components/atoms/department_logo/department-logo.component';
42
42
  import {ContactRole} from './src/components/atoms/contact-role/contact-role.component';
43
43
  import {Timeline} from './src/components/atoms/timeline/timeline.component';
44
44
  import {SelectPicker} from './src/components/atoms/select-picker/select-picker.component';
45
- import {CalendarSelect} from "./src/components/atoms/calendar-select/calendar-select.component";
45
+ import {CalendarSelect} from './src/components/atoms/calendar-select/calendar-select.component';
46
+ import {DateInput} from './src/components/atoms/date-input/date-input.component';
47
+ import {FilterRange} from './src/components/atoms/filter-range/filter-range.component';
48
+ import {Footer} from './src/components/atoms/footer/footer.component';
49
+ import {DefaultSelect} from './src/components/atoms/default-select/default-select.component';
46
50
 
47
51
  // Exports of enums
48
52
  import {BubbleAlignment} from './src/types/bubble-alignment.enum';
@@ -60,46 +64,50 @@ import {ThemeCtx} from './src/context/theme.context';
60
64
  import {Scale} from './src/theme/scale/index';
61
65
 
62
66
  export {
63
- Initials,
64
- BubbleAlignment,
65
- KeyBoardTypes,
66
- Size,
67
- Scale,
68
- VisualState,
69
- ThemeCtx,
70
- Avatar,
71
- Button,
72
- CancelLink,
73
- Check,
74
- Checkbox,
75
- ChildListItem,
76
- ContactItem,
77
- FilterTab,
78
- FormAction,
79
- ImageBubble,
80
- Info,
81
- Pill,
82
- Popover,
83
- PressableIcon,
84
- QuickFilter,
85
- Search,
86
- SelectListItem,
87
- Snackbar,
88
- Tag,
89
- TextBubble,
90
- TextInput,
91
- TimeTracker,
92
- WideButton,
93
- Icon,
94
- Calendar,
95
- IncrementInput,
96
- Swipe,
97
- Logo,
98
- DaySelect,
67
+ Initials,
68
+ BubbleAlignment,
69
+ KeyBoardTypes,
70
+ Size,
71
+ Scale,
72
+ VisualState,
73
+ ThemeCtx,
74
+ Avatar,
75
+ Button,
76
+ CancelLink,
77
+ Check,
78
+ Checkbox,
79
+ ChildListItem,
80
+ ContactItem,
81
+ FilterTab,
82
+ SplitContainer,
83
+ ImageBubble,
84
+ Info,
85
+ Pill,
86
+ Popover,
87
+ PressableIcon,
88
+ QuickFilter,
89
+ Search,
90
+ SelectListItem,
91
+ Snackbar,
92
+ Tag,
93
+ TextBubble,
94
+ TextInput,
95
+ TimeTracker,
96
+ WideButton,
97
+ Icon,
98
+ Calendar,
99
+ IncrementInput,
100
+ Swipe,
101
+ Logo,
102
+ DaySelect,
99
103
  BlockedMessage,
100
104
  DepartmentLogo,
101
105
  ContactRole,
102
106
  Timeline,
103
107
  SelectPicker,
104
- CalendarSelect
108
+ CalendarSelect,
109
+ DateInput,
110
+ FilterRange,
111
+ Footer,
112
+ DefaultSelect,
105
113
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
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,7 +1,5 @@
1
1
  declare type BlockedMessageProps = {
2
- message: string;
2
+ message: string;
3
3
  };
4
- export declare const BlockedMessage: ({
5
- message,
6
- }: BlockedMessageProps) => JSX.Element;
4
+ export declare const BlockedMessage: ({ message }: BlockedMessageProps) => JSX.Element;
7
5
  export {};
@@ -1,13 +1,8 @@
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: ({
8
- label,
9
- icon,
10
- disabled,
11
- onPress,
12
- }: ButtonProps) => JSX.Element;
13
- export {Button as Button};
7
+ declare const Button: ({ label, icon, disabled, onPress }: ButtonProps) => JSX.Element;
8
+ export { Button as Button };
@@ -1501,7 +1501,7 @@ exports[`Test for the calendar component renders a calendar where you can select
1501
1501
  }
1502
1502
  >
1503
1503
  <View
1504
- accessibilityLabel="today Dinsdag 10 Januari 2023 "
1504
+ accessibilityLabel=" Dinsdag 10 Januari 2023 "
1505
1505
  accessibilityRole="button"
1506
1506
  accessibilityState={
1507
1507
  {
@@ -1521,10 +1521,6 @@ exports[`Test for the calendar component renders a calendar where you can select
1521
1521
  style={
1522
1522
  {
1523
1523
  "alignItems": "center",
1524
- "borderColor": "#7B93DB",
1525
- "borderRadius": 21,
1526
- "borderStyle": "solid",
1527
- "borderWidth": 1,
1528
1524
  "height": 42,
1529
1525
  "justifyContent": "center",
1530
1526
  "opacity": 1,
@@ -1544,9 +1540,6 @@ exports[`Test for the calendar component renders a calendar where you can select
1544
1540
  "lineHeight": 22.4,
1545
1541
  "marginTop": 4,
1546
1542
  },
1547
- {
1548
- "color": "#7B93DB",
1549
- },
1550
1543
  ]
1551
1544
  }
1552
1545
  >
@@ -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
  >
@@ -4927,8 +4934,7 @@ exports[`Test for the calendar component renders a calendar where you can select
4927
4934
  }
4928
4935
  >
4929
4936
  <View
4930
- accessibilityLabel="today Dinsdag 10 Januari 2023 "
4931
- accessibilityRole="button"
4937
+ accessibilityLabel=" Dinsdag 10 Januari 2023 "
4932
4938
  accessibilityState={
4933
4939
  {
4934
4940
  "disabled": false,
@@ -4947,10 +4953,6 @@ exports[`Test for the calendar component renders a calendar where you can select
4947
4953
  style={
4948
4954
  {
4949
4955
  "alignItems": "center",
4950
- "borderColor": "#7B93DB",
4951
- "borderRadius": 21,
4952
- "borderStyle": "solid",
4953
- "borderWidth": 1,
4954
4956
  "height": 42,
4955
4957
  "justifyContent": "center",
4956
4958
  "opacity": 1,
@@ -4971,7 +4973,7 @@ exports[`Test for the calendar component renders a calendar where you can select
4971
4973
  "marginTop": 4,
4972
4974
  },
4973
4975
  {
4974
- "color": "#7B93DB",
4976
+ "color": "#9AA5B1",
4975
4977
  },
4976
4978
  ]
4977
4979
  }
@@ -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,14 +1,9 @@
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: ({
9
- onDayPress,
10
- selected,
11
- minDate,
12
- maxDate,
13
- }: CalendarProps) => JSX.Element;
8
+ export declare const Calendar: ({ onDayPress, selected, minDate, maxDate, }: CalendarProps) => JSX.Element;
14
9
  export {};
@@ -1,10 +1,7 @@
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: ({
7
- onPressDate,
8
- startDate,
9
- }: CalendarSelectProps) => JSX.Element;
10
- export {CalendarSelect as CalendarSelect};
6
+ declare const CalendarSelect: ({ onPressDate, startDate }: CalendarSelectProps) => JSX.Element;
7
+ 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,11 +1,7 @@
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: ({
7
- value,
8
- onValueChange,
9
- label,
10
- }: CheckboxProps) => JSX.Element;
11
- export {Checkbox as Checkbox};
6
+ declare const Checkbox: ({ value, onValueChange, label }: CheckboxProps) => JSX.Element;
7
+ export { Checkbox as Checkbox };
@@ -1,30 +1,18 @@
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
- id: string;
6
- name: string;
7
- label: string;
8
- selectable: boolean;
9
- isSelected: boolean;
10
- onPressArrow: () => void;
11
- onPressText: () => void;
12
- onSelect: (id: string) => void;
13
- sourceAvatar: ImageSourcePropType | Initials;
14
- textTimeTracker: string;
15
- visualStateTimeTracker: VisualState;
5
+ id: string;
6
+ name: string;
7
+ label: string;
8
+ selectable: boolean;
9
+ isSelected: boolean;
10
+ onPressArrow: (id: string) => void;
11
+ onPressText: (id: string) => void;
12
+ onSelect: (id: string) => void;
13
+ sourceAvatar: ImageSourcePropType | Initials;
14
+ textTimeTracker: string;
15
+ visualStateTimeTracker: VisualState;
16
16
  };
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};
17
+ declare const ChildListItem: ({ id, name, label, selectable, isSelected, onPressArrow, onPressText, onSelect, sourceAvatar, textTimeTracker, visualStateTimeTracker, }: ChildListItemProps) => JSX.Element;
18
+ 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,15 +1,9 @@
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: ({
9
- name,
10
- firstname,
11
- label,
12
- onPress,
13
- isBlocked,
14
- }: ContactItemProps) => JSX.Element;
15
- export {ContactItem as ContactItem};
8
+ declare const ContactItem: ({ name, firstname, label, onPress, isBlocked, }: ContactItemProps) => JSX.Element;
9
+ export { ContactItem as ContactItem };