@codeleap/mobile 2.0.0 → 2.0.3

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 (105) hide show
  1. package/dist/components/ActionIcon/styles.d.ts +58 -58
  2. package/dist/components/Backdrop/index.js +1 -1
  3. package/dist/components/Backdrop/index.js.map +1 -1
  4. package/dist/components/Button/index.d.ts +109 -109
  5. package/dist/components/Button/index.js +5 -7
  6. package/dist/components/Button/index.js.map +1 -1
  7. package/dist/components/Button/styles.d.ts +60 -55
  8. package/dist/components/Button/styles.js +4 -2
  9. package/dist/components/Button/styles.js.map +1 -1
  10. package/dist/components/Checkbox/index.js +4 -2
  11. package/dist/components/Checkbox/index.js.map +1 -1
  12. package/dist/components/Checkbox/styles.d.ts +1 -1
  13. package/dist/components/Checkbox/styles.js +4 -0
  14. package/dist/components/Checkbox/styles.js.map +1 -1
  15. package/dist/components/FileInput/index.d.ts +1 -1
  16. package/dist/components/Image/index.js +3 -0
  17. package/dist/components/Image/index.js.map +1 -1
  18. package/dist/components/Modal/index.js +1 -1
  19. package/dist/components/Modal/index.js.map +1 -1
  20. package/dist/components/MultiSelect/styles.js +1 -4
  21. package/dist/components/MultiSelect/styles.js.map +1 -1
  22. package/dist/components/Navigation/utils.js +0 -1
  23. package/dist/components/Navigation/utils.js.map +1 -1
  24. package/dist/components/Pager/styles.js +13 -11
  25. package/dist/components/Pager/styles.js.map +1 -1
  26. package/dist/components/RadioInput/index.js +3 -1
  27. package/dist/components/RadioInput/index.js.map +1 -1
  28. package/dist/components/RadioInput/styles.d.ts +1 -1
  29. package/dist/components/RadioInput/styles.js +1 -0
  30. package/dist/components/RadioInput/styles.js.map +1 -1
  31. package/dist/components/SegmentedControl/index.d.ts +10 -1
  32. package/dist/components/SegmentedControl/index.js +27 -27
  33. package/dist/components/SegmentedControl/index.js.map +1 -1
  34. package/dist/components/SegmentedControl/styles.d.ts +56 -51
  35. package/dist/components/SegmentedControl/styles.js +10 -3
  36. package/dist/components/SegmentedControl/styles.js.map +1 -1
  37. package/dist/components/Select/index.js +1 -2
  38. package/dist/components/Select/index.js.map +1 -1
  39. package/dist/components/Select/styles.d.ts +1 -1
  40. package/dist/components/Select/styles.js +4 -1
  41. package/dist/components/Select/styles.js.map +1 -1
  42. package/dist/components/Switch/index.js +1 -1
  43. package/dist/components/Switch/index.js.map +1 -1
  44. package/dist/components/Text/index.d.ts +2 -0
  45. package/dist/components/Text/index.js +43 -3
  46. package/dist/components/Text/index.js.map +1 -1
  47. package/dist/components/Text/styles.d.ts +57 -52
  48. package/dist/components/Text/styles.js +11 -3
  49. package/dist/components/Text/styles.js.map +1 -1
  50. package/dist/components/TextInput/index.d.ts +8 -4
  51. package/dist/components/TextInput/index.js +35 -15
  52. package/dist/components/TextInput/index.js.map +1 -1
  53. package/dist/components/TextInput/styles.d.ts +1 -1
  54. package/dist/components/TextInput/styles.js +11 -3
  55. package/dist/components/TextInput/styles.js.map +1 -1
  56. package/dist/components/Touchable/index.d.ts +1 -1
  57. package/dist/components/Touchable/index.js +77 -42
  58. package/dist/components/Touchable/index.js.map +1 -1
  59. package/dist/components/Touchable/styles.d.ts +56 -51
  60. package/dist/components/Touchable/styles.js +6 -1
  61. package/dist/components/Touchable/styles.js.map +1 -1
  62. package/dist/components/defaultStyles.d.ts +263 -263
  63. package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.d.ts +2 -0
  64. package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js +287 -286
  65. package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js.map +1 -1
  66. package/dist/utils/OSAlert.d.ts +6 -5
  67. package/dist/utils/OSAlert.js +7 -6
  68. package/dist/utils/OSAlert.js.map +1 -1
  69. package/dist/utils/hooks.d.ts +34 -1
  70. package/dist/utils/hooks.js +54 -1
  71. package/dist/utils/hooks.js.map +1 -1
  72. package/dist/utils/index.d.ts +1 -1
  73. package/dist/utils/index.js +2 -6
  74. package/dist/utils/index.js.map +1 -1
  75. package/dist/utils/notifications.js +4 -4
  76. package/dist/utils/notifications.js.map +1 -1
  77. package/package.json +1 -1
  78. package/src/components/Backdrop/index.tsx +1 -1
  79. package/src/components/Button/index.tsx +7 -11
  80. package/src/components/Button/styles.ts +34 -10
  81. package/src/components/Checkbox/index.tsx +4 -1
  82. package/src/components/Checkbox/styles.ts +5 -0
  83. package/src/components/Image/index.tsx +3 -0
  84. package/src/components/Modal/index.tsx +1 -1
  85. package/src/components/MultiSelect/styles.ts +1 -8
  86. package/src/components/Navigation/utils.tsx +0 -2
  87. package/src/components/Pager/styles.ts +16 -11
  88. package/src/components/RadioInput/index.tsx +3 -1
  89. package/src/components/RadioInput/styles.ts +2 -1
  90. package/src/components/SegmentedControl/index.tsx +31 -18
  91. package/src/components/SegmentedControl/styles.ts +29 -7
  92. package/src/components/Select/index.tsx +2 -1
  93. package/src/components/Select/styles.ts +12 -2
  94. package/src/components/Switch/index.tsx +1 -1
  95. package/src/components/Text/index.tsx +57 -7
  96. package/src/components/Text/styles.ts +25 -9
  97. package/src/components/TextInput/index.tsx +44 -9
  98. package/src/components/TextInput/styles.ts +14 -4
  99. package/src/components/Touchable/index.tsx +84 -35
  100. package/src/components/Touchable/styles.ts +15 -3
  101. package/src/utils/KeyboardAware/lib/KeyboardAwareHOC.tsx +34 -24
  102. package/src/utils/OSAlert.ts +10 -10
  103. package/src/utils/hooks.ts +82 -2
  104. package/src/utils/index.ts +2 -2
  105. package/src/utils/notifications.ts +4 -4
@@ -1,6 +1,11 @@
1
- export declare type TextComposition = 'text';
1
+ import { StylesOf } from '@codeleap/common';
2
+ import { FeedbackConfig } from '../../utils';
3
+ export declare type TextComposition = 'text' | 'touchFeedback';
4
+ export declare type TextStylesGen<TCSS = any> = StylesOf<'text', TCSS> & {
5
+ 'pressFeedback'?: FeedbackConfig;
6
+ };
2
7
  export declare const TextStyles: {
3
- default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
8
+ default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
4
9
  h1: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
5
10
  h2: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
6
11
  h3: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
@@ -12,54 +17,54 @@ export declare const TextStyles: {
12
17
  p3: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
13
18
  p4: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
14
19
  link: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
15
- OSAlertBody: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
16
- inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
17
- block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
18
- flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
19
- inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
20
- absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
21
- relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
22
- fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
23
- sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
24
- hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
25
- full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
26
- noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
27
- fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
28
- fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
29
- fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
30
- fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
31
- fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
32
- whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
33
- centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
34
- row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
35
- listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
36
- column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
37
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
38
- alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
39
- alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
40
- alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
41
- alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
42
- alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
43
- alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
44
- alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
45
- alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
46
- justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
47
- justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
48
- justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
49
- justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
50
- justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
51
- textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
52
- textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
53
- textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
54
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
55
- elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
56
- neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
57
- scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
58
- scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
59
- scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
60
- wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
61
- debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
62
- debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
63
- debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
64
- debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"text", any>>;
20
+ OSAlertBody: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
21
+ inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
22
+ block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
23
+ flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
24
+ inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
25
+ absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
26
+ relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
27
+ fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
28
+ sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
29
+ hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
30
+ full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
31
+ noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
32
+ fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
33
+ fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
34
+ fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
35
+ fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
36
+ fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
37
+ whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
38
+ centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
39
+ row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
40
+ listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
41
+ column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
42
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
43
+ alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
44
+ alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
45
+ alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
46
+ alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
47
+ alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
48
+ alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
49
+ alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
50
+ alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
51
+ justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
52
+ justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
53
+ justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
54
+ justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
55
+ justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
56
+ textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
57
+ textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
58
+ textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
59
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
60
+ elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
61
+ neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
62
+ scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
63
+ scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
64
+ scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
65
+ wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
66
+ debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
67
+ debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
68
+ debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
69
+ debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => TextStylesGen<any>;
65
70
  };
@@ -15,9 +15,17 @@ exports.TextStyles = void 0;
15
15
  var common_1 = require("@codeleap/common");
16
16
  var createTextStyle = (0, common_1.createDefaultVariantFactory)();
17
17
  var presets = (0, common_1.includePresets)(function (styles) { return createTextStyle(function () { return ({ text: styles }); }); });
18
- exports.TextStyles = __assign(__assign({}, presets), { default: createTextStyle(function (theme) { return ({
19
- text: __assign({ fontFamily: theme.typography.fontFamily }, (0, common_1.assignTextStyle)('p1')(theme).text),
20
- }); }), h1: (0, common_1.assignTextStyle)('h1'), h2: (0, common_1.assignTextStyle)('h2'), h3: (0, common_1.assignTextStyle)('h3'), h4: (0, common_1.assignTextStyle)('h4'), h5: (0, common_1.assignTextStyle)('h5'), h6: (0, common_1.assignTextStyle)('h6'), p1: (0, common_1.assignTextStyle)('p1'), p2: (0, common_1.assignTextStyle)('p2'), p3: (0, common_1.assignTextStyle)('p3'), p4: (0, common_1.assignTextStyle)('p4'), link: (0, common_1.assignTextStyle)('p1'), OSAlertBody: createTextStyle(function (theme) { return ({
18
+ exports.TextStyles = __assign(__assign({}, presets), { default: createTextStyle(function (theme) {
19
+ var defaultStyle = (0, common_1.assignTextStyle)('p1')(theme).text;
20
+ return {
21
+ text: __assign({ fontFamily: theme.typography.fontFamily }, defaultStyle),
22
+ pressFeedback: {
23
+ type: 'highlight',
24
+ brightness: 0,
25
+ shiftOpacity: 0.3,
26
+ },
27
+ };
28
+ }), h1: (0, common_1.assignTextStyle)('h1'), h2: (0, common_1.assignTextStyle)('h2'), h3: (0, common_1.assignTextStyle)('h3'), h4: (0, common_1.assignTextStyle)('h4'), h5: (0, common_1.assignTextStyle)('h5'), h6: (0, common_1.assignTextStyle)('h6'), p1: (0, common_1.assignTextStyle)('p1'), p2: (0, common_1.assignTextStyle)('p2'), p3: (0, common_1.assignTextStyle)('p3'), p4: (0, common_1.assignTextStyle)('p4'), link: (0, common_1.assignTextStyle)('p1'), OSAlertBody: createTextStyle(function (theme) { return ({
21
29
  text: __assign(__assign({}, (0, common_1.assignTextStyle)('p1')(theme).text), theme.presets.textCenter),
22
30
  }); }) });
23
31
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Text/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA+F;AAG/F,IAAM,eAAe,GAAG,IAAA,oCAA2B,GAAmB,CAAA;AAEtE,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,MAAM,IAAK,OAAA,eAAe,CAAC,cAAM,OAAA,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAlB,CAAkB,CAAC,EAAzC,CAAyC,CACnF,CAAA;AAEY,QAAA,UAAU,yBAClB,OAAO,KACV,OAAO,EAAE,eAAe,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QACnC,IAAI,aACF,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,UAAU,IACpC,IAAA,wBAAe,EAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CACrC;KACF,CAAC,EALkC,CAKlC,CAAC,EACH,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAA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UAAU,CAAC,UAAU,IACpC,YAAY,CAChB;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,WAAW;gBACjB,UAAU,EAAE,CAAC;gBACb,YAAY,EAAE,GAAG;aAClB;SACF,CAAA;IACH,CAAC,CAAC,EACF,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,EAAE,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EACzB,IAAI,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC,EAC3B,WAAW,EAAE,eAAe,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QACvC,IAAI,wBACC,IAAA,wBAAe,EAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,GACjC,KAAK,CAAC,OAAO,CAAC,UAAU,CAC5B;KACF,CAAC,EALsC,CAKtC,CAAC,IACJ"}
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ComponentVariants, FormTypes } from '@codeleap/common';
3
3
  import { ComponentPropsWithoutRef } from 'react';
4
+ import { TextProps } from '../Text';
4
5
  import { ViewProps } from '../View';
5
6
  import { StylesOf } from '../../types';
6
7
  import { TextInput as NativeTextInput } from 'react-native';
@@ -11,6 +12,10 @@ export * from './styles';
11
12
  import { InputIconComposition, TextInputComposition, TextInputStyles } from './styles';
12
13
  import { ActionIconProps } from '../ActionIcon';
13
14
  declare type NativeProps = ComponentPropsWithoutRef<typeof NativeTextInput>;
15
+ declare type SubtitleProps = {
16
+ errorProps: TextProps;
17
+ styles: Record<'wrapper' | 'error' | 'subtitle', any>;
18
+ };
14
19
  export declare type TextInputProps = Partial<TextInputMaskProps> & ComponentVariants<typeof TextInputStyles> & Omit<NativeProps, 'value'> & {
15
20
  multiline?: boolean;
16
21
  onChangeText?: (text: string) => void;
@@ -27,6 +32,7 @@ export declare type TextInputProps = Partial<TextInputMaskProps> & ComponentVari
27
32
  password?: boolean;
28
33
  visibilityToggle?: boolean;
29
34
  touchableWrapper?: boolean;
35
+ subtitle?: string | ((props: SubtitleProps) => React.ReactElement);
30
36
  onPress?: () => void;
31
37
  masking?: FormTypes.TextField['masking'];
32
38
  innerWrapperProps?: ViewProps;
@@ -158,6 +164,7 @@ export declare const TextInput: React.ForwardRefExoticComponent<Partial<TextInpu
158
164
  password?: boolean;
159
165
  visibilityToggle?: boolean;
160
166
  touchableWrapper?: boolean;
167
+ subtitle?: string | ((props: SubtitleProps) => React.ReactElement);
161
168
  onPress?: () => void;
162
169
  masking?: FormTypes.TextField['masking'];
163
170
  innerWrapperProps?: ViewProps;
@@ -165,10 +172,7 @@ export declare const TextInput: React.ForwardRefExoticComponent<Partial<TextInpu
165
172
  onChangeMask?: TextInputMaskProps['onChangeText'];
166
173
  required?: boolean;
167
174
  } & React.RefAttributes<NativeTextInput>>;
168
- export declare const FormError: ({ message, ...props }: {
169
- [x: string]: any;
170
- message: any;
171
- }) => any;
175
+ export declare const FormError: React.FC<TextProps>;
172
176
  declare type InputIconProps = {
173
177
  styles: StylesOf<InputIconComposition>;
174
178
  commonStyles: StylesOf<InputIconComposition>;
@@ -64,11 +64,11 @@ __exportStar(require("./styles"), exports);
64
64
  var ActionIcon_1 = require("../ActionIcon");
65
65
  exports.TextInput = (0, react_1.forwardRef)(function (rawprops, inputRef) {
66
66
  var _a, _b;
67
- var onChange = rawprops.onChange, value = rawprops.value, onChangeText = rawprops.onChangeText, disabled = rawprops.disabled, edited = rawprops.edited, onFocus = rawprops.onFocus, onBlur = rawprops.onBlur, variants = rawprops.variants, label = rawprops.label, wrapperProps = rawprops.wrapperProps, leftIcon = rawprops.leftIcon, rightIcon = rawprops.rightIcon, styles = rawprops.styles, validate = rawprops.validate, password = rawprops.password, visibilityToggle = rawprops.visibilityToggle, innerWrapperProps = rawprops.innerWrapperProps, _c = rawprops.masking, masking = _c === void 0 ? null : _c, onChangeMask = rawprops.onChangeMask, debugName = rawprops.debugName, _d = rawprops.required, required = _d === void 0 ? false : _d, props = __rest(rawprops, ["onChange", "value", "onChangeText", "disabled", "edited", "onFocus", "onBlur", "variants", "label", "wrapperProps", "leftIcon", "rightIcon", "styles", "validate", "password", "visibilityToggle", "innerWrapperProps", "masking", "onChangeMask", "debugName", "required"]);
68
- var _e = (0, react_1.useState)(false), isFocused = _e[0], setFocus = _e[1];
69
- var _f = (0, react_1.useState)(edited), editedState = _f[0], setEdited = _f[1];
67
+ var onChange = rawprops.onChange, value = rawprops.value, onChangeText = rawprops.onChangeText, disabled = rawprops.disabled, edited = rawprops.edited, onFocus = rawprops.onFocus, onBlur = rawprops.onBlur, variants = rawprops.variants, label = rawprops.label, wrapperProps = rawprops.wrapperProps, leftIcon = rawprops.leftIcon, rightIcon = rawprops.rightIcon, styles = rawprops.styles, validate = rawprops.validate, password = rawprops.password, visibilityToggle = rawprops.visibilityToggle, innerWrapperProps = rawprops.innerWrapperProps, _c = rawprops.masking, masking = _c === void 0 ? null : _c, _d = rawprops.subtitle, subtitle = _d === void 0 ? '' : _d, onChangeMask = rawprops.onChangeMask, debugName = rawprops.debugName, _e = rawprops.required, required = _e === void 0 ? false : _e, props = __rest(rawprops, ["onChange", "value", "onChangeText", "disabled", "edited", "onFocus", "onBlur", "variants", "label", "wrapperProps", "leftIcon", "rightIcon", "styles", "validate", "password", "visibilityToggle", "innerWrapperProps", "masking", "subtitle", "onChangeMask", "debugName", "required"]);
68
+ var _f = (0, react_1.useState)(false), isFocused = _f[0], setFocus = _f[1];
69
+ var _g = (0, react_1.useState)(edited), editedState = _g[0], setEdited = _g[1];
70
70
  var input = (0, react_1.useRef)(null);
71
- var _g = (0, common_1.useBooleanToggle)(false), textIsVisible = _g[0], setTextVisible = _g[1];
71
+ var _h = (0, common_1.useBooleanToggle)(false), textIsVisible = _h[0], setTextVisible = _h[1];
72
72
  var variantStyles = (0, common_1.useDefaultComponentStyle)('u:TextInput', {
73
73
  variants: variants,
74
74
  styles: styles,
@@ -106,7 +106,7 @@ exports.TextInput = (0, react_1.forwardRef)(function (rawprops, inputRef) {
106
106
  var _a, _b;
107
107
  (_b = (_a = input.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
108
108
  }, isTextInput: true })); });
109
- var _h = (0, common_1.useValidate)(value, validate), showError = _h.showError, error = _h.error;
109
+ var _j = (0, common_1.useValidate)(value, validate), showError = _j.showError, error = _j.error;
110
110
  var commonIconStyles = (0, common_1.getNestedStylesByKey)('icon', variantStyles);
111
111
  var leftIconStyles = (0, common_1.getNestedStylesByKey)('leftIcon', variantStyles);
112
112
  var rightIconStyles = (0, common_1.getNestedStylesByKey)('rightIcon', variantStyles);
@@ -116,7 +116,7 @@ exports.TextInput = (0, react_1.forwardRef)(function (rawprops, inputRef) {
116
116
  isFocused ? variantStyles[key + ':focus'] : {},
117
117
  showError ? variantStyles[key + ':error'] : {},
118
118
  ];
119
- return requestedStyles;
119
+ return react_native_1.StyleSheet.flatten(requestedStyles);
120
120
  }
121
121
  function handlePress() {
122
122
  var _a, _b;
@@ -132,7 +132,17 @@ exports.TextInput = (0, react_1.forwardRef)(function (rawprops, inputRef) {
132
132
  icon: (textIsVisible ? 'input-visiblity:visible' : 'input-visiblity:hidden'),
133
133
  debugName: "".concat(debugName, " toggle visibility"),
134
134
  } : {};
135
- return (<Touchable_1.Touchable style={getStyles('wrapper')} debugName={debugName} onPress={handlePress} {...wrapperProps} android_ripple={null}>
135
+ var subtitleStyles = {
136
+ error: getStyles('error'),
137
+ wrapper: getStyles('subtitleWrapper'),
138
+ subtitle: getStyles('subtitle'),
139
+ };
140
+ var errorProps = { text: error.message, style: subtitleStyles.error };
141
+ var subtitleContent = common_1.TypeGuards.isFunction(subtitle) ? subtitle({ styles: subtitleStyles, errorProps: errorProps }) : <View_1.View style={subtitleStyles.wrapper}>
142
+ <exports.FormError {...errorProps}/>
143
+ {common_1.TypeGuards.isString(subtitle) ? <Text_1.Text text={subtitle} style={subtitleStyles.subtitle}/> : (subtitle || null)}
144
+ </View_1.View>;
145
+ return (<Touchable_1.Touchable style={getStyles('wrapper')} debugName={debugName} onPress={handlePress} {...wrapperProps} android_ripple={null} noFeedback>
136
146
  <Label_1.InputLabel label={label} style={getStyles('label')} asteriskStyle={getStyles('requiredAsterisk')} wrapperStyle={getStyles('labelWrapper')} required={required}/>
137
147
  <View_1.View style={getStyles('innerWrapper')} {...innerWrapperProps}>
138
148
  <exports.InputIcon isFocused={isFocused} showError={showError} styles={leftIconStyles} commonStyles={commonIconStyles} debugName={"".concat(debugName, " left icon")} {...leftIcon}/>
@@ -143,23 +153,33 @@ exports.TextInput = (0, react_1.forwardRef)(function (rawprops, inputRef) {
143
153
  <exports.InputIcon isFocused={isFocused} showError={showError} styles={rightIconStyles} commonStyles={commonIconStyles} debugName={"".concat(debugName, " right icon")} {...rightIcon} {...visibilityToggleProps}/>
144
154
 
145
155
  </View_1.View>
146
- <exports.FormError message={error.message} style={getStyles('error')}/>
156
+ {subtitleContent}
147
157
  </Touchable_1.Touchable>);
148
158
  });
149
159
  var FormError = function (_a) {
150
- var message = _a.message, props = __rest(_a, ["message"]);
151
- if (['number', 'string', 'undefined'].includes(typeof message)) {
152
- var text = message ? "".concat(message.charAt(0).toUpperCase() + message.slice(1)) : ' ';
153
- return <Text_1.Text text={text} variants={['p2', 'marginTop:1']} {...props}/>;
160
+ var text = _a.text, props = __rest(_a, ["text"]);
161
+ var message = text;
162
+ if (common_1.TypeGuards.isNumber(message)) {
163
+ message = message.toString();
164
+ }
165
+ if (typeof message === 'undefined') {
166
+ message = '';
154
167
  }
155
- return message;
168
+ if (common_1.TypeGuards.isString(message)) {
169
+ var text_1 = message ? "".concat(message.charAt(0).toUpperCase() + message.slice(1)) : ' ';
170
+ return <Text_1.Text text={text_1} {...props}/>;
171
+ }
172
+ return <>
173
+ {text}
174
+ </>;
156
175
  };
157
176
  exports.FormError = FormError;
158
177
  var InputIcon = function (_a) {
159
178
  var styles = _a.styles, commonStyles = _a.commonStyles, isFocused = _a.isFocused, showError = _a.showError, props = __rest(_a, ["styles", "commonStyles", "isFocused", "showError"]);
160
179
  if (!props.icon)
161
180
  return null;
162
- function getStyles(key) {
181
+ function getStyles(k) {
182
+ var key = k;
163
183
  if (key === 'icon')
164
184
  key = '';
165
185
  var requestedStyles = [
@@ -176,7 +196,7 @@ var InputIcon = function (_a) {
176
196
  icon: getStyles('icon'),
177
197
  touchablePressable: getStyles('touchablePressable'),
178
198
  touchableWrapper: getStyles('touchableWrapper'),
179
- touchableRipple: getStyles('touchableRipple'),
199
+ touchableFeedback: getStyles('touchableFeedback'),
180
200
  };
181
201
  return <ActionIcon_1.ActionIcon styles={iconStyles} {...props}/>;
182
202
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextInput/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA8B;AAC9B,2CASyB;AACzB,+BAAmG;AACnG,gCAA8B;AAC9B,gCAAyC;AAGzC,6CAAuH;AACvH,0CAAwD;AACxD,6DAAiF;AACjF,iCAAoC;AAEpC,iCAAoC;AAA3B,mGAAA,UAAU,OAAA;AAEnB,2CAAwB;AAOxB,4CAA4E;AAkC/D,QAAA,SAAS,GAAG,IAAA,kBAAU,EAAkC,UAAC,QAAQ,EAAE,QAAQ;;IAEpF,IAAA,QAAQ,GAsBN,QAAQ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AK,CAAC,IAAI;QAAE,OAAO,IAAI,CAAA;IAE5B,SAAS,SAAS,CAAC,CAAuB;QACxC,IAAI,GAAG,GAAG,CAAC,CAAA;QACX,IAAI,GAAG,KAAK,MAAM;YAAE,GAAG,GAAG,EAAE,CAAA;QAC5B,IAAM,eAAe,GAAG;YACtB,YAAY,CAAC,GAAG,CAAC;YACjB,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;YAC7C,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;YAC7C,MAAM,CAAC,GAAG,CAAC;YACX,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;YACvC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;SACxC,CAAA;QAED,OAAO,yBAAU,CAAC,OAAO,CAAC,eAAe,CAAC,CAAA;IAC5C,CAAC;IACD,IAAM,UAAU,GAAG;QACjB,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC;QACvB,kBAAkB,EAAE,SAAS,CAAC,oBAAoB,CAAC;QACnD,gBAAgB,EAAE,SAAS,CAAC,kBAAkB,CAAC;QAC/C,iBAAiB,EAAE,SAAS,CAAC,mBAAmB,CAAC;KAClD,CAAA;IAED,OAAO,CAAC,uBAAU,CAChB,MAAM,CAAC,CAAC,UAAU,CAAC,CACnB,IAAI,KAAK,CAAC,EACV,CAAA;AACJ,CAAC,CAAA;AA5BY,QAAA,SAAS,aA4BrB"}
@@ -2,7 +2,7 @@ import { ActionIconParts } from '../ActionIcon';
2
2
  export declare type IconParts = Exclude<ActionIconParts, 'icon' | 'icon:disabled'>;
3
3
  declare type InputIcons = 'icon' | 'leftIcon' | 'rightIcon';
4
4
  export declare type InputIconComposition = `${InputIcons}${Capitalize<IconParts>}` | InputIcons;
5
- declare type TextInputParts = 'wrapper' | InputIconComposition | 'textField' | 'label' | 'innerWrapper' | 'error' | 'placeholder' | 'selection' | 'requiredAsterisk' | 'labelWrapper';
5
+ declare type TextInputParts = 'wrapper' | InputIconComposition | 'textField' | 'label' | 'innerWrapper' | 'error' | 'subtitle' | 'subtitleWrapper' | 'placeholder' | 'selection' | 'requiredAsterisk' | 'labelWrapper';
6
6
  export declare type TextInputComposition = `${TextInputParts}:error` | `${TextInputParts}:focus` | TextInputParts;
7
7
  export declare const TextInputStyles: {
8
8
  default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<TextInputComposition, any>>;
@@ -38,9 +38,17 @@ exports.TextInputStyles = __assign(__assign({}, presets), { default: createTextI
38
38
  'icon:focus': {
39
39
  color: theme.colors.primary,
40
40
  },
41
- leftIconTouchableWrapper: __assign({}, theme.spacing.marginRight(1)),
42
- rightIconTouchableWrapper: __assign({}, theme.spacing.marginLeft(1)),
43
- error: __assign({ color: theme.colors.negative }, theme.spacing.marginTop(0.5)),
41
+ leftIconTouchableWrapper: {
42
+ // ...theme.spacing.marginRight(0.5),
43
+ },
44
+ rightIconTouchableWrapper: {
45
+ // ...theme.spacing.marginLeft(0.5),
46
+ },
47
+ error: {
48
+ color: theme.colors.negative,
49
+ },
50
+ subtitleWrapper: __assign(__assign(__assign(__assign({}, theme.spacing.marginTop(0.2)), theme.presets.row), theme.presets.justifySpaceBetween), theme.presets.alignCenter),
51
+ subtitle: __assign({}, theme.presets.textRight),
44
52
  'label:error': {
45
53
  color: theme.colors.negative,
46
54
  },
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/TextInput/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA+F;AA0B/F,IAAM,oBAAoB,GACxB,IAAA,oCAA2B,GAAwB,CAAA;AAErD,IAAM,OAAO,GAAG,IAAA,u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AAC,KAAK,IAAK,OAAA,CAAC;QACrC,YAAY,eACP,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAC9D;KACF,CAAC,EAJoC,CAIpC,CAAC,EACH,GAAG,EAAE,oBAAoB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QACpC,YAAY,eACP,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAC3B;KACF,CAAC,EAJmC,CAInC,CAAC,EACH,IAAI,EAAE,oBAAoB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QACrC,YAAY,wBACP,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,KAC1B,YAAY,EAAE,EAAE,GACjB;KACF,CAAC,EALoC,CAKpC,CAAC,IACJ"}
@@ -11,8 +11,8 @@ export declare type TouchableProps = Omit<ComponentPropsWithoutRef<typeof Pressa
11
11
  debugName: string;
12
12
  activeOpacity?: number;
13
13
  debugComponent?: string;
14
- feedbackVariant?: 'opacity' | 'none' | 'highlight';
15
14
  onPress?: AnyFunction;
15
+ noFeedback?: boolean;
16
16
  styles?: StylesOf<TouchableComposition>;
17
17
  } & BaseViewProps;
18
18
  export * from './styles';
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -55,28 +44,38 @@ var common_1 = require("@codeleap/common");
55
44
  var react_native_1 = require("react-native");
56
45
  var react_native_animatable_1 = require("react-native-animatable");
57
46
  var View_1 = require("../View");
47
+ var utils_1 = require("../../utils");
58
48
  __exportStar(require("./styles"), exports);
59
- var rippleStyles = {
49
+ var defaultWrapperStyles = {
60
50
  paddingTop: 0,
61
51
  paddingLeft: 0,
62
52
  paddingRight: 0,
63
53
  paddingBottom: 0,
64
54
  overflow: 'hidden',
55
+ alignItems: 'stretch',
65
56
  };
66
57
  var defaultPressableStyles = {
67
58
  marginTop: 0,
68
59
  marginLeft: 0,
69
60
  marginRight: 0,
70
61
  marginBottom: 0,
71
- // height: '100%',
72
- minWidth: '100%',
73
- // minHeight: '100%',
74
- // maxHeight: '100%',
75
- maxWidth: '100%',
62
+ };
63
+ var ripplePressableStyles = {
64
+ // position: 'absolute',
65
+ // top: 0,
66
+ // left: 0,
67
+ // right: 0,
68
+ // bottom: 0,
69
+ // width: '100%',
70
+ // minWidth: '100%',
71
+ // maxWidth: '100%',
72
+ // height: '100%',
73
+ // minHeight: '100%',
74
+ // maxHeight: '100%',
75
+ // flex: 1,
76
76
  };
77
77
  exports.Touchable = (0, react_1.forwardRef)(function (touchableProps, ref) {
78
- var _a = touchableProps.variants, variants = _a === void 0 ? [] : _a, children = touchableProps.children, onPress = touchableProps.onPress, style = touchableProps.style, _b = touchableProps.activeOpacity, activeOpacity = _b === void 0 ? 0.5 : _b, debugName = touchableProps.debugName, debugComponent = touchableProps.debugComponent, styles = touchableProps.styles, _c = touchableProps.feedbackVariant, feedbackVariant = _c === void 0 ? 'opacity' : _c, props = __rest(touchableProps, ["variants", "children", "onPress", "style", "activeOpacity", "debugName", "debugComponent", "styles", "feedbackVariant"]);
79
- var _feedbackVariant = onPress ? feedbackVariant : 'none';
78
+ var _a = touchableProps.variants, variants = _a === void 0 ? [] : _a, children = touchableProps.children, onPress = touchableProps.onPress, style = touchableProps.style, debugName = touchableProps.debugName, debugComponent = touchableProps.debugComponent, _b = touchableProps.noFeedback, noFeedback = _b === void 0 ? false : _b, styles = touchableProps.styles, props = __rest(touchableProps, ["variants", "children", "onPress", "style", "debugName", "debugComponent", "noFeedback", "styles"]);
80
79
  var variantStyles = (0, common_1.useDefaultComponentStyle)('u:Touchable', {
81
80
  variants: variants,
82
81
  transform: react_native_1.StyleSheet.flatten,
@@ -92,34 +91,70 @@ exports.Touchable = (0, react_1.forwardRef)(function (touchableProps, ref) {
92
91
  onPress && onPress();
93
92
  };
94
93
  var _styles = react_native_1.StyleSheet.flatten([variantStyles.wrapper, style]);
95
- var hasRipple = (!!variantStyles.ripple || !!props.android_ripple) && _feedbackVariant !== 'none';
96
- function getFeedbackStyle(pressed) {
97
- if (react_native_1.Platform.OS === 'android' && hasRipple)
98
- return {};
99
- switch (_feedbackVariant) {
100
- case 'highlight':
101
- return {
102
- backgroundColor: pressed ? '#e0e0e0' : 'transparent',
103
- };
104
- break;
105
- case 'opacity':
106
- return {
107
- opacity: pressed ? activeOpacity : 1,
108
- };
109
- case 'none':
110
- return {};
111
- }
112
- }
113
- var rippleConfig = hasRipple ? __assign(__assign({}, (variantStyles.ripple || {})), (props.android_ripple || {})) : null;
94
+ var disableFeedback = !onPress || noFeedback;
95
+ var _c = (0, utils_1.usePressableFeedback)(_styles, {
96
+ hightlightPropertyIn: 'backgroundColor',
97
+ hightlightPropertyOut: 'backgroundColor',
98
+ disabled: disableFeedback,
99
+ feedbackConfig: variantStyles === null || variantStyles === void 0 ? void 0 : variantStyles.feedback,
100
+ }), rippleConfig = _c.rippleConfig, getFeedbackStyle = _c.getFeedbackStyle;
114
101
  var Wrapper = View_1.View;
115
- return (<Wrapper style={[_styles, rippleStyles]}>
102
+ var _d = React.useMemo(function () {
103
+ var wrapperkeys = [
104
+ 'margin',
105
+ 'alignSelf',
106
+ 'border',
107
+ // 'flex!',
108
+ ];
109
+ var sharedKeys = [
110
+ 'width!',
111
+ 'height!',
112
+ 'flex!',
113
+ 'position!',
114
+ 'top!',
115
+ 'left!',
116
+ 'right!',
117
+ 'bottom!',
118
+ ];
119
+ var wrapperStyle = {};
120
+ var pressableStyle = {};
121
+ var match = function (k, key) {
122
+ if (k.endsWith('!')) {
123
+ return key === k.substring(0, k.length - 1);
124
+ }
125
+ else {
126
+ return key.startsWith(k);
127
+ }
128
+ };
129
+ Object.entries(_styles).forEach(function (_a) {
130
+ var key = _a[0], value = _a[1];
131
+ if (wrapperkeys.some(function (k) { return match(k, key); })) {
132
+ wrapperStyle[key] = value;
133
+ }
134
+ else if (sharedKeys.some(function (k) { return match(k, key); })) {
135
+ wrapperStyle[key] = value;
136
+ pressableStyle[key] = value;
137
+ }
138
+ else {
139
+ pressableStyle[key] = value;
140
+ }
141
+ });
142
+ wrapperStyle.overflow = 'hidden';
143
+ // wrapperStyle.flexDirection = 'row'
144
+ // wrapperStyle.alignItems = 'stretch'
145
+ return {
146
+ wrapperStyle: wrapperStyle,
147
+ pressableStyle: pressableStyle,
148
+ };
149
+ }, [JSON.stringify(_styles)]), wrapperStyle = _d.wrapperStyle, pressableStyle = _d.pressableStyle;
150
+ return (<Wrapper style={[wrapperStyle]}>
116
151
  <react_native_1.Pressable onPress={press} style={function (_a) {
117
152
  var pressed = _a.pressed;
118
153
  return ([
154
+ // defaultPressableStyles,
155
+ pressableStyle,
156
+ // !!rippleConfig && ripplePressableStyles,
119
157
  getFeedbackStyle(pressed),
120
- variantStyles.pressable,
121
- _styles,
122
- defaultPressableStyles,
123
158
  ]);
124
159
  }} android_ripple={rippleConfig} {...props} ref={ref}>
125
160
  {children}