@tactics/toddle-styleguide 1.2.7 → 1.2.8
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 +5 -0
- package/index.d.ts +3 -1
- package/index.tsx +50 -46
- package/package.json +1 -1
- package/src/components/atoms/backdrop/backdrop.component.d.ts +7 -4
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +628 -1810
- package/src/components/atoms/calendar/calendar.component.d.ts +11 -6
- package/src/components/atoms/check-switch/check-switch.component.d.ts +3 -3
- package/src/components/atoms/footer/footer.component.d.ts +6 -6
- package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.component.d.ts +10 -2
- package/src/components/atoms/heading-components/heading1/heading1.component.d.ts +10 -2
- package/src/components/atoms/heading-components/heading2/heading2.component.d.ts +10 -2
- package/src/components/atoms/heading-components/heading3/heading3.component.d.ts +10 -2
- package/src/components/atoms/heading-components/heading4/heading4.component.d.ts +10 -2
- package/src/components/atoms/heading-components/index.d.ts +6 -6
- package/src/components/atoms/image-bubble/image-bubble.component.d.ts +9 -6
- package/src/components/atoms/increment-input/increment-input.component.d.ts +8 -4
- package/src/components/atoms/logo/logo.component.d.ts +4 -4
- package/src/components/atoms/paragraph-components/index.d.ts +4 -4
- package/src/components/atoms/paragraph-components/paragraph/paragraph.component.d.ts +10 -2
- package/src/components/atoms/paragraph-components/small-text/small-text.component.d.ts +10 -2
- package/src/components/atoms/paragraph-components/tiny-text/tiny-text.component.d.ts +10 -2
- package/src/components/atoms/quick-message/quick-message.component.d.ts +8 -4
- package/src/components/atoms/quick-message/quick-message.styles.d.ts +12 -12
- package/src/components/atoms/split-container/split-container.component.d.ts +7 -4
- package/src/components/atoms/static-wave/static-wave.component.d.ts +11 -6
- 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/molecules/avatar/avatar.component.d.ts +18 -11
- package/src/components/molecules/blocked-message/blocked-message.component.d.ts +4 -2
- package/src/components/molecules/button/button.component.d.ts +20 -11
- package/src/components/molecules/button/button.styles.d.ts +17 -13
- package/src/components/molecules/calendar-select/calendar-select.component.d.ts +12 -7
- package/src/components/molecules/cancel-link/cancel-link.component.d.ts +4 -4
- package/src/components/molecules/checkbox/checkbox.component.d.ts +9 -5
- package/src/components/molecules/contact-role/contact-role.component.d.ts +6 -3
- package/src/components/molecules/date-input/date-input.component.d.ts +7 -4
- package/src/components/molecules/day/day.component.d.ts +6 -6
- package/src/components/molecules/default-select/default-select.component.d.ts +6 -3
- package/src/components/molecules/department_logo/department-logo.component.d.ts +5 -3
- package/src/components/molecules/failed-to-send/failed-bubble.component.d.ts +11 -6
- package/src/components/molecules/filter-range/filter-range.component.d.ts +14 -7
- package/src/components/molecules/filter-tab/filter-tab.component.d.ts +11 -6
- package/src/components/molecules/filter-tab/filter-tab.component.tsx +9 -5
- package/src/components/molecules/filter-tab/filter-tab.preview.tsx +2 -2
- package/src/components/molecules/filter-tab/filter-tab.test.js +2 -2
- package/src/components/molecules/info/info.component.d.ts +4 -4
- package/src/components/molecules/language-button/language-button.component.d.ts +8 -4
- package/src/components/molecules/message-input/message-input.component.d.ts +11 -7
- package/src/components/molecules/more-info-button/more-info-button.component.d.ts +8 -4
- package/src/components/molecules/password-input/password-input.component.d.ts +9 -5
- package/src/components/molecules/pill/pill.component.d.ts +5 -5
- package/src/components/molecules/pressable-icon/pressable-icon.component.d.ts +10 -5
- package/src/components/molecules/quick-filter/quick-filter.component.d.ts +16 -9
- package/src/components/molecules/search-input/search.component.d.ts +14 -8
- package/src/components/molecules/search-input/search.preview.d.ts +1 -1
- package/src/components/molecules/select-link/select-link.component.d.ts +4 -4
- package/src/components/molecules/select-list-item/select-list-item.component.d.ts +13 -7
- package/src/components/molecules/select-picker/select-picker.component.d.ts +13 -8
- package/src/components/molecules/send-bubble/send-text-bubble.component.d.ts +17 -10
- package/src/components/molecules/snackbar/snackbar.component.d.ts +5 -5
- package/src/components/molecules/swipe/swipe.component.d.ts +5 -5
- package/src/components/molecules/tag/tag.component.d.ts +11 -6
- package/src/components/molecules/time-picker/time-picker.component.d.ts +10 -5
- package/src/components/molecules/time-tracker/time-tracker.component.d.ts +10 -6
- package/src/components/molecules/timeline/timeline.component.d.ts +6 -3
- package/src/components/molecules/timestamp/timestamp.component.d.ts +3 -3
- package/src/components/molecules/wave-background/wave.component.d.ts +7 -2
- package/src/components/molecules/wide-button/wide-button.component.d.ts +11 -6
- package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +0 -4
- package/src/components/organisms/child-list-item/child-list-item.component.d.ts +32 -17
- package/src/components/organisms/child-list-item/child-list-item.preview.tsx +1 -0
- package/src/components/organisms/child-list-item/child-list-item.styles.js +0 -2
- package/src/components/organisms/contact-item/contact-item.component.d.ts +11 -6
- package/src/components/organisms/day-select/day-select.component.d.ts +10 -6
- package/src/components/organisms/loading-indicator/animation-style.animate.d.ts +13 -3
- package/src/components/organisms/loading-indicator/dot.component.d.ts +3 -3
- package/src/components/organisms/loading-indicator/loading-indicator.component.d.ts +9 -2
- package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +0 -2
- package/src/components/organisms/my-child-list-item/my-child-list-item.component.d.ts +18 -10
- package/src/components/organisms/my-child-list-item/my-child-list-item.preview.tsx +1 -0
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.js +0 -1
- package/src/components/organisms/person-info-card/person-info-card.component.d.ts +18 -9
- package/src/components/organisms/person-info-card/person-info-card.component.tsx +3 -0
- package/src/components/organisms/tab-view/__snapshots__/tab-view.test.js.snap +421 -0
- package/src/components/organisms/tab-view/tab-view.component.d.ts +15 -0
- package/src/components/organisms/tab-view/tab-view.component.tsx +48 -0
- package/src/components/organisms/tab-view/tab-view.preview.d.ts +1 -0
- package/src/components/organisms/tab-view/tab-view.preview.tsx +36 -0
- package/src/components/organisms/tab-view/tab-view.styles.d.ts +10 -0
- package/src/components/organisms/tab-view/tab-view.styles.js +14 -0
- package/src/components/organisms/tab-view/tab-view.test.js +37 -0
- package/src/components/organisms/text-bubble/text-bubble.component.d.ts +24 -14
- package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +44 -30
- package/src/components/templates/modal/components/fade-panel.component.d.ts +16 -8
- package/src/components/templates/modal/modal.component.d.ts +14 -7
- package/src/components/templates/popover/components/foreground/foreground.component.d.ts +4 -4
- package/src/components/templates/popover/components/modal/close/close.component.d.ts +4 -4
- package/src/components/templates/popover/components/modal/heading/heading.component.d.ts +4 -4
- package/src/components/templates/popover/components/modal/modal.component.d.ts +17 -8
- package/src/components/templates/popover/components/modal/modal.component.tsx +8 -2
- package/src/components/templates/popover/components/modal/scroll-content/scroll-content.component.d.ts +5 -3
- package/src/components/templates/popover/popover.component.d.ts +15 -7
- package/src/components/templates/popover/popover.component.tsx +3 -0
- package/src/components/templates/popover-action/popover-action.component.d.ts +8 -4
- package/src/context/loading-dots.context.d.ts +9 -6
- package/src/context/theme.context.d.ts +47 -47
- package/src/gradients/main/main.gradient.d.ts +4 -2
- package/src/icons/index.d.ts +7 -2
- 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 +5 -2
- package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +5 -2
- package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +5 -2
- package/src/icons/outline/clock/clock.icon.d.ts +2 -2
- package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +5 -2
- package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +5 -2
- package/src/icons/outline/document-text/document-text.icon.d.ts +5 -2
- package/src/icons/outline/exclamation/exclamation.icon.d.ts +5 -2
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +5 -2
- package/src/icons/outline/eye/eye.icon.d.ts +2 -2
- package/src/icons/outline/eye-off/eye-off.icon.d.ts +2 -2
- package/src/icons/outline/filter/filter.icon.d.ts +2 -2
- package/src/icons/outline/information-circle/information-circle.icon.d.ts +5 -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 +5 -2
- package/src/icons/outline/office-building/office-building.icon.d.ts +5 -2
- package/src/icons/outline/outline.d.ts +6 -2
- package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +5 -2
- package/src/icons/outline/paperclip/paperclip.icon.d.ts +5 -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 +5 -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 +5 -2
- package/src/icons/outline/status-online/status-online.icon.d.ts +5 -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 +5 -2
- package/src/icons/outline/users/users.icon.d.ts +2 -2
- package/src/icons/outline/xmark/xmark.icon.d.ts +2 -2
- package/src/icons/solid/calendar/calendar.icon.d.ts +2 -2
- package/src/icons/solid/chat/chat.icon.d.ts +2 -2
- package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -2
- package/src/icons/solid/check-circle/check-circle.icon.d.ts +5 -2
- package/src/icons/solid/chevron-left/chevron-left.icon.d.ts +5 -2
- package/src/icons/solid/chevron-right/chevron-right.icon.d.ts +5 -2
- package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -2
- package/src/icons/solid/cloud-download/cloud-download.icon.d.ts +5 -2
- package/src/icons/solid/currency-euro/currency-euro.icon.d.ts +5 -2
- package/src/icons/solid/document-text/document-text-solid.icon.d.ts +5 -2
- package/src/icons/solid/exclamation/exclamation.icon.d.ts +5 -2
- package/src/icons/solid/exclamation-circle/exclamation-circle.icon.d.ts +5 -2
- package/src/icons/solid/eye/eye.icon.d.ts +2 -2
- package/src/icons/solid/eye-off/eye-off.icon.d.ts +2 -2
- package/src/icons/solid/filter/filter.icon.d.ts +2 -2
- package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +5 -2
- package/src/icons/solid/logout/logout.icon.d.ts +2 -2
- package/src/icons/solid/mail/mail.icon.d.ts +2 -2
- package/src/icons/solid/mail-open/mail-open.icon.d.ts +2 -2
- package/src/icons/solid/menu/menu.icon.d.ts +2 -2
- package/src/icons/solid/minus-sm/minus-sm.icon.d.ts +5 -2
- package/src/icons/solid/office-building/office-building.icon.d.ts +5 -2
- package/src/icons/solid/paper-airplane/paper-airplane.icon.d.ts +5 -2
- package/src/icons/solid/paperclip/paperclip.icon.d.ts +5 -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/plus/plus.icon.d.ts +2 -2
- package/src/icons/solid/plus-sm/plus-sm.icon.d.ts +5 -2
- package/src/icons/solid/qrcode/qrcode.icon.d.ts +2 -2
- package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -2
- package/src/icons/solid/search/search.icon.d.ts +2 -2
- package/src/icons/solid/selector/selector.icon.d.ts +2 -2
- package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.d.ts +5 -2
- package/src/icons/solid/solid.d.ts +6 -2
- package/src/icons/solid/status-online/status-online-solid.icon.d.ts +5 -2
- package/src/icons/solid/thumb-up/thumb-up.icon.d.ts +2 -2
- package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -2
- package/src/icons/solid/user/user.icon.d.ts +2 -2
- package/src/icons/solid/user-group/user-group.icon.d.ts +5 -2
- package/src/icons/solid/users/users-solid.icon.d.ts +2 -2
- package/src/icons/solid/xmark/xmark.icon.d.ts +2 -2
- package/src/interfaces/icon.interface.d.ts +5 -5
- package/src/models/hex-color.model.d.ts +4 -4
- 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 +45 -45
- package/src/theme/provider/staff-member.theme.d.ts +45 -45
- package/src/theme/responsive/index.d.ts +5 -2
- 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 +41 -1
- package/src/types/keyboard-types.enum.d.ts +7 -7
- package/src/types/loading-dots.type.d.ts +6 -6
- package/src/types/size.enum.d.ts +3 -3
- package/src/types/text-properties.type.d.ts +8 -8
- package/src/types/visual-state.enum.d.ts +5 -5
- package/src/utilities/color-handler/color-handler.d.ts +6 -2
- package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +18 -18
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +14 -14
- package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +92 -40
- package/src/utilities/toddle-datetime/types/duration-like.type.d.ts +1 -1
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +11 -2
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
type FilterTab = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
tabItem: {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}[];
|
|
6
|
+
setFilterValue: (value: string) => void;
|
|
7
|
+
setActivePage?: (index: number) => void;
|
|
7
8
|
};
|
|
8
|
-
export declare const FilterTab: ({
|
|
9
|
+
export declare const FilterTab: ({
|
|
10
|
+
tabItem,
|
|
11
|
+
setFilterValue,
|
|
12
|
+
setActivePage,
|
|
13
|
+
}: FilterTab) => JSX.Element;
|
|
9
14
|
export {};
|
|
@@ -11,15 +11,19 @@ type FilterTab = {
|
|
|
11
11
|
value: string;
|
|
12
12
|
label: string;
|
|
13
13
|
}[];
|
|
14
|
-
|
|
14
|
+
setFilterValue: (value: string) => void;
|
|
15
|
+
setActivePage?: (index: number) => void;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
|
-
export const FilterTab = ({
|
|
18
|
+
export const FilterTab = ({
|
|
19
|
+
tabItem,
|
|
20
|
+
setFilterValue,
|
|
21
|
+
setActivePage,
|
|
22
|
+
}: FilterTab) => {
|
|
18
23
|
const [dimensions, setDimensions] = useState({width: 0, height: 0});
|
|
19
24
|
const [translateValue] = useState(new Animated.Value(0));
|
|
20
25
|
|
|
21
26
|
const [clickedButton, setClickedButton] = useState(0);
|
|
22
|
-
const [isActive, setIsActive] = useState(false);
|
|
23
27
|
|
|
24
28
|
// Default from design.
|
|
25
29
|
const minTabWidth = 95;
|
|
@@ -55,9 +59,9 @@ export const FilterTab = ({tabItem, filterValue}: FilterTab) => {
|
|
|
55
59
|
style={styles.tab}
|
|
56
60
|
onPress={() => {
|
|
57
61
|
setClickedButton(index);
|
|
58
|
-
setIsActive(!isActive);
|
|
59
62
|
translateTab(index, inRow);
|
|
60
|
-
|
|
63
|
+
setFilterValue(tab.value);
|
|
64
|
+
setActivePage ? setActivePage(index) : null;
|
|
61
65
|
}}
|
|
62
66
|
>
|
|
63
67
|
<Heading4
|
|
@@ -70,10 +70,10 @@ export const FilterTabPreview = ({}: {}) => {
|
|
|
70
70
|
marginBottom: 20,
|
|
71
71
|
}}
|
|
72
72
|
>
|
|
73
|
-
<FilterTab tabItem={tabs}
|
|
73
|
+
<FilterTab tabItem={tabs} setFilterValue={setFilterValue} />
|
|
74
74
|
</View>
|
|
75
75
|
<View>
|
|
76
|
-
<FilterTab tabItem={data}
|
|
76
|
+
<FilterTab tabItem={data} setFilterValue={setFilterValue} />
|
|
77
77
|
</View>
|
|
78
78
|
</View>
|
|
79
79
|
);
|
|
@@ -15,7 +15,7 @@ describe('Filter tab test', () => {
|
|
|
15
15
|
},
|
|
16
16
|
];
|
|
17
17
|
const tree = render
|
|
18
|
-
.create(<FilterTab tabItem={tabs1}
|
|
18
|
+
.create(<FilterTab tabItem={tabs1} setFilterValue={() => 'NFC'} />)
|
|
19
19
|
.toJSON();
|
|
20
20
|
expect(tree).toMatchSnapshot();
|
|
21
21
|
});
|
|
@@ -35,7 +35,7 @@ describe('Filter tab test', () => {
|
|
|
35
35
|
},
|
|
36
36
|
];
|
|
37
37
|
const tree = render
|
|
38
|
-
.create(<FilterTab tabItem={tabs2}
|
|
38
|
+
.create(<FilterTab tabItem={tabs2} setFilterValue={() => 'M'} />)
|
|
39
39
|
.toJSON();
|
|
40
40
|
expect(tree).toMatchSnapshot();
|
|
41
41
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
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,7 +1,11 @@
|
|
|
1
1
|
type LanguageButtonProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
label: string;
|
|
3
|
+
onPress?: () => void;
|
|
4
|
+
textColor?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const LanguageButton: ({
|
|
6
|
+
export declare const LanguageButton: ({
|
|
7
|
+
label,
|
|
8
|
+
onPress,
|
|
9
|
+
textColor,
|
|
10
|
+
}: LanguageButtonProps) => JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import {TextInputProps} from 'react-native';
|
|
2
|
+
import {KeyBoardTypes} from '../../../types/keyboard-types.enum';
|
|
3
3
|
interface MessageInputProps extends TextInputProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
keyboardType?: KeyBoardTypes;
|
|
5
|
+
onPressSend: () => void;
|
|
6
|
+
addAttachment: () => void;
|
|
7
7
|
}
|
|
8
|
-
declare const MessageInput: ({
|
|
9
|
-
|
|
8
|
+
declare const MessageInput: ({
|
|
9
|
+
keyboardType,
|
|
10
|
+
onPressSend,
|
|
11
|
+
...props
|
|
12
|
+
}: MessageInputProps) => JSX.Element;
|
|
13
|
+
export {MessageInput};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
type MoreInfoButtonProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
label: string;
|
|
3
|
+
onPress?: () => void;
|
|
4
|
+
textColor?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const MoreInfoButton: ({
|
|
6
|
+
export declare const MoreInfoButton: ({
|
|
7
|
+
label,
|
|
8
|
+
onPress,
|
|
9
|
+
textColor,
|
|
10
|
+
}: MoreInfoButtonProps) => JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
interface PasswordInputProps
|
|
4
|
-
|
|
1
|
+
import {TextInputProps} from 'react-native';
|
|
2
|
+
import {KeyBoardTypes} from '../../../types/keyboard-types.enum';
|
|
3
|
+
interface PasswordInputProps
|
|
4
|
+
extends Omit<TextInputProps, 'secureTextEntry' | 'keyboardType'> {
|
|
5
|
+
keyboardType?: KeyBoardTypes;
|
|
5
6
|
}
|
|
6
|
-
export declare const PasswordInput: ({
|
|
7
|
+
export declare const PasswordInput: ({
|
|
8
|
+
keyboardType,
|
|
9
|
+
...props
|
|
10
|
+
}: PasswordInputProps) => JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {VisualState} from '../../../types/visual-state.enum';
|
|
2
2
|
type PillProps = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
visualState: VisualState;
|
|
4
|
+
label: string;
|
|
5
5
|
};
|
|
6
|
-
declare const Pill: ({
|
|
7
|
-
export {
|
|
6
|
+
declare const Pill: ({visualState, label}: PillProps) => JSX.Element;
|
|
7
|
+
export {Pill as Pill};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
type PressableIconProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
icon: React.ReactElement;
|
|
4
|
+
inverted?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onPress?: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const PressableIcon: ({
|
|
8
|
+
export declare const PressableIcon: ({
|
|
9
|
+
icon,
|
|
10
|
+
inverted,
|
|
11
|
+
disabled,
|
|
12
|
+
onPress,
|
|
13
|
+
}: PressableIconProps) => JSX.Element;
|
|
9
14
|
export {};
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {VisualState} from '../../../types/visual-state.enum';
|
|
2
2
|
type QuickFilterProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
id: string;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
amount: number;
|
|
6
|
+
isSelected?: boolean;
|
|
7
|
+
onSelect: (id: string) => void;
|
|
8
|
+
visualState: VisualState;
|
|
9
9
|
};
|
|
10
|
-
declare const QuickFilter: ({
|
|
11
|
-
|
|
10
|
+
declare const QuickFilter: ({
|
|
11
|
+
id,
|
|
12
|
+
isLoading,
|
|
13
|
+
amount,
|
|
14
|
+
isSelected,
|
|
15
|
+
onSelect,
|
|
16
|
+
visualState,
|
|
17
|
+
}: QuickFilterProps) => JSX.Element;
|
|
18
|
+
export {QuickFilter as QuickFilter};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {KeyBoardTypes} from '../../../types/keyboard-types.enum';
|
|
2
2
|
type SearchProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
onchangeText?: (text: string) => void;
|
|
5
|
+
value: string;
|
|
6
|
+
keyboardType: KeyBoardTypes;
|
|
7
|
+
onPressSearch: (text: string) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const Search: ({
|
|
10
|
-
|
|
9
|
+
declare const Search: ({
|
|
10
|
+
placeholder,
|
|
11
|
+
onchangeText,
|
|
12
|
+
value,
|
|
13
|
+
keyboardType,
|
|
14
|
+
onPressSearch,
|
|
15
|
+
}: SearchProps) => JSX.Element;
|
|
16
|
+
export {Search as Search};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SearchPreview: ({}
|
|
1
|
+
export declare const SearchPreview: ({}: {}) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type SelectLinkProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
label: string;
|
|
3
|
+
onPress: () => void;
|
|
4
4
|
};
|
|
5
|
-
declare const SelectLink: ({
|
|
6
|
-
export {
|
|
5
|
+
declare const SelectLink: ({label, onPress}: SelectLinkProps) => JSX.Element;
|
|
6
|
+
export {SelectLink as SelectLink};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
type SelectListProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
icon: React.ReactElement;
|
|
6
|
+
onPress?: () => void;
|
|
7
|
+
inverse?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const SelectListItem: ({
|
|
10
|
-
|
|
9
|
+
declare const SelectListItem: ({
|
|
10
|
+
title,
|
|
11
|
+
subtitle,
|
|
12
|
+
icon,
|
|
13
|
+
onPress,
|
|
14
|
+
inverse,
|
|
15
|
+
}: SelectListProps) => JSX.Element;
|
|
16
|
+
export {SelectListItem as SelectListItem};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
type PickerProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
data: {
|
|
4
|
+
value: number | string;
|
|
5
|
+
label: string;
|
|
6
|
+
}[];
|
|
7
|
+
onChange: (item: string) => void;
|
|
8
|
+
defaultValue: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const SelectPicker: ({
|
|
10
|
+
export declare const SelectPicker: ({
|
|
11
|
+
placeholder,
|
|
12
|
+
data,
|
|
13
|
+
onChange,
|
|
14
|
+
defaultValue,
|
|
15
|
+
}: PickerProps) => JSX.Element;
|
|
11
16
|
export {};
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import {BubbleAlignment} from '../../../types/bubble-alignment.enum';
|
|
2
|
+
import {VisualState} from '../../../types/visual-state.enum';
|
|
3
3
|
type FailedBubbleProps = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
id: string;
|
|
5
|
+
text: string;
|
|
6
|
+
visualState: VisualState;
|
|
7
|
+
bubbleAlignment: BubbleAlignment;
|
|
8
|
+
onPressEdit: (id: string) => void;
|
|
9
|
+
onPressDelete: (id: string) => void;
|
|
10
10
|
};
|
|
11
|
-
declare const SendTextBubble: ({
|
|
12
|
-
|
|
11
|
+
declare const SendTextBubble: ({
|
|
12
|
+
id,
|
|
13
|
+
text,
|
|
14
|
+
visualState,
|
|
15
|
+
bubbleAlignment,
|
|
16
|
+
onPressEdit,
|
|
17
|
+
onPressDelete,
|
|
18
|
+
}: FailedBubbleProps) => JSX.Element;
|
|
19
|
+
export {SendTextBubble};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {VisualState} from '../../../types/visual-state.enum';
|
|
2
2
|
type SnackbarProps = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
text: string;
|
|
4
|
+
visualState: VisualState;
|
|
5
5
|
};
|
|
6
|
-
declare const Snackbar: ({
|
|
7
|
-
export {
|
|
6
|
+
declare const Snackbar: ({text, visualState}: SnackbarProps) => JSX.Element;
|
|
7
|
+
export {Snackbar as Snackbar};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {ReactNode} from 'react';
|
|
2
2
|
type SwipeProps = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
onIndexChange?: (index: number) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const Swipe: ({
|
|
7
|
-
export {
|
|
6
|
+
declare const Swipe: ({children, onIndexChange}: SwipeProps) => JSX.Element;
|
|
7
|
+
export {Swipe as Swipe};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
type TagProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
onPress: (value: string, isSelected: boolean) => void;
|
|
5
|
+
isSelected: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const Tag: ({
|
|
8
|
-
|
|
7
|
+
declare const Tag: ({
|
|
8
|
+
label,
|
|
9
|
+
onPress,
|
|
10
|
+
value,
|
|
11
|
+
isSelected,
|
|
12
|
+
}: TagProps) => JSX.Element;
|
|
13
|
+
export {Tag as Tag};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
interface TimePickerProps {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
initialHours: string;
|
|
3
|
+
initialMinutes: string;
|
|
4
|
+
onChangeHours: (value: string) => void;
|
|
5
|
+
onChangeMinutes: (value: string) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const TimePicker: ({
|
|
7
|
+
export declare const TimePicker: ({
|
|
8
|
+
initialHours,
|
|
9
|
+
initialMinutes,
|
|
10
|
+
onChangeHours,
|
|
11
|
+
onChangeMinutes,
|
|
12
|
+
}: TimePickerProps) => JSX.Element;
|
|
8
13
|
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {VisualState} from '../../../types/visual-state.enum';
|
|
2
2
|
type TimeTrackerProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
text: string;
|
|
4
|
+
textColor?: string;
|
|
5
|
+
visualState: VisualState;
|
|
6
6
|
};
|
|
7
|
-
declare const TimeTracker: ({
|
|
8
|
-
|
|
7
|
+
declare const TimeTracker: ({
|
|
8
|
+
text,
|
|
9
|
+
visualState,
|
|
10
|
+
textColor,
|
|
11
|
+
}: TimeTrackerProps) => JSX.Element;
|
|
12
|
+
export {TimeTracker as TimeTracker};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
type TimeLineProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
checkIn: string;
|
|
3
|
+
checkOut?: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const TimeLine: ({
|
|
5
|
+
export declare const TimeLine: ({
|
|
6
|
+
checkIn,
|
|
7
|
+
checkOut,
|
|
8
|
+
}: TimeLineProps) => JSX.Element;
|
|
6
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime.class';
|
|
2
2
|
type TimestampProps = {
|
|
3
|
-
|
|
3
|
+
sent: ToddleDateTime;
|
|
4
4
|
};
|
|
5
|
-
export declare const Timestamp: ({
|
|
5
|
+
export declare const Timestamp: ({sent}: TimestampProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const WaveBackground: ({
|
|
1
|
+
import {WaveProps} from '../../atoms/static-wave/static-wave.component';
|
|
2
|
+
export declare const WaveBackground: ({
|
|
3
|
+
customWavePath,
|
|
4
|
+
customStyle,
|
|
5
|
+
heightSvgContainer,
|
|
6
|
+
positionTop,
|
|
7
|
+
}: WaveProps) => JSX.Element;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
type ButtonProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
text: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onPress?: () => void;
|
|
5
|
+
backgroundColor?: string;
|
|
6
6
|
};
|
|
7
|
-
declare const WideButton: ({
|
|
8
|
-
|
|
7
|
+
declare const WideButton: ({
|
|
8
|
+
text,
|
|
9
|
+
disabled,
|
|
10
|
+
onPress,
|
|
11
|
+
backgroundColor,
|
|
12
|
+
}: ButtonProps) => JSX.Element;
|
|
13
|
+
export {WideButton as WideButton};
|
|
@@ -10,7 +10,6 @@ exports[`test child list item component arrow appears when selectable is false 1
|
|
|
10
10
|
"borderTopLeftRadius": 48,
|
|
11
11
|
"borderTopRightRadius": 24,
|
|
12
12
|
"flexDirection": "row",
|
|
13
|
-
"overflow": "hidden",
|
|
14
13
|
"width": "100%",
|
|
15
14
|
}
|
|
16
15
|
}
|
|
@@ -278,7 +277,6 @@ exports[`test child list item component arrow appears when selectable is false 1
|
|
|
278
277
|
"borderBottomRightRadius": 24,
|
|
279
278
|
"borderTopRightRadius": 24,
|
|
280
279
|
"justifyContent": "center",
|
|
281
|
-
"overflow": "hidden",
|
|
282
280
|
"paddingRight": 8,
|
|
283
281
|
"width": 48,
|
|
284
282
|
}
|
|
@@ -355,7 +353,6 @@ exports[`test child list item component background is blue and text is white whe
|
|
|
355
353
|
"borderTopLeftRadius": 48,
|
|
356
354
|
"borderTopRightRadius": 24,
|
|
357
355
|
"flexDirection": "row",
|
|
358
|
-
"overflow": "hidden",
|
|
359
356
|
"width": "100%",
|
|
360
357
|
}
|
|
361
358
|
}
|
|
@@ -600,7 +597,6 @@ exports[`test child list item component make text that is too long end in ... 1`
|
|
|
600
597
|
"borderTopLeftRadius": 48,
|
|
601
598
|
"borderTopRightRadius": 24,
|
|
602
599
|
"flexDirection": "row",
|
|
603
|
-
"overflow": "hidden",
|
|
604
600
|
"width": "100%",
|
|
605
601
|
}
|
|
606
602
|
}
|
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import {ImageSourcePropType} from 'react-native';
|
|
3
|
+
import {Initials} from '../../../models/initials.model';
|
|
4
|
+
import {VisualState} from '../../../types/visual-state.enum';
|
|
5
5
|
type ChildListItemProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
department: string;
|
|
9
|
+
selectable: boolean;
|
|
10
|
+
isSelected: boolean;
|
|
11
|
+
onPressArrow: (id: string) => void;
|
|
12
|
+
onPressText: (id: string) => void;
|
|
13
|
+
onLongPress: (id: string) => void;
|
|
14
|
+
onSelect: (id: string) => void;
|
|
15
|
+
sourceAvatar: ImageSourcePropType | Initials;
|
|
16
|
+
textTimeTracker: string;
|
|
17
|
+
visualStateTimeTracker: VisualState;
|
|
18
18
|
};
|
|
19
|
-
declare const ChildListItem: React.MemoExoticComponent<
|
|
20
|
-
|
|
19
|
+
declare const ChildListItem: React.MemoExoticComponent<
|
|
20
|
+
({
|
|
21
|
+
id,
|
|
22
|
+
name,
|
|
23
|
+
department,
|
|
24
|
+
selectable,
|
|
25
|
+
isSelected,
|
|
26
|
+
onPressArrow,
|
|
27
|
+
onPressText,
|
|
28
|
+
onLongPress,
|
|
29
|
+
onSelect,
|
|
30
|
+
sourceAvatar,
|
|
31
|
+
textTimeTracker,
|
|
32
|
+
visualStateTimeTracker,
|
|
33
|
+
}: ChildListItemProps) => JSX.Element
|
|
34
|
+
>;
|
|
35
|
+
export {ChildListItem as ChildListItem};
|
|
@@ -10,7 +10,6 @@ export const Stylesheet = (isSelectedItem, context) =>
|
|
|
10
10
|
borderBottomRightRadius: Scale.l,
|
|
11
11
|
borderTopLeftRadius: Scale.xxl,
|
|
12
12
|
borderBottomLeftRadius: Scale.xxl,
|
|
13
|
-
overflow: 'hidden',
|
|
14
13
|
flexDirection: 'row',
|
|
15
14
|
backgroundColor: isSelectedItem
|
|
16
15
|
? context.colors.main[6]
|
|
@@ -37,7 +36,6 @@ export const Stylesheet = (isSelectedItem, context) =>
|
|
|
37
36
|
width: Scale.m * 3,
|
|
38
37
|
borderTopRightRadius: Scale.l,
|
|
39
38
|
borderBottomRightRadius: Scale.l,
|
|
40
|
-
overflow: 'hidden',
|
|
41
39
|
},
|
|
42
40
|
trackerContainer: {
|
|
43
41
|
flexDirection: 'row',
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
type ContactItemProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
name: string;
|
|
3
|
+
label: string;
|
|
4
|
+
onPress?: () => void;
|
|
5
|
+
isBlocked?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const ContactItem: ({
|
|
8
|
-
|
|
7
|
+
declare const ContactItem: ({
|
|
8
|
+
name,
|
|
9
|
+
label,
|
|
10
|
+
onPress,
|
|
11
|
+
isBlocked,
|
|
12
|
+
}: ContactItemProps) => JSX.Element;
|
|
13
|
+
export {ContactItem as ContactItem};
|