@tactics/toddle-styleguide 0.0.1 → 0.0.2

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 (117) hide show
  1. package/index.tsx +47 -0
  2. package/package.json +6 -4
  3. package/src/components/atoms/avatar/avatar.component.tsx +3 -1
  4. package/src/components/atoms/button/button.component.tsx +3 -1
  5. package/src/components/atoms/cancel-link/cancel-link.component.tsx +3 -1
  6. package/src/components/atoms/check-switch/check-switch.component.tsx +3 -1
  7. package/src/components/atoms/checkbox/checkbox.component.tsx +3 -1
  8. package/src/components/atoms/child-list-item/child-list-item.component.tsx +3 -1
  9. package/src/components/atoms/child-list-item/child-list-item.test.js +1 -1
  10. package/src/components/atoms/contact-item/contact-item.component.tsx +2 -1
  11. package/src/components/atoms/filter-tab/filter-tab.component.tsx +3 -1
  12. package/src/components/atoms/form-actions/form-action.component.tsx +3 -1
  13. package/src/components/atoms/image-bubble/image-bubble.component.tsx +3 -1
  14. package/src/components/atoms/info/info.component.tsx +3 -1
  15. package/src/components/atoms/pill/pill.component.tsx +3 -1
  16. package/src/components/atoms/popover/components/backdrop/backdrop.component.tsx +3 -1
  17. package/src/components/atoms/popover/components/foreground/foreground.component.tsx +3 -1
  18. package/src/components/atoms/popover/components/modal/close/close.component.tsx +3 -1
  19. package/src/components/atoms/popover/components/modal/heading/heading.component.tsx +3 -1
  20. package/src/components/atoms/popover/components/modal/modal.component.tsx +3 -1
  21. package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.tsx +4 -2
  22. package/src/components/atoms/popover/popover.component.tsx +3 -1
  23. package/src/components/atoms/pressable-icon/pressable-icon.component.tsx +3 -1
  24. package/src/components/atoms/quick-filter/quick-filter.component.tsx +3 -1
  25. package/src/components/atoms/select-list-item/select-list-item-preview.tsx +1 -1
  26. package/src/components/atoms/select-list-item/{select-list.component-item.tsx → select-list-item.component.tsx} +4 -2
  27. package/src/components/atoms/select-list-item/{select-list.styles-item.js → select-list-item.styles.js} +0 -0
  28. package/src/components/atoms/select-list-item/select-list-item.test.js +1 -1
  29. package/src/components/atoms/snackbar/snackbar.component.tsx +3 -1
  30. package/src/components/atoms/tag/tag.component.tsx +3 -1
  31. package/src/components/atoms/text-bubble/text-bubble.component.tsx +3 -1
  32. package/src/components/atoms/text-input/text-input.component.tsx +3 -1
  33. package/src/components/atoms/time-tracker/time-tracker.component.tsx +3 -1
  34. package/src/components/atoms/wide-button/wide-button.component.tsx +3 -1
  35. package/tsconfig.json +4 -1
  36. package/types/index.d.ts +23 -0
  37. package/types/src/components/atoms/avatar/avatar.component.d.ts +11 -0
  38. package/types/src/components/atoms/avatar/avatar.styles.d.ts +36 -0
  39. package/types/src/components/atoms/button/button.component.d.ts +9 -0
  40. package/types/src/components/atoms/button/button.styles.d.ts +20 -0
  41. package/types/src/components/atoms/cancel-link/cancel-link.component.d.ts +7 -0
  42. package/types/src/components/atoms/cancel-link/cancel-link.styles.d.ts +17 -0
  43. package/types/src/components/atoms/check-switch/check-switch.component.d.ts +7 -0
  44. package/types/src/components/atoms/check-switch/check-switch.styles.d.ts +30 -0
  45. package/types/src/components/atoms/checkbox/checkbox.component.d.ts +8 -0
  46. package/types/src/components/atoms/checkbox/checkbox.styles.d.ts +32 -0
  47. package/types/src/components/atoms/child-list-item/child-list-item.component.d.ts +19 -0
  48. package/types/src/components/atoms/child-list-item/child-list-item.styles.d.ts +68 -0
  49. package/types/src/components/atoms/contact-item/contact-item.component.d.ts +10 -0
  50. package/types/src/components/atoms/contact-item/contact-item.styles.d.ts +24 -0
  51. package/types/src/components/atoms/filter-tab/filter-tab.component.d.ts +9 -0
  52. package/types/src/components/atoms/filter-tab/filter-tab.styles.d.ts +61 -0
  53. package/types/src/components/atoms/form-actions/form-action.component.d.ts +7 -0
  54. package/types/src/components/atoms/form-actions/form-action.styles.d.ts +14 -0
  55. package/types/src/components/atoms/image-bubble/image-bubble.component.d.ts +9 -0
  56. package/types/src/components/atoms/image-bubble/image-bubble.styles.d.ts +27 -0
  57. package/types/src/components/atoms/info/info.component.d.ts +7 -0
  58. package/types/src/components/atoms/info/info.styles.d.ts +24 -0
  59. package/types/src/components/atoms/pill/pill.component.d.ts +8 -0
  60. package/types/src/components/atoms/pill/pill.styles.d.ts +24 -0
  61. package/types/src/components/atoms/popover/components/backdrop/backdrop.component.d.ts +6 -0
  62. package/types/src/components/atoms/popover/components/backdrop/backdrop.styles.d.ts +11 -0
  63. package/types/src/components/atoms/popover/components/foreground/foreground.component.d.ts +7 -0
  64. package/types/src/components/atoms/popover/components/foreground/foreground.styles.d.ts +12 -0
  65. package/types/src/components/atoms/popover/components/index.d.ts +4 -0
  66. package/types/src/components/atoms/popover/components/modal/close/close.component.d.ts +7 -0
  67. package/types/src/components/atoms/popover/components/modal/close/close.styles.d.ts +9 -0
  68. package/types/src/components/atoms/popover/components/modal/heading/heading.component.d.ts +7 -0
  69. package/types/src/components/atoms/popover/components/modal/heading/heading.styles.d.ts +22 -0
  70. package/types/src/components/atoms/popover/components/modal/modal.component.d.ts +11 -0
  71. package/types/src/components/atoms/popover/components/modal/modal.styles.d.ts +18 -0
  72. package/types/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.d.ts +6 -0
  73. package/types/src/components/atoms/popover/components/modal/scroll-content/scroll-content.styles.d.ts +6 -0
  74. package/types/src/components/atoms/popover/popover.component.d.ts +10 -0
  75. package/types/src/components/atoms/popover/popover.styles.d.ts +8 -0
  76. package/types/src/components/atoms/pressable-icon/pressable-icon.component.d.ts +9 -0
  77. package/types/src/components/atoms/pressable-icon/pressable-icon.styles.d.ts +17 -0
  78. package/types/src/components/atoms/quick-filter/quick-filter.component.d.ts +11 -0
  79. package/types/src/components/atoms/quick-filter/quick-filter.styles.d.ts +34 -0
  80. package/types/src/components/atoms/select-list-item/select-list-item.component.d.ts +10 -0
  81. package/types/src/components/atoms/select-list-item/select-list-item.styles.d.ts +37 -0
  82. package/types/src/components/atoms/snackbar/snackbar.component.d.ts +8 -0
  83. package/types/src/components/atoms/snackbar/snackbar.styles.d.ts +50 -0
  84. package/types/src/components/atoms/tag/tag.component.d.ts +13 -0
  85. package/types/src/components/atoms/tag/tag.styles.d.ts +16 -0
  86. package/types/src/components/atoms/text-bubble/text-bubble.component.d.ts +10 -0
  87. package/types/src/components/atoms/text-bubble/text-bubble.styles.d.ts +62 -0
  88. package/types/src/components/atoms/text-input/text-input.component.d.ts +9 -0
  89. package/types/src/components/atoms/text-input/text-input.styles.d.ts +21 -0
  90. package/types/src/components/atoms/time-tracker/time-tracker.component.d.ts +8 -0
  91. package/types/src/components/atoms/time-tracker/time-tracker.styles.d.ts +25 -0
  92. package/types/src/components/atoms/wide-button/wide-button.component.d.ts +8 -0
  93. package/types/src/components/atoms/wide-button/wide-button.styles.d.ts +17 -0
  94. package/types/src/context/theme.context.d.ts +46 -0
  95. package/types/src/gradients/main/main.gradient.d.ts +2 -0
  96. package/types/src/gradients/main/main.styles.d.ts +7 -0
  97. package/types/src/icons/outline/chevron-right/chevron-right.icon.d.ts +3 -0
  98. package/types/src/icons/outline/cross/cross.icon.d.ts +3 -0
  99. package/types/src/icons/outline/filter/filter.icon.d.ts +3 -0
  100. package/types/src/models/initials.model.d.ts +7 -0
  101. package/types/src/theme/font/font.d.ts +72 -0
  102. package/types/src/theme/font/index.d.ts +3 -0
  103. package/types/src/theme/font/load-fonts.d.ts +1 -0
  104. package/types/src/theme/provider/index.d.ts +3 -0
  105. package/types/src/theme/provider/parent.theme.d.ts +43 -0
  106. package/types/src/theme/provider/staff-member.theme.d.ts +43 -0
  107. package/types/src/theme/scale/index.d.ts +12 -0
  108. package/types/src/types/bubble-alignment.enum.d.ts +4 -0
  109. package/types/src/types/icontype.type.d.ts +3 -0
  110. package/types/src/types/keyboard-types.enum.d.ts +9 -0
  111. package/types/src/types/size.enum.d.ts +5 -0
  112. package/types/src/types/visual-state.enum.d.ts +6 -0
  113. package/src/components/atoms/popover-heading/__snapshots__/popover_heading.test.js.snap +0 -35
  114. package/src/components/atoms/popover-heading/popover-heading.component.tsx +0 -22
  115. package/src/components/atoms/popover-heading/popover-heading.preview.tsx +0 -18
  116. package/src/components/atoms/popover-heading/popover-heading.styles.js +0 -19
  117. package/src/components/atoms/popover-heading/popover_heading.test.js +0 -11
package/index.tsx ADDED
@@ -0,0 +1,47 @@
1
+ import {Avatar} from './src/components/atoms/avatar/avatar.component';
2
+ import {Button} from './src/components/atoms/button/button.component';
3
+ import {CancelLink} from './src/components/atoms/cancel-link/cancel-link.component';
4
+ import {Check} from './src/components/atoms/check-switch/check-switch.component';
5
+ import {Checkbox} from './src/components/atoms/checkbox/checkbox.component';
6
+ import {ChildListItem} from './src/components/atoms/child-list-item/child-list-item.component';
7
+ import {ContactItem} from './src/components/atoms/contact-item/contact-item.component';
8
+ import {FilterTab} from './src/components/atoms/filter-tab/filter-tab.component';
9
+ import {FormAction} from './src/components/atoms/form-actions/form-action.component';
10
+ import {ImageBubble} from './src/components/atoms/image-bubble/image-bubble.component';
11
+ import {Info} from './src/components/atoms/info/info.component';
12
+ import {Pill} from './src/components/atoms/pill/pill.component';
13
+ import {Popover} from './src/components/atoms/popover/popover.component';
14
+ import {PressableIcon} from './src/components/atoms/pressable-icon/pressable-icon.component';
15
+ import {QuickFilter} from './src/components/atoms/quick-filter/quick-filter.component';
16
+ import {SelectListItem} from './src/components/atoms/select-list-item/select-list-item.component';
17
+ import {Snackbar} from './src/components/atoms/snackbar/snackbar.component';
18
+ import {Tag} from './src/components/atoms/tag/tag.component';
19
+ import {TextBubble} from './src/components/atoms/text-bubble/text-bubble.component';
20
+ import {TextInput} from './src/components/atoms/text-input/text-input.component';
21
+ import {TimeTracker} from './src/components/atoms/time-tracker/time-tracker.component';
22
+ import {WideButton} from './src/components/atoms/wide-button/wide-button.component';
23
+
24
+ export {
25
+ Avatar,
26
+ Button,
27
+ CancelLink,
28
+ Check,
29
+ Checkbox,
30
+ ChildListItem,
31
+ ContactItem,
32
+ FilterTab,
33
+ FormAction,
34
+ ImageBubble,
35
+ Info,
36
+ Pill,
37
+ Popover,
38
+ PressableIcon,
39
+ QuickFilter,
40
+ SelectListItem,
41
+ Snackbar,
42
+ Tag,
43
+ TextBubble,
44
+ TextInput,
45
+ TimeTracker,
46
+ WideButton
47
+ };
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "0.0.1",
4
- "main": "node_modules/expo/AppEntry.js",
3
+ "version": "0.0.2",
4
+ "main": "index.tsx",
5
+ "types": "types/index.d.ts",
5
6
  "scripts": {
6
7
  "expo": "node_modules/.bin/expo",
7
8
  "start": "node_modules/.bin/tsc && node_modules/.bin/expo start",
@@ -9,7 +10,8 @@
9
10
  "ios": "node_modules/.bin/tsc && node_modules/.bin/expo start --ios",
10
11
  "web": "node_modules/.bin/tsc && node_modules/.bin/expo start --web",
11
12
  "test": "node_modules/.bin/jest",
12
- "format": "yarn prettier --write src/."
13
+ "format": "yarn prettier --write src/.",
14
+ "types": "node_modules/.bin/tsc index.tsx --declaration --allowJs --emitDeclarationOnly --jsx react-native --outDir types --skipLibCheck"
13
15
  },
14
16
  "dependencies": {
15
17
  "@callstack/react-theme-provider": "^3.0.8",
@@ -41,7 +43,7 @@
41
43
  "@types/node": "^18.11.7",
42
44
  "@types/react": "^18.0.24",
43
45
  "@types/react-dom": "^18.0.8",
44
- "@types/react-native": "^0.70.6",
46
+ "@types/react-native": "^0.70.7",
45
47
  "@types/react-test-renderer": "^18.0.0",
46
48
  "jest": "^29.2.2",
47
49
  "jest-expo": "^46.0.1",
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {Image, ImageSourcePropType, View, Text, ImageStyle} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './avatar.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {Pressable, Text, View} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './button.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {Pressable, Text, View} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './cancel-link.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext, useRef} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext, useRef } from 'react';
3
+
2
4
  import {View, Animated, Pressable, Easing} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './check-switch.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {Pressable, Text, View} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './checkbox.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {ThemeCtx} from '../../../context/theme.context';
3
5
  import {ImageSourcePropType, Pressable, View, Text} from 'react-native';
4
6
  import {Initials} from '../../../models/initials.model';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import render from 'react-test-renderer';
3
3
  import {ChildListItem} from './child-list-item.component';
4
4
  import {Avatar} from '../avatar/avatar.component';
5
- import {SelectListItem} from '../select-list-item/select-list.component-item';
5
+ import {SelectListItem} from '../select-list-item/select-list-item.component';
6
6
  import renderer from 'react-test-renderer';
7
7
  import {VisualState} from '../../../types/visual-state.enum';
8
8
 
@@ -1,4 +1,5 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
2
3
  import {Stylesheet} from './contact-item.styles';
3
4
  import {Avatar} from '../avatar/avatar.component';
4
5
  import {Initials} from '../../../models/initials.model';
@@ -1,4 +1,6 @@
1
- import React, {useContext, useState} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext, useState } from 'react';
3
+
2
4
  import {Animated, Pressable, Text, View} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './filter-tab.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {ThemeCtx} from '../../../context/theme.context';
3
5
  import {View} from 'react-native';
4
6
  import {Stylesheet} from './form-action.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {View, Image, ImageSourcePropType, ImageStyle} from 'react-native';
3
5
  import {Stylesheet} from './image-bubble.styles';
4
6
  import {ThemeCtx} from '../../../context/theme.context';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {ThemeCtx} from '../../../context/theme.context';
3
5
  import {Text, View} from 'react-native';
4
6
  import {Stylesheet} from './info.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {View, Text} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './pill.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext, useMemo} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext, useMemo } from 'react';
3
+
2
4
  import {ThemeCtx} from '../../../../../context/theme.context';
3
5
  import {Animated} from 'react-native';
4
6
  import {Stylesheet} from './backdrop.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {ThemeCtx} from '../../../../../context/theme.context';
3
5
  import {View} from 'react-native';
4
6
  import {Stylesheet} from './foreground.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {GestureResponderEvent, Pressable} from 'react-native';
3
5
  import {CrossIcon} from '../../../../../../icons/outline/cross/cross.icon';
4
6
  import {Stylesheet} from './close.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {Text, View} from 'react-native';
3
5
  import {Stylesheet} from './heading.styles';
4
6
  import {ThemeCtx} from '../../../../../../context/theme.context';
@@ -1,4 +1,6 @@
1
- import React, {useContext, useEffect, useMemo, useState} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext, useMemo, useState } from 'react';
3
+
2
4
  import {Animated, Dimensions} from 'react-native';
3
5
  import {Stylesheet} from './modal.styles';
4
6
  import {Close} from './close/close.component';
@@ -1,5 +1,7 @@
1
- import React, {useContext} from 'react';
2
- import {Animated, ScrollView, Text, View} from 'react-native';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
4
+ import {ScrollView} from 'react-native';
3
5
  import {Stylesheet} from './scroll-content.styles';
4
6
  import {ThemeCtx} from '../../../../../../context/theme.context';
5
7
 
@@ -1,4 +1,6 @@
1
- import React, {useContext, useEffect, useState} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext, useEffect, useState } from 'react';
3
+
2
4
  import {ThemeCtx} from '../../../context/theme.context';
3
5
  import {Dimensions, View} from 'react-native';
4
6
  import {Stylesheet} from './popover.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {Pressable, View} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './pressable-icon.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {Pressable, Text} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {VisualState} from '../../../types/visual-state.enum';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import {SelectListItem} from './select-list.component-item';
2
+ import {SelectListItem} from './select-list-item.component';
3
3
  import {FilterIcon} from '../../../icons/outline/filter/filter.icon';
4
4
  import {OfficeBuildingIcon} from '../../../icons/outline/office-building/office-building.icon';
5
5
 
@@ -1,7 +1,9 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {ThemeCtx} from '../../../context/theme.context';
3
5
  import {Pressable, Text, View} from 'react-native';
4
- import {Stylesheet} from './select-list.styles-item';
6
+ import {Stylesheet} from './select-list-item.styles';
5
7
  import {ChevronRightIcon} from '../../../icons/outline/chevron-right/chevron-right.icon';
6
8
 
7
9
  type SelectListProps = {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import render from 'react-test-renderer';
3
- import {SelectListItem} from './select-list.component-item';
3
+ import {SelectListItem} from './select-list-item.component';
4
4
  import {FilterIcon} from '../../../icons/outline/filter/filter.icon';
5
5
  import {OfficeBuildingIcon} from '../../../icons/outline/office-building/office-building.icon';
6
6
 
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {ThemeCtx} from '../../../context/theme.context';
3
5
  import {Text, View} from 'react-native';
4
6
  import {Stylesheet} from './snackbar.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext, useState} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext, useState } from 'react';
3
+
2
4
  import {ThemeCtx} from '../../../context/theme.context';
3
5
  import {Stylesheet} from './tag.styles';
4
6
  import {View, Text, Pressable} from 'react-native';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {View, Text} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
 
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {View, TextInput as NativeTextInput} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './text-input.styles';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {Stylesheet} from '../time-tracker/time-tracker.styles';
3
5
  import {Text, View} from 'react-native';
4
6
  import {VisualState} from '../../../types/visual-state.enum';
@@ -1,4 +1,6 @@
1
- import React, {useContext} from 'react';
1
+ import * as React from 'react';
2
+ import { useContext } from 'react';
3
+
2
4
  import {Text, Pressable} from 'react-native';
3
5
  import {ThemeCtx} from '../../../context/theme.context';
4
6
  import {Stylesheet} from './wide-button.styles';
package/tsconfig.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "extends": "expo/tsconfig.base",
3
3
  "compilerOptions": {
4
- "strict": true
4
+ "strict": true,
5
+ "allowSyntheticDefaultImports": true,
6
+ "esModuleInterop": true,
7
+ "skipLibCheck": true
5
8
  },
6
9
  "typeRoots": ["./types"]
7
10
  }
@@ -0,0 +1,23 @@
1
+ import { Avatar } from './src/components/atoms/avatar/avatar.component';
2
+ import { Button } from './src/components/atoms/button/button.component';
3
+ import { CancelLink } from './src/components/atoms/cancel-link/cancel-link.component';
4
+ import { Check } from './src/components/atoms/check-switch/check-switch.component';
5
+ import { Checkbox } from './src/components/atoms/checkbox/checkbox.component';
6
+ import { ChildListItem } from './src/components/atoms/child-list-item/child-list-item.component';
7
+ import { ContactItem } from './src/components/atoms/contact-item/contact-item.component';
8
+ import { FilterTab } from './src/components/atoms/filter-tab/filter-tab.component';
9
+ import { FormAction } from './src/components/atoms/form-actions/form-action.component';
10
+ import { ImageBubble } from './src/components/atoms/image-bubble/image-bubble.component';
11
+ import { Info } from './src/components/atoms/info/info.component';
12
+ import { Pill } from './src/components/atoms/pill/pill.component';
13
+ import { Popover } from './src/components/atoms/popover/popover.component';
14
+ import { PressableIcon } from './src/components/atoms/pressable-icon/pressable-icon.component';
15
+ import { QuickFilter } from './src/components/atoms/quick-filter/quick-filter.component';
16
+ import { SelectListItem } from './src/components/atoms/select-list-item/select-list-item.component';
17
+ import { Snackbar } from './src/components/atoms/snackbar/snackbar.component';
18
+ import { Tag } from './src/components/atoms/tag/tag.component';
19
+ import { TextBubble } from './src/components/atoms/text-bubble/text-bubble.component';
20
+ import { TextInput } from './src/components/atoms/text-input/text-input.component';
21
+ import { TimeTracker } from './src/components/atoms/time-tracker/time-tracker.component';
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 };
@@ -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,36 @@
1
+ export function Stylesheet(Context: any, size: any, isBlocked: any): StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
2
+ container: ({
3
+ overflow: string;
4
+ backgroundColor: any;
5
+ justifyContent: string;
6
+ alignItems: string;
7
+ width?: undefined;
8
+ height?: undefined;
9
+ borderRadius?: undefined;
10
+ } | {
11
+ width: number;
12
+ height: number;
13
+ borderRadius: number;
14
+ overflow?: undefined;
15
+ backgroundColor?: undefined;
16
+ justifyContent?: undefined;
17
+ alignItems?: undefined;
18
+ })[];
19
+ image: {
20
+ position: string;
21
+ width: string;
22
+ height: string;
23
+ borderRadius: number;
24
+ }[];
25
+ text: ({
26
+ color: any;
27
+ textTransform: string;
28
+ } | {
29
+ fontFamily: string;
30
+ fontSize: number;
31
+ lineHeight: number;
32
+ color?: undefined;
33
+ textTransform?: undefined;
34
+ })[];
35
+ }>;
36
+ import { StyleSheet } from "react-native";
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare type ButtonProps = {
3
+ label: string;
4
+ icon?: any;
5
+ disabled?: boolean;
6
+ onPress?: () => void;
7
+ };
8
+ declare const Button: ({ label, icon, disabled, onPress }: ButtonProps) => JSX.Element;
9
+ export { Button as Button };
@@ -0,0 +1,20 @@
1
+ export function Stylesheet(context: any, disabled: any): {
2
+ container: {
3
+ backgroundColor: any;
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
+ iconGap: {
18
+ marginRight: number;
19
+ };
20
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type CancelLinkProps = {
3
+ label: string;
4
+ onPress: () => void;
5
+ };
6
+ declare const CancelLink: ({ label, onPress }: CancelLinkProps) => JSX.Element;
7
+ export { CancelLink as CancelLink };
@@ -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,7 @@
1
+ /// <reference types="react" />
2
+ declare type CheckProps = {
3
+ value: boolean;
4
+ onToggle: () => void;
5
+ };
6
+ export declare const Check: ({ value, onToggle }: CheckProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,30 @@
1
+ export function Stylesheet(context: any, value: any): {
2
+ container: {
3
+ flexDirection: "row";
4
+ alignItems: "center";
5
+ justifyContent: "center";
6
+ };
7
+ toggleContainer: {
8
+ width: number;
9
+ height: number;
10
+ paddingLeft: number;
11
+ paddingRight: number;
12
+ borderRadius: number;
13
+ backgroundColor: any;
14
+ justifyContent: "center";
15
+ };
16
+ thumbStyle: {
17
+ width: number;
18
+ height: number;
19
+ backgroundColor: any;
20
+ borderRadius: number;
21
+ shadowColor: any;
22
+ shadowOpacity: number;
23
+ shadowOffset: {
24
+ width: number;
25
+ height: number;
26
+ };
27
+ shadowRadius: number;
28
+ elevation: number;
29
+ };
30
+ };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare type CheckboxProps = {
3
+ value: boolean;
4
+ onValueChange: () => void;
5
+ label: string;
6
+ };
7
+ declare const Checkbox: ({ value, onValueChange, label }: CheckboxProps) => JSX.Element;
8
+ export { Checkbox as Checkbox };
@@ -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,19 @@
1
+ /// <reference types="react" />
2
+ import { ImageSourcePropType } from 'react-native';
3
+ import { Initials } from '../../../models/initials.model';
4
+ import { VisualState } from '../../../types/visual-state.enum';
5
+ declare type ChildListItemProps = {
6
+ id: string;
7
+ name: string;
8
+ label: string;
9
+ selectable: boolean;
10
+ isSelected: boolean;
11
+ onPressArrow: () => void;
12
+ onPressText: () => void;
13
+ onSelect: (id: string) => void;
14
+ sourceAvatar: ImageSourcePropType | Initials;
15
+ textTimeTracker: string;
16
+ visualStateTimeTracker: VisualState;
17
+ };
18
+ declare const ChildListItem: ({ id, name, label, selectable, isSelected, onPressArrow, onPressText, onSelect, sourceAvatar, textTimeTracker, visualStateTimeTracker, }: ChildListItemProps) => JSX.Element;
19
+ export { ChildListItem as ChildListItem };