@tactics/toddle-styleguide 1.2.2 → 1.2.4

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 (56) hide show
  1. package/App.tsx +196 -183
  2. package/index.d.ts +3 -2
  3. package/index.tsx +4 -2
  4. package/package.json +5 -1
  5. package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +1776 -596
  6. package/src/components/atoms/calendar/calendar.component.tsx +8 -6
  7. package/src/components/molecules/avatar/__snapshots__/avatar.test.js.snap +70 -62
  8. package/src/components/molecules/avatar/avatar.component.d.ts +2 -1
  9. package/src/components/molecules/avatar/avatar.component.tsx +22 -11
  10. package/src/components/molecules/avatar/avatar.preview.tsx +58 -44
  11. package/src/components/molecules/avatar/avatar.styles.d.ts +54 -15
  12. package/src/components/molecules/avatar/avatar.styles.js +33 -5
  13. package/src/components/molecules/calendar-select/calendar-select.component.d.ts +2 -2
  14. package/src/components/molecules/calendar-select/calendar-select.component.tsx +4 -14
  15. package/src/components/molecules/calendar-select/calendar-select.preview.tsx +9 -22
  16. package/src/components/molecules/date-input/date-input.preview.tsx +25 -23
  17. package/src/components/molecules/time-picker/__snapshots__/time-picker.test.js.snap +2241 -0
  18. package/src/components/molecules/time-picker/time-picker.component.d.ts +8 -0
  19. package/src/components/molecules/time-picker/time-picker.component.tsx +91 -0
  20. package/src/components/molecules/time-picker/time-picker.preview.d.ts +1 -0
  21. package/src/components/molecules/time-picker/time-picker.preview.tsx +110 -0
  22. package/src/components/molecules/time-picker/time-picker.styles.d.ts +27 -0
  23. package/src/components/molecules/time-picker/time-picker.styles.js +31 -0
  24. package/src/components/molecules/time-picker/time-picker.test.js +18 -0
  25. package/src/components/molecules/time-tracker/time-tracker.test.js +0 -1
  26. package/src/components/molecules/timeline/__snapshots__/timeline.test.js.snap +47 -39
  27. package/src/components/molecules/timeline/timeline.component.d.ts +2 -2
  28. package/src/components/molecules/timeline/timeline.component.tsx +27 -120
  29. package/src/components/molecules/timeline/timeline.preview.tsx +9 -20
  30. package/src/components/molecules/timeline/timeline.styles.d.ts +58 -40
  31. package/src/components/molecules/timeline/timeline.styles.js +24 -17
  32. package/src/components/molecules/timeline/timeline.test.js +3 -3
  33. package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +174 -162
  34. package/src/components/organisms/contact-item/__snapshots__/contact-item.test.js.snap +70 -127
  35. package/src/components/organisms/contact-item/contact-item.component.tsx +10 -9
  36. package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +97 -89
  37. package/src/components/organisms/person-info-card/__snapshots__/person-info-card.test.js.snap +233 -209
  38. package/src/components/templates/modal/components/fade-panel.component.d.ts +2 -1
  39. package/src/components/templates/modal/components/fade-panel.component.tsx +8 -2
  40. package/src/components/templates/modal/modal.component.d.ts +2 -1
  41. package/src/components/templates/modal/modal.component.tsx +4 -3
  42. package/src/components/templates/modal/modal.styles.d.ts +3 -6
  43. package/src/components/templates/modal/modal.styles.js +3 -3
  44. package/src/components/templates/popover/components/modal/modal.component.tsx +0 -3
  45. package/src/components/templates/popover/components/modal/modal.styles.d.ts +2 -1
  46. package/src/components/templates/popover/components/modal/modal.styles.js +2 -2
  47. package/src/components/templates/popover/popover.component.tsx +27 -14
  48. package/src/components/templates/popover/popover.preview.tsx +63 -97
  49. package/src/components/templates/popover/popover.styles.d.ts +1 -1
  50. package/src/components/templates/popover/popover.styles.js +3 -1
  51. package/src/theme/provider/parent.theme.d.ts +4 -1
  52. package/src/theme/provider/parent.theme.ts +4 -1
  53. package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +3 -2
  54. package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +9 -2
  55. package/src/utilities/toddle-datetime/toddle-datetime.preview.tsx +15 -1
  56. package/src/utilities/toddle-datetime/toddle-datetime.test.js +10 -0
package/App.tsx CHANGED
@@ -67,6 +67,7 @@ import {WaveBackgroundPreview} from './src/components/molecules/wave-background/
67
67
  import {ToddleDateTimePreview} from './src/utilities/toddle-datetime/toddle-datetime.preview';
68
68
  import {BackgroundGradientPreview} from './src/components/atoms/background-gradient/background-gradient.preview';
69
69
  import {PersonInfoCardPreview} from './src/components/organisms/person-info-card/person-info-card.preview';
70
+ import {TimePickerPreview} from './src/components/molecules/time-picker/time-picker.preview';
70
71
 
71
72
  const Stack = createNativeStackNavigator();
72
73
 
@@ -82,183 +83,190 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
82
83
  }}
83
84
  >
84
85
  <ReactBtn title="Avatar" onPress={() => navigation.push('avatar')} />
85
- <ReactBtn title="Button" onPress={() => navigation.push('button')} />
86
- <ReactBtn title="Pill" onPress={() => navigation.push('pill')} />
87
- <ReactBtn title="Snackbar" onPress={() => navigation.push('snackbar')} />
88
86
  <ReactBtn
89
- title="textInputs"
90
- onPress={() => navigation.push('textInputs')}
87
+ title="Blocked message"
88
+ onPress={() => navigation.push('blocked-message')}
91
89
  />
90
+ <ReactBtn title="Button" onPress={() => navigation.push('button')} />
91
+ <ReactBtn title="Calendar" onPress={() => navigation.push('calendar')} />
92
92
  <ReactBtn
93
- title="textBubble"
94
- onPress={() => navigation.push('textBubble')}
93
+ title="Calendar Select"
94
+ onPress={() => navigation.push('calendar-select')}
95
95
  />
96
96
  <ReactBtn
97
- title="ImageBubble"
98
- onPress={() => navigation.push('image-bubble')}
97
+ title="Cancel Link"
98
+ onPress={() => navigation.push('cancel-link')}
99
99
  />
100
+ <ReactBtn title="Checkbox" onPress={() => navigation.push('checkbox')} />
100
101
  <ReactBtn
101
- title="Pressable Icon"
102
- onPress={() => navigation.push('pressable-icon')}
102
+ title="Check Switch"
103
+ onPress={() => navigation.push('check-switch')}
103
104
  />
104
105
  <ReactBtn
105
- title="Select-list-item"
106
- onPress={() => navigation.push('select-list-item')}
106
+ title="Child List Item"
107
+ onPress={() => navigation.push('child-list-item')}
107
108
  />
108
109
  <ReactBtn
109
- title="Cancel link"
110
- onPress={() => navigation.push('cancel-link')}
110
+ title="Contact Info Card"
111
+ onPress={() => navigation.push('person-info-card')}
111
112
  />
112
113
  <ReactBtn
113
- title="ContactItem"
114
+ title="Contact Item"
114
115
  onPress={() => navigation.push('contact-item')}
115
116
  />
116
117
  <ReactBtn
117
- title="Check switch"
118
- onPress={() => navigation.push('check-switch')}
119
- />
120
- <ReactBtn
121
- title="Info component"
122
- onPress={() => navigation.push('info')}
118
+ title="Contact Role"
119
+ onPress={() => navigation.push('contact-role')}
123
120
  />
124
121
  <ReactBtn
125
- title="Wide Button"
126
- onPress={() => navigation.push('wide-button')}
122
+ title="Date Input"
123
+ onPress={() => navigation.push('date-input')}
127
124
  />
128
125
  <ReactBtn
129
- title="Icons Default"
130
- onPress={() => navigation.push('icons default')}
126
+ title="Day Select"
127
+ onPress={() => navigation.push('day-select')}
131
128
  />
132
129
  <ReactBtn
133
- title="Icons grey"
134
- onPress={() => navigation.push('icons grey')}
130
+ title="Default Select"
131
+ onPress={() => navigation.push('default-select')}
135
132
  />
136
133
  <ReactBtn
137
- title="Icons White"
138
- onPress={() => navigation.push('icons white')}
134
+ title="Department Logo"
135
+ onPress={() => navigation.push('department-logo')}
139
136
  />
140
137
  <ReactBtn
141
- title="Icons Solid"
142
- onPress={() => navigation.push('icons solid')}
138
+ title="Filter Range"
139
+ onPress={() => navigation.push('filter-range')}
143
140
  />
144
- <ReactBtn title="Checkbox" onPress={() => navigation.push('checkbox')} />
145
141
  <ReactBtn
146
- title="TimeTracker"
147
- onPress={() => navigation.push('time-tracker')}
142
+ title="Filter Tab"
143
+ onPress={() => navigation.push('filter-tab')}
148
144
  />
149
- <ReactBtn title="Tag" onPress={() => navigation.push('tag')} />
145
+ <ReactBtn title="Footer" onPress={() => navigation.push('footer')} />
150
146
  <ReactBtn
151
- title="split-container"
152
- onPress={() => navigation.push('split-container')}
147
+ title="Gradient Background"
148
+ onPress={() => navigation.push('background-gradient')}
153
149
  />
150
+ <ReactBtn title="Headings" onPress={() => navigation.push('headings')} />
154
151
  <ReactBtn
155
- title="Select Picker"
156
- onPress={() => navigation.push('select-picker')}
152
+ title="Icons Default"
153
+ onPress={() => navigation.push('icons default')}
157
154
  />
158
- <ReactBtn title="Popover" onPress={() => navigation.push('popover')} />
159
155
  <ReactBtn
160
- title="Filter Tab"
161
- onPress={() => navigation.push('filter tab')}
156
+ title="Icons Grey"
157
+ onPress={() => navigation.push('icons grey')}
162
158
  />
163
159
  <ReactBtn
164
- title="Child list item"
165
- onPress={() => navigation.push('child-list-item')}
160
+ title="Icons Solid"
161
+ onPress={() => navigation.push('icons solid')}
166
162
  />
167
- <ReactBtn title="Timeline" onPress={() => navigation.push('timeline')} />
168
163
  <ReactBtn
169
- title="Filter range"
170
- onPress={() => navigation.push('filter-range')}
164
+ title="Icons White"
165
+ onPress={() => navigation.push('icons white')}
171
166
  />
172
- <ReactBtn title="Calendar" onPress={() => navigation.push('calendar')} />
173
167
  <ReactBtn
174
- title="quickFilter"
175
- onPress={() => navigation.push('quick-filter')}
168
+ title="Image Bubble"
169
+ onPress={() => navigation.push('image-bubble')}
176
170
  />
177
171
  <ReactBtn
178
172
  title="Increment input"
179
173
  onPress={() => navigation.push('increment-input')}
180
174
  />
181
- <ReactBtn title="swiper" onPress={() => navigation.push('swiper')} />
182
- <ReactBtn title="logo" onPress={() => navigation.push('logo')} />
183
175
  <ReactBtn
184
- title="Date input"
185
- onPress={() => navigation.push('date-input')}
176
+ title="Info Component"
177
+ onPress={() => navigation.push('info')}
186
178
  />
187
179
  <ReactBtn
188
- title="daySelect"
189
- onPress={() => navigation.push('day-select')}
180
+ title="Language Button"
181
+ onPress={() => navigation.push('language-button')}
190
182
  />
191
- <ReactBtn title="search" onPress={() => navigation.push('search')} />
192
183
  <ReactBtn
193
- title="Blocked message"
194
- onPress={() => navigation.push('blocked-message')}
184
+ title="Loading Indicator"
185
+ onPress={() => navigation.push('loading-indicator')}
195
186
  />
187
+ <ReactBtn title="Logo" onPress={() => navigation.push('logo')} />
196
188
  <ReactBtn
197
- title="departmentLogo"
198
- onPress={() => navigation.push('departmentLogo')}
189
+ title="Message Input"
190
+ onPress={() => navigation.push('message-input')}
199
191
  />
192
+ <ReactBtn title="Modal" onPress={() => navigation.push('modal')} />
200
193
  <ReactBtn
201
- title="Contact role"
202
- onPress={() => navigation.push('contact-role')}
194
+ title="More Info Button"
195
+ onPress={() => navigation.push('more-info-button')}
203
196
  />
204
197
  <ReactBtn
205
- title="calendarSelect"
206
- onPress={() => navigation.push('calendar-select')}
198
+ title="My Child List Item"
199
+ onPress={() => navigation.push('my-child-list-item')}
207
200
  />
208
- <ReactBtn title="footer" onPress={() => navigation.push('footer')} />
209
201
  <ReactBtn
210
- title="Default select"
211
- onPress={() => navigation.push('default-select')}
202
+ title="Paragraphs"
203
+ onPress={() => navigation.push('paragraphs')}
212
204
  />
213
205
  <ReactBtn
214
- title="Password Input Field"
206
+ title="Password Input"
215
207
  onPress={() => navigation.push('password-input')}
216
208
  />
209
+ <ReactBtn title="Pill" onPress={() => navigation.push('pill')} />
210
+ <ReactBtn title="Popover" onPress={() => navigation.push('popover')} />
217
211
  <ReactBtn
218
- title="Message input"
219
- onPress={() => navigation.push('message-input')}
212
+ title="Pressable Icon"
213
+ onPress={() => navigation.push('pressable-icon')}
220
214
  />
221
- <ReactBtn title="Headings" onPress={() => navigation.push('headings')} />
222
215
  <ReactBtn
223
- title="Paragraphs"
224
- onPress={() => navigation.push('paragraphs')}
216
+ title="Quick Filter"
217
+ onPress={() => navigation.push('quick-filter')}
225
218
  />
226
219
  <ReactBtn
227
- title="My child list item"
228
- onPress={() => navigation.push('my-child-list-item')}
220
+ title="Search Input"
221
+ onPress={() => navigation.push('search')}
229
222
  />
230
223
  <ReactBtn
231
- title="Select link"
224
+ title="Select Link"
232
225
  onPress={() => navigation.push('select-link')}
233
226
  />
234
227
  <ReactBtn
235
- title="More info button"
236
- onPress={() => navigation.push('more-info-button')}
228
+ title="Select List Item"
229
+ onPress={() => navigation.push('select-list-item')}
237
230
  />
238
231
  <ReactBtn
239
- title="Language button"
240
- onPress={() => navigation.push('language-button')}
232
+ title="Select Picker"
233
+ onPress={() => navigation.push('select-picker')}
241
234
  />
242
- <ReactBtn title="Modal" onPress={() => navigation.push('modal')} />
235
+ <ReactBtn title="Snackbar" onPress={() => navigation.push('snackbar')} />
243
236
  <ReactBtn
244
- title="Loading indicator"
245
- onPress={() => navigation.push('loading-indicator')}
237
+ title="Split Container"
238
+ onPress={() => navigation.push('split-container')}
246
239
  />
240
+ <ReactBtn title="Swiper" onPress={() => navigation.push('swiper')} />
241
+ <ReactBtn title="Tag" onPress={() => navigation.push('tag')} />
247
242
  <ReactBtn
248
- title="Wave background"
249
- onPress={() => navigation.push('wave')}
243
+ title="Text Bubble"
244
+ onPress={() => navigation.push('textBubble')}
245
+ />
246
+ <ReactBtn
247
+ title="Text Inputs"
248
+ onPress={() => navigation.push('textInputs')}
249
+ />
250
+ <ReactBtn
251
+ title="Time Picker"
252
+ onPress={() => navigation.push('time-picker')}
250
253
  />
254
+ <ReactBtn
255
+ title="Time Tracker"
256
+ onPress={() => navigation.push('time-tracker')}
257
+ />
258
+ <ReactBtn title="Timeline" onPress={() => navigation.push('timeline')} />
251
259
  <ReactBtn
252
260
  title="Toddle DateTime"
253
261
  onPress={() => navigation.push('toddle-datetime')}
254
262
  />
255
263
  <ReactBtn
256
- title="Gradient background"
257
- onPress={() => navigation.push('background-gradient')}
264
+ title="Wave Background"
265
+ onPress={() => navigation.push('wave')}
258
266
  />
259
267
  <ReactBtn
260
- title="Contact info card"
261
- onPress={() => navigation.push('person-info-card')}
268
+ title="Wide Button"
269
+ onPress={() => navigation.push('wide-button')}
262
270
  />
263
271
  </ScrollView>
264
272
  );
@@ -279,150 +287,155 @@ function App() {
279
287
  {(props) => <HomeScreen {...props} />}
280
288
  </Stack.Screen>
281
289
  <Stack.Screen name="avatar">{() => <AvatarPreview />}</Stack.Screen>
282
- <Stack.Screen name="button">{() => <ButtonPreview />}</Stack.Screen>
283
- <Stack.Screen name="pill">{() => <PillPreview />}</Stack.Screen>
284
- <Stack.Screen name="snackbar">
285
- {() => <SnackbarPreview />}
286
- </Stack.Screen>
287
- <Stack.Screen name="textInputs">
288
- {() => <TextInputPreview />}
290
+ <Stack.Screen name="background-gradient">
291
+ {() => <BackgroundGradientPreview />}
289
292
  </Stack.Screen>
290
- <Stack.Screen name="textBubble">
291
- {() => <TextBubblePreview />}
293
+ <Stack.Screen name="blocked-message">
294
+ {() => <BlockedMessagePreview />}
292
295
  </Stack.Screen>
293
- <Stack.Screen name="image-bubble">
294
- {() => <ImageBubblePreview />}
296
+ <Stack.Screen name="button">{() => <ButtonPreview />}</Stack.Screen>
297
+ <Stack.Screen name="calendar">
298
+ {() => <CalendarPreview />}
295
299
  </Stack.Screen>
296
- <Stack.Screen name="pressable-icon">
297
- {() => <PressableIconPreview />}
300
+ <Stack.Screen name="calendar-select">
301
+ {() => <CalendarSelectPreview />}
298
302
  </Stack.Screen>
299
303
  <Stack.Screen name="cancel-link">
300
304
  {() => <CancelLinkPreview />}
301
305
  </Stack.Screen>
302
- <Stack.Screen name="contact-item">
303
- {() => <ContactItemPreview />}
304
- </Stack.Screen>
305
- <Stack.Screen name="wide-button">
306
- {() => <WideButtonPreview />}
306
+ <Stack.Screen name="checkbox">
307
+ {() => <CheckboxPreview />}
307
308
  </Stack.Screen>
308
- <Stack.Screen name="info">{() => <InfoPreview />}</Stack.Screen>
309
309
  <Stack.Screen name="check-switch">
310
310
  {() => <CheckPreview />}
311
311
  </Stack.Screen>
312
- <Stack.Screen name="icons default">
313
- {() => <IconOutlineDefaultPreview />}
314
- </Stack.Screen>
315
- <Stack.Screen name="icons grey">
316
- {() => <IconOutlineGreyPreview />}
317
- </Stack.Screen>
318
- <Stack.Screen name="icons white">
319
- {() => <IconOutlineWhitePreview />}
312
+ <Stack.Screen name="child-list-item">
313
+ {() => <ChildListItemPreview />}
320
314
  </Stack.Screen>
321
- <Stack.Screen name="icons solid">
322
- {() => <IconSolidPreview />}
315
+ <Stack.Screen name="contact-item">
316
+ {() => <ContactItemPreview />}
323
317
  </Stack.Screen>
324
- <Stack.Screen name="select-list-item">
325
- {() => <SelectListItemPreview />}
318
+ <Stack.Screen name="contact-role">
319
+ {() => <ContactRolePreview />}
326
320
  </Stack.Screen>
327
- <Stack.Screen name="popover">{() => <PopoverPreview />}</Stack.Screen>
328
- <Stack.Screen name="filter tab">
329
- {() => <FilterTabPreview />}
321
+ <Stack.Screen name="date-input">
322
+ {() => <DateInputPreview />}
330
323
  </Stack.Screen>
331
- <Stack.Screen name="checkbox">
332
- {() => <CheckboxPreview />}
324
+ <Stack.Screen name="day-select">
325
+ {() => <DaySelectPreview />}
333
326
  </Stack.Screen>
334
- <Stack.Screen name="time-tracker">
335
- {() => <TimeTrackerPreview />}
327
+ <Stack.Screen name="default-select">
328
+ {() => <DefaultSelectPreview />}
336
329
  </Stack.Screen>
337
- <Stack.Screen name="tag">{() => <TagPreview />}</Stack.Screen>
338
- <Stack.Screen name="split-container">
339
- {() => <SplitContainerPreview />}
330
+ <Stack.Screen name="department-logo">
331
+ {() => <DepartmentLogoPreview />}
340
332
  </Stack.Screen>
341
- <Stack.Screen name="select-picker">
342
- {() => <SelectPickerPreview />}
333
+ <Stack.Screen name="filter-tab">
334
+ {() => <FilterTabPreview />}
343
335
  </Stack.Screen>
344
- <Stack.Screen name="calendar">
345
- {() => <CalendarPreview />}
336
+ <Stack.Screen name="filter-range">
337
+ {() => <FilterRangePreview />}
346
338
  </Stack.Screen>
347
- <Stack.Screen name="quick-filter">
348
- {() => <QuickFilterPreview />}
339
+ <Stack.Screen name="footer">{() => <FooterPreview />}</Stack.Screen>
340
+ <Stack.Screen name="headings">
341
+ {() => <HeadingsPreview />}
349
342
  </Stack.Screen>
350
- <Stack.Screen name="date-input">
351
- {() => <DateInputPreview />}
343
+ <Stack.Screen name="icons default">
344
+ {() => <IconOutlineDefaultPreview />}
352
345
  </Stack.Screen>
353
- <Stack.Screen name="child-list-item">
354
- {() => <ChildListItemPreview />}
346
+ <Stack.Screen name="icons grey">
347
+ {() => <IconOutlineGreyPreview />}
355
348
  </Stack.Screen>
356
- <Stack.Screen name="timeline">
357
- {() => <TimeLinePreview />}
349
+ <Stack.Screen name="icons solid">
350
+ {() => <IconSolidPreview />}
358
351
  </Stack.Screen>
359
- <Stack.Screen name="filter-range">
360
- {() => <FilterRangePreview />}
352
+ <Stack.Screen name="icons white">
353
+ {() => <IconOutlineWhitePreview />}
361
354
  </Stack.Screen>
362
- <Stack.Screen name="day-select">
363
- {() => <DaySelectPreview />}
355
+ <Stack.Screen name="image-bubble">
356
+ {() => <ImageBubblePreview />}
364
357
  </Stack.Screen>
365
358
  <Stack.Screen name="increment-input">
366
359
  {() => <IncrementInputPreview />}
367
360
  </Stack.Screen>
368
- <Stack.Screen name="swiper">{() => <SwipePreview />}</Stack.Screen>
361
+ <Stack.Screen name="info">{() => <InfoPreview />}</Stack.Screen>
362
+ <Stack.Screen name="language-button">
363
+ {() => <LanguageButtonPreview />}
364
+ </Stack.Screen>
365
+ <Stack.Screen name="loading-indicator">
366
+ {() => <LoadingIndicatorPreview />}
367
+ </Stack.Screen>
369
368
  <Stack.Screen name="logo">{() => <LogoPreview />}</Stack.Screen>
370
- <Stack.Screen name="contact-role">
371
- {() => <ContactRolePreview />}
369
+ <Stack.Screen name="message-input">
370
+ {() => <MessageInputPreview />}
372
371
  </Stack.Screen>
373
- <Stack.Screen name="search">{() => <SearchPreview />}</Stack.Screen>
374
- <Stack.Screen name="blocked-message">
375
- {() => <BlockedMessagePreview />}
372
+ <Stack.Screen name="modal">{() => <ModalPreview />}</Stack.Screen>
373
+ <Stack.Screen name="more-info-button">
374
+ {() => <MoreInfoButtonPreview />}
376
375
  </Stack.Screen>
377
- <Stack.Screen name="departmentLogo">
378
- {() => <DepartmentLogoPreview />}
376
+ <Stack.Screen name="my-child-list-item">
377
+ {() => <MyChildListItemPreview />}
379
378
  </Stack.Screen>
380
- <Stack.Screen name="calendar-select">
381
- {() => <CalendarSelectPreview />}
379
+ <Stack.Screen name="paragraphs">
380
+ {() => <ParagraphComponentsPreview />}
382
381
  </Stack.Screen>
383
382
  <Stack.Screen name="password-input">
384
383
  {() => <PasswordInputPreview />}
385
384
  </Stack.Screen>
386
- <Stack.Screen name="footer">{() => <FooterPreview />}</Stack.Screen>
387
- <Stack.Screen name="default-select">
388
- {() => <DefaultSelectPreview />}
389
- </Stack.Screen>
390
- <Stack.Screen name="message-input">
391
- {() => <MessageInputPreview />}
385
+ <Stack.Screen name="person-info-card">
386
+ {() => <PersonInfoCardPreview />}
392
387
  </Stack.Screen>
393
- <Stack.Screen name="headings">
394
- {() => <HeadingsPreview />}
388
+ <Stack.Screen name="pill">{() => <PillPreview />}</Stack.Screen>
389
+ <Stack.Screen name="popover" options={{headerShown: false}}>
390
+ {() => <PopoverPreview />}
395
391
  </Stack.Screen>
396
- <Stack.Screen name="paragraphs">
397
- {() => <ParagraphComponentsPreview />}
392
+ <Stack.Screen name="pressable-icon">
393
+ {() => <PressableIconPreview />}
398
394
  </Stack.Screen>
399
- <Stack.Screen name="my-child-list-item">
400
- {() => <MyChildListItemPreview />}
395
+ <Stack.Screen name="quick-filter">
396
+ {() => <QuickFilterPreview />}
401
397
  </Stack.Screen>
398
+ <Stack.Screen name="search">{() => <SearchPreview />}</Stack.Screen>
402
399
  <Stack.Screen name="select-link">
403
400
  {() => <SelectLinkPreview />}
404
401
  </Stack.Screen>
405
- <Stack.Screen name="more-info-button">
406
- {() => <MoreInfoButtonPreview />}
402
+ <Stack.Screen name="select-list-item">
403
+ {() => <SelectListItemPreview />}
407
404
  </Stack.Screen>
408
- <Stack.Screen name="language-button">
409
- {() => <LanguageButtonPreview />}
405
+ <Stack.Screen name="select-picker">
406
+ {() => <SelectPickerPreview />}
410
407
  </Stack.Screen>
411
- <Stack.Screen name="modal">{() => <ModalPreview />}</Stack.Screen>
412
- <Stack.Screen name="wave">
413
- {() => <WaveBackgroundPreview />}
408
+ <Stack.Screen name="snackbar">
409
+ {() => <SnackbarPreview />}
414
410
  </Stack.Screen>
415
- <Stack.Screen name="loading-indicator">
416
- {() => <LoadingIndicatorPreview />}
411
+ <Stack.Screen name="split-container">
412
+ {() => <SplitContainerPreview />}
413
+ </Stack.Screen>
414
+ <Stack.Screen name="swiper">{() => <SwipePreview />}</Stack.Screen>
415
+ <Stack.Screen name="tag">{() => <TagPreview />}</Stack.Screen>
416
+ <Stack.Screen name="textBubble">
417
+ {() => <TextBubblePreview />}
418
+ </Stack.Screen>
419
+ <Stack.Screen name="textInputs">
420
+ {() => <TextInputPreview />}
421
+ </Stack.Screen>
422
+ <Stack.Screen name="time-picker">
423
+ {() => <TimePickerPreview />}
424
+ </Stack.Screen>
425
+ <Stack.Screen name="time-tracker">
426
+ {() => <TimeTrackerPreview />}
427
+ </Stack.Screen>
428
+ <Stack.Screen name="timeline">
429
+ {() => <TimeLinePreview />}
417
430
  </Stack.Screen>
418
431
  <Stack.Screen name="toddle-datetime">
419
432
  {() => <ToddleDateTimePreview />}
420
433
  </Stack.Screen>
421
- <Stack.Screen name="background-gradient">
422
- {() => <BackgroundGradientPreview />}
434
+ <Stack.Screen name="wave">
435
+ {() => <WaveBackgroundPreview />}
423
436
  </Stack.Screen>
424
- <Stack.Screen name="person-info-card">
425
- {() => <PersonInfoCardPreview />}
437
+ <Stack.Screen name="wide-button">
438
+ {() => <WideButtonPreview />}
426
439
  </Stack.Screen>
427
440
  </Stack.Navigator>
428
441
  </NavigationContainer>
package/index.d.ts CHANGED
@@ -32,7 +32,7 @@ import { Search } from './src/components/molecules/search-input/search.component
32
32
  import { BlockedMessage } from './src/components/molecules/blocked-message/blocked-message.component';
33
33
  import { DepartmentLogo } from './src/components/molecules/department_logo/department-logo.component';
34
34
  import { ContactRole } from './src/components/molecules/contact-role/contact-role.component';
35
- import { Timeline } from './src/components/molecules/timeline/timeline.component';
35
+ import { TimeLine } from './src/components/molecules/timeline/timeline.component';
36
36
  import { SelectPicker } from './src/components/molecules/select-picker/select-picker.component';
37
37
  import { CalendarSelect } from './src/components/molecules/calendar-select/calendar-select.component';
38
38
  import { DateInput } from './src/components/molecules/date-input/date-input.component';
@@ -52,6 +52,7 @@ import { LoadingIndicator } from './src/components/organisms/loading-indicator/l
52
52
  import { WaveBackground } from './src/components/molecules/wave-background/wave.component';
53
53
  import { BackgroundGradient } from './src/components/atoms/background-gradient/background-gradient.component';
54
54
  import { PersonInfoCard } from './src/components/organisms/person-info-card/person-info-card.component';
55
+ import { TimePicker } from './src/components/molecules/time-picker/time-picker.component';
55
56
  import { BubbleAlignment } from './src/types/bubble-alignment.enum';
56
57
  import { KeyBoardTypes } from './src/types/keyboard-types.enum';
57
58
  import { Size } from './src/types/size.enum';
@@ -61,4 +62,4 @@ import { ToddleDateTime } from './src/utilities/toddle-datetime/toddle-datetime.
61
62
  import { ThemeCtx } from './src/context/theme.context';
62
63
  import { Scale } from './src/theme/scale/index';
63
64
  import CreateResponsiveStyle from './src/theme/responsive/index';
64
- export { Initials, BubbleAlignment, KeyBoardTypes, Size, Scale, CreateResponsiveStyle, VisualState, ThemeCtx, ToddleDateTime, 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, PasswordInput, MessageInput, Heading1, Heading2, Heading3, Heading4, AllCapsHeading, Paragraph, SmallText, TinyText, SelectLink, MyChildListItem, MoreInfoButton, LanguageButton, Modal, LoadingIndicator, WaveBackground, BackgroundGradient, PersonInfoCard, };
65
+ export { Initials, BubbleAlignment, KeyBoardTypes, Size, Scale, CreateResponsiveStyle, VisualState, ThemeCtx, ToddleDateTime, 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, PasswordInput, MessageInput, Heading1, Heading2, Heading3, Heading4, AllCapsHeading, Paragraph, SmallText, TinyText, SelectLink, MyChildListItem, MoreInfoButton, LanguageButton, Modal, LoadingIndicator, WaveBackground, BackgroundGradient, PersonInfoCard, TimePicker, };
package/index.tsx CHANGED
@@ -40,7 +40,7 @@ import {Search} from './src/components/molecules/search-input/search.component';
40
40
  import {BlockedMessage} from './src/components/molecules/blocked-message/blocked-message.component';
41
41
  import {DepartmentLogo} from './src/components/molecules/department_logo/department-logo.component';
42
42
  import {ContactRole} from './src/components/molecules/contact-role/contact-role.component';
43
- import {Timeline} from './src/components/molecules/timeline/timeline.component';
43
+ import {TimeLine} from './src/components/molecules/timeline/timeline.component';
44
44
  import {SelectPicker} from './src/components/molecules/select-picker/select-picker.component';
45
45
  import {CalendarSelect} from './src/components/molecules/calendar-select/calendar-select.component';
46
46
  import {DateInput} from './src/components/molecules/date-input/date-input.component';
@@ -70,6 +70,7 @@ import {LoadingIndicator} from './src/components/organisms/loading-indicator/loa
70
70
  import {WaveBackground} from './src/components/molecules/wave-background/wave.component';
71
71
  import {BackgroundGradient} from './src/components/atoms/background-gradient/background-gradient.component';
72
72
  import {PersonInfoCard} from './src/components/organisms/person-info-card/person-info-card.component';
73
+ import {TimePicker} from './src/components/molecules/time-picker/time-picker.component';
73
74
 
74
75
  // Exports of enums
75
76
  import {BubbleAlignment} from './src/types/bubble-alignment.enum';
@@ -134,7 +135,7 @@ export {
134
135
  BlockedMessage,
135
136
  DepartmentLogo,
136
137
  ContactRole,
137
- Timeline,
138
+ TimeLine,
138
139
  SelectPicker,
139
140
  CalendarSelect,
140
141
  DateInput,
@@ -160,4 +161,5 @@ export {
160
161
  WaveBackground,
161
162
  BackgroundGradient,
162
163
  PersonInfoCard,
164
+ TimePicker,
163
165
  };
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
7
7
  "scripts": {
8
+ "expo": "./node_modules/.bin/tsc && ./node_modules/.bin/expo",
9
+ "start": "./node_modules/.bin/tsc && ./node_modules/.bin/expo start",
8
10
  "test": "./node_modules/.bin/jest",
9
11
  "format": "./node_modules/.bin/prettier --write src/.",
10
12
  "types": "./node_modules/.bin/tsc index.tsx --declaration --allowJs --emitDeclarationOnly --esModuleInterop --jsx react-native --skipLibCheck --target es5"
@@ -32,6 +34,7 @@
32
34
  "@types/xdate": "^0.8.32",
33
35
  "expo": "^48.0.19",
34
36
  "expo-font": "~11.1.1",
37
+ "expo-haptics": "~12.2.1",
35
38
  "expo-linear-gradient": "~12.1.2",
36
39
  "expo-status-bar": "~1.4.4",
37
40
  "intl": "^1.2.5",
@@ -53,6 +56,7 @@
53
56
  "react-native-swipe-gestures": "^1.0.5",
54
57
  "react-native-swiper": "^1.6.0",
55
58
  "react-native-web": "~0.18.10",
59
+ "react-native-wheel-picker-expo": "^0.5.4",
56
60
  "react-test-renderer": "^18.2.0"
57
61
  },
58
62
  "devDependencies": {