@tactics/toddle-styleguide 1.2.3 → 1.2.5

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