@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,49 +1,49 @@
|
|
|
1
1
|
export declare const StaffMemberTheme: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
colors: {
|
|
3
|
+
gradient: {
|
|
4
|
+
1: string[];
|
|
5
|
+
0: string[];
|
|
6
|
+
};
|
|
7
|
+
main: {
|
|
8
|
+
9: string;
|
|
9
|
+
8: string;
|
|
10
|
+
7: string;
|
|
11
|
+
6: string;
|
|
12
|
+
5: string;
|
|
13
|
+
4: string;
|
|
14
|
+
3: string;
|
|
15
|
+
2: string;
|
|
16
|
+
1: string;
|
|
17
|
+
0: string;
|
|
18
|
+
};
|
|
19
|
+
ui: {
|
|
20
|
+
black: string;
|
|
21
|
+
white: string;
|
|
22
|
+
xlightgrey: string;
|
|
23
|
+
lightgrey: string;
|
|
24
|
+
grey: string;
|
|
25
|
+
darkgrey: string;
|
|
26
|
+
success: {
|
|
27
|
+
xlight: string;
|
|
28
|
+
light: string;
|
|
29
|
+
default: string;
|
|
30
|
+
dark: string;
|
|
31
|
+
};
|
|
32
|
+
warning: {
|
|
33
|
+
xlight: string;
|
|
34
|
+
light: string;
|
|
35
|
+
default: string;
|
|
36
|
+
dark: string;
|
|
37
|
+
};
|
|
38
|
+
error: {
|
|
39
|
+
xlight: string;
|
|
40
|
+
light: string;
|
|
41
|
+
default: string;
|
|
42
|
+
dark: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
6
45
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
8: string;
|
|
10
|
-
7: string;
|
|
11
|
-
6: string;
|
|
12
|
-
5: string;
|
|
13
|
-
4: string;
|
|
14
|
-
3: string;
|
|
15
|
-
2: string;
|
|
16
|
-
1: string;
|
|
17
|
-
0: string;
|
|
46
|
+
wave: {
|
|
47
|
+
path: any;
|
|
18
48
|
};
|
|
19
|
-
ui: {
|
|
20
|
-
black: string;
|
|
21
|
-
white: string;
|
|
22
|
-
xlightgrey: string;
|
|
23
|
-
lightgrey: string;
|
|
24
|
-
grey: string;
|
|
25
|
-
darkgrey: string;
|
|
26
|
-
success: {
|
|
27
|
-
xlight: string;
|
|
28
|
-
light: string;
|
|
29
|
-
default: string;
|
|
30
|
-
dark: string;
|
|
31
|
-
};
|
|
32
|
-
warning: {
|
|
33
|
-
xlight: string;
|
|
34
|
-
light: string;
|
|
35
|
-
default: string;
|
|
36
|
-
dark: string;
|
|
37
|
-
};
|
|
38
|
-
error: {
|
|
39
|
-
xlight: string;
|
|
40
|
-
light: string;
|
|
41
|
-
default: string;
|
|
42
|
-
dark: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
wave: {
|
|
47
|
-
path: any;
|
|
48
|
-
};
|
|
49
49
|
};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {ScaledSize, StyleProp, StyleSheet} from 'react-native';
|
|
2
|
-
export default function CreateResponsiveStyle<T, U extends Partial<T>>(
|
|
3
|
-
mobileStyles: StyleSheet.NamedStyles<T>,
|
|
4
|
-
tabletStyles: StyleSheet.NamedStyles<U>
|
|
5
|
-
): (layout: ScaledSize) => (style: keyof T) => StyleProp<any>;
|
|
1
|
+
import { ScaledSize, StyleProp, StyleSheet } from 'react-native';
|
|
2
|
+
export default function CreateResponsiveStyle<T, U extends Partial<T>>(mobileStyles: StyleSheet.NamedStyles<T>, tabletStyles: StyleSheet.NamedStyles<U>): (layout: ScaledSize) => (style: keyof T) => StyleProp<any>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const Scale: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
xxxs: number;
|
|
3
|
+
xxs: number;
|
|
4
|
+
xs: number;
|
|
5
|
+
s: number;
|
|
6
|
+
m: number;
|
|
7
|
+
l: number;
|
|
8
|
+
xl: number;
|
|
9
|
+
xxl: number;
|
|
10
|
+
xxxl: number;
|
|
11
|
+
xxxxl: number;
|
|
12
12
|
};
|
|
@@ -1,42 +1,2 @@
|
|
|
1
1
|
export type IconStyleType = 'solid' | 'regular';
|
|
2
|
-
export type IconNameType =
|
|
3
|
-
| 'calendar'
|
|
4
|
-
| 'chat'
|
|
5
|
-
| 'chat-alt'
|
|
6
|
-
| 'check-circle'
|
|
7
|
-
| 'chevron-left'
|
|
8
|
-
| 'chevron-right'
|
|
9
|
-
| 'clock'
|
|
10
|
-
| 'cloud-download'
|
|
11
|
-
| 'currency-euro'
|
|
12
|
-
| 'document-text'
|
|
13
|
-
| 'exclamation'
|
|
14
|
-
| 'exclamation-circle'
|
|
15
|
-
| 'eye'
|
|
16
|
-
| 'eye-off'
|
|
17
|
-
| 'filter'
|
|
18
|
-
| 'information-circle'
|
|
19
|
-
| 'logout'
|
|
20
|
-
| 'mail'
|
|
21
|
-
| 'mail-open'
|
|
22
|
-
| 'menu'
|
|
23
|
-
| 'minus-sm'
|
|
24
|
-
| 'office-building'
|
|
25
|
-
| 'paper-airplane'
|
|
26
|
-
| 'paper-clip'
|
|
27
|
-
| 'pencil'
|
|
28
|
-
| 'phone'
|
|
29
|
-
| 'plus'
|
|
30
|
-
| 'plus-sm'
|
|
31
|
-
| 'qrcode'
|
|
32
|
-
| 'refresh'
|
|
33
|
-
| 'search'
|
|
34
|
-
| 'selector'
|
|
35
|
-
| 'sm-view-grid-add'
|
|
36
|
-
| 'status-online'
|
|
37
|
-
| 'thumb-up'
|
|
38
|
-
| 'trash'
|
|
39
|
-
| 'user'
|
|
40
|
-
| 'user-group'
|
|
41
|
-
| 'users'
|
|
42
|
-
| 'xmark';
|
|
2
|
+
export type IconNameType = 'calendar' | 'chat' | 'chat-alt' | 'check-circle' | 'chevron-left' | 'chevron-right' | 'clock' | 'cloud-download' | 'currency-euro' | 'document-text' | 'exclamation' | 'exclamation-circle' | 'eye' | 'eye-off' | 'filter' | 'information-circle' | 'logout' | 'mail' | 'mail-open' | 'menu' | 'minus-sm' | 'office-building' | 'paper-airplane' | 'paper-clip' | 'pencil' | 'phone' | 'plus' | 'plus-sm' | 'qrcode' | 'refresh' | 'search' | 'selector' | 'sm-view-grid-add' | 'status-online' | 'thumb-up' | 'trash' | 'user' | 'user-group' | 'users' | 'xmark';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare enum KeyBoardTypes {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
DEFAULT = "default",
|
|
3
|
+
NUMBER_PAD = "number-pad",
|
|
4
|
+
DECIMAL_PAD = "decimal-pad",
|
|
5
|
+
NUMERIC = "numeric",
|
|
6
|
+
EMAIL_ADDRESS = "email-address",
|
|
7
|
+
PHONE_PAD = "phone-pad",
|
|
8
|
+
URL = "url"
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type LoadingDotsProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
animation?: string;
|
|
3
|
+
dots?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
spacing?: number;
|
|
7
|
+
delay?: number;
|
|
8
8
|
};
|
package/src/types/size.enum.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {StyleProp, TextStyle} from 'react-native';
|
|
2
|
+
import { StyleProp, TextStyle } from 'react-native';
|
|
3
3
|
export type TextProperties = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
bold?: boolean;
|
|
5
|
+
textColor?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify' | undefined;
|
|
8
|
+
numberOfLines?: number | undefined;
|
|
9
|
+
ellipsizeMode?: 'head' | 'tail' | 'middle' | 'clip' | undefined;
|
|
10
|
+
addStyle?: StyleProp<TextStyle>;
|
|
11
11
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare enum VisualState {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
DEFAULT = "DEFAULT",
|
|
3
|
+
SUCCESS = "SUCCESS",
|
|
4
|
+
WARNING = "WARNING",
|
|
5
|
+
ERROR = "ERROR",
|
|
6
|
+
INACTIVE = "INACTIVE"
|
|
7
7
|
}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import {VisualState} from '../../types/visual-state.enum';
|
|
2
|
-
export declare const TextColorHandler: (
|
|
3
|
-
visualState: VisualState,
|
|
4
|
-
selected?: boolean,
|
|
5
|
-
loading?: boolean
|
|
6
|
-
) => string;
|
|
1
|
+
import { VisualState } from '../../types/visual-state.enum';
|
|
2
|
+
export declare const TextColorHandler: (visualState: VisualState, selected?: boolean, loading?: boolean) => string;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export interface DurationObjectUnits {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
years?: number | undefined;
|
|
3
|
+
quarters?: number | undefined;
|
|
4
|
+
months?: number | undefined;
|
|
5
|
+
weeks?: number | undefined;
|
|
6
|
+
days?: number | undefined;
|
|
7
|
+
hours?: number | undefined;
|
|
8
|
+
minutes?: number | undefined;
|
|
9
|
+
seconds?: number | undefined;
|
|
10
|
+
milliseconds?: number | undefined;
|
|
11
11
|
}
|
|
12
12
|
export interface DurationLikeObject extends DurationObjectUnits {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
year?: number | undefined;
|
|
14
|
+
quarter?: number | undefined;
|
|
15
|
+
month?: number | undefined;
|
|
16
|
+
week?: number | undefined;
|
|
17
|
+
day?: number | undefined;
|
|
18
|
+
hour?: number | undefined;
|
|
19
|
+
minute?: number | undefined;
|
|
20
|
+
second?: number | undefined;
|
|
21
|
+
millisecond?: number | undefined;
|
|
22
22
|
}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
import { ConversionAccuracy } from '../types/toddle-datetime.type';
|
|
1
2
|
export interface LocaleOptions {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @default system's locale
|
|
5
|
+
*/
|
|
6
|
+
locale?: string | undefined;
|
|
6
7
|
}
|
|
7
8
|
export interface DateTimeOptions extends LocaleOptions {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Use this zone if no offset is specified in the input string itself. Will also convert the time to this zone.
|
|
11
|
+
* @default local
|
|
12
|
+
*/
|
|
13
|
+
zone?: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Override the zone with a fixed-offset zone specified in the string itself, if it specifies one.
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
setZone?: boolean | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface DiffOptions {
|
|
21
|
+
conversionAccuracy?: ConversionAccuracy | undefined;
|
|
18
22
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {ConversionAccuracy} from '../types/toddle-datetime.type';
|
|
2
|
+
|
|
1
3
|
export interface LocaleOptions {
|
|
2
4
|
/**
|
|
3
5
|
* @default system's locale
|
|
@@ -17,3 +19,7 @@ export interface DateTimeOptions extends LocaleOptions {
|
|
|
17
19
|
*/
|
|
18
20
|
setZone?: boolean | undefined;
|
|
19
21
|
}
|
|
22
|
+
|
|
23
|
+
export interface DiffOptions {
|
|
24
|
+
conversionAccuracy?: ConversionAccuracy | undefined;
|
|
25
|
+
}
|
|
@@ -1,94 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from './
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
import { Duration as LuxonDuration } from 'luxon';
|
|
2
|
+
import { LocaleOptions, DateTimeOptions, DiffOptions } from './interfaces/toddle-datetime.interface';
|
|
3
|
+
import { DurationLike, DurationUnits } from './types/duration.type';
|
|
4
|
+
import { DateTimeFormatOptions, DateTimeJSOptions, DateTimeUnit } from './types/toddle-datetime.type';
|
|
5
|
+
import { DurationObjectUnits } from './interfaces/duration.interface';
|
|
6
|
+
export declare class Duration {
|
|
7
|
+
private duration;
|
|
8
|
+
constructor(duration: LuxonDuration);
|
|
9
|
+
toObject(): DurationObjectUnits;
|
|
10
|
+
}
|
|
11
11
|
export declare class ToddleDateTime {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
year: number,
|
|
26
|
-
month: number,
|
|
27
|
-
opts?: DateTimeJSOptions
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
static local(
|
|
51
|
-
year: number,
|
|
52
|
-
month: number,
|
|
53
|
-
day: number,
|
|
54
|
-
hour: number,
|
|
55
|
-
minute: number,
|
|
56
|
-
second: number,
|
|
57
|
-
opts?: DateTimeJSOptions
|
|
58
|
-
): ToddleDateTime;
|
|
59
|
-
static local(
|
|
60
|
-
year: number,
|
|
61
|
-
month: number,
|
|
62
|
-
day: number,
|
|
63
|
-
hour: number,
|
|
64
|
-
minute: number,
|
|
65
|
-
second: number,
|
|
66
|
-
milliseconds: number,
|
|
67
|
-
opts?: DateTimeJSOptions
|
|
68
|
-
): ToddleDateTime;
|
|
69
|
-
static fromISO(date: string, options?: DateTimeOptions): ToddleDateTime;
|
|
70
|
-
static fromSeconds(
|
|
71
|
-
seconds: number,
|
|
72
|
-
options?: DateTimeJSOptions
|
|
73
|
-
): ToddleDateTime;
|
|
74
|
-
static get DATE_MED(): DateTimeFormatOptions;
|
|
75
|
-
get hour(): number;
|
|
76
|
-
get minute(): number;
|
|
77
|
-
get second(): number;
|
|
78
|
-
get millisecond(): number;
|
|
79
|
-
get day(): number;
|
|
80
|
-
get weekdayShort(): string;
|
|
81
|
-
plus(duration: DurationLike): ToddleDateTime;
|
|
82
|
-
minus(duration: DurationLike): ToddleDateTime;
|
|
83
|
-
startOf(unit: DateTimeUnit): ToddleDateTime;
|
|
84
|
-
endOf(unit: DateTimeUnit): ToddleDateTime;
|
|
85
|
-
toFormat(format: string, options?: LocaleOptions): string;
|
|
86
|
-
toISO(): string | null;
|
|
87
|
-
toISODate(): string | null;
|
|
88
|
-
toString(): string;
|
|
89
|
-
toLocaleString(
|
|
90
|
-
formatOptions?: DateTimeFormatOptions,
|
|
91
|
-
options?: LocaleOptions
|
|
92
|
-
): string;
|
|
93
|
-
timestamp(): number;
|
|
12
|
+
private dateTime;
|
|
13
|
+
private constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Create a ToddleDateTime for the current instant, in the system's time zone.
|
|
16
|
+
*
|
|
17
|
+
* Use Settings to override these default values if needed.
|
|
18
|
+
* @example
|
|
19
|
+
* ToddleDateTime.now().toISO() //~> now in the ISO format
|
|
20
|
+
*/
|
|
21
|
+
static now(): ToddleDateTime;
|
|
22
|
+
static local(opts?: DateTimeJSOptions): ToddleDateTime;
|
|
23
|
+
static local(year: number, opts?: DateTimeJSOptions): ToddleDateTime;
|
|
24
|
+
static local(year: number, month: number, opts?: DateTimeJSOptions): ToddleDateTime;
|
|
25
|
+
static local(year: number, month: number, day: number, opts?: DateTimeJSOptions): ToddleDateTime;
|
|
26
|
+
static local(year: number, month: number, day: number, hour: number, opts?: DateTimeJSOptions): ToddleDateTime;
|
|
27
|
+
static local(year: number, month: number, day: number, hour: number, minute: number, opts?: DateTimeJSOptions): ToddleDateTime;
|
|
28
|
+
static local(year: number, month: number, day: number, hour: number, minute: number, second: number, opts?: DateTimeJSOptions): ToddleDateTime;
|
|
29
|
+
static local(year: number, month: number, day: number, hour: number, minute: number, second: number, milliseconds: number, opts?: DateTimeJSOptions): ToddleDateTime;
|
|
30
|
+
static fromISO(date: string, options?: DateTimeOptions): ToddleDateTime;
|
|
31
|
+
static fromSeconds(seconds: number, options?: DateTimeJSOptions): ToddleDateTime;
|
|
32
|
+
static get DATE_MED(): DateTimeFormatOptions;
|
|
33
|
+
get hour(): number;
|
|
34
|
+
get minute(): number;
|
|
35
|
+
get second(): number;
|
|
36
|
+
get millisecond(): number;
|
|
37
|
+
get day(): number;
|
|
38
|
+
get weekdayShort(): string;
|
|
39
|
+
plus(duration: DurationLike): ToddleDateTime;
|
|
40
|
+
minus(duration: DurationLike): ToddleDateTime;
|
|
41
|
+
startOf(unit: DateTimeUnit): ToddleDateTime;
|
|
42
|
+
endOf(unit: DateTimeUnit): ToddleDateTime;
|
|
43
|
+
toFormat(format: string, options?: LocaleOptions): string;
|
|
44
|
+
toISO(): string | null;
|
|
45
|
+
toISODate(): string | null;
|
|
46
|
+
toString(): string;
|
|
47
|
+
toLocaleString(formatOptions?: DateTimeFormatOptions, options?: LocaleOptions): string;
|
|
48
|
+
timestamp(): number;
|
|
49
|
+
diff(otherDateTime: ToddleDateTime, unit?: DurationUnits, options?: DiffOptions): Duration;
|
|
94
50
|
}
|
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
import {DateTime as LuxonDateTime} from 'luxon';
|
|
1
|
+
import {DateTime as LuxonDateTime, Duration as LuxonDuration} from 'luxon';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
LocaleOptions,
|
|
5
5
|
DateTimeOptions,
|
|
6
|
+
DiffOptions,
|
|
6
7
|
} from './interfaces/toddle-datetime.interface';
|
|
7
8
|
|
|
8
|
-
import {DurationLike} from './types/duration
|
|
9
|
+
import {DurationLike, DurationUnits} from './types/duration.type';
|
|
9
10
|
import {
|
|
10
11
|
DateTimeFormatOptions,
|
|
11
12
|
DateTimeJSOptions,
|
|
12
13
|
DateTimeUnit,
|
|
13
14
|
} from './types/toddle-datetime.type';
|
|
15
|
+
import {DurationObjectUnits} from './interfaces/duration.interface';
|
|
16
|
+
|
|
17
|
+
export class Duration {
|
|
18
|
+
private duration: LuxonDuration;
|
|
19
|
+
|
|
20
|
+
constructor(duration: LuxonDuration) {
|
|
21
|
+
this.duration = duration;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
toObject(): DurationObjectUnits {
|
|
25
|
+
return this.duration.toObject();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
14
28
|
|
|
15
29
|
export class ToddleDateTime {
|
|
16
30
|
private dateTime: LuxonDateTime;
|
|
@@ -174,4 +188,19 @@ export class ToddleDateTime {
|
|
|
174
188
|
timestamp(): number {
|
|
175
189
|
return this.dateTime.toUnixInteger();
|
|
176
190
|
}
|
|
191
|
+
|
|
192
|
+
// COMPARE
|
|
193
|
+
|
|
194
|
+
diff(
|
|
195
|
+
otherDateTime: ToddleDateTime,
|
|
196
|
+
unit?: DurationUnits,
|
|
197
|
+
options?: DiffOptions
|
|
198
|
+
): Duration {
|
|
199
|
+
const luxonDuration = this.dateTime.diff(
|
|
200
|
+
otherDateTime.dateTime,
|
|
201
|
+
unit,
|
|
202
|
+
options
|
|
203
|
+
);
|
|
204
|
+
return new Duration(luxonDuration);
|
|
205
|
+
}
|
|
177
206
|
}
|