@codeleap/mobile 1.0.0

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 (103) hide show
  1. package/dist/components/ActivityIndicator.d.ts +13 -0
  2. package/dist/components/ActivityIndicator.js +49 -0
  3. package/dist/components/ActivityIndicator.js.map +1 -0
  4. package/dist/components/Button.d.ts +116 -0
  5. package/dist/components/Button.js +57 -0
  6. package/dist/components/Button.js.map +1 -0
  7. package/dist/components/Checkbox/index.d.ts +14 -0
  8. package/dist/components/Checkbox/index.js +75 -0
  9. package/dist/components/Checkbox/index.js.map +1 -0
  10. package/dist/components/Checkbox/styles.d.ts +48 -0
  11. package/dist/components/Checkbox/styles.js +49 -0
  12. package/dist/components/Checkbox/styles.js.map +1 -0
  13. package/dist/components/Checkbox.d.ts +12 -0
  14. package/dist/components/Checkbox.js +61 -0
  15. package/dist/components/Checkbox.js.map +1 -0
  16. package/dist/components/Drawer.d.ts +23 -0
  17. package/dist/components/Drawer.js +78 -0
  18. package/dist/components/Drawer.js.map +1 -0
  19. package/dist/components/FileInput.d.ts +2 -0
  20. package/dist/components/FileInput.js +28 -0
  21. package/dist/components/FileInput.js.map +1 -0
  22. package/dist/components/Icon.d.ts +13 -0
  23. package/dist/components/Icon.js +47 -0
  24. package/dist/components/Icon.js.map +1 -0
  25. package/dist/components/Image.d.ts +16 -0
  26. package/dist/components/Image.js +48 -0
  27. package/dist/components/Image.js.map +1 -0
  28. package/dist/components/Navigation.d.ts +30 -0
  29. package/dist/components/Navigation.js +126 -0
  30. package/dist/components/Navigation.js.map +1 -0
  31. package/dist/components/RadioInput/index.d.ts +25 -0
  32. package/dist/components/RadioInput/index.js +75 -0
  33. package/dist/components/RadioInput/index.js.map +1 -0
  34. package/dist/components/RadioInput/styles.d.ts +50 -0
  35. package/dist/components/RadioInput/styles.js +45 -0
  36. package/dist/components/RadioInput/styles.js.map +1 -0
  37. package/dist/components/Scroll.d.ts +104 -0
  38. package/dist/components/Scroll.js +73 -0
  39. package/dist/components/Scroll.js.map +1 -0
  40. package/dist/components/Select/index.d.ts +2 -0
  41. package/dist/components/Select/index.js +31 -0
  42. package/dist/components/Select/index.js.map +1 -0
  43. package/dist/components/Slider.d.ts +20 -0
  44. package/dist/components/Slider.js +130 -0
  45. package/dist/components/Slider.js.map +1 -0
  46. package/dist/components/Switch.d.ts +13 -0
  47. package/dist/components/Switch.js +73 -0
  48. package/dist/components/Switch.js.map +1 -0
  49. package/dist/components/Text.d.ts +12 -0
  50. package/dist/components/Text.js +49 -0
  51. package/dist/components/Text.js.map +1 -0
  52. package/dist/components/TextInput.d.ts +146 -0
  53. package/dist/components/TextInput.js +147 -0
  54. package/dist/components/TextInput.js.map +1 -0
  55. package/dist/components/Touchable.d.ts +19 -0
  56. package/dist/components/Touchable.js +62 -0
  57. package/dist/components/Touchable.js.map +1 -0
  58. package/dist/components/View.d.ts +190 -0
  59. package/dist/components/View.js +53 -0
  60. package/dist/components/View.js.map +1 -0
  61. package/dist/components/index.d.ts +16 -0
  62. package/dist/components/index.js +29 -0
  63. package/dist/components/index.js.map +1 -0
  64. package/dist/index.d.ts +2 -0
  65. package/dist/index.js +20 -0
  66. package/dist/index.js.map +1 -0
  67. package/dist/modules/fastImage.d.ts +1 -0
  68. package/dist/modules/fastImage.js +10 -0
  69. package/dist/modules/fastImage.js.map +1 -0
  70. package/dist/types/utility.d.ts +2 -0
  71. package/dist/types/utility.js +3 -0
  72. package/dist/types/utility.js.map +1 -0
  73. package/dist/utils/OSAlert.d.ts +31 -0
  74. package/dist/utils/OSAlert.js +89 -0
  75. package/dist/utils/OSAlert.js.map +1 -0
  76. package/dist/utils/styles.d.ts +1 -0
  77. package/dist/utils/styles.js +13 -0
  78. package/dist/utils/styles.js.map +1 -0
  79. package/package.json +32 -0
  80. package/src/components/ActivityIndicator.tsx +37 -0
  81. package/src/components/Button.tsx +61 -0
  82. package/src/components/Checkbox/index.tsx +68 -0
  83. package/src/components/Checkbox/styles.ts +63 -0
  84. package/src/components/FileInput.tsx +6 -0
  85. package/src/components/Icon.tsx +35 -0
  86. package/src/components/Image.tsx +43 -0
  87. package/src/components/Navigation.tsx +125 -0
  88. package/src/components/RadioInput/index.tsx +76 -0
  89. package/src/components/RadioInput/styles.ts +62 -0
  90. package/src/components/Scroll.tsx +87 -0
  91. package/src/components/Select/index.tsx +8 -0
  92. package/src/components/Slider.tsx +198 -0
  93. package/src/components/Switch.tsx +73 -0
  94. package/src/components/Text.tsx +31 -0
  95. package/src/components/TextInput.tsx +206 -0
  96. package/src/components/Touchable.tsx +54 -0
  97. package/src/components/View.tsx +53 -0
  98. package/src/components/index.ts +16 -0
  99. package/src/index.ts +2 -0
  100. package/src/modules/fastImage.ts +2 -0
  101. package/src/types/utility.ts +3 -0
  102. package/src/utils/OSAlert.ts +122 -0
  103. package/src/utils/styles.ts +17 -0
@@ -0,0 +1,190 @@
1
+ import * as React from 'react';
2
+ import { ComponentPropsWithoutRef } from 'react';
3
+ import { ComponentVariants, ViewStyles, BaseViewProps } from '@codeleap/common';
4
+ import { Animated, View as NativeView } from 'react-native';
5
+ export declare type ViewProps = ComponentPropsWithoutRef<typeof NativeView> & ComponentVariants<typeof ViewStyles> & {
6
+ component?: any;
7
+ } & BaseViewProps;
8
+ export declare const View: React.ForwardRefExoticComponent<import("react-native").ViewProps & ComponentVariants<{
9
+ default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
10
+ fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
11
+ block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
12
+ flex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
13
+ absolute: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
14
+ sticky: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
15
+ row: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
16
+ center: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
17
+ column: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
18
+ wrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
19
+ inline: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
20
+ inlineFlex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
21
+ hidden: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
22
+ full: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
23
+ noWrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
24
+ fullWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
25
+ fullHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
26
+ fullView: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
27
+ fullViewWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
28
+ fullViewHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
29
+ whole: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
30
+ centerRow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
31
+ listStyles: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
32
+ alignStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
33
+ alignEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
34
+ alignCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
35
+ justifyStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
36
+ justifyEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
37
+ justifyCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
38
+ justifySpaceBetween: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
39
+ textRight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
40
+ textLeft: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
41
+ textCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
42
+ blur: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
43
+ elevated: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
44
+ neumorphism: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
45
+ scrollX: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
46
+ scrollY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
47
+ scrollXY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
48
+ debRed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
49
+ debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
50
+ debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
51
+ debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
52
+ }, import("@codeleap/common").EnhancedTheme<any>, import("@codeleap/common").VariantProp<{
53
+ default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
54
+ fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
55
+ block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
56
+ flex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
57
+ absolute: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
58
+ sticky: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
59
+ row: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
60
+ center: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
61
+ column: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
62
+ wrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
63
+ inline: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
64
+ inlineFlex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
65
+ hidden: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
66
+ full: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
67
+ noWrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
68
+ fullWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
69
+ fullHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
70
+ fullView: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
71
+ fullViewWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
72
+ fullViewHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
73
+ whole: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
74
+ centerRow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
75
+ listStyles: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
76
+ alignStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
77
+ alignEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
78
+ alignCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
79
+ justifyStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
80
+ justifyEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
81
+ justifyCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
82
+ justifySpaceBetween: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
83
+ textRight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
84
+ textLeft: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
85
+ textCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
86
+ blur: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
87
+ elevated: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
88
+ neumorphism: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
89
+ scrollX: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
90
+ scrollY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
91
+ scrollXY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
92
+ debRed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
93
+ debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
94
+ debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
95
+ debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
96
+ }>> & {
97
+ component?: any;
98
+ } & BaseViewProps & React.RefAttributes<NativeView>>;
99
+ export declare type AnimatedViewProps = ComponentPropsWithoutRef<typeof Animated.View> & ComponentVariants<typeof ViewStyles> & BaseViewProps;
100
+ export declare const AnimatedView: React.ForwardRefExoticComponent<Pick<Animated.AnimatedProps<import("react-native").ViewProps & React.RefAttributes<NativeView>> & {
101
+ children?: React.ReactNode;
102
+ }, keyof import("react-native").ViewProps | "key"> & ComponentVariants<{
103
+ default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
104
+ fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
105
+ block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
106
+ flex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
107
+ absolute: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
108
+ sticky: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
109
+ row: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
110
+ center: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
111
+ column: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
112
+ wrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
113
+ inline: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
114
+ inlineFlex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
115
+ hidden: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
116
+ full: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
117
+ noWrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
118
+ fullWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
119
+ fullHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
120
+ fullView: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
121
+ fullViewWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
122
+ fullViewHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
123
+ whole: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
124
+ centerRow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
125
+ listStyles: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
126
+ alignStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
127
+ alignEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
128
+ alignCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
129
+ justifyStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
130
+ justifyEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
131
+ justifyCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
132
+ justifySpaceBetween: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
133
+ textRight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
134
+ textLeft: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
135
+ textCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
136
+ blur: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
137
+ elevated: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
138
+ neumorphism: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
139
+ scrollX: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
140
+ scrollY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
141
+ scrollXY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
142
+ debRed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
143
+ debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
144
+ debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
145
+ debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
146
+ }, import("@codeleap/common").EnhancedTheme<any>, import("@codeleap/common").VariantProp<{
147
+ default: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
148
+ fixed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
149
+ block: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
150
+ flex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
151
+ absolute: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
152
+ sticky: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
153
+ row: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
154
+ center: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
155
+ column: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
156
+ wrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
157
+ inline: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
158
+ inlineFlex: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
159
+ hidden: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
160
+ full: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
161
+ noWrap: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
162
+ fullWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
163
+ fullHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
164
+ fullView: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
165
+ fullViewWidth: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
166
+ fullViewHeight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
167
+ whole: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
168
+ centerRow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
169
+ listStyles: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
170
+ alignStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
171
+ alignEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
172
+ alignCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
173
+ justifyStart: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
174
+ justifyEnd: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
175
+ justifyCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
176
+ justifySpaceBetween: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
177
+ textRight: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
178
+ textLeft: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
179
+ textCenter: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
180
+ blur: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
181
+ elevated: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
182
+ neumorphism: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
183
+ scrollX: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
184
+ scrollY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
185
+ scrollXY: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
186
+ debRed: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
187
+ debGreen: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
188
+ debBlue: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
189
+ debYellow: (theme: import("@codeleap/common").EnhancedTheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"wrapper", any>>;
190
+ }>> & BaseViewProps & React.RefAttributes<Animated.AnimatedComponent<typeof NativeView>>>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __rest = (this && this.__rest) || function (s, e) {
22
+ var t = {};
23
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
24
+ t[p] = s[p];
25
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
26
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
27
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
28
+ t[p[i]] = s[p[i]];
29
+ }
30
+ return t;
31
+ };
32
+ Object.defineProperty(exports, "__esModule", { value: true });
33
+ exports.AnimatedView = exports.View = void 0;
34
+ var React = __importStar(require("react"));
35
+ var react_1 = require("react");
36
+ var common_1 = require("@codeleap/common");
37
+ var react_native_1 = require("react-native");
38
+ exports.View = (0, react_1.forwardRef)(function (viewProps, ref) {
39
+ var _a = viewProps.responsiveVariants, responsiveVariants = _a === void 0 ? {} : _a, _b = viewProps.variants, variants = _b === void 0 ? [] : _b, children = viewProps.children, style = viewProps.style, onHover = viewProps.onHover, component = viewProps.component, props = __rest(viewProps, ["responsiveVariants", "variants", "children", "style", "onHover", "component"]);
40
+ var variantStyles = (0, common_1.useComponentStyle)('View', {
41
+ responsiveVariants: responsiveVariants,
42
+ variants: variants,
43
+ });
44
+ var Component = component || react_native_1.View;
45
+ return <Component style={[variantStyles.wrapper, style]} ref={ref} {...props}>
46
+ {children}
47
+ </Component>;
48
+ });
49
+ exports.AnimatedView = (0, react_1.forwardRef)(function (viewProps, ref) {
50
+ // @ts-ignore
51
+ return <exports.View component={react_native_1.Animated.View} {...viewProps}/>;
52
+ });
53
+ //# sourceMappingURL=View.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.js","sourceRoot":"","sources":["../../src/components/View.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,+BAA4D;AAC5D,2CAAkG;AAClG,6CAA4D;AAU/C,QAAA,IAAI,GAAG,IAAA,kBAAU,EAAwB,UAAC,SAAS,EAAE,GAAG;IAEjE,IAAA,KAOE,SAAS,mBAPY,EAAvB,kBAAkB,mBAAG,EAAE,KAAA,EACvB,KAME,SAAS,SANE,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,QAAQ,GAKN,SAAS,SALH,EACR,KAAK,GAIH,SAAS,MAJN,EACL,OAAO,GAGL,SAAS,QAHJ,EACP,SAAS,GAEP,SAAS,UAFF,EACN,KAAK,UACN,SAAS,EARP,+EAQL,CADS,CACI;IAEd,IAAM,aAAa,GAAG,IAAA,0BAAiB,EAAC,MAAM,EAAE;QAC9C,kBAAkB,oBAAA;QAClB,QAAQ,UAAA;KACT,CAAC,CAAC;IACH,IAAM,SAAS,GAAI,SAAS,IAAG,mBAAU,CAAA;IAEzC,OAAO,CAAC,SAAS,CAEf,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CACtC,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CAEV;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,SAAS,CAAC,CAAA;AACd,CAAC,CAAC,CAAA;AAMW,QAAA,YAAY,GAAG,IAAA,kBAAU,EAA0C,UAAC,SAAS,EAAE,GAAG;IAC7F,aAAa;IACb,OAAO,CAAC,YAAI,CACV,SAAS,CAAC,CAAC,uBAAQ,CAAC,IAAI,CAAC,CAEzB,IAAI,SAAS,CAAC,EACd,CAAA;AAEJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,16 @@
1
+ export * from './View';
2
+ export * from './Icon';
3
+ export * from './Touchable';
4
+ export * from './Text';
5
+ export * from './Image';
6
+ export * from './Checkbox';
7
+ export * from './TextInput';
8
+ export * from './RadioInput';
9
+ export * from './Switch';
10
+ export * from './Select';
11
+ export * from './FileInput';
12
+ export * from './Slider';
13
+ export * from './Navigation';
14
+ export * from './Scroll';
15
+ export * from './ActivityIndicator';
16
+ export * from './Button';
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./View"), exports);
14
+ __exportStar(require("./Icon"), exports);
15
+ __exportStar(require("./Touchable"), exports);
16
+ __exportStar(require("./Text"), exports);
17
+ __exportStar(require("./Image"), exports);
18
+ __exportStar(require("./Checkbox"), exports);
19
+ __exportStar(require("./TextInput"), exports);
20
+ __exportStar(require("./RadioInput"), exports);
21
+ __exportStar(require("./Switch"), exports);
22
+ __exportStar(require("./Select"), exports);
23
+ __exportStar(require("./FileInput"), exports);
24
+ __exportStar(require("./Slider"), exports);
25
+ __exportStar(require("./Navigation"), exports);
26
+ __exportStar(require("./Scroll"), exports);
27
+ __exportStar(require("./ActivityIndicator"), exports);
28
+ __exportStar(require("./Button"), exports);
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAsB;AACtB,yCAAsB;AACtB,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAwB;AACxB,sDAAmC;AACnC,2CAAwB"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export { default as OSAlert } from './utils/OSAlert';
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ var __importDefault = (this && this.__importDefault) || function (mod) {
13
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14
+ };
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OSAlert = void 0;
17
+ __exportStar(require("./components"), exports);
18
+ var OSAlert_1 = require("./utils/OSAlert");
19
+ Object.defineProperty(exports, "OSAlert", { enumerable: true, get: function () { return __importDefault(OSAlert_1).default; } });
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,2CAAmD;AAA3C,mHAAA,OAAO,OAAW"}
@@ -0,0 +1 @@
1
+ export { default as FastImage } from 'react-native-fast-image';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FastImage = void 0;
7
+ // @ts-ignore
8
+ var react_native_fast_image_1 = require("react-native-fast-image");
9
+ Object.defineProperty(exports, "FastImage", { enumerable: true, get: function () { return __importDefault(react_native_fast_image_1).default; } });
10
+ //# sourceMappingURL=fastImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fastImage.js","sourceRoot":"","sources":["../../src/modules/fastImage.ts"],"names":[],"mappings":";;;;;;AAAA,cAAc;AACd,mEAA4D;AAApD,qIAAA,OAAO,OAAa"}
@@ -0,0 +1,2 @@
1
+ import { StyleProp } from "react-native";
2
+ export declare type StylesOf<C extends string> = Partial<Record<C, StyleProp<any>>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility.js","sourceRoot":"","sources":["../../src/types/utility.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { Alert, AlertButton } from 'react-native';
2
+ /**
3
+ * Alert.{function} receives three parameters, the last one being an object:
4
+ *
5
+ * @param {string} title text to appear in title
6
+ * @param {string} body text to appear in body
7
+ * @param {object} options array of buttons and callbacks
8
+ *
9
+ * options properties
10
+ * @property {string} name object description
11
+ * @property {function} run callback function to run on press
12
+ */
13
+ declare type NativeAlertArgs = Parameters<typeof Alert.alert>;
14
+ declare type OSAlertArgs = {
15
+ title: NativeAlertArgs['0'];
16
+ body?: NativeAlertArgs['1'];
17
+ options?: NativeAlertArgs['2'];
18
+ };
19
+ declare type AlertEvent = AlertButton['onPress'];
20
+ declare type NamedEvents<E extends string> = Partial<Record<E, AlertEvent>>;
21
+ declare function ask({ title, body, options }: OSAlertArgs): void;
22
+ declare function warn({ title, body, onAccept, onReject }: OSAlertArgs & NamedEvents<'onReject' | 'onAccept'>): void;
23
+ declare function info({ title, body, onDismiss }: OSAlertArgs & NamedEvents<'onDismiss'>): void;
24
+ declare function OSError({ title, body, onDismiss }: OSAlertArgs & NamedEvents<'onDismiss'>): void;
25
+ declare const _default: {
26
+ ask: typeof ask;
27
+ warn: typeof warn;
28
+ info: typeof info;
29
+ error: typeof OSError;
30
+ };
31
+ export default _default;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint no-restricted-imports: 'off' */
4
+ var react_native_1 = require("react-native");
5
+ function ask(_a) {
6
+ var title = _a.title, body = _a.body, _b = _a.options, options = _b === void 0 ? null : _b;
7
+ if (!title) {
8
+ title = 'Quick quetion';
9
+ }
10
+ OSAlert({
11
+ title: title,
12
+ body: body,
13
+ options: options,
14
+ });
15
+ }
16
+ function warn(_a) {
17
+ var title = _a.title, body = _a.body, onAccept = _a.onAccept, onReject = _a.onReject;
18
+ if (!title) {
19
+ title = 'Hang on';
20
+ }
21
+ if (!body) {
22
+ body = 'Are you sure?';
23
+ }
24
+ if (!onReject) {
25
+ onReject = function () { return null; };
26
+ }
27
+ OSAlert({
28
+ title: title,
29
+ body: body,
30
+ options: [
31
+ {
32
+ text: 'Cancel',
33
+ onPress: onReject,
34
+ },
35
+ {
36
+ text: 'OK',
37
+ style: 'destructive',
38
+ onPress: onAccept,
39
+ },
40
+ ],
41
+ });
42
+ }
43
+ function info(_a) {
44
+ var title = _a.title, body = _a.body, _b = _a.onDismiss, onDismiss = _b === void 0 ? function () { return null; } : _b;
45
+ if (!title) {
46
+ title = 'FYI';
47
+ }
48
+ OSAlert({
49
+ title: title,
50
+ body: body,
51
+ options: [
52
+ {
53
+ text: 'OK',
54
+ onPress: onDismiss,
55
+ },
56
+ ],
57
+ });
58
+ }
59
+ function OSError(_a) {
60
+ var title = _a.title, body = _a.body, _b = _a.onDismiss, onDismiss = _b === void 0 ? function () { return null; } : _b;
61
+ if (!title) {
62
+ title = 'Whoops!';
63
+ }
64
+ if (!body) {
65
+ body = 'Something went wrong';
66
+ }
67
+ OSAlert({
68
+ title: title,
69
+ body: body,
70
+ options: [
71
+ {
72
+ text: 'OK',
73
+ onPress: function () { return onDismiss(); },
74
+ },
75
+ ],
76
+ });
77
+ }
78
+ function OSAlert(params) {
79
+ react_native_1.Alert.alert(params.title, params.body, params.options, {
80
+ cancelable: false,
81
+ });
82
+ }
83
+ exports.default = {
84
+ ask: ask,
85
+ warn: warn,
86
+ info: info,
87
+ error: OSError,
88
+ };
89
+ //# sourceMappingURL=OSAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OSAlert.js","sourceRoot":"","sources":["../../src/utils/OSAlert.ts"],"names":[],"mappings":";;AAAA,yCAAyC;AACzC,6CAAiD;AA0BjD,SAAS,GAAG,CAAC,EAA2C;QAAzC,KAAK,WAAA,EAAE,IAAI,UAAA,EAAE,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA;IAExC,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,eAAe,CAAA;KACxB;IACD,OAAO,CAAC;QACN,KAAK,OAAA;QACL,IAAI,MAAA;QACJ,OAAO,SAAA;KACR,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,IAAI,CAAC,EAAoF;QAAlF,KAAK,WAAA,EAAE,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA;IAE7C,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,SAAS,CAAA;KAClB;IACD,IAAI,CAAC,IAAI,EAAE;QACT,IAAI,GAAG,eAAe,CAAA;KACvB;IACD,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAA;KACtB;IACD,OAAO,CAAC;QACN,KAAK,OAAA;QACL,IAAI,MAAA;QACJ,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAC,QAAQ;aACjB;YACD;gBACE,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,aAAa;gBACpB,OAAO,EAAE,QAAQ;aAClB;SACF;KACF,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,IAAI,CAAC,EAA8E;QAA5E,KAAK,WAAA,EAAE,IAAI,UAAA,EAAE,iBAAsB,EAAtB,SAAS,mBAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,KAAA;IAEjD,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,KAAK,CAAA;KACd;IACD,OAAO,CAAC;QACN,KAAK,OAAA;QACL,IAAI,MAAA;QACJ,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,IAAI;gBACV,OAAO,EAAC,SAAS;aAClB;SACF;KACF,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,EAA8E;QAA5E,KAAK,WAAA,EAAE,IAAI,UAAA,EAAE,iBAAsB,EAAtB,SAAS,mBAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,KAAA;IACpD,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,SAAS,CAAA;KAClB;IACD,IAAI,CAAC,IAAI,EAAE;QACT,IAAI,GAAG,sBAAsB,CAAA;KAC9B;IACD,OAAO,CAAC;QACN,KAAK,OAAA;QACL,IAAI,MAAA;QACJ,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,IAAI;gBACV,OAAO,EAAE,cAAM,OAAA,SAAS,EAAE,EAAX,CAAW;aAC3B;SACF;KACF,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,MAAkB;IACjC,oBAAK,CAAC,KAAK,CACT,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,OAAO,EACd;QACE,UAAU,EAAE,KAAK;KAClB,CACF,CAAA;AACH,CAAC;AAGD,kBAAe;IACX,GAAG,KAAA;IACH,IAAI,MAAA;IACJ,IAAI,MAAA;IACJ,KAAK,EAAE,OAAO;CACf,CAAA"}
@@ -0,0 +1 @@
1
+ export declare function useLogStyles(): (name: any, styles: any) => void;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useLogStyles = void 0;
4
+ var common_1 = require("@codeleap/common");
5
+ var react_native_1 = require("react-native");
6
+ function useLogStyles() {
7
+ var logger = (0, common_1.useStyle)().logger;
8
+ return function (name, styles) {
9
+ logger.debug.blue(name, JSON.stringify(react_native_1.StyleSheet.flatten(styles), null, 2), 'Component Styles');
10
+ };
11
+ }
12
+ exports.useLogStyles = useLogStyles;
13
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/utils/styles.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,6CAA0C;AAE1C,SAAgB,YAAY;IAEjB,IAAA,MAAM,GAAI,IAAA,iBAAQ,GAAE,OAAd,CAAc;IAG3B,OAAO,UAAC,IAAI,EAAC,MAAM;QACf,MAAM,CAAC,KAAK,CAAC,IAAI,CACb,IAAI,EACJ,IAAI,CAAC,SAAS,CAAC,yBAAU,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EACnD,kBAAkB,CACrB,CAAA;IACL,CAAC,CAAA;AAEL,CAAC;AAbD,oCAaC"}
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@codeleap/mobile",
3
+ "version": "1.0.0",
4
+ "main": "src/index.ts",
5
+ "repository": "git@github.com:codeleap-uk/codeleap-lib.git",
6
+ "author": "Paulo Henrique De Souza <paulosouza300272@gmail.com>",
7
+ "license": "UNLICENSED",
8
+ "devDependencies": {
9
+ "@codeleap/config": "*",
10
+ "@types/react-native": "^0.66.15",
11
+ "@types/react-window": "^1.8.5",
12
+ "typescript": "^4.5.5"
13
+ },
14
+ "scripts": {
15
+ "build": "tsc --build",
16
+ "lint": "./node_modules/.bin/eslint -c .eslintrc.js \"./src/**/*.{ts,tsx,js,jsx}\""
17
+ },
18
+ "peerDependencies": {
19
+ "@codeleap/common": "*",
20
+ "@react-navigation/bottom-tabs": "^6.0.9",
21
+ "@react-navigation/drawer": "^6.1.8",
22
+ "@react-navigation/native": "^6.0.6",
23
+ "@react-navigation/native-stack": "^6.2.5",
24
+ "react": "*",
25
+ "react-native": "*",
26
+ "react-native-fast-image": "^8.5.11"
27
+ },
28
+ "dependencies": {
29
+ "@miblanchard/react-native-slider": "^2.1.0",
30
+ "react-native-keyboard-aware-scroll-view": "^0.9.5"
31
+ }
32
+ }
@@ -0,0 +1,37 @@
1
+ import * as React from 'react'
2
+ import { ComponentPropsWithoutRef, forwardRef } from 'react'
3
+ import { ActivityIndicator as Indicator, StyleSheet } from 'react-native'
4
+ import { ActivityIndicatorComposition, ActivityIndicatorStyles,
5
+ useComponentStyle, ComponentVariants, useStyle } from '@codeleap/common'
6
+ import { StylesOf } from '../types/utility'
7
+
8
+ export type ActivityIndicatorProps =
9
+ ComponentPropsWithoutRef<typeof Indicator> &
10
+ {
11
+ variants?: ComponentVariants <typeof ActivityIndicatorStyles>['variants'],
12
+ styles?: StylesOf<ActivityIndicatorComposition>
13
+ }
14
+
15
+ export const ActivityIndicator =
16
+ forwardRef<Indicator, ActivityIndicatorProps>((activityIndicatorProps, ref) => {
17
+
18
+ const {
19
+ variants = [],
20
+ style,
21
+ ...props
22
+ } = activityIndicatorProps
23
+
24
+ const variantStyles = useComponentStyle('ActivityIndicator', {
25
+ variants
26
+ })
27
+
28
+ const { Theme } = useStyle()
29
+
30
+ const styles = StyleSheet.flatten([variantStyles.wrapper, style])
31
+ const color = styles?.color || Theme.colors.gray
32
+ const size = styles?.height || styles?.width || 'large'
33
+ return (
34
+ <Indicator size={size} ref={ref} color={color} style={styles} {...props} />
35
+ )
36
+
37
+ })