@tactics/toddle-styleguide 0.1.5 → 0.1.7
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 +16 -0
- package/package.json +1 -1
- package/src/components/atoms/avatar/avatar.component.d.ts +7 -7
- package/src/components/atoms/blocked-message/blocked-message.component.d.ts +4 -2
- package/src/components/atoms/button/button.component.d.ts +11 -6
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +33 -21
- package/src/components/atoms/calendar/calendar.component.d.ts +11 -6
- package/src/components/atoms/calendar-select/calendar-select.component.d.ts +8 -5
- package/src/components/atoms/cancel-link/cancel-link.component.d.ts +4 -4
- package/src/components/atoms/check-switch/check-switch.component.d.ts +3 -3
- package/src/components/atoms/checkbox/checkbox.component.d.ts +9 -5
- package/src/components/atoms/child-list-item/child-list-item.component.d.ts +19 -7
- package/src/components/atoms/child-list-item/child-list-item.component.tsx +7 -4
- package/src/components/atoms/contact-item/contact-item.component.d.ts +13 -7
- package/src/components/atoms/contact-role/contact-role.component.d.ts +6 -3
- package/src/components/atoms/date-input/date-input.component.d.ts +7 -4
- package/src/components/atoms/day-select/components/day/day.component.d.ts +6 -6
- package/src/components/atoms/day-select/day-select.component.d.ts +10 -6
- package/src/components/atoms/default-select/default-select.component.d.ts +6 -3
- package/src/components/atoms/department_logo/department-logo.component.d.ts +5 -3
- package/src/components/atoms/filter-range/filter-range.component.d.ts +14 -7
- package/src/components/atoms/filter-tab/filter-tab.component.d.ts +9 -6
- package/src/components/atoms/footer/footer.component.d.ts +3 -3
- package/src/components/atoms/image-bubble/image-bubble.component.d.ts +9 -6
- package/src/components/atoms/increment-input/increment-input.component.d.ts +6 -3
- package/src/components/atoms/info/info.component.d.ts +4 -4
- package/src/components/atoms/logo/logo.component.d.ts +4 -4
- package/src/components/atoms/message-input/__snapshots__/message-input.test.js.snap +699 -0
- package/src/components/atoms/message-input/message-input.component.d.ts +11 -0
- package/src/components/atoms/message-input/message-input.component.tsx +46 -0
- package/src/components/atoms/message-input/message-input.preview.d.ts +1 -0
- package/src/components/atoms/message-input/message-input.preview.tsx +41 -0
- package/src/components/atoms/message-input/message-input.styles.d.ts +26 -0
- package/src/components/atoms/message-input/message-input.styles.js +29 -0
- package/src/components/atoms/message-input/message-input.test.js +67 -0
- package/src/components/atoms/password-input/__snapshots__/password-input.test.js.snap +396 -0
- package/src/components/atoms/password-input/password-input.component.d.ts +9 -0
- package/src/components/atoms/password-input/password-input.component.tsx +51 -0
- package/src/components/atoms/password-input/password-input.preview.d.ts +1 -0
- package/src/components/atoms/password-input/password-input.preview.tsx +60 -0
- package/src/components/atoms/password-input/password-input.styles.d.ts +28 -0
- package/src/components/atoms/password-input/password-input.styles.js +32 -0
- package/src/components/atoms/password-input/password-input.test.js +46 -0
- package/src/components/atoms/pill/pill.component.d.ts +5 -5
- package/src/components/atoms/popover/components/backdrop/backdrop.component.d.ts +3 -3
- package/src/components/atoms/popover/components/foreground/foreground.component.d.ts +4 -4
- package/src/components/atoms/popover/components/modal/close/close.component.d.ts +4 -4
- package/src/components/atoms/popover/components/modal/heading/heading.component.d.ts +4 -4
- package/src/components/atoms/popover/components/modal/modal.component.d.ts +15 -8
- package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.d.ts +5 -3
- package/src/components/atoms/popover/popover.component.d.ts +13 -7
- package/src/components/atoms/pressable-icon/pressable-icon.component.d.ts +10 -5
- package/src/components/atoms/quick-filter/quick-filter.component.d.ts +14 -8
- package/src/components/atoms/search/search.component.d.ts +10 -6
- package/src/components/atoms/search/search.preview.d.ts +1 -1
- package/src/components/atoms/select-link/select-link.component.d.ts +4 -4
- package/src/components/atoms/select-list-item/select-list-item.component.d.ts +13 -7
- package/src/components/atoms/select-picker/select-picker.component.d.ts +13 -8
- package/src/components/atoms/snackbar/snackbar.component.d.ts +5 -5
- package/src/components/atoms/split-container/split-container.component.d.ts +7 -4
- package/src/components/atoms/swipe/swipe.component.d.ts +3 -3
- package/src/components/atoms/swipe/swipe.component.tsx +4 -4
- package/src/components/atoms/swipe/swipe.preview.tsx +1 -1
- package/src/components/atoms/tag/tag.component.d.ts +13 -8
- package/src/components/atoms/text-bubble/__snapshots__/text-bubble.test.js.snap +2055 -234
- package/src/components/atoms/text-bubble/components/failed-to-send/__snapshots__/failed-bubble.test.js.snap +330 -0
- package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.component.d.ts +7 -0
- package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.component.tsx +69 -0
- package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.styles.d.ts +39 -0
- package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.styles.js +42 -0
- package/src/components/atoms/text-bubble/components/failed-to-send/failed-bubble.test.js +19 -0
- package/src/components/atoms/text-bubble/components/send-bubble/__snapshots__/send-text-bubble.test.js.snap +1657 -0
- package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.component.d.ts +11 -0
- package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.component.tsx +78 -0
- package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.styles.d.ts +75 -0
- package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.styles.js +67 -0
- package/src/components/atoms/text-bubble/components/send-bubble/send-text-bubble.test.js +96 -0
- package/src/components/atoms/text-bubble/components/timestamp/timestamp.component.d.ts +3 -3
- package/src/components/atoms/text-bubble/text-bubble.component.d.ts +8 -4
- package/src/components/atoms/text-bubble/text-bubble.component.tsx +31 -5
- package/src/components/atoms/text-bubble/text-bubble.preview.tsx +62 -27
- package/src/components/atoms/text-bubble/text-bubble.styles.d.ts +18 -53
- package/src/components/atoms/text-bubble/text-bubble.styles.js +13 -46
- package/src/components/atoms/text-bubble/text-bubble.test.js +42 -0
- package/src/components/atoms/text-input/text-input.component.d.ts +10 -6
- package/src/components/atoms/text-input/text-input.preview.d.ts +1 -1
- package/src/components/atoms/time-tracker/time-tracker.component.d.ts +8 -5
- package/src/components/atoms/timeline/timeline.component.d.ts +6 -3
- package/src/components/atoms/wide-button/wide-button.component.d.ts +11 -6
- package/src/context/theme.context.d.ts +42 -42
- package/src/icons/index.d.ts +1 -0
- package/src/icons/outline/calendar/calendar.icon.d.ts +2 -2
- package/src/icons/outline/chat/chat.icon.d.ts +2 -2
- package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +2 -2
- package/src/icons/outline/check-circle/check-circle.icon.d.ts +2 -2
- package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +2 -2
- package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +2 -2
- package/src/icons/outline/clock/clock.icon.d.ts +2 -2
- package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +2 -2
- package/src/icons/outline/cross/cross.icon.d.ts +2 -2
- package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +2 -2
- package/src/icons/outline/document-text/document-text.icon.d.ts +2 -2
- package/src/icons/outline/exclamation/exclamation.icon.d.ts +2 -2
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +2 -2
- package/src/icons/outline/eye/eye.icon.d.ts +2 -2
- package/src/icons/outline/eye-off/eye-off.icon.d.ts +2 -0
- package/src/icons/outline/eye-off/eye-off.icon.tsx +20 -0
- package/src/icons/outline/filter/filter.icon.d.ts +2 -2
- package/src/icons/outline/information-circle/information-circle.icon.d.ts +2 -2
- package/src/icons/outline/logout/logout.icon.d.ts +2 -2
- package/src/icons/outline/mail/mail.icon.d.ts +2 -2
- package/src/icons/outline/mail-open/mail-open.icon.d.ts +2 -2
- package/src/icons/outline/menu/menu.icon.d.ts +2 -2
- package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +2 -2
- package/src/icons/outline/office-building/office-building.icon.d.ts +2 -2
- package/src/icons/outline/outline-default.preview.tsx +1 -0
- package/src/icons/outline/outline-grey.preview.tsx +1 -0
- package/src/icons/outline/outline-white.preview.tsx +1 -0
- package/src/icons/outline/outline.d.ts +1 -0
- package/src/icons/outline/outline.tsx +2 -0
- package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +2 -2
- package/src/icons/outline/paperclip/paperclip.icon.d.ts +2 -2
- package/src/icons/outline/pencil/pencil.icon.d.ts +2 -2
- package/src/icons/outline/phone/phone.icon.d.ts +2 -2
- package/src/icons/outline/plus/plus.icon.d.ts +2 -2
- package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +2 -2
- package/src/icons/outline/qrcode/qrcode.icon.d.ts +2 -2
- package/src/icons/outline/refresh/refresh.icon.d.ts +2 -2
- package/src/icons/outline/search/search.icon.d.ts +2 -2
- package/src/icons/outline/selector/selector.icon.d.ts +2 -2
- package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -2
- package/src/icons/outline/status-online/status-online.icon.d.ts +2 -2
- package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +2 -2
- package/src/icons/outline/trash/trash.icon.d.ts +2 -2
- package/src/icons/outline/user/user.icon.d.ts +2 -2
- package/src/icons/outline/user-group/user-group.icon.d.ts +2 -2
- package/src/icons/outline/users/users.icon.d.ts +2 -2
- package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -2
- package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -2
- package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +2 -2
- package/src/icons/solid/pencil/pencil-solid.icon.d.ts +2 -2
- package/src/icons/solid/phone/phone-solid.icon.d.ts +2 -2
- package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -2
- package/src/icons/solid/solid.d.ts +18 -8
- package/src/icons/solid/status-online/status-online-solid.icon.d.ts +2 -2
- package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -2
- package/src/models/initials.model.d.ts +5 -5
- package/src/theme/font/font.d.ts +70 -70
- package/src/theme/font/index.d.ts +3 -3
- package/src/theme/provider/index.d.ts +3 -3
- package/src/theme/provider/parent.theme.d.ts +40 -40
- package/src/theme/provider/staff-member.theme.d.ts +40 -40
- package/src/theme/scale/index.d.ts +10 -10
- package/src/types/bubble-alignment.enum.d.ts +2 -2
- package/src/types/icontype.type.d.ts +1 -1
- package/src/types/keyboard-types.enum.d.ts +7 -7
- package/src/types/size.enum.d.ts +3 -3
- package/src/types/visual-state.enum.d.ts +4 -4
- package/src/util/date.d.ts +1 -1
package/App.tsx
CHANGED
|
@@ -53,6 +53,8 @@ import {DepartmentLogoPreview} from './src/components/atoms/department_logo/depa
|
|
|
53
53
|
import {CalendarSelectPreview} from './src/components/atoms/calendar-select/calendar-select.preview';
|
|
54
54
|
import {FooterPreview} from './src/components/atoms/footer/footer.preview';
|
|
55
55
|
import {DefaulSelectPreview} from './src/components/atoms/default-select/default-select.preview';
|
|
56
|
+
import {PasswordInputPreview} from './src/components/atoms/password-input/password-input.preview';
|
|
57
|
+
import {MessageInputPreview} from './src/components/atoms/message-input/message-input.preview';
|
|
56
58
|
|
|
57
59
|
const Stack = createNativeStackNavigator();
|
|
58
60
|
|
|
@@ -195,6 +197,14 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
|
|
|
195
197
|
title="Default select"
|
|
196
198
|
onPress={() => navigation.push('default-select')}
|
|
197
199
|
/>
|
|
200
|
+
<ReactBtn
|
|
201
|
+
title="Password Input Field"
|
|
202
|
+
onPress={() => navigation.push('password-input')}
|
|
203
|
+
/>
|
|
204
|
+
<ReactBtn
|
|
205
|
+
title="Message input"
|
|
206
|
+
onPress={() => navigation.push('message-input')}
|
|
207
|
+
/>
|
|
198
208
|
</ScrollView>
|
|
199
209
|
);
|
|
200
210
|
};
|
|
@@ -315,10 +325,16 @@ function App() {
|
|
|
315
325
|
<Stack.Screen name="calendar-select">
|
|
316
326
|
{() => <CalendarSelectPreview />}
|
|
317
327
|
</Stack.Screen>
|
|
328
|
+
<Stack.Screen name="password-input">
|
|
329
|
+
{() => <PasswordInputPreview />}
|
|
330
|
+
</Stack.Screen>
|
|
318
331
|
<Stack.Screen name="footer">{() => <FooterPreview />}</Stack.Screen>
|
|
319
332
|
<Stack.Screen name="default-select">
|
|
320
333
|
{() => <DefaulSelectPreview />}
|
|
321
334
|
</Stack.Screen>
|
|
335
|
+
<Stack.Screen name="message-input">
|
|
336
|
+
{() => <MessageInputPreview />}
|
|
337
|
+
</Stack.Screen>
|
|
322
338
|
</Stack.Navigator>
|
|
323
339
|
</NavigationContainer>
|
|
324
340
|
</ThemeCtx.Provider>
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import {ImageSourcePropType} from 'react-native';
|
|
3
|
+
import {Size} from '../../../types/size.enum';
|
|
4
|
+
import {Initials} from '../../../models/initials.model';
|
|
5
5
|
declare type AvatarProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
source: ImageSourcePropType | Initials;
|
|
7
|
+
size: Size;
|
|
8
|
+
isBlocked?: boolean;
|
|
9
9
|
};
|
|
10
10
|
declare const Avatar: React.FC<AvatarProps>;
|
|
11
|
-
export {
|
|
11
|
+
export {Avatar as Avatar};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare type BlockedMessageProps = {
|
|
2
|
-
|
|
2
|
+
message: string;
|
|
3
3
|
};
|
|
4
|
-
export declare const BlockedMessage: ({
|
|
4
|
+
export declare const BlockedMessage: ({
|
|
5
|
+
message,
|
|
6
|
+
}: BlockedMessageProps) => JSX.Element;
|
|
5
7
|
export {};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
declare type ButtonProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
label: string;
|
|
3
|
+
icon?: any;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
onPress?: () => void;
|
|
6
6
|
};
|
|
7
|
-
declare const Button: ({
|
|
8
|
-
|
|
7
|
+
declare const Button: ({
|
|
8
|
+
label,
|
|
9
|
+
icon,
|
|
10
|
+
disabled,
|
|
11
|
+
onPress,
|
|
12
|
+
}: ButtonProps) => JSX.Element;
|
|
13
|
+
export {Button as Button};
|
|
@@ -1708,7 +1708,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
1708
1708
|
}
|
|
1709
1709
|
>
|
|
1710
1710
|
<View
|
|
1711
|
-
accessibilityLabel="
|
|
1711
|
+
accessibilityLabel=" Vrijdag 13 Januari 2023 "
|
|
1712
1712
|
accessibilityRole="button"
|
|
1713
1713
|
accessibilityState={
|
|
1714
1714
|
{
|
|
@@ -1728,10 +1728,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
1728
1728
|
style={
|
|
1729
1729
|
{
|
|
1730
1730
|
"alignItems": "center",
|
|
1731
|
-
"borderColor": "#7B93DB",
|
|
1732
|
-
"borderRadius": 21,
|
|
1733
|
-
"borderStyle": "solid",
|
|
1734
|
-
"borderWidth": 1,
|
|
1735
1731
|
"height": 42,
|
|
1736
1732
|
"justifyContent": "center",
|
|
1737
1733
|
"opacity": 1,
|
|
@@ -1751,9 +1747,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
1751
1747
|
"lineHeight": 22.4,
|
|
1752
1748
|
"marginTop": 4,
|
|
1753
1749
|
},
|
|
1754
|
-
{
|
|
1755
|
-
"color": "#7B93DB",
|
|
1756
|
-
},
|
|
1757
1750
|
]
|
|
1758
1751
|
}
|
|
1759
1752
|
>
|
|
@@ -2139,7 +2132,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2139
2132
|
}
|
|
2140
2133
|
>
|
|
2141
2134
|
<View
|
|
2142
|
-
accessibilityLabel=" Donderdag 19 Januari 2023 "
|
|
2135
|
+
accessibilityLabel="today Donderdag 19 Januari 2023 "
|
|
2143
2136
|
accessibilityRole="button"
|
|
2144
2137
|
accessibilityState={
|
|
2145
2138
|
{
|
|
@@ -2159,6 +2152,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2159
2152
|
style={
|
|
2160
2153
|
{
|
|
2161
2154
|
"alignItems": "center",
|
|
2155
|
+
"borderColor": "#7B93DB",
|
|
2156
|
+
"borderRadius": 21,
|
|
2157
|
+
"borderStyle": "solid",
|
|
2158
|
+
"borderWidth": 1,
|
|
2162
2159
|
"height": 42,
|
|
2163
2160
|
"justifyContent": "center",
|
|
2164
2161
|
"opacity": 1,
|
|
@@ -2178,6 +2175,9 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2178
2175
|
"lineHeight": 22.4,
|
|
2179
2176
|
"marginTop": 4,
|
|
2180
2177
|
},
|
|
2178
|
+
{
|
|
2179
|
+
"color": "#7B93DB",
|
|
2180
|
+
},
|
|
2181
2181
|
]
|
|
2182
2182
|
}
|
|
2183
2183
|
>
|
|
@@ -2208,7 +2208,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2208
2208
|
}
|
|
2209
2209
|
>
|
|
2210
2210
|
<View
|
|
2211
|
-
accessibilityLabel=" Vrijdag 20 Januari 2023 "
|
|
2211
|
+
accessibilityLabel="today Vrijdag 20 Januari 2023 "
|
|
2212
2212
|
accessibilityRole="button"
|
|
2213
2213
|
accessibilityState={
|
|
2214
2214
|
{
|
|
@@ -2228,6 +2228,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2228
2228
|
style={
|
|
2229
2229
|
{
|
|
2230
2230
|
"alignItems": "center",
|
|
2231
|
+
"borderColor": "#7B93DB",
|
|
2232
|
+
"borderRadius": 21,
|
|
2233
|
+
"borderStyle": "solid",
|
|
2234
|
+
"borderWidth": 1,
|
|
2231
2235
|
"height": 42,
|
|
2232
2236
|
"justifyContent": "center",
|
|
2233
2237
|
"opacity": 1,
|
|
@@ -2247,6 +2251,9 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2247
2251
|
"lineHeight": 22.4,
|
|
2248
2252
|
"marginTop": 4,
|
|
2249
2253
|
},
|
|
2254
|
+
{
|
|
2255
|
+
"color": "#7B93DB",
|
|
2256
|
+
},
|
|
2250
2257
|
]
|
|
2251
2258
|
}
|
|
2252
2259
|
>
|
|
@@ -5140,8 +5147,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5140
5147
|
}
|
|
5141
5148
|
>
|
|
5142
5149
|
<View
|
|
5143
|
-
accessibilityLabel="
|
|
5144
|
-
accessibilityRole="button"
|
|
5150
|
+
accessibilityLabel=" Vrijdag 13 Januari 2023 "
|
|
5145
5151
|
accessibilityState={
|
|
5146
5152
|
{
|
|
5147
5153
|
"disabled": false,
|
|
@@ -5160,10 +5166,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5160
5166
|
style={
|
|
5161
5167
|
{
|
|
5162
5168
|
"alignItems": "center",
|
|
5163
|
-
"borderColor": "#7B93DB",
|
|
5164
|
-
"borderRadius": 21,
|
|
5165
|
-
"borderStyle": "solid",
|
|
5166
|
-
"borderWidth": 1,
|
|
5167
5169
|
"height": 42,
|
|
5168
5170
|
"justifyContent": "center",
|
|
5169
5171
|
"opacity": 1,
|
|
@@ -5184,7 +5186,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5184
5186
|
"marginTop": 4,
|
|
5185
5187
|
},
|
|
5186
5188
|
{
|
|
5187
|
-
"color": "#
|
|
5189
|
+
"color": "#9AA5B1",
|
|
5188
5190
|
},
|
|
5189
5191
|
]
|
|
5190
5192
|
}
|
|
@@ -5581,7 +5583,8 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5581
5583
|
}
|
|
5582
5584
|
>
|
|
5583
5585
|
<View
|
|
5584
|
-
accessibilityLabel=" Donderdag 19 Januari 2023 "
|
|
5586
|
+
accessibilityLabel="today Donderdag 19 Januari 2023 "
|
|
5587
|
+
accessibilityRole="button"
|
|
5585
5588
|
accessibilityState={
|
|
5586
5589
|
{
|
|
5587
5590
|
"disabled": false,
|
|
@@ -5600,6 +5603,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5600
5603
|
style={
|
|
5601
5604
|
{
|
|
5602
5605
|
"alignItems": "center",
|
|
5606
|
+
"borderColor": "#7B93DB",
|
|
5607
|
+
"borderRadius": 21,
|
|
5608
|
+
"borderStyle": "solid",
|
|
5609
|
+
"borderWidth": 1,
|
|
5603
5610
|
"height": 42,
|
|
5604
5611
|
"justifyContent": "center",
|
|
5605
5612
|
"opacity": 1,
|
|
@@ -5620,7 +5627,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5620
5627
|
"marginTop": 4,
|
|
5621
5628
|
},
|
|
5622
5629
|
{
|
|
5623
|
-
"color": "#
|
|
5630
|
+
"color": "#7B93DB",
|
|
5624
5631
|
},
|
|
5625
5632
|
]
|
|
5626
5633
|
}
|
|
@@ -5652,7 +5659,8 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5652
5659
|
}
|
|
5653
5660
|
>
|
|
5654
5661
|
<View
|
|
5655
|
-
accessibilityLabel=" Vrijdag 20 Januari 2023 "
|
|
5662
|
+
accessibilityLabel="today Vrijdag 20 Januari 2023 "
|
|
5663
|
+
accessibilityRole="button"
|
|
5656
5664
|
accessibilityState={
|
|
5657
5665
|
{
|
|
5658
5666
|
"disabled": false,
|
|
@@ -5671,6 +5679,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5671
5679
|
style={
|
|
5672
5680
|
{
|
|
5673
5681
|
"alignItems": "center",
|
|
5682
|
+
"borderColor": "#7B93DB",
|
|
5683
|
+
"borderRadius": 21,
|
|
5684
|
+
"borderStyle": "solid",
|
|
5685
|
+
"borderWidth": 1,
|
|
5674
5686
|
"height": 42,
|
|
5675
5687
|
"justifyContent": "center",
|
|
5676
5688
|
"opacity": 1,
|
|
@@ -5691,7 +5703,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5691
5703
|
"marginTop": 4,
|
|
5692
5704
|
},
|
|
5693
5705
|
{
|
|
5694
|
-
"color": "#
|
|
5706
|
+
"color": "#7B93DB",
|
|
5695
5707
|
},
|
|
5696
5708
|
]
|
|
5697
5709
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {DateTime} from 'luxon';
|
|
2
2
|
declare type CalendarProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
onDayPress: (day: DateTime) => void;
|
|
4
|
+
selected: DateTime;
|
|
5
|
+
minDate?: string;
|
|
6
|
+
maxDate?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const Calendar: ({
|
|
8
|
+
export declare const Calendar: ({
|
|
9
|
+
onDayPress,
|
|
10
|
+
selected,
|
|
11
|
+
minDate,
|
|
12
|
+
maxDate,
|
|
13
|
+
}: CalendarProps) => JSX.Element;
|
|
9
14
|
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {DateTime} from 'luxon';
|
|
2
2
|
declare type CalendarSelectProps = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
onPressDate: (date: DateTime) => void;
|
|
4
|
+
startDate: DateTime;
|
|
5
5
|
};
|
|
6
|
-
declare const CalendarSelect: ({
|
|
7
|
-
|
|
6
|
+
declare const CalendarSelect: ({
|
|
7
|
+
onPressDate,
|
|
8
|
+
startDate,
|
|
9
|
+
}: CalendarSelectProps) => JSX.Element;
|
|
10
|
+
export {CalendarSelect as CalendarSelect};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare type CancelLinkProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
label: string;
|
|
3
|
+
onPress: () => void;
|
|
4
4
|
};
|
|
5
|
-
declare const CancelLink: ({
|
|
6
|
-
export {
|
|
5
|
+
declare const CancelLink: ({label, onPress}: CancelLinkProps) => JSX.Element;
|
|
6
|
+
export {CancelLink as CancelLink};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare type CheckProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
value: boolean;
|
|
3
|
+
onToggle: () => void;
|
|
4
4
|
};
|
|
5
|
-
export declare const Check: ({
|
|
5
|
+
export declare const Check: ({value, onToggle}: CheckProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
declare type CheckboxProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
value: boolean;
|
|
3
|
+
onValueChange: () => void;
|
|
4
|
+
label: string;
|
|
5
5
|
};
|
|
6
|
-
declare const Checkbox: ({
|
|
7
|
-
|
|
6
|
+
declare const Checkbox: ({
|
|
7
|
+
value,
|
|
8
|
+
onValueChange,
|
|
9
|
+
label,
|
|
10
|
+
}: CheckboxProps) => JSX.Element;
|
|
11
|
+
export {Checkbox as Checkbox};
|
|
@@ -1,18 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import {ImageSourcePropType} from 'react-native';
|
|
2
|
+
import {Initials} from '../../../models/initials.model';
|
|
3
|
+
import {VisualState} from '../../../types/visual-state.enum';
|
|
4
4
|
declare type ChildListItemProps = {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
label: string;
|
|
8
8
|
selectable: boolean;
|
|
9
9
|
isSelected: boolean;
|
|
10
|
-
onPressArrow: () => void;
|
|
11
|
-
onPressText: () => void;
|
|
10
|
+
onPressArrow: (id: string) => void;
|
|
11
|
+
onPressText: (id: string) => void;
|
|
12
12
|
onSelect: (id: string) => void;
|
|
13
13
|
sourceAvatar: ImageSourcePropType | Initials;
|
|
14
14
|
textTimeTracker: string;
|
|
15
15
|
visualStateTimeTracker: VisualState;
|
|
16
16
|
};
|
|
17
|
-
declare const ChildListItem: ({
|
|
18
|
-
|
|
17
|
+
declare const ChildListItem: ({
|
|
18
|
+
id,
|
|
19
|
+
name,
|
|
20
|
+
label,
|
|
21
|
+
selectable,
|
|
22
|
+
isSelected,
|
|
23
|
+
onPressArrow,
|
|
24
|
+
onPressText,
|
|
25
|
+
onSelect,
|
|
26
|
+
sourceAvatar,
|
|
27
|
+
textTimeTracker,
|
|
28
|
+
visualStateTimeTracker,
|
|
29
|
+
}: ChildListItemProps) => JSX.Element;
|
|
30
|
+
export {ChildListItem as ChildListItem};
|
|
@@ -16,8 +16,8 @@ type ChildListItemProps = {
|
|
|
16
16
|
label: string;
|
|
17
17
|
selectable: boolean;
|
|
18
18
|
isSelected: boolean;
|
|
19
|
-
onPressArrow: () => void;
|
|
20
|
-
onPressText: () => void;
|
|
19
|
+
onPressArrow: (id: string) => void;
|
|
20
|
+
onPressText: (id: string) => void;
|
|
21
21
|
onSelect: (id: string) => void;
|
|
22
22
|
sourceAvatar: ImageSourcePropType | Initials;
|
|
23
23
|
textTimeTracker: string;
|
|
@@ -46,7 +46,7 @@ const ChildListItem = ({
|
|
|
46
46
|
);
|
|
47
47
|
|
|
48
48
|
const onPressSelectable = () => {
|
|
49
|
-
selectable ? onSelect(id) : onPressText();
|
|
49
|
+
selectable ? onSelect(id) : onPressText(id);
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
return (
|
|
@@ -72,7 +72,10 @@ const ChildListItem = ({
|
|
|
72
72
|
</Pressable>
|
|
73
73
|
<>
|
|
74
74
|
{!selectable ? (
|
|
75
|
-
<Pressable
|
|
75
|
+
<Pressable
|
|
76
|
+
onPress={(id) => onPressArrow}
|
|
77
|
+
style={styles.iconContainer}
|
|
78
|
+
>
|
|
76
79
|
<ChevronRightIcon />
|
|
77
80
|
</Pressable>
|
|
78
81
|
) : null}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
declare type ContactItemProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
name: string;
|
|
3
|
+
firstname: string;
|
|
4
|
+
label: string;
|
|
5
|
+
onPress?: () => void;
|
|
6
|
+
isBlocked?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare const ContactItem: ({
|
|
9
|
-
|
|
8
|
+
declare const ContactItem: ({
|
|
9
|
+
name,
|
|
10
|
+
firstname,
|
|
11
|
+
label,
|
|
12
|
+
onPress,
|
|
13
|
+
isBlocked,
|
|
14
|
+
}: ContactItemProps) => JSX.Element;
|
|
15
|
+
export {ContactItem as ContactItem};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare type ContactRoleProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
name: string;
|
|
3
|
+
role?: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const ContactRole: ({
|
|
5
|
+
export declare const ContactRole: ({
|
|
6
|
+
name,
|
|
7
|
+
role,
|
|
8
|
+
}: ContactRoleProps) => JSX.Element;
|
|
6
9
|
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {DateTime} from 'luxon';
|
|
2
2
|
declare type DateInputProps = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
onPress: () => void;
|
|
4
|
+
value: DateTime;
|
|
5
5
|
};
|
|
6
|
-
export declare const DateInput: ({
|
|
6
|
+
export declare const DateInput: ({
|
|
7
|
+
onPress,
|
|
8
|
+
value,
|
|
9
|
+
}: DateInputProps) => JSX.Element;
|
|
7
10
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {DateTime} from 'luxon';
|
|
2
2
|
declare type DayProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
date: DateTime;
|
|
4
|
+
onSelect: (date: DateTime) => void;
|
|
5
|
+
isSelected?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const Day: ({
|
|
8
|
-
export {
|
|
7
|
+
declare const Day: ({onSelect, date, isSelected}: DayProps) => JSX.Element;
|
|
8
|
+
export {Day as Day};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {DateTime} from 'luxon';
|
|
2
2
|
declare type DaySelectProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
onSelectDate: (date: DateTime) => void;
|
|
4
|
+
startDate: DateTime;
|
|
5
|
+
selectedDate: DateTime;
|
|
6
6
|
};
|
|
7
|
-
declare const DaySelect: ({
|
|
8
|
-
|
|
7
|
+
declare const DaySelect: ({
|
|
8
|
+
onSelectDate,
|
|
9
|
+
selectedDate,
|
|
10
|
+
startDate,
|
|
11
|
+
}: DaySelectProps) => JSX.Element;
|
|
12
|
+
export {DaySelect as DaySelect};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare type DefaultSelectProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
label: string;
|
|
3
|
+
onPress: () => void;
|
|
4
4
|
};
|
|
5
|
-
export declare const DefaultSelect: ({
|
|
5
|
+
export declare const DefaultSelect: ({
|
|
6
|
+
label,
|
|
7
|
+
onPress,
|
|
8
|
+
}: DefaultSelectProps) => JSX.Element;
|
|
6
9
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare type DepartmentLogoProps = {
|
|
2
|
-
|
|
2
|
+
department: string;
|
|
3
3
|
};
|
|
4
|
-
declare const DepartmentLogo: ({
|
|
5
|
-
|
|
4
|
+
declare const DepartmentLogo: ({
|
|
5
|
+
department,
|
|
6
|
+
}: DepartmentLogoProps) => JSX.Element;
|
|
7
|
+
export {DepartmentLogo as DepartmentLogo};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
declare type FilterRangeProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
value: number | number[];
|
|
3
|
+
onChange: (value: number | number[]) => void;
|
|
4
|
+
minValue: number;
|
|
5
|
+
maxValue: number;
|
|
6
|
+
prefix?: string;
|
|
7
|
+
suffix?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const FilterRange: ({
|
|
9
|
+
export declare const FilterRange: ({
|
|
10
|
+
value,
|
|
11
|
+
minValue,
|
|
12
|
+
maxValue,
|
|
13
|
+
onChange,
|
|
14
|
+
prefix,
|
|
15
|
+
suffix,
|
|
16
|
+
}: FilterRangeProps) => JSX.Element;
|
|
10
17
|
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
declare type FilterTab = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
tabItem: {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}[];
|
|
6
|
+
filterValue: (value: string) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const FilterTab: ({
|
|
8
|
+
export declare const FilterTab: ({
|
|
9
|
+
tabItem,
|
|
10
|
+
filterValue,
|
|
11
|
+
}: FilterTab) => JSX.Element;
|
|
9
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare type FooterProps = {
|
|
3
|
-
|
|
3
|
+
child: React.ReactNode;
|
|
4
4
|
};
|
|
5
|
-
declare const Footer: ({
|
|
6
|
-
export {
|
|
5
|
+
declare const Footer: ({child}: FooterProps) => JSX.Element;
|
|
6
|
+
export {Footer as Footer};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import {ImageSourcePropType} from 'react-native';
|
|
2
|
+
import {BubbleAlignment} from '../../../types/bubble-alignment.enum';
|
|
3
3
|
declare type ImageBubbleProps = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
source: ImageSourcePropType;
|
|
5
|
+
bubbleAlignment: BubbleAlignment;
|
|
6
6
|
};
|
|
7
|
-
declare const ImageBubble: ({
|
|
8
|
-
|
|
7
|
+
declare const ImageBubble: ({
|
|
8
|
+
source,
|
|
9
|
+
bubbleAlignment,
|
|
10
|
+
}: ImageBubbleProps) => JSX.Element;
|
|
11
|
+
export {ImageBubble as ImageBubble};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare type IncrementInputProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
value: number;
|
|
3
|
+
onPress: (number: number) => void;
|
|
4
4
|
};
|
|
5
|
-
export declare const IncrementInput: ({
|
|
5
|
+
export declare const IncrementInput: ({
|
|
6
|
+
value,
|
|
7
|
+
onPress,
|
|
8
|
+
}: IncrementInputProps) => JSX.Element;
|
|
6
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare type InfoProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
label: string;
|
|
3
|
+
description: string;
|
|
4
4
|
};
|
|
5
|
-
declare const Info: ({
|
|
6
|
-
export {
|
|
5
|
+
declare const Info: ({label, description}: InfoProps) => JSX.Element;
|
|
6
|
+
export {Info as Info};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare type logoProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
colorIsWhite?: boolean;
|
|
3
|
+
big?: boolean;
|
|
4
4
|
};
|
|
5
|
-
declare const Logo: ({
|
|
6
|
-
export {
|
|
5
|
+
declare const Logo: ({colorIsWhite, big}: logoProps) => JSX.Element;
|
|
6
|
+
export {Logo as Logo};
|