@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.
- package/App.tsx +202 -191
- package/index.d.ts +2 -1
- package/index.tsx +2 -0
- package/package.json +2 -2
- package/src/components/atoms/backdrop/backdrop.component.d.ts +2 -1
- package/src/components/atoms/backdrop/backdrop.component.tsx +8 -2
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +1821 -641
- package/src/components/atoms/text-input/text-input.component.d.ts +4 -5
- package/src/components/atoms/text-input/text-input.component.tsx +9 -13
- package/src/components/atoms/text-input/text-input.preview.tsx +5 -5
- package/src/components/atoms/text-input/text-input.test.js +4 -4
- package/src/components/molecules/avatar/__snapshots__/avatar.test.js.snap +70 -62
- package/src/components/molecules/avatar/avatar.component.d.ts +2 -1
- package/src/components/molecules/avatar/avatar.component.tsx +22 -11
- package/src/components/molecules/avatar/avatar.preview.tsx +58 -44
- package/src/components/molecules/avatar/avatar.styles.d.ts +54 -15
- package/src/components/molecules/avatar/avatar.styles.js +33 -5
- package/src/components/molecules/button/__snapshots__/button.test.js.snap +144 -0
- package/src/components/molecules/button/button.component.d.ts +6 -4
- package/src/components/molecules/button/button.component.tsx +30 -9
- package/src/components/molecules/button/button.preview.tsx +16 -1
- package/src/components/molecules/button/button.styles.d.ts +13 -16
- package/src/components/molecules/button/button.styles.js +2 -4
- package/src/components/molecules/button/button.test.js +12 -0
- package/src/components/molecules/date-input/date-input.preview.tsx +25 -23
- package/src/components/molecules/message-input/__snapshots__/message-input.test.js.snap +4 -0
- package/src/components/molecules/message-input/message-input.component.d.ts +4 -6
- package/src/components/molecules/message-input/message-input.component.tsx +10 -12
- package/src/components/molecules/message-input/message-input.preview.tsx +28 -15
- package/src/components/molecules/password-input/password-input.component.d.ts +4 -6
- package/src/components/molecules/password-input/password-input.component.tsx +11 -15
- package/src/components/molecules/swipe/__snapshots__/swipe.test.js.snap +263 -420
- package/src/components/molecules/swipe/swipe.component.d.ts +4 -4
- package/src/components/molecules/swipe/swipe.component.tsx +47 -20
- package/src/components/molecules/swipe/swipe.preview.tsx +111 -51
- package/src/components/molecules/swipe/swipe.styles.d.ts +28 -0
- package/src/components/molecules/swipe/swipe.styles.js +32 -0
- package/src/components/molecules/swipe/swipe.test.js +1 -1
- package/src/components/molecules/tag/__snapshots__/tag.test.js.snap +10 -10
- package/src/components/molecules/tag/tag.component.d.ts +3 -8
- package/src/components/molecules/tag/tag.component.tsx +7 -13
- package/src/components/molecules/tag/tag.preview.tsx +22 -19
- package/src/components/molecules/tag/tag.styles.js +4 -2
- package/src/components/molecules/tag/tag.test.js +10 -2
- package/src/components/molecules/time-picker/__snapshots__/time-picker.test.js.snap +1868 -1776
- package/src/components/molecules/time-picker/time-picker.component.tsx +49 -23
- package/src/components/molecules/time-picker/time-picker.preview.tsx +5 -4
- package/src/components/molecules/time-picker/time-picker.styles.d.ts +16 -4
- package/src/components/molecules/time-picker/time-picker.styles.js +18 -6
- package/src/components/molecules/timestamp/__snapshots__/timestamp.test.js.snap +1 -1
- package/src/components/molecules/timestamp/timestamp.component.tsx +0 -2
- package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +174 -162
- package/src/components/organisms/contact-item/__snapshots__/contact-item.test.js.snap +70 -127
- package/src/components/organisms/contact-item/contact-item.component.tsx +10 -9
- package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +97 -89
- package/src/components/organisms/person-info-card/__snapshots__/person-info-card.test.js.snap +233 -209
- package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +7 -7
- package/src/components/templates/modal/modal.component.tsx +0 -1
- package/src/components/templates/popover/components/modal/modal.component.tsx +0 -1
- package/src/components/templates/popover/components/modal/modal.styles.d.ts +2 -1
- package/src/components/templates/popover/components/modal/modal.styles.js +2 -2
- package/src/components/templates/popover/popover.component.tsx +27 -14
- package/src/components/templates/popover/popover.preview.tsx +63 -97
- package/src/components/templates/popover/popover.styles.d.ts +1 -1
- package/src/components/templates/popover/popover.styles.js +3 -1
- package/src/components/templates/popover-action/popover-action.component.d.ts +8 -0
- package/src/components/templates/popover-action/popover-action.component.tsx +119 -0
- package/src/components/templates/popover-action/popover-action.preview.d.ts +1 -0
- package/src/components/templates/popover-action/popover-action.preview.tsx +142 -0
- package/src/components/templates/popover-action/popover-action.styles.d.ts +26 -0
- package/src/components/templates/popover-action/popover-action.styles.js +31 -0
- package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +5 -0
- package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +23 -0
- package/src/utilities/toddle-datetime/toddle-datetime.preview.tsx +15 -1
- package/src/utilities/toddle-datetime/toddle-datetime.test.js +10 -0
- package/src/components/molecules/swipe/Swipe.styles.d.ts +0 -7
- 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="
|
|
91
|
-
onPress={() => navigation.push('
|
|
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="
|
|
95
|
-
onPress={() => navigation.push('
|
|
94
|
+
title="Calendar Select"
|
|
95
|
+
onPress={() => navigation.push('calendar-select')}
|
|
96
96
|
/>
|
|
97
97
|
<ReactBtn
|
|
98
|
-
title="
|
|
99
|
-
onPress={() => navigation.push('
|
|
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="
|
|
103
|
-
onPress={() => navigation.push('
|
|
103
|
+
title="Check Switch"
|
|
104
|
+
onPress={() => navigation.push('check-switch')}
|
|
104
105
|
/>
|
|
105
106
|
<ReactBtn
|
|
106
|
-
title="
|
|
107
|
-
onPress={() => navigation.push('
|
|
107
|
+
title="Child List Item"
|
|
108
|
+
onPress={() => navigation.push('child-list-item')}
|
|
108
109
|
/>
|
|
109
110
|
<ReactBtn
|
|
110
|
-
title="
|
|
111
|
-
onPress={() => navigation.push('
|
|
111
|
+
title="Contact Info Card"
|
|
112
|
+
onPress={() => navigation.push('person-info-card')}
|
|
112
113
|
/>
|
|
113
114
|
<ReactBtn
|
|
114
|
-
title="
|
|
115
|
+
title="Contact Item"
|
|
115
116
|
onPress={() => navigation.push('contact-item')}
|
|
116
117
|
/>
|
|
117
118
|
<ReactBtn
|
|
118
|
-
title="
|
|
119
|
-
onPress={() => navigation.push('
|
|
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="
|
|
127
|
-
onPress={() => navigation.push('
|
|
123
|
+
title="Date Input"
|
|
124
|
+
onPress={() => navigation.push('date-input')}
|
|
128
125
|
/>
|
|
129
126
|
<ReactBtn
|
|
130
|
-
title="
|
|
131
|
-
onPress={() => navigation.push('
|
|
127
|
+
title="Day Select"
|
|
128
|
+
onPress={() => navigation.push('day-select')}
|
|
132
129
|
/>
|
|
133
130
|
<ReactBtn
|
|
134
|
-
title="
|
|
135
|
-
onPress={() => navigation.push('
|
|
131
|
+
title="Default Select"
|
|
132
|
+
onPress={() => navigation.push('default-select')}
|
|
136
133
|
/>
|
|
137
134
|
<ReactBtn
|
|
138
|
-
title="
|
|
139
|
-
onPress={() => navigation.push('
|
|
135
|
+
title="Department Logo"
|
|
136
|
+
onPress={() => navigation.push('department-logo')}
|
|
140
137
|
/>
|
|
141
138
|
<ReactBtn
|
|
142
|
-
title="
|
|
143
|
-
onPress={() => navigation.push('
|
|
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="
|
|
148
|
-
onPress={() => navigation.push('
|
|
143
|
+
title="Filter Tab"
|
|
144
|
+
onPress={() => navigation.push('filter-tab')}
|
|
149
145
|
/>
|
|
150
|
-
<ReactBtn title="
|
|
146
|
+
<ReactBtn title="Footer" onPress={() => navigation.push('footer')} />
|
|
151
147
|
<ReactBtn
|
|
152
|
-
title="
|
|
153
|
-
onPress={() => navigation.push('
|
|
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="
|
|
157
|
-
onPress={() => navigation.push('
|
|
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="
|
|
162
|
-
onPress={() => navigation.push('
|
|
157
|
+
title="Icons Grey"
|
|
158
|
+
onPress={() => navigation.push('icons grey')}
|
|
163
159
|
/>
|
|
164
160
|
<ReactBtn
|
|
165
|
-
title="
|
|
166
|
-
onPress={() => navigation.push('
|
|
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="
|
|
171
|
-
onPress={() => navigation.push('
|
|
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="
|
|
176
|
-
onPress={() => navigation.push('
|
|
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="
|
|
186
|
-
onPress={() => navigation.push('
|
|
177
|
+
title="Info Component"
|
|
178
|
+
onPress={() => navigation.push('info')}
|
|
187
179
|
/>
|
|
188
180
|
<ReactBtn
|
|
189
|
-
title="
|
|
190
|
-
onPress={() => navigation.push('
|
|
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="
|
|
195
|
-
onPress={() => navigation.push('
|
|
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="
|
|
199
|
-
onPress={() => navigation.push('
|
|
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="
|
|
203
|
-
onPress={() => navigation.push('
|
|
195
|
+
title="More Info Button"
|
|
196
|
+
onPress={() => navigation.push('more-info-button')}
|
|
204
197
|
/>
|
|
205
198
|
<ReactBtn
|
|
206
|
-
title="
|
|
207
|
-
onPress={() => navigation.push('
|
|
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="
|
|
212
|
-
onPress={() => navigation.push('
|
|
203
|
+
title="Paragraphs"
|
|
204
|
+
onPress={() => navigation.push('paragraphs')}
|
|
213
205
|
/>
|
|
214
206
|
<ReactBtn
|
|
215
|
-
title="Password Input
|
|
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="
|
|
220
|
-
onPress={() => navigation.push('
|
|
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="
|
|
225
|
-
onPress={() => navigation.push('
|
|
217
|
+
title="Pressable Icon"
|
|
218
|
+
onPress={() => navigation.push('pressable-icon')}
|
|
226
219
|
/>
|
|
227
220
|
<ReactBtn
|
|
228
|
-
title="
|
|
229
|
-
onPress={() => navigation.push('
|
|
221
|
+
title="Quick Filter"
|
|
222
|
+
onPress={() => navigation.push('quick-filter')}
|
|
230
223
|
/>
|
|
231
224
|
<ReactBtn
|
|
232
|
-
title="
|
|
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="
|
|
237
|
-
onPress={() => navigation.push('
|
|
233
|
+
title="Select List Item"
|
|
234
|
+
onPress={() => navigation.push('select-list-item')}
|
|
238
235
|
/>
|
|
239
236
|
<ReactBtn
|
|
240
|
-
title="
|
|
241
|
-
onPress={() => navigation.push('
|
|
237
|
+
title="Select Picker"
|
|
238
|
+
onPress={() => navigation.push('select-picker')}
|
|
242
239
|
/>
|
|
243
|
-
<ReactBtn title="
|
|
240
|
+
<ReactBtn title="Snackbar" onPress={() => navigation.push('snackbar')} />
|
|
244
241
|
<ReactBtn
|
|
245
|
-
title="
|
|
246
|
-
onPress={() => navigation.push('
|
|
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="
|
|
250
|
-
onPress={() => navigation.push('
|
|
248
|
+
title="Text Bubble"
|
|
249
|
+
onPress={() => navigation.push('textBubble')}
|
|
251
250
|
/>
|
|
252
251
|
<ReactBtn
|
|
253
|
-
title="
|
|
254
|
-
onPress={() => navigation.push('
|
|
252
|
+
title="Text Inputs"
|
|
253
|
+
onPress={() => navigation.push('textInputs')}
|
|
255
254
|
/>
|
|
256
255
|
<ReactBtn
|
|
257
|
-
title="
|
|
258
|
-
onPress={() => navigation.push('
|
|
256
|
+
title="Time Picker"
|
|
257
|
+
onPress={() => navigation.push('time-picker')}
|
|
259
258
|
/>
|
|
260
259
|
<ReactBtn
|
|
261
|
-
title="
|
|
262
|
-
onPress={() => navigation.push('
|
|
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="
|
|
266
|
-
onPress={() => navigation.push('
|
|
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="
|
|
288
|
-
|
|
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="
|
|
296
|
-
{() => <
|
|
298
|
+
<Stack.Screen name="blocked-message">
|
|
299
|
+
{() => <BlockedMessagePreview />}
|
|
297
300
|
</Stack.Screen>
|
|
298
|
-
<Stack.Screen name="
|
|
299
|
-
|
|
301
|
+
<Stack.Screen name="button">{() => <ButtonPreview />}</Stack.Screen>
|
|
302
|
+
<Stack.Screen name="calendar">
|
|
303
|
+
{() => <CalendarPreview />}
|
|
300
304
|
</Stack.Screen>
|
|
301
|
-
<Stack.Screen name="
|
|
302
|
-
{() => <
|
|
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="
|
|
308
|
-
{() => <
|
|
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="
|
|
318
|
-
{() => <
|
|
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="
|
|
330
|
-
{() => <
|
|
320
|
+
<Stack.Screen name="contact-item">
|
|
321
|
+
{() => <ContactItemPreview />}
|
|
331
322
|
</Stack.Screen>
|
|
332
|
-
<Stack.Screen name="
|
|
333
|
-
{() => <
|
|
323
|
+
<Stack.Screen name="contact-role">
|
|
324
|
+
{() => <ContactRolePreview />}
|
|
334
325
|
</Stack.Screen>
|
|
335
|
-
<Stack.Screen name="
|
|
336
|
-
{() => <
|
|
326
|
+
<Stack.Screen name="date-input">
|
|
327
|
+
{() => <DateInputPreview />}
|
|
337
328
|
</Stack.Screen>
|
|
338
|
-
<Stack.Screen name="
|
|
339
|
-
{() => <
|
|
329
|
+
<Stack.Screen name="day-select">
|
|
330
|
+
{() => <DaySelectPreview />}
|
|
340
331
|
</Stack.Screen>
|
|
341
|
-
<Stack.Screen name="
|
|
342
|
-
{() => <
|
|
332
|
+
<Stack.Screen name="default-select">
|
|
333
|
+
{() => <DefaultSelectPreview />}
|
|
343
334
|
</Stack.Screen>
|
|
344
|
-
<Stack.Screen name="
|
|
345
|
-
|
|
346
|
-
{() => <SplitContainerPreview />}
|
|
335
|
+
<Stack.Screen name="department-logo">
|
|
336
|
+
{() => <DepartmentLogoPreview />}
|
|
347
337
|
</Stack.Screen>
|
|
348
|
-
<Stack.Screen name="
|
|
349
|
-
{() => <
|
|
338
|
+
<Stack.Screen name="filter-tab">
|
|
339
|
+
{() => <FilterTabPreview />}
|
|
350
340
|
</Stack.Screen>
|
|
351
|
-
<Stack.Screen name="
|
|
352
|
-
{() => <
|
|
341
|
+
<Stack.Screen name="filter-range">
|
|
342
|
+
{() => <FilterRangePreview />}
|
|
353
343
|
</Stack.Screen>
|
|
354
|
-
<Stack.Screen name="
|
|
355
|
-
|
|
344
|
+
<Stack.Screen name="footer">{() => <FooterPreview />}</Stack.Screen>
|
|
345
|
+
<Stack.Screen name="headings">
|
|
346
|
+
{() => <HeadingsPreview />}
|
|
356
347
|
</Stack.Screen>
|
|
357
|
-
<Stack.Screen name="
|
|
358
|
-
{() => <
|
|
348
|
+
<Stack.Screen name="icons default">
|
|
349
|
+
{() => <IconOutlineDefaultPreview />}
|
|
359
350
|
</Stack.Screen>
|
|
360
|
-
<Stack.Screen name="
|
|
361
|
-
{() => <
|
|
351
|
+
<Stack.Screen name="icons grey">
|
|
352
|
+
{() => <IconOutlineGreyPreview />}
|
|
362
353
|
</Stack.Screen>
|
|
363
|
-
<Stack.Screen name="
|
|
364
|
-
{() => <
|
|
354
|
+
<Stack.Screen name="icons solid">
|
|
355
|
+
{() => <IconSolidPreview />}
|
|
365
356
|
</Stack.Screen>
|
|
366
|
-
<Stack.Screen name="
|
|
367
|
-
{() => <
|
|
357
|
+
<Stack.Screen name="icons white">
|
|
358
|
+
{() => <IconOutlineWhitePreview />}
|
|
368
359
|
</Stack.Screen>
|
|
369
|
-
<Stack.Screen name="
|
|
370
|
-
{() => <
|
|
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="
|
|
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="
|
|
378
|
-
{() => <
|
|
374
|
+
<Stack.Screen name="message-input">
|
|
375
|
+
{() => <MessageInputPreview />}
|
|
379
376
|
</Stack.Screen>
|
|
380
|
-
<Stack.Screen name="
|
|
381
|
-
<Stack.Screen name="
|
|
382
|
-
{() => <
|
|
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="
|
|
385
|
-
{() => <
|
|
381
|
+
<Stack.Screen name="my-child-list-item">
|
|
382
|
+
{() => <MyChildListItemPreview />}
|
|
386
383
|
</Stack.Screen>
|
|
387
|
-
<Stack.Screen name="
|
|
388
|
-
{() => <
|
|
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="
|
|
394
|
-
|
|
395
|
-
{() => <DefaultSelectPreview />}
|
|
390
|
+
<Stack.Screen name="person-info-card">
|
|
391
|
+
{() => <PersonInfoCardPreview />}
|
|
396
392
|
</Stack.Screen>
|
|
397
|
-
<Stack.Screen name="
|
|
398
|
-
|
|
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="
|
|
401
|
-
{() => <
|
|
397
|
+
<Stack.Screen name="popover-action" options={{headerShown: false}}>
|
|
398
|
+
{() => <PopOverActionPreview />}
|
|
402
399
|
</Stack.Screen>
|
|
403
|
-
<Stack.Screen name="
|
|
404
|
-
{() => <
|
|
400
|
+
<Stack.Screen name="pressable-icon">
|
|
401
|
+
{() => <PressableIconPreview />}
|
|
405
402
|
</Stack.Screen>
|
|
406
|
-
<Stack.Screen name="
|
|
407
|
-
{() => <
|
|
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="
|
|
413
|
-
{() => <
|
|
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="
|
|
419
|
-
|
|
420
|
-
{() => <WaveBackgroundPreview />}
|
|
413
|
+
<Stack.Screen name="select-picker">
|
|
414
|
+
{() => <SelectPickerPreview />}
|
|
421
415
|
</Stack.Screen>
|
|
422
|
-
<Stack.Screen name="
|
|
423
|
-
{() => <
|
|
416
|
+
<Stack.Screen name="snackbar">
|
|
417
|
+
{() => <SnackbarPreview />}
|
|
424
418
|
</Stack.Screen>
|
|
425
|
-
<Stack.Screen name="
|
|
426
|
-
{() => <
|
|
419
|
+
<Stack.Screen name="split-container">
|
|
420
|
+
{() => <SplitContainerPreview />}
|
|
427
421
|
</Stack.Screen>
|
|
428
|
-
<Stack.Screen name="
|
|
429
|
-
|
|
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="
|
|
432
|
-
{() => <
|
|
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
|
+
"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 };
|