@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.
Files changed (174) hide show
  1. package/.yarnrc.yml +1 -1
  2. package/App.d.ts +2 -0
  3. package/{types/index.d.ts → index.d.ts} +12 -1
  4. package/index.tsx +18 -0
  5. package/package.json +13 -11
  6. package/src/components/atoms/avatar/avatar.component.d.ts +11 -0
  7. package/src/components/atoms/avatar/avatar.preview.d.ts +1 -0
  8. package/src/components/atoms/avatar/avatar.styles.d.ts +48 -0
  9. package/src/components/atoms/button/button.component.d.ts +8 -0
  10. package/src/components/atoms/button/button.preview.d.ts +1 -0
  11. package/src/components/atoms/button/button.styles.d.ts +23 -0
  12. package/src/components/atoms/calendar/calendar.component.d.ts +8 -0
  13. package/src/components/atoms/calendar/calendar.preview.d.ts +1 -0
  14. package/src/components/atoms/calendar/calendar.styles.d.ts +81 -0
  15. package/src/components/atoms/cancel-link/cancel-link.component.d.ts +6 -0
  16. package/src/components/atoms/cancel-link/cancel-link.preview.d.ts +1 -0
  17. package/src/components/atoms/cancel-link/cancel-link.styles.d.ts +17 -0
  18. package/src/components/atoms/check-switch/check-switch.component.d.ts +6 -0
  19. package/src/components/atoms/check-switch/check-switch.preview.d.ts +1 -0
  20. package/src/components/atoms/check-switch/check-switch.styles.d.ts +33 -0
  21. package/src/components/atoms/checkbox/checkbox.component.d.ts +7 -0
  22. package/src/components/atoms/checkbox/checkbox.preview.d.ts +1 -0
  23. package/src/components/atoms/checkbox/checkbox.styles.d.ts +32 -0
  24. package/src/components/atoms/child-list-item/child-list-item.component.d.ts +18 -0
  25. package/src/components/atoms/child-list-item/child-list-item.preview.d.ts +1 -0
  26. package/src/components/atoms/child-list-item/child-list-item.styles.d.ts +78 -0
  27. package/src/components/atoms/contact-item/contact-item.component.d.ts +9 -0
  28. package/src/components/atoms/contact-item/contact-item.preview.d.ts +1 -0
  29. package/src/components/atoms/contact-item/contact-item.styles.d.ts +24 -0
  30. package/src/components/atoms/filter-tab/filter-tab.component.d.ts +8 -0
  31. package/src/components/atoms/filter-tab/filter-tab.preview.d.ts +1 -0
  32. package/src/components/atoms/filter-tab/filter-tab.styles.d.ts +66 -0
  33. package/src/components/atoms/form-actions/form-action.component.d.ts +7 -0
  34. package/src/components/atoms/form-actions/form-action.preview.d.ts +1 -0
  35. package/src/components/atoms/form-actions/form-action.styles.d.ts +14 -0
  36. package/src/components/atoms/image-bubble/image-bubble.component.d.ts +8 -0
  37. package/src/components/atoms/image-bubble/image-bubble.preview.d.ts +1 -0
  38. package/src/components/atoms/image-bubble/image-bubble.styles.d.ts +35 -0
  39. package/src/components/atoms/increment-input/increment-input.component.d.ts +6 -0
  40. package/src/components/atoms/increment-input/increment-input.preview.d.ts +1 -0
  41. package/src/components/atoms/increment-input/increment-input.styles.d.ts +46 -0
  42. package/src/components/atoms/info/info.component.d.ts +6 -0
  43. package/src/components/atoms/info/info.preview.d.ts +1 -0
  44. package/src/components/atoms/info/info.styles.d.ts +24 -0
  45. package/src/components/atoms/logo/logo.component.d.ts +6 -0
  46. package/src/components/atoms/logo/logo.preview.d.ts +1 -0
  47. package/src/components/atoms/pill/pill.component.d.ts +7 -0
  48. package/src/components/atoms/pill/pill.preview.d.ts +1 -0
  49. package/src/components/atoms/pill/pill.styles.d.ts +32 -0
  50. package/src/components/atoms/popover/components/backdrop/backdrop.component.d.ts +5 -0
  51. package/src/components/atoms/popover/components/backdrop/backdrop.styles.d.ts +11 -0
  52. package/src/components/atoms/popover/components/foreground/foreground.component.d.ts +7 -0
  53. package/src/components/atoms/popover/components/foreground/foreground.styles.d.ts +12 -0
  54. package/src/components/atoms/popover/components/index.d.ts +4 -0
  55. package/src/components/atoms/popover/components/modal/close/close.component.d.ts +6 -0
  56. package/src/components/atoms/popover/components/modal/close/close.styles.d.ts +9 -0
  57. package/src/components/atoms/popover/components/modal/heading/heading.component.d.ts +6 -0
  58. package/src/components/atoms/popover/components/modal/heading/heading.styles.d.ts +22 -0
  59. package/src/components/atoms/popover/components/modal/modal.component.d.ts +11 -0
  60. package/src/components/atoms/popover/components/modal/modal.styles.d.ts +18 -0
  61. package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.d.ts +6 -0
  62. package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.styles.d.ts +6 -0
  63. package/src/components/atoms/popover/popover.component.d.ts +10 -0
  64. package/src/components/atoms/popover/popover.styles.d.ts +8 -0
  65. package/src/components/atoms/pressable-icon/pressable-icon.component.d.ts +9 -0
  66. package/src/components/atoms/pressable-icon/pressable-icon.preview.d.ts +1 -0
  67. package/src/components/atoms/pressable-icon/pressable-icon.styles.d.ts +20 -0
  68. package/src/components/atoms/quick-filter/quick-filter.component.d.ts +10 -0
  69. package/src/components/atoms/quick-filter/quick-filter.prevriew.d.ts +1 -0
  70. package/src/components/atoms/quick-filter/quick-filter.styles.d.ts +46 -0
  71. package/src/components/atoms/select-list-item/select-list-item-preview.d.ts +1 -0
  72. package/src/components/atoms/select-list-item/select-list-item.component.d.ts +10 -0
  73. package/src/components/atoms/select-list-item/select-list-item.styles.d.ts +40 -0
  74. package/src/components/atoms/snackbar/snackbar.component.d.ts +7 -0
  75. package/src/components/atoms/snackbar/snackbar.preview.d.ts +1 -0
  76. package/src/components/atoms/snackbar/snackbar.styles.d.ts +61 -0
  77. package/src/components/atoms/swipe/Swipe.styles.d.ts +7 -0
  78. package/src/components/atoms/swipe/swipe.component.d.ts +6 -0
  79. package/src/components/atoms/swipe/swipe.preview.d.ts +1 -0
  80. package/src/components/atoms/tag/tag.component.d.ts +12 -0
  81. package/src/components/atoms/tag/tag.preview.d.ts +1 -0
  82. package/src/components/atoms/tag/tag.styles.d.ts +19 -0
  83. package/src/components/atoms/text-bubble/text-bubble.component.d.ts +10 -0
  84. package/src/components/atoms/text-bubble/text-bubble.preview.d.ts +1 -0
  85. package/src/components/atoms/text-bubble/text-bubble.styles.d.ts +75 -0
  86. package/src/components/atoms/text-input/text-input.component.d.ts +8 -0
  87. package/src/components/atoms/text-input/text-input.preview.d.ts +1 -0
  88. package/src/components/atoms/text-input/text-input.styles.d.ts +21 -0
  89. package/src/components/atoms/time-tracker/time-tracker.component.d.ts +7 -0
  90. package/src/components/atoms/time-tracker/time-tracker.preview.d.ts +1 -0
  91. package/src/components/atoms/time-tracker/time-tracker.styles.d.ts +33 -0
  92. package/src/components/atoms/timeline/timeline.component.d.ts +6 -0
  93. package/src/components/atoms/timeline/timeline.preview.d.ts +1 -0
  94. package/src/components/atoms/timeline/timeline.styles.d.ts +43 -0
  95. package/src/components/atoms/wide-button/wide-button.component.d.ts +7 -0
  96. package/src/components/atoms/wide-button/wide-button.preview.d.ts +1 -0
  97. package/src/components/atoms/wide-button/wide-button.styles.d.ts +20 -0
  98. package/src/context/theme.context.d.ts +46 -0
  99. package/src/gradients/main/main.gradient.d.ts +1 -0
  100. package/src/gradients/main/main.styles.d.ts +9 -0
  101. package/src/icons/index.d.ts +53 -0
  102. package/src/icons/outline/calendar/calendar.icon.d.ts +2 -0
  103. package/src/icons/outline/chat/chat.icon.d.ts +2 -0
  104. package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +2 -0
  105. package/src/icons/outline/check-circle/check-circle.icon.d.ts +2 -0
  106. package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +2 -0
  107. package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +2 -0
  108. package/src/icons/outline/clock/clock.icon.d.ts +2 -0
  109. package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +2 -0
  110. package/src/icons/outline/cross/cross.icon.d.ts +2 -0
  111. package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +2 -0
  112. package/src/icons/outline/document-text/document-text.icon.d.ts +2 -0
  113. package/src/icons/outline/exclamation/exclamation.icon.d.ts +2 -0
  114. package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +2 -0
  115. package/src/icons/outline/eye/eye.icon.d.ts +2 -0
  116. package/src/icons/outline/filter/filter.icon.d.ts +2 -0
  117. package/src/icons/outline/information-circle/information-circle.icon.d.ts +2 -0
  118. package/src/icons/outline/logout/logout.icon.d.ts +2 -0
  119. package/src/icons/outline/mail/mail.icon.d.ts +2 -0
  120. package/src/icons/outline/mail-open/mail-open.icon.d.ts +2 -0
  121. package/src/icons/outline/menu/menu.icon.d.ts +2 -0
  122. package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +2 -0
  123. package/src/icons/outline/office-building/office-building.icon.d.ts +2 -0
  124. package/src/icons/outline/outline-default.preview.d.ts +1 -0
  125. package/src/icons/outline/outline-grey.preview.d.ts +1 -0
  126. package/src/icons/outline/outline-white.preview.d.ts +1 -0
  127. package/src/icons/outline/outline.d.ts +41 -0
  128. package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +2 -0
  129. package/src/icons/outline/paperclip/paperclip.icon.d.ts +2 -0
  130. package/src/icons/outline/pencil/pencil.icon.d.ts +2 -0
  131. package/src/icons/outline/phone/phone.icon.d.ts +2 -0
  132. package/src/icons/outline/plus/plus.icon.d.ts +2 -0
  133. package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +2 -0
  134. package/src/icons/outline/qrcode/qrcode.icon.d.ts +2 -0
  135. package/src/icons/outline/refresh/refresh.icon.d.ts +2 -0
  136. package/src/icons/outline/search/search.icon.d.ts +2 -0
  137. package/src/icons/outline/selector/selector.icon.d.ts +2 -0
  138. package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +2 -0
  139. package/src/icons/outline/status-online/status-online.icon.d.ts +2 -0
  140. package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +2 -0
  141. package/src/icons/outline/trash/trash.icon.d.ts +2 -0
  142. package/src/icons/outline/user/user.icon.d.ts +2 -0
  143. package/src/icons/outline/user-group/user-group.icon.d.ts +2 -0
  144. package/src/icons/outline/users/users.icon.d.ts +2 -0
  145. package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +2 -0
  146. package/src/icons/solid/clock/clock-solid.icon.d.ts +2 -0
  147. package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +2 -0
  148. package/src/icons/solid/pencil/pencil-solid.icon.d.ts +2 -0
  149. package/src/icons/solid/phone/phone-solid.icon.d.ts +2 -0
  150. package/src/icons/solid/refresh/refresh-solid.icon.d.ts +2 -0
  151. package/src/icons/solid/solid.d.ts +10 -0
  152. package/src/icons/solid/solid.preview.d.ts +1 -0
  153. package/src/icons/solid/status-online/status-online-solid.icon.d.ts +2 -0
  154. package/src/icons/solid/trash/trash-solid.icon.d.ts +2 -0
  155. package/src/models/initials.model.d.ts +7 -0
  156. package/src/theme/font/font.d.ts +72 -0
  157. package/src/theme/font/index.d.ts +3 -0
  158. package/src/theme/font/load-fonts.d.ts +1 -0
  159. package/src/theme/provider/index.d.ts +3 -0
  160. package/src/theme/provider/parent.theme.d.ts +43 -0
  161. package/src/theme/provider/parent.theme.ts +30 -30
  162. package/src/theme/provider/staff-member.theme.d.ts +43 -0
  163. package/src/theme/provider/staff-member.theme.ts +30 -30
  164. package/src/theme/scale/index.d.ts +12 -0
  165. package/src/types/bubble-alignment.enum.d.ts +4 -0
  166. package/src/types/icontype.type.d.ts +3 -0
  167. package/src/types/keyboard-types.enum.d.ts +9 -0
  168. package/src/types/size.enum.d.ts +5 -0
  169. package/src/types/visual-state.enum.d.ts +6 -0
  170. package/.expo-shared/assets.json +0 -4
  171. package/.github/workflows/publish_styleguide.yaml +0 -30
  172. package/.github/workflows/run-tests.yml +0 -16
  173. package/App.tsx +0 -241
  174. package/app.json +0 -33
package/.yarnrc.yml CHANGED
@@ -1 +1 @@
1
- nodeLinker: node-modules
1
+ nodeLinker: node-modules
package/App.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare function App(): JSX.Element;
2
+ export default App;
@@ -20,4 +20,15 @@ import { TextBubble } from './src/components/atoms/text-bubble/text-bubble.compo
20
20
  import { TextInput } from './src/components/atoms/text-input/text-input.component';
21
21
  import { TimeTracker } from './src/components/atoms/time-tracker/time-tracker.component';
22
22
  import { WideButton } from './src/components/atoms/wide-button/wide-button.component';
23
- export { Avatar, Button, CancelLink, Check, Checkbox, ChildListItem, ContactItem, FilterTab, FormAction, ImageBubble, Info, Pill, Popover, PressableIcon, QuickFilter, SelectListItem, Snackbar, Tag, TextBubble, TextInput, TimeTracker, WideButton };
23
+ import { Icon } from './src/icons';
24
+ import { Calendar } from './src/components/atoms/calendar/calendar.component';
25
+ import { IncrementInput } from './src/components/atoms/increment-input/increment-input.component';
26
+ import { Swipe } from './src/components/atoms/swipe/swipe.component';
27
+ import { Logo } from './src/components/atoms/logo/logo.component';
28
+ import { BubbleAlignment } from "./src/types/bubble-alignment.enum";
29
+ import { KeyBoardTypes } from "./src/types/keyboard-types.enum";
30
+ import { Size } from "./src/types/size.enum";
31
+ import { VisualState } from "./src/types/visual-state.enum";
32
+ import { Initials } from "./src/models/initials.model";
33
+ import { ThemeCtx } from "./src/context/theme.context";
34
+ export { Initials, BubbleAlignment, KeyBoardTypes, Size, VisualState, ThemeCtx, Avatar, Button, CancelLink, Check, Checkbox, ChildListItem, ContactItem, FilterTab, FormAction, ImageBubble, Info, Pill, Popover, PressableIcon, QuickFilter, SelectListItem, Snackbar, Tag, TextBubble, TextInput, TimeTracker, WideButton, Icon, Calendar, IncrementInput, Swipe, Logo, };
package/index.tsx CHANGED
@@ -33,7 +33,25 @@ import {IncrementInput} from './src/components/atoms/increment-input/increment-i
33
33
  import {Swipe} from './src/components/atoms/swipe/swipe.component';
34
34
  import {Logo} from './src/components/atoms/logo/logo.component';
35
35
 
36
+ // Exports of enums
37
+ import {BubbleAlignment} from "./src/types/bubble-alignment.enum";
38
+ import {KeyBoardTypes} from "./src/types/keyboard-types.enum";
39
+ import {Size} from "./src/types/size.enum";
40
+ import {VisualState} from "./src/types/visual-state.enum";
41
+
42
+ // Exports of models
43
+ import {Initials} from "./src/models/initials.model";
44
+
45
+ // Exports of context
46
+ import {ThemeCtx} from "./src/context/theme.context";
47
+
36
48
  export {
49
+ Initials,
50
+ BubbleAlignment,
51
+ KeyBoardTypes,
52
+ Size,
53
+ VisualState,
54
+ ThemeCtx,
37
55
  Avatar,
38
56
  Button,
39
57
  CancelLink,
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "main": "index.tsx",
5
- "types": "types/index.d.ts",
5
+ "types": "index.d.ts",
6
+ "prepublish": "tsc",
6
7
  "scripts": {
7
- "expo": "node_modules/.bin/expo",
8
- "start": "node_modules/.bin/tsc && node_modules/.bin/expo start",
9
- "android": "node_modules/.bin/tsc && node_modules/.bin/expo start --android",
10
- "ios": "node_modules/.bin/tsc && node_modules/.bin/expo start --ios",
11
- "web": "node_modules/.bin/tsc && node_modules/.bin/expo start --web",
12
- "test": "node_modules/.bin/jest",
13
- "format": "yarn prettier --write src/.",
14
- "types": "node_modules/.bin/tsc index.tsx --declaration --allowJs --emitDeclarationOnly --jsx react-native --outDir types --skipLibCheck"
8
+ "expo": "./node_modules/.bin/tsc && ./node_modules/.bin/expo",
9
+ "start": "./node_modules/.bin/tsc && node_modules/.bin/expo start",
10
+ "test": "./node_modules/.bin/jest",
11
+ "format": "./node_modules/.bin/prettier --write src/.",
12
+ "types": "./node_modules/.bin/tsc index.tsx --declaration --allowJs --emitDeclarationOnly --esModuleInterop --jsx react-native --skipLibCheck"
13
+ },
14
+ "engines": {
15
+ "npm": "please-use-yarn",
16
+ "yarn": ">= 3.2.4"
15
17
  },
16
18
  "dependencies": {
17
19
  "@callstack/react-theme-provider": "^3.0.8",
@@ -21,7 +23,7 @@
21
23
  "@react-navigation/native": "^6.0.13",
22
24
  "@react-navigation/native-stack": "^6.9.1",
23
25
  "@react-navigation/stack": "^6.3.3",
24
- "@tactics/kinderopvang-branding": "^1.0.1",
26
+ "@tactics/kinderopvang-branding": "1.0.3",
25
27
  "@types/xdate": "^0.8.32",
26
28
  "expo": "~46.0.16",
27
29
  "expo-font": "^10.2.1",
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { ImageSourcePropType } from 'react-native';
3
+ import { Size } from '../../../types/size.enum';
4
+ import { Initials } from '../../../models/initials.model';
5
+ declare type AvatarProps = {
6
+ source: ImageSourcePropType | Initials;
7
+ size: Size;
8
+ isBlocked?: boolean;
9
+ };
10
+ declare const Avatar: React.FC<AvatarProps>;
11
+ export { Avatar as Avatar };
@@ -0,0 +1 @@
1
+ export declare const AvatarPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,48 @@
1
+ export function Stylesheet(
2
+ Context: any,
3
+ size: any,
4
+ isBlocked: any
5
+ ):
6
+ | StyleSheet.NamedStyles<any>
7
+ | StyleSheet.NamedStyles<{
8
+ container: (
9
+ | {
10
+ overflow: string;
11
+ backgroundColor: any;
12
+ justifyContent: string;
13
+ alignItems: string;
14
+ width?: undefined;
15
+ height?: undefined;
16
+ borderRadius?: undefined;
17
+ }
18
+ | {
19
+ width: number;
20
+ height: number;
21
+ borderRadius: number;
22
+ overflow?: undefined;
23
+ backgroundColor?: undefined;
24
+ justifyContent?: undefined;
25
+ alignItems?: undefined;
26
+ }
27
+ )[];
28
+ image: {
29
+ position: string;
30
+ width: string;
31
+ height: string;
32
+ borderRadius: number;
33
+ }[];
34
+ text: (
35
+ | {
36
+ color: any;
37
+ textTransform: string;
38
+ }
39
+ | {
40
+ fontFamily: string;
41
+ fontSize: number;
42
+ lineHeight: number;
43
+ color?: undefined;
44
+ textTransform?: undefined;
45
+ }
46
+ )[];
47
+ }>;
48
+ import {StyleSheet} from 'react-native';
@@ -0,0 +1,8 @@
1
+ declare type ButtonProps = {
2
+ label: string;
3
+ icon?: any;
4
+ disabled?: boolean;
5
+ onPress?: () => void;
6
+ };
7
+ declare const Button: ({ label, icon, disabled, onPress }: ButtonProps) => JSX.Element;
8
+ export { Button as Button };
@@ -0,0 +1 @@
1
+ export declare const ButtonPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,23 @@
1
+ export function Stylesheet(
2
+ context: any,
3
+ disabled: any
4
+ ): {
5
+ container: {
6
+ backgroundColor: any;
7
+ paddingVertical: number;
8
+ paddingHorizontal: number;
9
+ flexDirection: 'row';
10
+ justifyContent: 'center';
11
+ alignItems: 'center';
12
+ borderRadius: number;
13
+ };
14
+ label: {
15
+ color: any;
16
+ fontFamily: string;
17
+ fontSize: number;
18
+ lineHeight: number;
19
+ };
20
+ iconGap: {
21
+ marginRight: number;
22
+ };
23
+ };
@@ -0,0 +1,8 @@
1
+ declare type CalendarProps = {
2
+ onDayPress: (day: string) => void;
3
+ selected: string;
4
+ minDate?: string;
5
+ maxDate?: string;
6
+ };
7
+ export declare const Calendar: ({ onDayPress, selected, minDate, maxDate, }: CalendarProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export declare const CalendarPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,81 @@
1
+ export function Stylesheet(context: any): {
2
+ custom: {
3
+ backgroundColor: any;
4
+ 'stylesheet.calendar.header': {
5
+ headerContainer: {
6
+ height: number;
7
+ flexDirection: string;
8
+ justifyContent: string;
9
+ alignItems: string;
10
+ backgroundColor: any;
11
+ borderRadius: number;
12
+ paddingTop: number;
13
+ paddingRight: number;
14
+ paddingBottom: number;
15
+ paddingLeft: number;
16
+ };
17
+ monthText: {
18
+ fontSize: number;
19
+ fontFamily: string;
20
+ lineHeight: number;
21
+ color: any;
22
+ margin: number;
23
+ };
24
+ week: {
25
+ marginTop: number;
26
+ flexDirection: string;
27
+ justifyContent: string;
28
+ };
29
+ dayHeader: {
30
+ marginBottom: number;
31
+ width: number;
32
+ textAlign: string;
33
+ fontSize: number;
34
+ fontFamily: string;
35
+ lineHeight: number;
36
+ color: any;
37
+ };
38
+ disabledDayHeader: {
39
+ color: any;
40
+ };
41
+ };
42
+ 'stylesheet.day.basic': {
43
+ container: {
44
+ alignSelf: string;
45
+ alignItems: string;
46
+ };
47
+ base: {
48
+ width: number;
49
+ height: number;
50
+ alignItems: string;
51
+ justifyContent: string;
52
+ };
53
+ text: {
54
+ marginTop: number;
55
+ fontSize: number;
56
+ fontFamily: string;
57
+ lineHeight: number;
58
+ color: any;
59
+ };
60
+ selected: {
61
+ backgroundColor: any;
62
+ borderRadius: number;
63
+ };
64
+ today: {
65
+ borderWidth: number;
66
+ borderStyle: string;
67
+ borderColor: any;
68
+ borderRadius: number;
69
+ };
70
+ todayText: {
71
+ color: any;
72
+ };
73
+ selectedText: {
74
+ color: any;
75
+ };
76
+ disabledText: {
77
+ color: any;
78
+ };
79
+ };
80
+ };
81
+ };
@@ -0,0 +1,6 @@
1
+ declare type CancelLinkProps = {
2
+ label: string;
3
+ onPress: () => void;
4
+ };
5
+ declare const CancelLink: ({ label, onPress }: CancelLinkProps) => JSX.Element;
6
+ export { CancelLink as CancelLink };
@@ -0,0 +1 @@
1
+ export declare const CancelLinkPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,17 @@
1
+ export function Stylesheet(context: any): {
2
+ container: {
3
+ backgroundColor: string;
4
+ paddingVertical: number;
5
+ paddingHorizontal: number;
6
+ flexDirection: 'row';
7
+ justifyContent: 'center';
8
+ alignItems: 'center';
9
+ borderRadius: number;
10
+ };
11
+ label: {
12
+ color: any;
13
+ fontFamily: string;
14
+ fontSize: number;
15
+ lineHeight: number;
16
+ };
17
+ };
@@ -0,0 +1,6 @@
1
+ declare type CheckProps = {
2
+ value: boolean;
3
+ onToggle: () => void;
4
+ };
5
+ export declare const Check: ({ value, onToggle }: CheckProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const CheckPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,33 @@
1
+ export function Stylesheet(
2
+ context: any,
3
+ value: any
4
+ ): {
5
+ container: {
6
+ flexDirection: 'row';
7
+ alignItems: 'center';
8
+ justifyContent: 'center';
9
+ };
10
+ toggleContainer: {
11
+ width: number;
12
+ height: number;
13
+ paddingLeft: number;
14
+ paddingRight: number;
15
+ borderRadius: number;
16
+ backgroundColor: any;
17
+ justifyContent: 'center';
18
+ };
19
+ thumbStyle: {
20
+ width: number;
21
+ height: number;
22
+ backgroundColor: any;
23
+ borderRadius: number;
24
+ shadowColor: any;
25
+ shadowOpacity: number;
26
+ shadowOffset: {
27
+ width: number;
28
+ height: number;
29
+ };
30
+ shadowRadius: number;
31
+ elevation: number;
32
+ };
33
+ };
@@ -0,0 +1,7 @@
1
+ declare type CheckboxProps = {
2
+ value: boolean;
3
+ onValueChange: () => void;
4
+ label: string;
5
+ };
6
+ declare const Checkbox: ({ value, onValueChange, label }: CheckboxProps) => JSX.Element;
7
+ export { Checkbox as Checkbox };
@@ -0,0 +1 @@
1
+ export declare const CheckboxPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,32 @@
1
+ export function Stylesheet(context: any): {
2
+ element: {
3
+ paddingTop: number;
4
+ paddingBottom: number;
5
+ paddingLeft: number;
6
+ paddingRight: number;
7
+ flexDirection: 'row';
8
+ justifyContent: 'center';
9
+ alignItems: 'center';
10
+ };
11
+ input: {
12
+ width: number;
13
+ height: number;
14
+ backgroundColor: any;
15
+ borderRadius: number;
16
+ justifyContent: 'center';
17
+ alignItems: 'center';
18
+ marginRight: number;
19
+ };
20
+ check: {
21
+ width: number;
22
+ height: number;
23
+ backgroundColor: any;
24
+ borderRadius: number;
25
+ };
26
+ label: {
27
+ color: any;
28
+ fontFamily: string;
29
+ fontSize: number;
30
+ lineHeight: number;
31
+ };
32
+ };
@@ -0,0 +1,18 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+ import { Initials } from '../../../models/initials.model';
3
+ import { VisualState } from '../../../types/visual-state.enum';
4
+ declare type ChildListItemProps = {
5
+ id: string;
6
+ name: string;
7
+ label: string;
8
+ selectable: boolean;
9
+ isSelected: boolean;
10
+ onPressArrow: () => void;
11
+ onPressText: () => void;
12
+ onSelect: (id: string) => void;
13
+ sourceAvatar: ImageSourcePropType | Initials;
14
+ textTimeTracker: string;
15
+ visualStateTimeTracker: VisualState;
16
+ };
17
+ declare const ChildListItem: ({ id, name, label, selectable, isSelected, onPressArrow, onPressText, onSelect, sourceAvatar, textTimeTracker, visualStateTimeTracker, }: ChildListItemProps) => JSX.Element;
18
+ export { ChildListItem as ChildListItem };
@@ -0,0 +1 @@
1
+ export declare const ChildListItemPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,78 @@
1
+ export function Stylesheet(
2
+ isSelectedItem: any,
3
+ context: any,
4
+ selectable: any,
5
+ visualStateTimeTracker: any
6
+ ):
7
+ | StyleSheet.NamedStyles<any>
8
+ | StyleSheet.NamedStyles<{
9
+ container: {
10
+ width: string;
11
+ borderTopRightRadius: number;
12
+ borderBottomRightRadius: number;
13
+ borderTopLeftRadius: number;
14
+ borderBottomLeftRadius: number;
15
+ overflow: 'hidden';
16
+ flexDirection: 'row';
17
+ backgroundColor: any;
18
+ };
19
+ selectableContainer: {};
20
+ innerContainer: {
21
+ flex: number;
22
+ flexDirection: 'row';
23
+ alignItems: 'center';
24
+ padding: number;
25
+ borderTopRightRadius: number;
26
+ borderBottomRightRadius: number;
27
+ borderTopLeftRadius: number;
28
+ borderBottomLeftRadius: number;
29
+ };
30
+ pressableText: {
31
+ marginLeft: number;
32
+ flex: number;
33
+ marginRight: number;
34
+ };
35
+ iconContainer: {
36
+ alignItems: 'center';
37
+ justifyContent: 'center';
38
+ };
39
+ textName: {
40
+ color: any;
41
+ fontFamily: string;
42
+ fontSize: number;
43
+ lineHeight: number;
44
+ };
45
+ textLabel: {
46
+ color: any;
47
+ fontFamily: string;
48
+ fontSize: number;
49
+ lineHeight: number;
50
+ };
51
+ trackerContainer: {
52
+ flexDirection: 'row';
53
+ alignItems: 'center';
54
+ };
55
+ bal: (
56
+ | {
57
+ width: number;
58
+ height: number;
59
+ borderRadius: number;
60
+ marginRight: number;
61
+ backgroundColor?: undefined;
62
+ }
63
+ | {
64
+ backgroundColor: any;
65
+ width?: undefined;
66
+ height?: undefined;
67
+ borderRadius?: undefined;
68
+ marginRight?: undefined;
69
+ }
70
+ )[];
71
+ textTracker: {
72
+ color: any;
73
+ fontFamily: string;
74
+ fontSize: number;
75
+ lineHeight: number;
76
+ };
77
+ }>;
78
+ import {StyleSheet} from 'react-native';
@@ -0,0 +1,9 @@
1
+ declare type ContactItemProps = {
2
+ name: string;
3
+ firstname: string;
4
+ label: string;
5
+ onPress?: () => void;
6
+ isBlocked?: boolean;
7
+ };
8
+ declare const ContactItem: ({ name, firstname, label, onPress, isBlocked, }: ContactItemProps) => JSX.Element;
9
+ export { ContactItem as ContactItem };
@@ -0,0 +1 @@
1
+ export declare const ContactItemPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,24 @@
1
+ export function Stylesheet(Context: any): {
2
+ container: {
3
+ width: string;
4
+ flexDirection: 'row';
5
+ alignItems: 'center';
6
+ };
7
+ textContainer: {
8
+ flex: number;
9
+ marginLeft: number;
10
+ };
11
+ textNames: {
12
+ fontFamily: string;
13
+ fontSize: number;
14
+ lineHeight: number;
15
+ };
16
+ textSubtitle: {
17
+ fontFamily: string;
18
+ fontSize: number;
19
+ lineHeight: number;
20
+ };
21
+ iconSquare: {
22
+ marginLeft: number;
23
+ };
24
+ };
@@ -0,0 +1,8 @@
1
+ declare type FilterTab = {
2
+ tabItem: {
3
+ value: string;
4
+ label: string;
5
+ }[];
6
+ };
7
+ export declare const FilterTab: ({ tabItem }: FilterTab) => JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export declare const FilterTabPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,66 @@
1
+ export function Stylesheet(
2
+ Context: any,
3
+ inRow: any,
4
+ ElementWidth: any,
5
+ ItemWidth: any
6
+ ): {
7
+ container: {
8
+ width: string;
9
+ display: 'flex';
10
+ paddingRight: number;
11
+ paddingLeft: number;
12
+ paddingTop: number;
13
+ paddingBottom: number;
14
+ borderRadius: number;
15
+ backgroundColor: any;
16
+ };
17
+ inner: {
18
+ display: 'flex';
19
+ width: string;
20
+ };
21
+ tabs: {
22
+ display: 'flex';
23
+ flexDirection: 'row' | 'column';
24
+ width: string;
25
+ position: 'relative';
26
+ };
27
+ tab: {
28
+ width: any;
29
+ paddingRight: number;
30
+ paddingLeft: number;
31
+ paddingTop: number;
32
+ paddingBottom: number;
33
+ borderRadius: number;
34
+ alignItems: 'center';
35
+ backgroundColor: string;
36
+ };
37
+ slidingTab: {
38
+ width: any;
39
+ paddingRight: number;
40
+ paddingLeft: number;
41
+ paddingTop: number;
42
+ paddingBottom: number;
43
+ borderRadius: number;
44
+ zIndex: number;
45
+ position: 'absolute';
46
+ backgroundColor: any;
47
+ };
48
+ textHidden: {
49
+ opacity: number;
50
+ };
51
+ text: {
52
+ width: string;
53
+ textAlign: 'center';
54
+ color: any;
55
+ maxHeight: number;
56
+ overflow: 'hidden';
57
+ whiteSpace: string;
58
+ textOverflow: string;
59
+ fontFamily: string;
60
+ fontSize: number;
61
+ lineHeight: number;
62
+ };
63
+ tabTextActive: {
64
+ color: any;
65
+ };
66
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare type formActionProps = {
3
+ button: React.ReactNode;
4
+ cancel?: React.ReactNode;
5
+ };
6
+ declare const FormAction: ({ button, cancel }: formActionProps) => JSX.Element;
7
+ export { FormAction as FormAction };
@@ -0,0 +1 @@
1
+ export declare const FormActionPreview: ({}: {}) => JSX.Element;
@@ -0,0 +1,14 @@
1
+ export function Stylesheet(context: any): {
2
+ element: {
3
+ width: string;
4
+ paddingRight: number;
5
+ paddingLeft: number;
6
+ };
7
+ inner: {
8
+ flexDirection: 'row';
9
+ justifyContent: 'center';
10
+ };
11
+ cancel: {
12
+ justifyContent: 'space-between';
13
+ };
14
+ };
@@ -0,0 +1,8 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+ import { BubbleAlignment } from '../../../types/bubble-alignment.enum';
3
+ declare type ImageBubbleProps = {
4
+ source: ImageSourcePropType;
5
+ bubbleAlignment: BubbleAlignment;
6
+ };
7
+ declare const ImageBubble: ({ source, bubbleAlignment }: ImageBubbleProps) => JSX.Element;
8
+ export { ImageBubble as ImageBubble };
@@ -0,0 +1 @@
1
+ export declare const ImageBubblePreview: ({}: {}) => JSX.Element;