@tactics/toddle-styleguide 0.0.4 → 0.0.6
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/.yarnrc.yml +1 -1
- package/App.d.ts +2 -0
- package/{types/index.d.ts → index.d.ts} +12 -1
- package/index.tsx +18 -0
- package/package.json +13 -11
- package/src/components/atoms/avatar/avatar.component.d.ts +11 -0
- package/src/components/atoms/avatar/avatar.preview.d.ts +1 -0
- package/src/components/atoms/avatar/avatar.styles.d.ts +48 -0
- package/src/components/atoms/button/button.component.d.ts +8 -0
- package/src/components/atoms/button/button.preview.d.ts +1 -0
- package/src/components/atoms/button/button.styles.d.ts +23 -0
- package/src/components/atoms/calendar/calendar.component.d.ts +8 -0
- package/src/components/atoms/calendar/calendar.preview.d.ts +1 -0
- package/src/components/atoms/calendar/calendar.styles.d.ts +81 -0
- package/src/components/atoms/cancel-link/cancel-link.component.d.ts +6 -0
- package/src/components/atoms/cancel-link/cancel-link.preview.d.ts +1 -0
- package/src/components/atoms/cancel-link/cancel-link.styles.d.ts +17 -0
- package/src/components/atoms/check-switch/check-switch.component.d.ts +6 -0
- package/src/components/atoms/check-switch/check-switch.preview.d.ts +1 -0
- package/src/components/atoms/check-switch/check-switch.styles.d.ts +33 -0
- package/src/components/atoms/checkbox/checkbox.component.d.ts +7 -0
- package/src/components/atoms/checkbox/checkbox.preview.d.ts +1 -0
- package/src/components/atoms/checkbox/checkbox.styles.d.ts +32 -0
- package/src/components/atoms/child-list-item/child-list-item.component.d.ts +18 -0
- package/src/components/atoms/child-list-item/child-list-item.preview.d.ts +1 -0
- package/src/components/atoms/child-list-item/child-list-item.styles.d.ts +78 -0
- package/src/components/atoms/contact-item/contact-item.component.d.ts +9 -0
- package/src/components/atoms/contact-item/contact-item.preview.d.ts +1 -0
- package/src/components/atoms/contact-item/contact-item.styles.d.ts +24 -0
- package/src/components/atoms/filter-tab/filter-tab.component.d.ts +8 -0
- package/src/components/atoms/filter-tab/filter-tab.preview.d.ts +1 -0
- package/src/components/atoms/filter-tab/filter-tab.styles.d.ts +66 -0
- package/src/components/atoms/form-actions/form-action.component.d.ts +7 -0
- package/src/components/atoms/form-actions/form-action.preview.d.ts +1 -0
- package/src/components/atoms/form-actions/form-action.styles.d.ts +14 -0
- package/src/components/atoms/image-bubble/image-bubble.component.d.ts +8 -0
- package/src/components/atoms/image-bubble/image-bubble.preview.d.ts +1 -0
- package/src/components/atoms/image-bubble/image-bubble.styles.d.ts +35 -0
- package/src/components/atoms/increment-input/increment-input.component.d.ts +6 -0
- package/src/components/atoms/increment-input/increment-input.preview.d.ts +1 -0
- package/src/components/atoms/increment-input/increment-input.styles.d.ts +46 -0
- package/src/components/atoms/info/info.component.d.ts +6 -0
- package/src/components/atoms/info/info.preview.d.ts +1 -0
- package/src/components/atoms/info/info.styles.d.ts +24 -0
- package/src/components/atoms/logo/logo.component.d.ts +6 -0
- package/src/components/atoms/logo/logo.preview.d.ts +1 -0
- package/src/components/atoms/pill/pill.component.d.ts +7 -0
- package/src/components/atoms/pill/pill.preview.d.ts +1 -0
- package/src/components/atoms/pill/pill.styles.d.ts +32 -0
- package/src/components/atoms/popover/components/backdrop/backdrop.component.d.ts +5 -0
- package/src/components/atoms/popover/components/backdrop/backdrop.styles.d.ts +11 -0
- package/src/components/atoms/popover/components/foreground/foreground.component.d.ts +7 -0
- package/src/components/atoms/popover/components/foreground/foreground.styles.d.ts +12 -0
- package/src/components/atoms/popover/components/index.d.ts +4 -0
- package/src/components/atoms/popover/components/modal/close/close.component.d.ts +6 -0
- package/src/components/atoms/popover/components/modal/close/close.styles.d.ts +9 -0
- package/src/components/atoms/popover/components/modal/heading/heading.component.d.ts +6 -0
- package/src/components/atoms/popover/components/modal/heading/heading.styles.d.ts +22 -0
- package/src/components/atoms/popover/components/modal/modal.component.d.ts +11 -0
- package/src/components/atoms/popover/components/modal/modal.styles.d.ts +18 -0
- package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.d.ts +6 -0
- package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.styles.d.ts +6 -0
- package/src/components/atoms/popover/popover.component.d.ts +10 -0
- package/src/components/atoms/popover/popover.styles.d.ts +8 -0
- package/src/components/atoms/pressable-icon/pressable-icon.component.d.ts +9 -0
- package/src/components/atoms/pressable-icon/pressable-icon.preview.d.ts +1 -0
- package/src/components/atoms/pressable-icon/pressable-icon.styles.d.ts +20 -0
- package/src/components/atoms/quick-filter/quick-filter.component.d.ts +10 -0
- package/src/components/atoms/quick-filter/quick-filter.prevriew.d.ts +1 -0
- package/src/components/atoms/quick-filter/quick-filter.styles.d.ts +46 -0
- package/src/components/atoms/select-list-item/select-list-item-preview.d.ts +1 -0
- package/src/components/atoms/select-list-item/select-list-item.component.d.ts +10 -0
- package/src/components/atoms/select-list-item/select-list-item.styles.d.ts +40 -0
- package/src/components/atoms/snackbar/snackbar.component.d.ts +7 -0
- package/src/components/atoms/snackbar/snackbar.preview.d.ts +1 -0
- package/src/components/atoms/snackbar/snackbar.styles.d.ts +61 -0
- package/src/components/atoms/swipe/Swipe.styles.d.ts +7 -0
- package/src/components/atoms/swipe/swipe.component.d.ts +6 -0
- package/src/components/atoms/swipe/swipe.preview.d.ts +1 -0
- package/src/components/atoms/tag/tag.component.d.ts +12 -0
- package/src/components/atoms/tag/tag.preview.d.ts +1 -0
- package/src/components/atoms/tag/tag.styles.d.ts +19 -0
- package/src/components/atoms/text-bubble/text-bubble.component.d.ts +10 -0
- package/src/components/atoms/text-bubble/text-bubble.preview.d.ts +1 -0
- package/src/components/atoms/text-bubble/text-bubble.styles.d.ts +75 -0
- package/src/components/atoms/text-input/text-input.component.d.ts +8 -0
- package/src/components/atoms/text-input/text-input.preview.d.ts +1 -0
- package/src/components/atoms/text-input/text-input.styles.d.ts +21 -0
- package/src/components/atoms/time-tracker/time-tracker.component.d.ts +7 -0
- package/src/components/atoms/time-tracker/time-tracker.preview.d.ts +1 -0
- package/src/components/atoms/time-tracker/time-tracker.styles.d.ts +33 -0
- package/src/components/atoms/timeline/timeline.component.d.ts +6 -0
- package/src/components/atoms/timeline/timeline.preview.d.ts +1 -0
- package/src/components/atoms/timeline/timeline.styles.d.ts +43 -0
- package/src/components/atoms/wide-button/wide-button.component.d.ts +7 -0
- package/src/components/atoms/wide-button/wide-button.preview.d.ts +1 -0
- package/src/components/atoms/wide-button/wide-button.styles.d.ts +20 -0
- package/src/context/theme.context.d.ts +46 -0
- package/src/gradients/main/main.gradient.d.ts +1 -0
- package/src/gradients/main/main.styles.d.ts +9 -0
- package/src/icons/index.d.ts +53 -0
- package/src/icons/outline/calendar/calendar.icon.d.ts +2 -0
- package/src/icons/outline/chat/chat.icon.d.ts +2 -0
- package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +2 -0
- package/src/icons/outline/check-circle/check-circle.icon.d.ts +2 -0
- package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +2 -0
- package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +2 -0
- package/src/icons/outline/clock/clock.icon.d.ts +2 -0
- package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +2 -0
- package/src/icons/outline/cross/cross.icon.d.ts +2 -0
- package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +2 -0
- package/src/icons/outline/document-text/document-text.icon.d.ts +2 -0
- package/src/icons/outline/exclamation/exclamation.icon.d.ts +2 -0
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +2 -0
- package/src/icons/outline/eye/eye.icon.d.ts +2 -0
- package/src/icons/outline/filter/filter.icon.d.ts +2 -0
- package/src/icons/outline/information-circle/information-circle.icon.d.ts +2 -0
- package/src/icons/outline/logout/logout.icon.d.ts +2 -0
- package/src/icons/outline/mail/mail.icon.d.ts +2 -0
- package/src/icons/outline/mail-open/mail-open.icon.d.ts +2 -0
- package/src/icons/outline/menu/menu.icon.d.ts +2 -0
- package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +2 -0
- package/src/icons/outline/office-building/office-building.icon.d.ts +2 -0
- package/src/icons/outline/outline-default.preview.d.ts +1 -0
- package/src/icons/outline/outline-grey.preview.d.ts +1 -0
- package/src/icons/outline/outline-white.preview.d.ts +1 -0
- package/src/icons/outline/outline.d.ts +41 -0
- package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +2 -0
- package/src/icons/outline/paperclip/paperclip.icon.d.ts +2 -0
- package/src/icons/outline/pencil/pencil.icon.d.ts +2 -0
- package/src/icons/outline/phone/phone.icon.d.ts +2 -0
- package/src/icons/outline/plus/plus.icon.d.ts +2 -0
- package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +2 -0
- package/src/icons/outline/qrcode/qrcode.icon.d.ts +2 -0
- package/src/icons/outline/refresh/refresh.icon.d.ts +2 -0
- package/src/icons/outline/search/search.icon.d.ts +2 -0
- package/src/icons/outline/selector/selector.icon.d.ts +2 -0
- package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -0
- package/src/icons/outline/status-online/status-online.icon.d.ts +2 -0
- package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +2 -0
- package/src/icons/outline/trash/trash.icon.d.ts +2 -0
- package/src/icons/outline/user/user.icon.d.ts +2 -0
- package/src/icons/outline/user-group/user-group.icon.d.ts +2 -0
- package/src/icons/outline/users/users.icon.d.ts +2 -0
- package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -0
- package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -0
- package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +2 -0
- package/src/icons/solid/pencil/pencil-solid.icon.d.ts +2 -0
- package/src/icons/solid/phone/phone-solid.icon.d.ts +2 -0
- package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -0
- package/src/icons/solid/solid.d.ts +10 -0
- package/src/icons/solid/solid.preview.d.ts +1 -0
- package/src/icons/solid/status-online/status-online-solid.icon.d.ts +2 -0
- package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -0
- package/src/models/initials.model.d.ts +7 -0
- package/src/theme/font/font.d.ts +72 -0
- package/src/theme/font/index.d.ts +3 -0
- package/src/theme/font/load-fonts.d.ts +1 -0
- package/src/theme/provider/index.d.ts +3 -0
- package/src/theme/provider/parent.theme.d.ts +43 -0
- package/src/theme/provider/parent.theme.ts +30 -30
- package/src/theme/provider/staff-member.theme.d.ts +43 -0
- package/src/theme/provider/staff-member.theme.ts +30 -30
- package/src/theme/scale/index.d.ts +12 -0
- package/src/types/bubble-alignment.enum.d.ts +4 -0
- package/src/types/icontype.type.d.ts +3 -0
- package/src/types/keyboard-types.enum.d.ts +9 -0
- package/src/types/size.enum.d.ts +5 -0
- package/src/types/visual-state.enum.d.ts +6 -0
- package/.expo-shared/assets.json +0 -4
- package/.github/workflows/publish_styleguide.yaml +0 -30
- package/.github/workflows/run-tests.yml +0 -16
- package/App.tsx +0 -241
- package/app.json +0 -33
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
context: any,
|
|
3
|
+
bubbleAlignment: any
|
|
4
|
+
):
|
|
5
|
+
| StyleSheet.NamedStyles<any>
|
|
6
|
+
| StyleSheet.NamedStyles<{
|
|
7
|
+
container: (
|
|
8
|
+
| {
|
|
9
|
+
maxWidth: string;
|
|
10
|
+
borderRadius: number;
|
|
11
|
+
overflow: string;
|
|
12
|
+
justifyContent: string;
|
|
13
|
+
alignItems: string;
|
|
14
|
+
borderBottomLeftRadius?: undefined;
|
|
15
|
+
borderBottomRightRadius?: undefined;
|
|
16
|
+
marginRight?: undefined;
|
|
17
|
+
marginLeft?: undefined;
|
|
18
|
+
}
|
|
19
|
+
| {
|
|
20
|
+
borderBottomLeftRadius: number;
|
|
21
|
+
borderBottomRightRadius: number;
|
|
22
|
+
marginRight: number;
|
|
23
|
+
marginLeft: number;
|
|
24
|
+
maxWidth?: undefined;
|
|
25
|
+
borderRadius?: undefined;
|
|
26
|
+
overflow?: undefined;
|
|
27
|
+
justifyContent?: undefined;
|
|
28
|
+
alignItems?: undefined;
|
|
29
|
+
}
|
|
30
|
+
)[];
|
|
31
|
+
image: {
|
|
32
|
+
resizeMode: 'cover';
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
import {StyleSheet} from 'react-native';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IncrementInputPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export function Stylesheet(Context: any): {
|
|
2
|
+
container: {
|
|
3
|
+
width: string;
|
|
4
|
+
display: 'flex';
|
|
5
|
+
flexDirection: 'row';
|
|
6
|
+
alignItems: 'center';
|
|
7
|
+
justifyContent: 'center';
|
|
8
|
+
};
|
|
9
|
+
buttonContainer: {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
backgroundColor: any;
|
|
13
|
+
alignItems: 'center';
|
|
14
|
+
justifyContent: 'center';
|
|
15
|
+
borderRadius: number;
|
|
16
|
+
};
|
|
17
|
+
numberContainer: {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
display: 'flex';
|
|
21
|
+
justifyContent: 'center';
|
|
22
|
+
alignItems: 'center';
|
|
23
|
+
paddingTop: number;
|
|
24
|
+
paddingRight: number;
|
|
25
|
+
paddingBottom: number;
|
|
26
|
+
paddingLeft: number;
|
|
27
|
+
marginRight: number;
|
|
28
|
+
marginLeft: number;
|
|
29
|
+
backgroundColor: any;
|
|
30
|
+
borderWidth: number;
|
|
31
|
+
borderStyle: 'solid';
|
|
32
|
+
borderColor: any;
|
|
33
|
+
borderRadius: number;
|
|
34
|
+
};
|
|
35
|
+
number: {
|
|
36
|
+
textAlign: 'center';
|
|
37
|
+
textAlignVertical: 'center';
|
|
38
|
+
justifyContent: 'center';
|
|
39
|
+
alignItems: 'center';
|
|
40
|
+
display: 'flex';
|
|
41
|
+
color: any;
|
|
42
|
+
fontFamily: string;
|
|
43
|
+
fontSize: number;
|
|
44
|
+
lineHeight: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InfoPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export function Stylesheet(context: any): {
|
|
2
|
+
container: {
|
|
3
|
+
width: string;
|
|
4
|
+
backgroundColor: any;
|
|
5
|
+
borderRadius: number;
|
|
6
|
+
alignItems: 'flex-start';
|
|
7
|
+
justifyContent: 'flex-start';
|
|
8
|
+
paddingVertical: number;
|
|
9
|
+
paddingHorizontal: number;
|
|
10
|
+
};
|
|
11
|
+
label: {
|
|
12
|
+
color: any;
|
|
13
|
+
marginBottom: number;
|
|
14
|
+
fontFamily: string;
|
|
15
|
+
fontSize: number;
|
|
16
|
+
lineHeight: number;
|
|
17
|
+
};
|
|
18
|
+
description: {
|
|
19
|
+
color: any;
|
|
20
|
+
fontFamily: string;
|
|
21
|
+
fontSize: number;
|
|
22
|
+
lineHeight: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LogoPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PillPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
context: any,
|
|
3
|
+
variant: any
|
|
4
|
+
):
|
|
5
|
+
| StyleSheet.NamedStyles<any>
|
|
6
|
+
| StyleSheet.NamedStyles<{
|
|
7
|
+
container: (
|
|
8
|
+
| {
|
|
9
|
+
borderRadius: number;
|
|
10
|
+
alignItems: string;
|
|
11
|
+
justifyContent: string;
|
|
12
|
+
paddingVertical: number;
|
|
13
|
+
paddingHorizontal: number;
|
|
14
|
+
backgroundColor?: undefined;
|
|
15
|
+
}
|
|
16
|
+
| {
|
|
17
|
+
backgroundColor: any;
|
|
18
|
+
borderRadius?: undefined;
|
|
19
|
+
alignItems?: undefined;
|
|
20
|
+
justifyContent?: undefined;
|
|
21
|
+
paddingVertical?: undefined;
|
|
22
|
+
paddingHorizontal?: undefined;
|
|
23
|
+
}
|
|
24
|
+
)[];
|
|
25
|
+
label: {
|
|
26
|
+
color: any;
|
|
27
|
+
fontFamily: string;
|
|
28
|
+
fontSize: number;
|
|
29
|
+
lineHeight: number;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
import {StyleSheet} from 'react-native';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Modal } from '../modal/modal.component';
|
|
3
|
+
declare type PopoverForegroundProps = {
|
|
4
|
+
children: React.ReactElement<typeof Modal>;
|
|
5
|
+
};
|
|
6
|
+
declare const Foreground: ({ children }: PopoverForegroundProps) => JSX.Element;
|
|
7
|
+
export { Foreground as Foreground };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function Stylesheet(Context: any): {
|
|
2
|
+
element: {
|
|
3
|
+
display: 'flex';
|
|
4
|
+
flexDirection: 'column';
|
|
5
|
+
marginBottom: number;
|
|
6
|
+
};
|
|
7
|
+
title: {
|
|
8
|
+
display: 'flex';
|
|
9
|
+
textAlign: 'center';
|
|
10
|
+
fontFamily: string;
|
|
11
|
+
fontSize: number;
|
|
12
|
+
lineHeight: number;
|
|
13
|
+
};
|
|
14
|
+
subtitle: {
|
|
15
|
+
display: 'flex';
|
|
16
|
+
textAlign: 'center';
|
|
17
|
+
marginTop: number;
|
|
18
|
+
fontFamily: string;
|
|
19
|
+
fontSize: number;
|
|
20
|
+
lineHeight: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type PopoverModalProps = {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
isVisible: boolean;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
windowHeight: number;
|
|
9
|
+
};
|
|
10
|
+
declare const Modal: ({ isVisible, title, subtitle, onClose, children, windowHeight, }: PopoverModalProps) => JSX.Element;
|
|
11
|
+
export { Modal as Modal };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function Stylesheet(Context: any): {
|
|
2
|
+
element: {
|
|
3
|
+
position: 'relative';
|
|
4
|
+
display: 'flex';
|
|
5
|
+
alignItems: 'stretch';
|
|
6
|
+
paddingTop: number;
|
|
7
|
+
paddingBottom: number;
|
|
8
|
+
paddingLeft: number;
|
|
9
|
+
paddingRight: number;
|
|
10
|
+
borderTopLeftRadius: number;
|
|
11
|
+
borderTopRightRadius: number;
|
|
12
|
+
backgroundColor: any;
|
|
13
|
+
};
|
|
14
|
+
inner: {
|
|
15
|
+
display: 'flex';
|
|
16
|
+
alignItems: 'stretch';
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type PopoverProps = {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
isVisible: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare const Popover: ({ isVisible, title, subtitle, onClose, children, }: PopoverProps) => JSX.Element;
|
|
10
|
+
export { Popover as Popover };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type PressableIconProps = {
|
|
3
|
+
icon: React.ReactElement;
|
|
4
|
+
inverted?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onPress?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const PressableIcon: ({ icon, inverted, disabled, onPress, }: PressableIconProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PressableIconPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
context: any,
|
|
3
|
+
disabled: any
|
|
4
|
+
): {
|
|
5
|
+
container: {
|
|
6
|
+
flexDirection: 'row';
|
|
7
|
+
justifyContent: 'center';
|
|
8
|
+
alignItems: 'center';
|
|
9
|
+
borderRadius: number;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
padding: number;
|
|
13
|
+
};
|
|
14
|
+
backgroundDefault: {
|
|
15
|
+
backgroundColor: any;
|
|
16
|
+
};
|
|
17
|
+
backgroundInverted: {
|
|
18
|
+
backgroundColor: any;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VisualState } from '../../../types/visual-state.enum';
|
|
2
|
+
declare type QuickFilterProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
onSelect: (id: string) => void;
|
|
7
|
+
visualState: VisualState;
|
|
8
|
+
};
|
|
9
|
+
declare const QuickFilter: ({ id, amount, isSelected, onSelect, visualState, }: QuickFilterProps) => JSX.Element;
|
|
10
|
+
export { QuickFilter as QuickFilter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const QuickFilterPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
context: any,
|
|
3
|
+
visualState: any,
|
|
4
|
+
isSelected: any
|
|
5
|
+
):
|
|
6
|
+
| StyleSheet.NamedStyles<any>
|
|
7
|
+
| StyleSheet.NamedStyles<{
|
|
8
|
+
container: (
|
|
9
|
+
| {
|
|
10
|
+
alignItems: string;
|
|
11
|
+
justifyContent: string;
|
|
12
|
+
borderRadius: number;
|
|
13
|
+
borderStyle: string;
|
|
14
|
+
borderWidth: number;
|
|
15
|
+
overflow: string;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
backgroundColor?: undefined;
|
|
19
|
+
borderColor?: undefined;
|
|
20
|
+
}
|
|
21
|
+
| {
|
|
22
|
+
backgroundColor: any;
|
|
23
|
+
borderColor: any;
|
|
24
|
+
alignItems?: undefined;
|
|
25
|
+
justifyContent?: undefined;
|
|
26
|
+
borderRadius?: undefined;
|
|
27
|
+
borderStyle?: undefined;
|
|
28
|
+
borderWidth?: undefined;
|
|
29
|
+
overflow?: undefined;
|
|
30
|
+
width?: undefined;
|
|
31
|
+
height?: undefined;
|
|
32
|
+
}
|
|
33
|
+
)[];
|
|
34
|
+
text: (
|
|
35
|
+
| {
|
|
36
|
+
fontFamily: string;
|
|
37
|
+
fontSize: number;
|
|
38
|
+
lineHeight: number;
|
|
39
|
+
color?: undefined;
|
|
40
|
+
}
|
|
41
|
+
| {
|
|
42
|
+
color: any;
|
|
43
|
+
}
|
|
44
|
+
)[];
|
|
45
|
+
}>;
|
|
46
|
+
import {StyleSheet} from 'react-native';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SelectListItemPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type SelectListProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
icon: React.ReactElement;
|
|
6
|
+
onPress?: () => void;
|
|
7
|
+
inverse?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const SelectListItem: ({ title, subtitle, icon, onPress, inverse, }: SelectListProps) => JSX.Element;
|
|
10
|
+
export { SelectListItem as SelectListItem };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
context: any,
|
|
3
|
+
inverse: any
|
|
4
|
+
): {
|
|
5
|
+
container: {
|
|
6
|
+
width: string;
|
|
7
|
+
flexDirection: 'row';
|
|
8
|
+
alignItems: 'center';
|
|
9
|
+
};
|
|
10
|
+
iconCircle: {
|
|
11
|
+
justifyContent: 'center';
|
|
12
|
+
alignItems: 'center';
|
|
13
|
+
backgroundColor: any;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
borderRadius: number;
|
|
17
|
+
marginRight: number;
|
|
18
|
+
};
|
|
19
|
+
textContainer: {
|
|
20
|
+
flex: number;
|
|
21
|
+
flexDirection: 'column';
|
|
22
|
+
};
|
|
23
|
+
title: {
|
|
24
|
+
color: any;
|
|
25
|
+
fontFamily: string;
|
|
26
|
+
fontSize: number;
|
|
27
|
+
lineHeight: number;
|
|
28
|
+
};
|
|
29
|
+
subtitle: {
|
|
30
|
+
color: any;
|
|
31
|
+
fontFamily: string;
|
|
32
|
+
fontSize: number;
|
|
33
|
+
lineHeight: number;
|
|
34
|
+
};
|
|
35
|
+
iconSquare: {
|
|
36
|
+
marginLeft: number;
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SnackbarPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
Context: any,
|
|
3
|
+
variant: any
|
|
4
|
+
):
|
|
5
|
+
| StyleSheet.NamedStyles<any>
|
|
6
|
+
| StyleSheet.NamedStyles<{
|
|
7
|
+
container: (
|
|
8
|
+
| {
|
|
9
|
+
flexDirection: string;
|
|
10
|
+
paddingRight: number;
|
|
11
|
+
paddingLeft: number;
|
|
12
|
+
paddingTop: number;
|
|
13
|
+
paddingBottom: number;
|
|
14
|
+
overflow: string;
|
|
15
|
+
alignItems: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
borderRadius: number;
|
|
18
|
+
elevation: number;
|
|
19
|
+
backgroundColor?: undefined;
|
|
20
|
+
}
|
|
21
|
+
| {
|
|
22
|
+
backgroundColor: any;
|
|
23
|
+
flexDirection?: undefined;
|
|
24
|
+
paddingRight?: undefined;
|
|
25
|
+
paddingLeft?: undefined;
|
|
26
|
+
paddingTop?: undefined;
|
|
27
|
+
paddingBottom?: undefined;
|
|
28
|
+
overflow?: undefined;
|
|
29
|
+
alignItems?: undefined;
|
|
30
|
+
borderColor?: undefined;
|
|
31
|
+
borderRadius?: undefined;
|
|
32
|
+
elevation?: undefined;
|
|
33
|
+
}
|
|
34
|
+
)[];
|
|
35
|
+
textContainer: {
|
|
36
|
+
flex: number;
|
|
37
|
+
justifyContent: 'center';
|
|
38
|
+
alignContent: 'center';
|
|
39
|
+
paddingLeft: number;
|
|
40
|
+
paddingRight: number;
|
|
41
|
+
};
|
|
42
|
+
text: (
|
|
43
|
+
| {
|
|
44
|
+
fontFamily: string;
|
|
45
|
+
fontSize: number;
|
|
46
|
+
lineHeight: number;
|
|
47
|
+
color?: undefined;
|
|
48
|
+
}
|
|
49
|
+
| {
|
|
50
|
+
color: any;
|
|
51
|
+
}
|
|
52
|
+
)[];
|
|
53
|
+
iconContainer: {
|
|
54
|
+
height: number;
|
|
55
|
+
width: number;
|
|
56
|
+
marginRight: number;
|
|
57
|
+
alignItems: 'center';
|
|
58
|
+
justifyContent: 'center';
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
import {StyleSheet} from 'react-native';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SwipePreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TagPressEvent {
|
|
2
|
+
value: string;
|
|
3
|
+
isSelected: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare type TagProps = {
|
|
6
|
+
value: string;
|
|
7
|
+
text: string;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
onPress: (event: TagPressEvent) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const Tag: ({ text, isSelected, onPress, value }: TagProps) => JSX.Element;
|
|
12
|
+
export { Tag as Tag };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TagPreview: ({}: {}) => JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
context: any,
|
|
3
|
+
isSelected: any
|
|
4
|
+
): {
|
|
5
|
+
container: {
|
|
6
|
+
borderRadius: number;
|
|
7
|
+
alignItems: 'center';
|
|
8
|
+
justifyContent: 'center';
|
|
9
|
+
paddingVertical: number;
|
|
10
|
+
paddingHorizontal: number;
|
|
11
|
+
backgroundColor: any;
|
|
12
|
+
};
|
|
13
|
+
text: {
|
|
14
|
+
color: any;
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
lineHeight: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { VisualState } from '../../../types/visual-state.enum';
|
|
3
|
+
import { BubbleAlignment } from '../../../types/bubble-alignment.enum';
|
|
4
|
+
declare type TextBubbleProps = {
|
|
5
|
+
text: string;
|
|
6
|
+
visualState: VisualState;
|
|
7
|
+
bubbleAlignment: BubbleAlignment;
|
|
8
|
+
};
|
|
9
|
+
declare const TextBubble: React.FC<TextBubbleProps>;
|
|
10
|
+
export { TextBubble as TextBubble };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TextBubblePreview: ({}: {}) => JSX.Element;
|