@tactics/toddle-styleguide 1.2.8 → 1.2.9
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/package.json +1 -1
- package/src/components/atoms/backdrop/backdrop.component.d.ts +4 -7
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +18 -18
- package/src/components/atoms/calendar/calendar.component.d.ts +6 -11
- 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 +2 -10
- package/src/components/atoms/heading-components/heading1/heading1.component.d.ts +2 -10
- package/src/components/atoms/heading-components/heading2/heading2.component.d.ts +2 -10
- package/src/components/atoms/heading-components/heading3/heading3.component.d.ts +2 -10
- package/src/components/atoms/heading-components/heading4/heading4.component.d.ts +2 -10
- package/src/components/atoms/heading-components/index.d.ts +6 -6
- package/src/components/atoms/image-bubble/image-bubble.component.d.ts +6 -9
- package/src/components/atoms/increment-input/increment-input.component.d.ts +4 -8
- 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 +2 -10
- package/src/components/atoms/paragraph-components/small-text/small-text.component.d.ts +2 -10
- package/src/components/atoms/paragraph-components/tiny-text/tiny-text.component.d.ts +2 -10
- package/src/components/atoms/quick-message/__snapshots__/quick-message.test.js.snap +72 -1
- package/src/components/atoms/quick-message/quick-message.component.d.ts +5 -8
- package/src/components/atoms/quick-message/quick-message.component.tsx +3 -1
- package/src/components/atoms/quick-message/quick-message.preview.tsx +10 -1
- package/src/components/atoms/quick-message/quick-message.styles.d.ts +13 -13
- package/src/components/atoms/quick-message/quick-message.styles.js +4 -2
- package/src/components/atoms/quick-message/quick-message.test.js +38 -6
- package/src/components/atoms/split-container/split-container.component.d.ts +4 -7
- package/src/components/atoms/static-wave/static-wave.component.d.ts +6 -11
- package/src/components/atoms/text-input/text-input.component.d.ts +6 -10
- package/src/components/atoms/text-input/text-input.component.tsx +6 -9
- package/src/components/atoms/text-input/text-input.preview.d.ts +1 -1
- package/src/components/atoms/text-input/text-input.preview.tsx +3 -3
- package/src/components/atoms/text-input/text-input.styles.d.ts +20 -44
- package/src/components/atoms/text-input/text-input.styles.js +7 -13
- package/src/components/molecules/avatar/avatar.component.d.ts +11 -18
- package/src/components/molecules/blocked-message/blocked-message.component.d.ts +2 -4
- package/src/components/molecules/button/button.component.d.ts +11 -20
- package/src/components/molecules/calendar-select/calendar-select.component.d.ts +7 -12
- package/src/components/molecules/cancel-link/cancel-link.component.d.ts +4 -4
- package/src/components/molecules/checkbox/checkbox.component.d.ts +5 -9
- package/src/components/molecules/contact-role/contact-role.component.d.ts +3 -6
- package/src/components/molecules/date-input/date-input.component.d.ts +4 -7
- package/src/components/molecules/day/day.component.d.ts +6 -6
- package/src/components/molecules/day/day.component.tsx +17 -4
- package/src/components/molecules/day/day.styles.d.ts +27 -44
- package/src/components/molecules/day/day.styles.js +14 -17
- package/src/components/molecules/default-select/default-select.component.d.ts +3 -6
- package/src/components/molecules/department_logo/department-logo.component.d.ts +3 -5
- package/src/components/molecules/failed-to-send/failed-bubble.component.d.ts +6 -11
- package/src/components/molecules/filter-range/filter-range.component.d.ts +7 -14
- package/src/components/molecules/filter-tab/filter-tab.component.d.ts +7 -11
- package/src/components/molecules/info/info.component.d.ts +4 -4
- package/src/components/molecules/language-button/language-button.component.d.ts +4 -8
- package/src/components/molecules/message-input/message-input.component.d.ts +7 -11
- package/src/components/molecules/more-info-button/more-info-button.component.d.ts +4 -8
- package/src/components/molecules/password-input/password-input.component.d.ts +5 -9
- package/src/components/molecules/password-input/password-input.component.tsx +7 -9
- package/src/components/molecules/password-input/password-input.styles.d.ts +27 -26
- package/src/components/molecules/password-input/password-input.styles.js +6 -6
- package/src/components/molecules/pill/pill.component.d.ts +5 -5
- package/src/components/molecules/pressable-icon/pressable-icon.component.d.ts +5 -10
- package/src/components/molecules/quick-filter/quick-filter.component.d.ts +9 -16
- package/src/components/molecules/search-input/__snapshots__/search.test.js.snap +23 -13
- package/src/components/molecules/search-input/search.component.d.ts +9 -16
- package/src/components/molecules/search-input/search.component.tsx +19 -30
- package/src/components/molecules/search-input/search.preview.d.ts +1 -1
- package/src/components/molecules/search-input/search.preview.tsx +8 -6
- package/src/components/molecules/search-input/search.styles.d.ts +31 -30
- package/src/components/molecules/search-input/search.styles.js +14 -8
- package/src/components/molecules/search-input/search.test.js +3 -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 +7 -13
- package/src/components/molecules/select-picker/select-picker.component.d.ts +8 -13
- package/src/components/molecules/send-bubble/send-text-bubble.component.d.ts +10 -17
- package/src/components/molecules/send-bubble/send-text-bubble.component.tsx +1 -5
- package/src/components/molecules/send-bubble/send-text-bubble.styles.d.ts +58 -74
- package/src/components/molecules/send-bubble/send-text-bubble.styles.js +2 -8
- 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 +6 -11
- package/src/components/molecules/time-picker/time-picker.component.d.ts +5 -10
- package/src/components/molecules/time-tracker/time-tracker.component.d.ts +6 -10
- package/src/components/molecules/timeline/timeline.component.d.ts +3 -6
- package/src/components/molecules/timeline/timeline.styles.d.ts +40 -50
- package/src/components/molecules/timeline/timeline.styles.js +2 -2
- package/src/components/molecules/timestamp/timestamp.component.d.ts +4 -3
- package/src/components/molecules/timestamp/timestamp.component.tsx +4 -7
- package/src/components/molecules/wave-background/wave.component.d.ts +2 -7
- package/src/components/molecules/wide-button/wide-button.component.d.ts +6 -11
- package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +165 -10
- package/src/components/organisms/child-list-item/child-list-item.component.d.ts +18 -32
- package/src/components/organisms/child-list-item/child-list-item.component.tsx +24 -1
- package/src/components/organisms/child-list-item/child-list-item.preview.tsx +11 -0
- package/src/components/organisms/child-list-item/child-list-item.styles.d.ts +35 -41
- package/src/components/organisms/child-list-item/child-list-item.styles.js +2 -3
- package/src/components/organisms/child-list-item/child-list-item.test.js +9 -4
- package/src/components/organisms/child-list-item/components/child-list-tag.component.d.ts +6 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.component.tsx +28 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.styles.d.ts +10 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.styles.js +16 -0
- package/src/components/organisms/contact-item/contact-item.component.d.ts +6 -11
- package/src/components/organisms/day-select/day-select.component.d.ts +6 -10
- package/src/components/organisms/day-select/day-select.preview.tsx +9 -5
- package/src/components/organisms/loading-indicator/animation-style.animate.d.ts +3 -13
- package/src/components/organisms/loading-indicator/dot.component.d.ts +3 -3
- package/src/components/organisms/loading-indicator/loading-indicator.component.d.ts +2 -9
- package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +143 -399
- package/src/components/organisms/my-child-list-item/my-child-list-item.component.d.ts +9 -18
- package/src/components/organisms/my-child-list-item/my-child-list-item.component.tsx +32 -59
- package/src/components/organisms/my-child-list-item/my-child-list-item.preview.tsx +36 -24
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.d.ts +32 -28
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.js +16 -11
- package/src/components/organisms/my-child-list-item/my-child-list-item.test.js +5 -22
- package/src/components/organisms/person-info-card/person-info-card.component.d.ts +10 -18
- package/src/components/organisms/tab-view/tab-view.component.d.ts +8 -12
- package/src/components/organisms/text-bubble/text-bubble.component.d.ts +15 -24
- package/src/components/organisms/text-bubble/text-bubble.component.tsx +3 -1
- package/src/components/organisms/text-bubble/text-bubble.preview.tsx +8 -4
- package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +31 -44
- package/src/components/organisms/text-bubble/text-bubble.styles.js +2 -0
- package/src/components/templates/modal/components/fade-panel.component.d.ts +8 -16
- package/src/components/templates/modal/components/fade-panel.component.tsx +1 -1
- package/src/components/templates/modal/modal.component.d.ts +7 -14
- 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 +9 -17
- package/src/components/templates/popover/components/modal/scroll-content/scroll-content.component.d.ts +3 -5
- package/src/components/templates/popover/popover.component.d.ts +8 -15
- package/src/components/templates/popover-action/popover-action.component.d.ts +4 -8
- package/src/context/loading-dots.context.d.ts +6 -9
- package/src/context/theme.context.d.ts +47 -47
- package/src/gradients/main/main.gradient.d.ts +2 -4
- package/src/icons/index.d.ts +2 -7
- 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 -5
- package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +2 -5
- package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +2 -5
- package/src/icons/outline/clock/clock.icon.d.ts +2 -2
- package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +2 -5
- package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +2 -5
- package/src/icons/outline/document-text/document-text.icon.d.ts +2 -5
- package/src/icons/outline/exclamation/exclamation.icon.d.ts +2 -5
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +2 -5
- 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 +2 -5
- 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 -5
- package/src/icons/outline/office-building/office-building.icon.d.ts +2 -5
- package/src/icons/outline/outline.d.ts +2 -6
- package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +2 -5
- package/src/icons/outline/paperclip/paperclip.icon.d.ts +2 -5
- 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 -5
- 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 -5
- package/src/icons/outline/status-online/status-online.icon.d.ts +2 -5
- 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 -5
- 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 +2 -5
- package/src/icons/solid/chevron-left/chevron-left.icon.d.ts +2 -5
- package/src/icons/solid/chevron-right/chevron-right.icon.d.ts +2 -5
- package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -2
- package/src/icons/solid/cloud-download/cloud-download.icon.d.ts +2 -5
- package/src/icons/solid/currency-euro/currency-euro.icon.d.ts +2 -5
- package/src/icons/solid/document-text/document-text-solid.icon.d.ts +2 -5
- package/src/icons/solid/exclamation/exclamation.icon.d.ts +2 -5
- package/src/icons/solid/exclamation-circle/exclamation-circle.icon.d.ts +2 -5
- 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 +2 -5
- 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 +2 -5
- package/src/icons/solid/office-building/office-building.icon.d.ts +2 -5
- package/src/icons/solid/paper-airplane/paper-airplane.icon.d.ts +2 -5
- package/src/icons/solid/paperclip/paperclip.icon.d.ts +2 -5
- 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 +2 -5
- 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 +2 -5
- package/src/icons/solid/solid.d.ts +2 -6
- package/src/icons/solid/status-online/status-online-solid.icon.d.ts +2 -5
- 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 +2 -5
- 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 +2 -5
- 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 -41
- 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 +2 -6
- package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +18 -18
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +18 -14
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.tsx +6 -0
- package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +48 -92
- package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +31 -2
- package/src/utilities/toddle-datetime/toddle-datetime.preview.tsx +114 -84
- package/src/utilities/toddle-datetime/types/duration.type.d.ts +4 -0
- package/src/utilities/toddle-datetime/types/{duration-like.type.tsx → duration.type.tsx} +3 -0
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +3 -11
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.tsx +8 -1
- package/src/utilities/toddle-datetime/types/duration-like.type.d.ts +0 -2
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import {BubbleAlignment} from '../../../types/bubble-alignment.enum';
|
|
2
|
-
import {VisualState} from '../../../types/visual-state.enum';
|
|
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
|
-
|
|
13
|
-
text,
|
|
14
|
-
visualState,
|
|
15
|
-
bubbleAlignment,
|
|
16
|
-
onPressEdit,
|
|
17
|
-
onPressDelete,
|
|
18
|
-
}: FailedBubbleProps) => JSX.Element;
|
|
19
|
-
export {SendTextBubble};
|
|
11
|
+
declare const SendTextBubble: ({ id, text, visualState, bubbleAlignment, onPressEdit, onPressDelete, }: FailedBubbleProps) => JSX.Element;
|
|
12
|
+
export { SendTextBubble };
|
|
@@ -42,16 +42,12 @@ const SendTextBubble = ({
|
|
|
42
42
|
? context.colors.main['0']
|
|
43
43
|
: visualState === VisualState.WARNING
|
|
44
44
|
? context.colors.ui.warning.dark
|
|
45
|
-
: visualState === VisualState.ERROR
|
|
46
|
-
? context.colors.ui.error.xlight
|
|
47
45
|
: null;
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
const textColorCheck = (visualState: VisualState) => {
|
|
51
49
|
if (visualState === VisualState.DEFAULT) return context.colors.main['0'];
|
|
52
|
-
|
|
53
|
-
return context.colors.ui.warning.dark;
|
|
54
|
-
else if (visualState === VisualState.ERROR) return context.colors.ui.white;
|
|
50
|
+
if (visualState === VisualState.WARNING) return context.colors.ui.black;
|
|
55
51
|
};
|
|
56
52
|
|
|
57
53
|
const RenderEditDeleteAction = (
|
|
@@ -1,75 +1,59 @@
|
|
|
1
|
-
export function Stylesheet(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
fontSize: number;
|
|
54
|
-
lineHeight: number;
|
|
55
|
-
minHeight: number;
|
|
56
|
-
backgroundColor?: undefined;
|
|
57
|
-
color?: undefined;
|
|
58
|
-
}
|
|
59
|
-
| {
|
|
60
|
-
backgroundColor: any;
|
|
61
|
-
color: any;
|
|
62
|
-
}
|
|
63
|
-
)[];
|
|
64
|
-
swipedIcon: {
|
|
65
|
-
alignItems: 'center';
|
|
66
|
-
justifyContent: 'center';
|
|
67
|
-
};
|
|
68
|
-
swipedRow: {
|
|
1
|
+
export function Stylesheet(context: any, visualState: any, bubbleAlignment: any): StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
|
|
2
|
+
textBubbleContainer: ({
|
|
3
|
+
width: string;
|
|
4
|
+
paddingLeft: number;
|
|
5
|
+
paddingTop: number;
|
|
6
|
+
paddingRight: number;
|
|
7
|
+
paddingBottom: number;
|
|
8
|
+
borderRadius: number;
|
|
9
|
+
overflow: string;
|
|
10
|
+
justifyContent: string;
|
|
11
|
+
backgroundColor?: undefined;
|
|
12
|
+
borderBottomLeftRadius?: undefined;
|
|
13
|
+
borderBottomRightRadius?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
backgroundColor: any;
|
|
16
|
+
width?: undefined;
|
|
17
|
+
paddingLeft?: undefined;
|
|
18
|
+
paddingTop?: undefined;
|
|
19
|
+
paddingRight?: undefined;
|
|
20
|
+
paddingBottom?: undefined;
|
|
21
|
+
borderRadius?: undefined;
|
|
22
|
+
overflow?: undefined;
|
|
23
|
+
justifyContent?: undefined;
|
|
24
|
+
borderBottomLeftRadius?: undefined;
|
|
25
|
+
borderBottomRightRadius?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
borderBottomLeftRadius: number;
|
|
28
|
+
borderBottomRightRadius: number;
|
|
29
|
+
width?: undefined;
|
|
30
|
+
paddingLeft?: undefined;
|
|
31
|
+
paddingTop?: undefined;
|
|
32
|
+
paddingRight?: undefined;
|
|
33
|
+
paddingBottom?: undefined;
|
|
34
|
+
borderRadius?: undefined;
|
|
35
|
+
overflow?: undefined;
|
|
36
|
+
justifyContent?: undefined;
|
|
37
|
+
backgroundColor?: undefined;
|
|
38
|
+
})[];
|
|
39
|
+
text: ({
|
|
40
|
+
minHeight: number;
|
|
41
|
+
textAlignVertical: string;
|
|
42
|
+
backgroundColor?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
backgroundColor: any;
|
|
45
|
+
minHeight?: undefined;
|
|
46
|
+
textAlignVertical?: undefined;
|
|
47
|
+
})[];
|
|
48
|
+
swipedIcon: {
|
|
49
|
+
alignItems: "center";
|
|
50
|
+
justifyContent: "center";
|
|
51
|
+
};
|
|
52
|
+
swipedRow: {
|
|
69
53
|
flex: number;
|
|
70
|
-
flexDirection:
|
|
71
|
-
alignItems:
|
|
72
|
-
justifyContent:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
import {StyleSheet} from
|
|
54
|
+
flexDirection: "row";
|
|
55
|
+
alignItems: "center";
|
|
56
|
+
justifyContent: "space-evenly";
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
import { StyleSheet } from "react-native/Libraries/StyleSheet/StyleSheet";
|
|
@@ -20,10 +20,7 @@ export const Stylesheet = (context, visualState, bubbleAlignment) =>
|
|
|
20
20
|
backgroundColor: context.colors.main['9'],
|
|
21
21
|
},
|
|
22
22
|
visualState === VisualState.WARNING && {
|
|
23
|
-
backgroundColor: context.colors.ui.warning.
|
|
24
|
-
},
|
|
25
|
-
visualState === VisualState.ERROR && {
|
|
26
|
-
backgroundColor: context.colors.ui.error.default,
|
|
23
|
+
backgroundColor: context.colors.ui.warning.light,
|
|
27
24
|
},
|
|
28
25
|
bubbleAlignment === BubbleAlignment.RECEIVE && {
|
|
29
26
|
borderBottomLeftRadius: Scale.xs,
|
|
@@ -43,10 +40,7 @@ export const Stylesheet = (context, visualState, bubbleAlignment) =>
|
|
|
43
40
|
backgroundColor: context.colors.main['9'],
|
|
44
41
|
},
|
|
45
42
|
visualState === VisualState.WARNING && {
|
|
46
|
-
backgroundColor: context.colors.ui.warning.
|
|
47
|
-
},
|
|
48
|
-
visualState === VisualState.ERROR && {
|
|
49
|
-
backgroundColor: context.colors.ui.error.default,
|
|
43
|
+
backgroundColor: context.colors.ui.warning.light,
|
|
50
44
|
},
|
|
51
45
|
],
|
|
52
46
|
swipedIcon: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {VisualState} from '../../../types/visual-state.enum';
|
|
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: ({text, visualState}: SnackbarProps) => JSX.Element;
|
|
7
|
-
export {Snackbar as Snackbar};
|
|
6
|
+
declare const Snackbar: ({ text, visualState }: SnackbarProps) => JSX.Element;
|
|
7
|
+
export { Snackbar as Snackbar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {ReactNode} from 'react';
|
|
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: ({children, onIndexChange}: SwipeProps) => JSX.Element;
|
|
7
|
-
export {Swipe as Swipe};
|
|
6
|
+
declare const Swipe: ({ children, onIndexChange }: SwipeProps) => JSX.Element;
|
|
7
|
+
export { Swipe as Swipe };
|
|
@@ -1,13 +1,8 @@
|
|
|
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
|
-
|
|
9
|
-
onPress,
|
|
10
|
-
value,
|
|
11
|
-
isSelected,
|
|
12
|
-
}: TagProps) => JSX.Element;
|
|
13
|
-
export {Tag as Tag};
|
|
7
|
+
declare const Tag: ({ label, onPress, value, isSelected }: TagProps) => JSX.Element;
|
|
8
|
+
export { Tag as Tag };
|
|
@@ -1,13 +1,8 @@
|
|
|
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: ({
|
|
8
|
-
initialHours,
|
|
9
|
-
initialMinutes,
|
|
10
|
-
onChangeHours,
|
|
11
|
-
onChangeMinutes,
|
|
12
|
-
}: TimePickerProps) => JSX.Element;
|
|
7
|
+
export declare const TimePicker: ({ initialHours, initialMinutes, onChangeHours, onChangeMinutes, }: TimePickerProps) => JSX.Element;
|
|
13
8
|
export {};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {VisualState} from '../../../types/visual-state.enum';
|
|
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
|
-
|
|
9
|
-
visualState,
|
|
10
|
-
textColor,
|
|
11
|
-
}: TimeTrackerProps) => JSX.Element;
|
|
12
|
-
export {TimeTracker as TimeTracker};
|
|
7
|
+
declare const TimeTracker: ({ text, visualState, textColor }: TimeTrackerProps) => JSX.Element;
|
|
8
|
+
export { TimeTracker as TimeTracker };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
type TimeLineProps = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
checkIn: string;
|
|
3
|
+
checkOut?: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const TimeLine: ({
|
|
6
|
-
checkIn,
|
|
7
|
-
checkOut,
|
|
8
|
-
}: TimeLineProps) => JSX.Element;
|
|
5
|
+
export declare const TimeLine: ({ checkIn, checkOut }: TimeLineProps) => JSX.Element;
|
|
9
6
|
export {};
|
|
@@ -1,61 +1,51 @@
|
|
|
1
|
-
export function Stylesheet(
|
|
2
|
-
|
|
3
|
-
startingPosition: any,
|
|
4
|
-
width: any
|
|
5
|
-
):
|
|
6
|
-
| StyleSheet.NamedStyles<any>
|
|
7
|
-
| StyleSheet.NamedStyles<{
|
|
8
|
-
container: {
|
|
1
|
+
export function Stylesheet(context: any, startingPosition: any, width: any): StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
|
|
2
|
+
container: {
|
|
9
3
|
width: string;
|
|
10
4
|
marginTop: number;
|
|
11
5
|
marginBottom: number;
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
};
|
|
7
|
+
lineContainer: {
|
|
14
8
|
height: number;
|
|
15
9
|
borderRadius: number;
|
|
16
10
|
backgroundColor: any;
|
|
17
|
-
overflow:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
height:
|
|
11
|
+
overflow: "hidden";
|
|
12
|
+
};
|
|
13
|
+
checkInLine: {
|
|
14
|
+
height: string;
|
|
21
15
|
width: string;
|
|
22
16
|
borderRadius: number;
|
|
23
17
|
left: string;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
marginLeft?: undefined;
|
|
52
|
-
}
|
|
53
|
-
)[];
|
|
54
|
-
checkInTime: {
|
|
18
|
+
};
|
|
19
|
+
checkInOutTextContainer: ({
|
|
20
|
+
width: string;
|
|
21
|
+
flexDirection: string;
|
|
22
|
+
height: number;
|
|
23
|
+
marginTop: number;
|
|
24
|
+
marginLeft?: undefined;
|
|
25
|
+
justifyContent?: undefined;
|
|
26
|
+
alignSelf?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
marginLeft: string;
|
|
29
|
+
justifyContent: string;
|
|
30
|
+
width?: undefined;
|
|
31
|
+
flexDirection?: undefined;
|
|
32
|
+
height?: undefined;
|
|
33
|
+
marginTop?: undefined;
|
|
34
|
+
alignSelf?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
alignSelf: string;
|
|
37
|
+
justifyContent: string;
|
|
38
|
+
width: string;
|
|
39
|
+
flexDirection?: undefined;
|
|
40
|
+
height?: undefined;
|
|
41
|
+
marginTop?: undefined;
|
|
42
|
+
marginLeft?: undefined;
|
|
43
|
+
})[];
|
|
44
|
+
checkInTime: {
|
|
55
45
|
right: number;
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
};
|
|
47
|
+
checkOutTime: {
|
|
58
48
|
left: number;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
import {StyleSheet} from
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
import { StyleSheet } from "react-native/Libraries/StyleSheet/StyleSheet";
|
|
@@ -9,13 +9,13 @@ export const Stylesheet = (context, startingPosition, width) =>
|
|
|
9
9
|
marginBottom: Scale.xs,
|
|
10
10
|
},
|
|
11
11
|
lineContainer: {
|
|
12
|
-
height: Scale.
|
|
12
|
+
height: Scale.m,
|
|
13
13
|
borderRadius: 50,
|
|
14
14
|
backgroundColor: context.colors.ui.lightgrey,
|
|
15
15
|
overflow: 'hidden',
|
|
16
16
|
},
|
|
17
17
|
checkInLine: {
|
|
18
|
-
height:
|
|
18
|
+
height: '100%',
|
|
19
19
|
width: width.toString() + '%',
|
|
20
20
|
borderRadius: 50,
|
|
21
21
|
left: startingPosition.toString() + '%',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime.class';
|
|
1
|
+
import { ToddleDateTime } from '../../../utilities/toddle-datetime/toddle-datetime.class';
|
|
2
2
|
type TimestampProps = {
|
|
3
|
-
|
|
3
|
+
sent: ToddleDateTime;
|
|
4
|
+
label?: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const Timestamp: ({sent}: TimestampProps) => JSX.Element;
|
|
6
|
+
export declare const Timestamp: ({ sent, label }: TimestampProps) => JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -7,18 +7,15 @@ import {SmallText} from '../../atoms/paragraph-components';
|
|
|
7
7
|
|
|
8
8
|
type TimestampProps = {
|
|
9
9
|
sent: ToddleDateTime;
|
|
10
|
+
label?: string;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
|
-
export const Timestamp = ({sent}: TimestampProps) => {
|
|
13
|
+
export const Timestamp = ({sent, label}: TimestampProps) => {
|
|
13
14
|
const Context = useContext(ThemeCtx);
|
|
14
15
|
const styles = Stylesheet();
|
|
15
16
|
|
|
16
17
|
const timestampToStringHandler = (timestamp: ToddleDateTime) => {
|
|
17
|
-
return timestamp.
|
|
18
|
-
hourCycle: 'h24',
|
|
19
|
-
hour: 'numeric',
|
|
20
|
-
minute: '2-digit',
|
|
21
|
-
});
|
|
18
|
+
return timestamp.toFormat('d LLL, H:mm');
|
|
22
19
|
};
|
|
23
20
|
|
|
24
21
|
return (
|
|
@@ -27,7 +24,7 @@ export const Timestamp = ({sent}: TimestampProps) => {
|
|
|
27
24
|
textAlign={'right'}
|
|
28
25
|
addStyle={styles.timestampText}
|
|
29
26
|
>
|
|
30
|
-
{timestampToStringHandler(sent)}
|
|
27
|
+
{label} {timestampToStringHandler(sent)}
|
|
31
28
|
</SmallText>
|
|
32
29
|
);
|
|
33
30
|
};
|
|
@@ -1,7 +1,2 @@
|
|
|
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
|
+
import { WaveProps } from '../../atoms/static-wave/static-wave.component';
|
|
2
|
+
export declare const WaveBackground: ({ customWavePath, customStyle, heightSvgContainer, positionTop, }: WaveProps) => JSX.Element;
|
|
@@ -1,13 +1,8 @@
|
|
|
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
|
-
|
|
9
|
-
disabled,
|
|
10
|
-
onPress,
|
|
11
|
-
backgroundColor,
|
|
12
|
-
}: ButtonProps) => JSX.Element;
|
|
13
|
-
export {WideButton as WideButton};
|
|
7
|
+
declare const WideButton: ({ text, disabled, onPress, backgroundColor, }: ButtonProps) => JSX.Element;
|
|
8
|
+
export { WideButton as WideButton };
|