@tactics/toddle-styleguide 1.2.6 → 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 +13 -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/__snapshots__/quick-message.test.js.snap +72 -0
- package/src/components/atoms/quick-message/quick-message.component.d.ts +11 -0
- package/src/components/atoms/quick-message/quick-message.component.tsx +32 -0
- package/src/components/atoms/quick-message/quick-message.preview.d.ts +1 -0
- package/src/components/atoms/quick-message/quick-message.preview.tsx +33 -0
- package/src/components/atoms/quick-message/quick-message.styles.d.ts +14 -0
- package/src/components/atoms/quick-message/quick-message.styles.js +18 -0
- package/src/components/atoms/quick-message/quick-message.test.js +26 -0
- 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/__snapshots__/button.test.js.snap +72 -0
- package/src/components/molecules/button/button.component.d.ts +21 -12
- package/src/components/molecules/button/button.component.tsx +8 -15
- package/src/components/molecules/button/button.preview.tsx +5 -0
- package/src/components/molecules/button/button.styles.d.ts +17 -13
- package/src/components/molecules/button/button.test.js +6 -0
- 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/__snapshots__/failed-bubble.test.js.snap +2 -0
- package/src/components/molecules/failed-to-send/failed-bubble.component.d.ts +11 -5
- package/src/components/molecules/failed-to-send/failed-bubble.component.tsx +6 -4
- package/src/components/molecules/failed-to-send/failed-bubble.test.js +56 -0
- 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/__snapshots__/send-text-bubble.test.js.snap +12 -0
- package/src/components/molecules/send-bubble/send-text-bubble.component.d.ts +17 -9
- package/src/components/molecules/send-bubble/send-text-bubble.component.tsx +17 -6
- package/src/components/molecules/send-bubble/send-text-bubble.test.js +71 -0
- 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 -5
- 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/day-select/day-select.component.tsx +5 -1
- 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/__snapshots__/text-bubble.test.js.snap +21 -0
- package/src/components/organisms/text-bubble/text-bubble.component.d.ts +24 -13
- package/src/components/organisms/text-bubble/text-bubble.component.tsx +15 -5
- package/src/components/organisms/text-bubble/text-bubble.preview.tsx +6 -1
- package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +5 -5
- package/src/components/organisms/text-bubble/text-bubble.styles.js +2 -0
- package/src/components/organisms/text-bubble/text-bubble.test.js +7 -0
- 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
|
-
import {
|
|
1
|
+
import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime.class';
|
|
2
2
|
type CalendarProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
onDayPress: (day: ToddleDateTime) => void;
|
|
4
|
+
selected: ToddleDateTime;
|
|
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,6 +1,6 @@
|
|
|
1
1
|
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,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import {ViewStyle} from 'react-native';
|
|
3
|
+
import {AnimateStyle} from 'react-native-reanimated';
|
|
4
4
|
type FooterProps = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
animatedStyle?: AnimateStyle<ViewStyle>;
|
|
7
7
|
};
|
|
8
|
-
declare const Footer: ({
|
|
9
|
-
export {
|
|
8
|
+
declare const Footer: ({children, animatedStyle}: FooterProps) => JSX.Element;
|
|
9
|
+
export {Footer as Footer};
|
package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.component.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const AllCapsHeading: ({
|
|
1
|
+
import {TextProperties} from '../../../../types/text-properties.type';
|
|
2
|
+
export declare const AllCapsHeading: ({
|
|
3
|
+
bold,
|
|
4
|
+
children,
|
|
5
|
+
textColor,
|
|
6
|
+
textAlign,
|
|
7
|
+
numberOfLines,
|
|
8
|
+
ellipsizeMode,
|
|
9
|
+
addStyle,
|
|
10
|
+
}: TextProperties) => JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Heading1: ({
|
|
1
|
+
import {TextProperties} from '../../../../types/text-properties.type';
|
|
2
|
+
export declare const Heading1: ({
|
|
3
|
+
bold,
|
|
4
|
+
children,
|
|
5
|
+
textColor,
|
|
6
|
+
textAlign,
|
|
7
|
+
addStyle,
|
|
8
|
+
ellipsizeMode,
|
|
9
|
+
numberOfLines,
|
|
10
|
+
}: TextProperties) => JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Heading2: ({
|
|
1
|
+
import {TextProperties} from '../../../../types/text-properties.type';
|
|
2
|
+
export declare const Heading2: ({
|
|
3
|
+
bold,
|
|
4
|
+
children,
|
|
5
|
+
textColor,
|
|
6
|
+
textAlign,
|
|
7
|
+
numberOfLines,
|
|
8
|
+
ellipsizeMode,
|
|
9
|
+
addStyle,
|
|
10
|
+
}: TextProperties) => JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Heading3: ({
|
|
1
|
+
import {TextProperties} from '../../../../types/text-properties.type';
|
|
2
|
+
export declare const Heading3: ({
|
|
3
|
+
bold,
|
|
4
|
+
children,
|
|
5
|
+
textColor,
|
|
6
|
+
textAlign,
|
|
7
|
+
addStyle,
|
|
8
|
+
numberOfLines,
|
|
9
|
+
ellipsizeMode,
|
|
10
|
+
}: TextProperties) => JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Heading4: ({
|
|
1
|
+
import {TextProperties} from '../../../../types/text-properties.type';
|
|
2
|
+
export declare const Heading4: ({
|
|
3
|
+
bold,
|
|
4
|
+
children,
|
|
5
|
+
textColor,
|
|
6
|
+
textAlign,
|
|
7
|
+
addStyle,
|
|
8
|
+
numberOfLines,
|
|
9
|
+
ellipsizeMode,
|
|
10
|
+
}: TextProperties) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
1
|
+
import {Heading1} from './heading1/heading1.component';
|
|
2
|
+
import {Heading2} from './heading2/heading2.component';
|
|
3
|
+
import {Heading3} from './heading3/heading3.component';
|
|
4
|
+
import {Heading4} from './heading4/heading4.component';
|
|
5
|
+
import {AllCapsHeading} from './all-caps-heading/all-caps-heading.component';
|
|
6
|
+
export {AllCapsHeading, Heading1, Heading2, Heading3, Heading4};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import {ImageSourcePropType} from 'react-native';
|
|
2
|
+
import {BubbleAlignment} from '../../../types/bubble-alignment.enum';
|
|
3
3
|
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,7 +1,11 @@
|
|
|
1
1
|
type IncrementInputProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
value: number;
|
|
3
|
+
maxValue?: number;
|
|
4
|
+
onPress: (number: number) => void;
|
|
5
5
|
};
|
|
6
|
-
export declare const IncrementInput: ({
|
|
6
|
+
export declare const IncrementInput: ({
|
|
7
|
+
value,
|
|
8
|
+
onPress,
|
|
9
|
+
maxValue,
|
|
10
|
+
}: IncrementInputProps) => JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import {Paragraph} from './paragraph/paragraph.component';
|
|
2
|
+
import {SmallText} from './small-text/small-text.component';
|
|
3
|
+
import {TinyText} from './tiny-text/tiny-text.component';
|
|
4
|
+
export {Paragraph, SmallText, TinyText};
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Paragraph: ({
|
|
1
|
+
import {TextProperties} from '../../../../types/text-properties.type';
|
|
2
|
+
export declare const Paragraph: ({
|
|
3
|
+
bold,
|
|
4
|
+
children,
|
|
5
|
+
textColor,
|
|
6
|
+
textAlign,
|
|
7
|
+
addStyle,
|
|
8
|
+
numberOfLines,
|
|
9
|
+
ellipsizeMode,
|
|
10
|
+
}: TextProperties) => JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const SmallText: ({
|
|
1
|
+
import {TextProperties} from '../../../../types/text-properties.type';
|
|
2
|
+
export declare const SmallText: ({
|
|
3
|
+
bold,
|
|
4
|
+
textColor,
|
|
5
|
+
textAlign,
|
|
6
|
+
children,
|
|
7
|
+
addStyle,
|
|
8
|
+
ellipsizeMode,
|
|
9
|
+
numberOfLines,
|
|
10
|
+
}: TextProperties) => JSX.Element;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const TinyText: ({
|
|
1
|
+
import {TextProperties} from '../../../../types/text-properties.type';
|
|
2
|
+
export declare const TinyText: ({
|
|
3
|
+
bold,
|
|
4
|
+
children,
|
|
5
|
+
textColor,
|
|
6
|
+
textAlign,
|
|
7
|
+
addStyle,
|
|
8
|
+
numberOfLines,
|
|
9
|
+
ellipsizeMode,
|
|
10
|
+
}: TextProperties) => JSX.Element;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`QuickMessage should render correctly 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
accessibilityState={
|
|
6
|
+
{
|
|
7
|
+
"busy": undefined,
|
|
8
|
+
"checked": undefined,
|
|
9
|
+
"disabled": undefined,
|
|
10
|
+
"expanded": undefined,
|
|
11
|
+
"selected": undefined,
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
accessibilityValue={
|
|
15
|
+
{
|
|
16
|
+
"max": undefined,
|
|
17
|
+
"min": undefined,
|
|
18
|
+
"now": undefined,
|
|
19
|
+
"text": undefined,
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
accessible={true}
|
|
23
|
+
collapsable={false}
|
|
24
|
+
focusable={true}
|
|
25
|
+
onBlur={[Function]}
|
|
26
|
+
onClick={[Function]}
|
|
27
|
+
onFocus={[Function]}
|
|
28
|
+
onResponderGrant={[Function]}
|
|
29
|
+
onResponderMove={[Function]}
|
|
30
|
+
onResponderRelease={[Function]}
|
|
31
|
+
onResponderTerminate={[Function]}
|
|
32
|
+
onResponderTerminationRequest={[Function]}
|
|
33
|
+
onStartShouldSetResponder={[Function]}
|
|
34
|
+
style={
|
|
35
|
+
{
|
|
36
|
+
"backgroundColor": "#515F6C",
|
|
37
|
+
"borderBottomLeftRadius": 8,
|
|
38
|
+
"borderBottomRightRadius": 24,
|
|
39
|
+
"borderTopLeftRadius": 24,
|
|
40
|
+
"borderTopRightRadius": 24,
|
|
41
|
+
"paddingBottom": 24,
|
|
42
|
+
"paddingLeft": 24,
|
|
43
|
+
"paddingRight": 24,
|
|
44
|
+
"paddingTop": 24,
|
|
45
|
+
"width": "100%",
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
testID="quick-message-test"
|
|
49
|
+
>
|
|
50
|
+
<Text
|
|
51
|
+
style={
|
|
52
|
+
[
|
|
53
|
+
[
|
|
54
|
+
{
|
|
55
|
+
"fontFamily": "Montserrat",
|
|
56
|
+
"fontSize": 14,
|
|
57
|
+
"lineHeight": 22.4,
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
{
|
|
61
|
+
"color": "#FFFFFF",
|
|
62
|
+
"textAlign": "center",
|
|
63
|
+
"width": "100%",
|
|
64
|
+
},
|
|
65
|
+
undefined,
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
>
|
|
69
|
+
Test message
|
|
70
|
+
</Text>
|
|
71
|
+
</View>
|
|
72
|
+
`;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {PressableProps} from 'react-native';
|
|
2
|
+
interface QuickMessageProps extends PressableProps {
|
|
3
|
+
message: string;
|
|
4
|
+
setMessage: (value: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const QuickMessage: ({
|
|
7
|
+
message,
|
|
8
|
+
setMessage,
|
|
9
|
+
...props
|
|
10
|
+
}: QuickMessageProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {Pressable, PressableProps} from 'react-native';
|
|
2
|
+
import {Paragraph} from '../paragraph-components';
|
|
3
|
+
import {useContext} from 'react';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {Stylesheet} from './quick-message.styles';
|
|
6
|
+
|
|
7
|
+
interface QuickMessageProps extends PressableProps {
|
|
8
|
+
message: string;
|
|
9
|
+
setMessage: (value: string) => void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const QuickMessage = ({
|
|
13
|
+
message,
|
|
14
|
+
setMessage,
|
|
15
|
+
...props
|
|
16
|
+
}: QuickMessageProps) => {
|
|
17
|
+
const context = useContext(ThemeCtx);
|
|
18
|
+
const styles = Stylesheet(context);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<Pressable
|
|
22
|
+
onPress={() => setMessage(message)}
|
|
23
|
+
{...props}
|
|
24
|
+
style={styles.container}
|
|
25
|
+
testID={'quick-message-test'}
|
|
26
|
+
>
|
|
27
|
+
<Paragraph textAlign={'center'} textColor={context.colors.ui.white}>
|
|
28
|
+
{message}
|
|
29
|
+
</Paragraph>
|
|
30
|
+
</Pressable>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const QuickMessagePreview: () => JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {Text, View} from 'react-native';
|
|
2
|
+
import {QuickMessage} from './quick-message.component';
|
|
3
|
+
import {useState} from 'react';
|
|
4
|
+
|
|
5
|
+
export const QuickMessagePreview = () => {
|
|
6
|
+
const [message, setMessage] = useState<string>('');
|
|
7
|
+
return (
|
|
8
|
+
<View
|
|
9
|
+
style={{
|
|
10
|
+
width: '100%',
|
|
11
|
+
height: '100%',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
gap: 32,
|
|
15
|
+
padding: 32,
|
|
16
|
+
}}
|
|
17
|
+
>
|
|
18
|
+
<QuickMessage message={'Test message'} setMessage={setMessage} />
|
|
19
|
+
<QuickMessage
|
|
20
|
+
message={'Option message number 2'}
|
|
21
|
+
setMessage={setMessage}
|
|
22
|
+
/>
|
|
23
|
+
<QuickMessage
|
|
24
|
+
message={
|
|
25
|
+
'Aan het spelen met mijn vriendjes en vriendinnetjes in de speelhoek'
|
|
26
|
+
}
|
|
27
|
+
setMessage={setMessage}
|
|
28
|
+
/>
|
|
29
|
+
|
|
30
|
+
<Text style={{textAlign: 'center'}}>Pressed message: {message}</Text>
|
|
31
|
+
</View>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function Stylesheet(context: any): {
|
|
2
|
+
container: {
|
|
3
|
+
width: string;
|
|
4
|
+
backgroundColor: any;
|
|
5
|
+
paddingTop: number;
|
|
6
|
+
paddingBottom: number;
|
|
7
|
+
paddingRight: number;
|
|
8
|
+
paddingLeft: number;
|
|
9
|
+
borderBottomLeftRadius: number;
|
|
10
|
+
borderTopLeftRadius: number;
|
|
11
|
+
borderTopRightRadius: number;
|
|
12
|
+
borderBottomRightRadius: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {StyleSheet} from 'react-native';
|
|
2
|
+
import {Scale} from '../../../theme/scale/index';
|
|
3
|
+
|
|
4
|
+
export const Stylesheet = (context) =>
|
|
5
|
+
StyleSheet.create({
|
|
6
|
+
container: {
|
|
7
|
+
width: '100%',
|
|
8
|
+
backgroundColor: context.colors.ui.darkgrey,
|
|
9
|
+
paddingTop: Scale.l,
|
|
10
|
+
paddingBottom: Scale.l,
|
|
11
|
+
paddingRight: Scale.l,
|
|
12
|
+
paddingLeft: Scale.l,
|
|
13
|
+
borderBottomLeftRadius: Scale.xs,
|
|
14
|
+
borderTopLeftRadius: Scale.l,
|
|
15
|
+
borderTopRightRadius: Scale.l,
|
|
16
|
+
borderBottomRightRadius: Scale.l,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {render, fireEvent} from '@testing-library/react-native';
|
|
3
|
+
import {QuickMessage} from './quick-message.component';
|
|
4
|
+
|
|
5
|
+
describe('QuickMessage', () => {
|
|
6
|
+
it('should render correctly', () => {
|
|
7
|
+
const {toJSON} = render(
|
|
8
|
+
<QuickMessage message="Test message" setMessage={() => {}} />
|
|
9
|
+
);
|
|
10
|
+
expect(toJSON()).toMatchSnapshot();
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
describe('QuickMessage', () => {
|
|
15
|
+
it('should set the message when pressed', () => {
|
|
16
|
+
const setMessageMock = jest.fn();
|
|
17
|
+
const {getByTestId} = render(
|
|
18
|
+
<QuickMessage message="Test message" setMessage={setMessageMock} />
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
const pressable = getByTestId('quick-message-test');
|
|
22
|
+
fireEvent.press(pressable);
|
|
23
|
+
|
|
24
|
+
expect(setMessageMock).toHaveBeenCalledWith('Test message');
|
|
25
|
+
});
|
|
26
|
+
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
type splitContainerProps = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
element1: React.ReactNode;
|
|
4
|
+
element2?: React.ReactNode;
|
|
5
5
|
};
|
|
6
|
-
declare const SplitContainer: ({
|
|
7
|
-
|
|
6
|
+
declare const SplitContainer: ({
|
|
7
|
+
element1,
|
|
8
|
+
element2,
|
|
9
|
+
}: splitContainerProps) => JSX.Element;
|
|
10
|
+
export {SplitContainer as SplitContainer};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {ViewStyle} from 'react-native';
|
|
2
2
|
export type WaveProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
customStyle?: ViewStyle;
|
|
4
|
+
customWavePath?: string;
|
|
5
|
+
heightSvgContainer?: number;
|
|
6
|
+
positionTop?: number;
|
|
7
7
|
};
|
|
8
|
-
export declare const StaticWave: ({
|
|
8
|
+
export declare const StaticWave: ({
|
|
9
|
+
customStyle,
|
|
10
|
+
customWavePath,
|
|
11
|
+
heightSvgContainer,
|
|
12
|
+
positionTop,
|
|
13
|
+
}: WaveProps) => JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import {TextInputProps as NativeTextInputProps} from 'react-native';
|
|
2
|
+
import {KeyBoardTypes} from '../../../types/keyboard-types.enum';
|
|
3
3
|
interface TextInputProps extends NativeTextInputProps {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
keyboardType: KeyBoardTypes;
|
|
5
|
+
border?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const TextInput: ({
|
|
8
|
-
|
|
7
|
+
declare const TextInput: ({
|
|
8
|
+
keyboardType,
|
|
9
|
+
border,
|
|
10
|
+
...props
|
|
11
|
+
}: TextInputProps) => JSX.Element;
|
|
12
|
+
export {TextInput as TextInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TextInputPreview: ({}
|
|
1
|
+
export declare const TextInputPreview: ({}: {}) => JSX.Element;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import {ImageSourcePropType} from 'react-native';
|
|
2
|
+
import {Size} from '../../../types/size.enum';
|
|
3
|
+
import {Initials} from '../../../models/initials.model';
|
|
4
4
|
type AvatarProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
source: ImageSourcePropType | Initials;
|
|
6
|
+
size: Size;
|
|
7
|
+
isBlocked?: boolean;
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
hasShadow?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const Avatar: ({
|
|
13
|
-
|
|
12
|
+
declare const Avatar: ({
|
|
13
|
+
source,
|
|
14
|
+
size,
|
|
15
|
+
isBlocked,
|
|
16
|
+
isActive,
|
|
17
|
+
isLoading,
|
|
18
|
+
hasShadow,
|
|
19
|
+
}: AvatarProps) => JSX.Element;
|
|
20
|
+
export {Avatar as Avatar};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
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 {};
|
|
@@ -429,6 +429,78 @@ exports[`test button component should render a button component with a solid ico
|
|
|
429
429
|
</View>
|
|
430
430
|
`;
|
|
431
431
|
|
|
432
|
+
exports[`test button component should render a light button component 1`] = `
|
|
433
|
+
<View
|
|
434
|
+
accessibilityState={
|
|
435
|
+
{
|
|
436
|
+
"busy": undefined,
|
|
437
|
+
"checked": undefined,
|
|
438
|
+
"disabled": undefined,
|
|
439
|
+
"expanded": undefined,
|
|
440
|
+
"selected": undefined,
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
accessibilityValue={
|
|
444
|
+
{
|
|
445
|
+
"max": undefined,
|
|
446
|
+
"min": undefined,
|
|
447
|
+
"now": undefined,
|
|
448
|
+
"text": undefined,
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
accessible={true}
|
|
452
|
+
collapsable={false}
|
|
453
|
+
focusable={true}
|
|
454
|
+
onBlur={[Function]}
|
|
455
|
+
onClick={[Function]}
|
|
456
|
+
onFocus={[Function]}
|
|
457
|
+
onResponderGrant={[Function]}
|
|
458
|
+
onResponderMove={[Function]}
|
|
459
|
+
onResponderRelease={[Function]}
|
|
460
|
+
onResponderTerminate={[Function]}
|
|
461
|
+
onResponderTerminationRequest={[Function]}
|
|
462
|
+
onStartShouldSetResponder={[Function]}
|
|
463
|
+
>
|
|
464
|
+
<View
|
|
465
|
+
style={
|
|
466
|
+
{
|
|
467
|
+
"alignItems": "center",
|
|
468
|
+
"backgroundColor": "#FFFFFF",
|
|
469
|
+
"borderRadius": 50,
|
|
470
|
+
"flexDirection": "row",
|
|
471
|
+
"justifyContent": "center",
|
|
472
|
+
"paddingHorizontal": 24,
|
|
473
|
+
"paddingVertical": 12,
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
>
|
|
477
|
+
<View>
|
|
478
|
+
<Text
|
|
479
|
+
style={
|
|
480
|
+
[
|
|
481
|
+
[
|
|
482
|
+
{
|
|
483
|
+
"fontFamily": "SourceSansPro",
|
|
484
|
+
"fontSize": 16,
|
|
485
|
+
"lineHeight": 22.4,
|
|
486
|
+
},
|
|
487
|
+
],
|
|
488
|
+
{
|
|
489
|
+
"color": "#515F6C",
|
|
490
|
+
"textAlign": "center",
|
|
491
|
+
"width": "100%",
|
|
492
|
+
},
|
|
493
|
+
undefined,
|
|
494
|
+
]
|
|
495
|
+
}
|
|
496
|
+
>
|
|
497
|
+
Light button
|
|
498
|
+
</Text>
|
|
499
|
+
</View>
|
|
500
|
+
</View>
|
|
501
|
+
</View>
|
|
502
|
+
`;
|
|
503
|
+
|
|
432
504
|
exports[`test button component should render a success button component 1`] = `
|
|
433
505
|
<View
|
|
434
506
|
accessibilityState={
|