@tactics/toddle-styleguide 1.2.2 → 1.2.3
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 +11 -1
- package/index.d.ts +3 -2
- package/index.tsx +4 -2
- package/package.json +5 -1
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +234 -234
- package/src/components/atoms/calendar/calendar.component.tsx +8 -6
- package/src/components/molecules/calendar-select/calendar-select.component.d.ts +2 -2
- package/src/components/molecules/calendar-select/calendar-select.component.tsx +4 -14
- package/src/components/molecules/calendar-select/calendar-select.preview.tsx +9 -22
- package/src/components/molecules/time-picker/__snapshots__/time-picker.test.js.snap +2149 -0
- package/src/components/molecules/time-picker/time-picker.component.d.ts +8 -0
- package/src/components/molecules/time-picker/time-picker.component.tsx +65 -0
- package/src/components/molecules/time-picker/time-picker.preview.d.ts +1 -0
- package/src/components/molecules/time-picker/time-picker.preview.tsx +109 -0
- package/src/components/molecules/time-picker/time-picker.styles.d.ts +15 -0
- package/src/components/molecules/time-picker/time-picker.styles.js +19 -0
- package/src/components/molecules/time-picker/time-picker.test.js +18 -0
- package/src/components/molecules/time-tracker/time-tracker.test.js +0 -1
- package/src/components/molecules/timeline/__snapshots__/timeline.test.js.snap +47 -39
- package/src/components/molecules/timeline/timeline.component.d.ts +2 -2
- package/src/components/molecules/timeline/timeline.component.tsx +27 -120
- package/src/components/molecules/timeline/timeline.preview.tsx +9 -20
- package/src/components/molecules/timeline/timeline.styles.d.ts +58 -40
- package/src/components/molecules/timeline/timeline.styles.js +24 -17
- package/src/components/molecules/timeline/timeline.test.js +3 -3
- package/src/components/templates/modal/components/fade-panel.component.d.ts +2 -1
- package/src/components/templates/modal/components/fade-panel.component.tsx +8 -2
- package/src/components/templates/modal/modal.component.d.ts +2 -1
- package/src/components/templates/modal/modal.component.tsx +4 -3
- package/src/components/templates/modal/modal.styles.d.ts +3 -6
- package/src/components/templates/modal/modal.styles.js +3 -3
- package/src/components/templates/popover/components/modal/modal.component.tsx +0 -2
- package/src/theme/provider/parent.theme.d.ts +4 -1
- package/src/theme/provider/parent.theme.ts +4 -1
- package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +2 -2
- package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +2 -2
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
|
|
|
@@ -260,6 +261,10 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
|
|
|
260
261
|
title="Contact info card"
|
|
261
262
|
onPress={() => navigation.push('person-info-card')}
|
|
262
263
|
/>
|
|
264
|
+
<ReactBtn
|
|
265
|
+
title="Time picker"
|
|
266
|
+
onPress={() => navigation.push('time-picker')}
|
|
267
|
+
/>
|
|
263
268
|
</ScrollView>
|
|
264
269
|
);
|
|
265
270
|
};
|
|
@@ -324,7 +329,9 @@ function App() {
|
|
|
324
329
|
<Stack.Screen name="select-list-item">
|
|
325
330
|
{() => <SelectListItemPreview />}
|
|
326
331
|
</Stack.Screen>
|
|
327
|
-
<Stack.Screen name="popover"
|
|
332
|
+
<Stack.Screen name="popover" options={{headerShown: false}}>
|
|
333
|
+
{() => <PopoverPreview />}
|
|
334
|
+
</Stack.Screen>
|
|
328
335
|
<Stack.Screen name="filter tab">
|
|
329
336
|
{() => <FilterTabPreview />}
|
|
330
337
|
</Stack.Screen>
|
|
@@ -424,6 +431,9 @@ function App() {
|
|
|
424
431
|
<Stack.Screen name="person-info-card">
|
|
425
432
|
{() => <PersonInfoCardPreview />}
|
|
426
433
|
</Stack.Screen>
|
|
434
|
+
<Stack.Screen name="time-picker">
|
|
435
|
+
{() => <TimePickerPreview />}
|
|
436
|
+
</Stack.Screen>
|
|
427
437
|
</Stack.Navigator>
|
|
428
438
|
</NavigationContainer>
|
|
429
439
|
</ThemeCtx.Provider>
|
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 {
|
|
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,
|
|
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 {
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.2.3",
|
|
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": {
|