@codeleap/mobile 2.3.26 → 2.3.27-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/components/ActionIcon/styles.d.ts +2 -2
  2. package/dist/components/ActivityIndicator/styles.d.ts +2 -2
  3. package/dist/components/Autocomplete/types.d.ts +59 -0
  4. package/dist/components/Autocomplete/types.js +3 -0
  5. package/dist/components/Autocomplete/types.js.map +1 -0
  6. package/dist/components/Avatar/index.d.ts +23 -0
  7. package/dist/components/Avatar/index.js +95 -0
  8. package/dist/components/Avatar/index.js.map +1 -0
  9. package/dist/components/Avatar/styles.d.ts +4 -0
  10. package/dist/components/Avatar/styles.js +7 -0
  11. package/dist/components/Avatar/styles.js.map +1 -0
  12. package/dist/components/AvatarGroup/index.d.ts +18 -0
  13. package/dist/components/AvatarGroup/index.js +70 -0
  14. package/dist/components/AvatarGroup/index.js.map +1 -0
  15. package/dist/components/AvatarGroup/styles.d.ts +4 -0
  16. package/dist/components/AvatarGroup/styles.js +7 -0
  17. package/dist/components/AvatarGroup/styles.js.map +1 -0
  18. package/dist/components/Backdrop/styles.d.ts +2 -2
  19. package/dist/components/Badge/index.d.ts +31 -0
  20. package/dist/components/Badge/index.js +110 -0
  21. package/dist/components/Badge/index.js.map +1 -0
  22. package/dist/components/Badge/styles.d.ts +5 -0
  23. package/dist/components/Badge/styles.js +7 -0
  24. package/dist/components/Badge/styles.js.map +1 -0
  25. package/dist/components/Button/index.d.ts +4 -4
  26. package/dist/components/Button/styles.d.ts +2 -2
  27. package/dist/components/Checkbox/styles.d.ts +2 -2
  28. package/dist/components/ContentView/styles.d.ts +2 -2
  29. package/dist/components/DatePickerModal/index.d.ts +8 -0
  30. package/dist/components/DatePickerModal/index.js +153 -0
  31. package/dist/components/DatePickerModal/index.js.map +1 -0
  32. package/dist/components/DatePickerModal/styles.d.ts +5 -0
  33. package/dist/components/DatePickerModal/styles.js +7 -0
  34. package/dist/components/DatePickerModal/styles.js.map +1 -0
  35. package/dist/components/DatePickerModal/types.d.ts +40 -0
  36. package/dist/components/DatePickerModal/types.js +3 -0
  37. package/dist/components/DatePickerModal/types.js.map +1 -0
  38. package/dist/components/Drawer/styles.d.ts +2 -2
  39. package/dist/components/EmptyPlaceholder/styles.d.ts +2 -2
  40. package/dist/components/FileInput/styles.d.ts +2 -2
  41. package/dist/components/Grid/styles.d.ts +2 -2
  42. package/dist/components/Icon/styles.d.ts +2 -2
  43. package/dist/components/Image/styles.d.ts +2 -2
  44. package/dist/components/InputBase/index.d.ts +37 -0
  45. package/dist/components/InputBase/index.js +90 -0
  46. package/dist/components/InputBase/index.js.map +1 -0
  47. package/dist/components/InputBase/styles.d.ts +27 -0
  48. package/dist/components/InputBase/styles.js +92 -0
  49. package/dist/components/InputBase/styles.js.map +1 -0
  50. package/dist/components/InputBase/types.d.ts +28 -0
  51. package/dist/components/InputBase/types.js +3 -0
  52. package/dist/components/InputBase/types.js.map +1 -0
  53. package/dist/components/InputBase/utils.d.ts +11 -0
  54. package/dist/components/InputBase/utils.js +41 -0
  55. package/dist/components/InputBase/utils.js.map +1 -0
  56. package/dist/components/List/PaginationIndicator.d.ts +2 -2
  57. package/dist/components/List/index.js +7 -2
  58. package/dist/components/List/index.js.map +1 -1
  59. package/dist/components/List/styles.d.ts +2 -2
  60. package/dist/components/LoadingOverlay/index.d.ts +11 -0
  61. package/dist/components/LoadingOverlay/index.js +66 -0
  62. package/dist/components/LoadingOverlay/index.js.map +1 -0
  63. package/dist/components/LoadingOverlay/styles.d.ts +5 -0
  64. package/dist/components/LoadingOverlay/styles.js +7 -0
  65. package/dist/components/LoadingOverlay/styles.js.map +1 -0
  66. package/dist/components/Modal/styles.d.ts +2 -2
  67. package/dist/components/NumberIncrement/index.d.ts +31 -0
  68. package/dist/components/NumberIncrement/index.js +232 -0
  69. package/dist/components/NumberIncrement/index.js.map +1 -0
  70. package/dist/components/NumberIncrement/styles.d.ts +5 -0
  71. package/dist/components/NumberIncrement/styles.js +7 -0
  72. package/dist/components/NumberIncrement/styles.js.map +1 -0
  73. package/dist/components/NumberIncrement/types.d.ts +35 -0
  74. package/dist/components/NumberIncrement/types.js +3 -0
  75. package/dist/components/NumberIncrement/types.js.map +1 -0
  76. package/dist/components/NumberIncrement/utils.d.ts +5 -0
  77. package/dist/components/NumberIncrement/utils.js +27 -0
  78. package/dist/components/NumberIncrement/utils.js.map +1 -0
  79. package/dist/components/Pager/styles.d.ts +2 -2
  80. package/dist/components/RadioInput/styles.d.ts +2 -2
  81. package/dist/components/RefreshControl/index.d.ts +9 -0
  82. package/dist/components/RefreshControl/index.js +31 -0
  83. package/dist/components/RefreshControl/index.js.map +1 -0
  84. package/dist/components/RefreshControl/styles.d.ts +2 -0
  85. package/dist/components/RefreshControl/styles.js +7 -0
  86. package/dist/components/RefreshControl/styles.js.map +1 -0
  87. package/dist/components/Scroll/index.js +3 -2
  88. package/dist/components/Scroll/index.js.map +1 -1
  89. package/dist/components/Scroll/styles.d.ts +2 -2
  90. package/dist/components/Sections/styles.d.ts +2 -0
  91. package/dist/components/Sections/styles.js +7 -0
  92. package/dist/components/Sections/styles.js.map +1 -0
  93. package/dist/components/SegmentedControl/Option.d.ts +16 -0
  94. package/dist/components/SegmentedControl/Option.js +38 -0
  95. package/dist/components/SegmentedControl/Option.js.map +1 -0
  96. package/dist/components/SegmentedControl/styles.d.ts +2 -2
  97. package/dist/components/Select/styles.d.ts +2 -2
  98. package/dist/components/Slider/styles.d.ts +2 -2
  99. package/dist/components/Switch/styles.d.ts +2 -2
  100. package/dist/components/Text/styles.d.ts +2 -2
  101. package/dist/components/TextInput/index.d.ts +4 -4
  102. package/dist/components/TextInput/styles.d.ts +2 -2
  103. package/dist/components/Touchable/styles.d.ts +2 -2
  104. package/dist/components/View/styles.d.ts +2 -2
  105. package/dist/components/defaultStyles.d.ts +54 -54
  106. package/dist/components/legacy/Modal/styles.d.ts +2 -2
  107. package/dist/components/legacy/Pager/styles.d.ts +2 -2
  108. package/dist/modules/PressableRipple/index.d.ts +2 -0
  109. package/dist/modules/PressableRipple/index.js +9 -0
  110. package/dist/modules/PressableRipple/index.js.map +1 -0
  111. package/dist/modules/PressableRipple/ripple.d.ts +30 -0
  112. package/dist/modules/PressableRipple/ripple.js +213 -0
  113. package/dist/modules/PressableRipple/ripple.js.map +1 -0
  114. package/dist/modules/PressableRipple/styles.d.ts +19 -0
  115. package/dist/modules/PressableRipple/styles.js +29 -0
  116. package/dist/modules/PressableRipple/styles.js.map +1 -0
  117. package/dist/modules/PressableRipple/type.d.ts +11 -0
  118. package/dist/modules/PressableRipple/type.js +3 -0
  119. package/dist/modules/PressableRipple/type.js.map +1 -0
  120. package/dist/utils/hooks.d.ts +2 -0
  121. package/dist/utils/hooks.js +13 -1
  122. package/dist/utils/hooks.js.map +1 -1
  123. package/dist/utils/locale.d.ts +1 -0
  124. package/dist/utils/locale.js +10 -0
  125. package/dist/utils/locale.js.map +1 -0
  126. package/package.json +3 -2
  127. package/src/components/List/index.tsx +9 -2
  128. package/src/components/Scroll/index.tsx +7 -3
  129. package/src/utils/hooks.ts +17 -2
  130. package/dist/components/{AutoComplete → Autocomplete}/index.d.ts +0 -0
  131. package/dist/components/{AutoComplete → Autocomplete}/index.js +0 -0
  132. package/dist/components/{AutoComplete → Autocomplete}/index.js.map +0 -0
  133. package/dist/components/{AutoComplete → Autocomplete}/styles.d.ts +2 -2
  134. /package/dist/components/{AutoComplete → Autocomplete}/styles.js +0 -0
  135. /package/dist/components/{AutoComplete → Autocomplete}/styles.js.map +0 -0
@@ -140,15 +140,15 @@ export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "
140
140
  pill: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
141
141
  icon: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
142
142
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
143
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
144
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
145
143
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
144
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
146
145
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
147
146
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
148
147
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
149
148
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
150
149
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
151
150
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
151
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
152
152
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
153
153
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
154
154
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
@@ -195,15 +195,15 @@ export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "
195
195
  pill: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
196
196
  icon: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
197
197
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
198
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
199
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
200
198
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
199
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
201
200
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
202
201
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
203
202
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
204
203
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
205
204
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
206
205
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
206
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
207
207
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
208
208
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
209
209
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => import("./styles").ButtonStylesGen<any>;
@@ -14,15 +14,15 @@ export declare const ButtonStyles: {
14
14
  pill: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
15
15
  icon: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
16
16
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
17
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
18
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
19
17
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
18
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
20
19
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
21
20
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
22
21
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
23
22
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
24
23
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
25
24
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
25
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
26
26
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
27
27
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
28
28
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => ButtonStylesGen<any>;
@@ -4,15 +4,15 @@ export declare type CheckboxComposition = CheckboxParts | `${CheckboxParts}:chec
4
4
  export declare const CheckboxStyles: {
5
5
  default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
6
6
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
7
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
8
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
9
7
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
8
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
10
9
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
11
10
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
12
11
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
13
12
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
14
13
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
15
14
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
15
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
16
16
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
17
17
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
18
18
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<CheckboxComposition, any>>;
@@ -2,15 +2,15 @@ export declare type ContentViewComposition = 'placeholder' | 'wrapper' | 'loader
2
2
  export declare const ContentViewStyles: {
3
3
  default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
4
4
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
5
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
6
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
7
5
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
6
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
8
7
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
9
8
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
10
9
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
11
10
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
12
11
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
13
12
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
13
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
14
14
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
15
15
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
16
16
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ContentViewComposition, any>>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { DatePickerModalProps } from './types';
3
+ export * from './styles';
4
+ export * from './types';
5
+ export declare const DatePickerModal: {
6
+ (props: DatePickerModalProps): JSX.Element;
7
+ defaultProps: Partial<DatePickerModalProps>;
8
+ };
@@ -0,0 +1,153 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
37
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
38
+ };
39
+ var __rest = (this && this.__rest) || function (s, e) {
40
+ var t = {};
41
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
42
+ t[p] = s[p];
43
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
44
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
45
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
46
+ t[p[i]] = s[p[i]];
47
+ }
48
+ return t;
49
+ };
50
+ var __importDefault = (this && this.__importDefault) || function (mod) {
51
+ return (mod && mod.__esModule) ? mod : { "default": mod };
52
+ };
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.DatePickerModal = void 0;
55
+ var react_1 = __importStar(require("react"));
56
+ var common_1 = require("@codeleap/common");
57
+ var react_native_date_picker_1 = __importDefault(require("react-native-date-picker"));
58
+ var TextInput_1 = require("../TextInput");
59
+ var utils_1 = require("../../utils");
60
+ var Button_1 = require("../Button");
61
+ var react_native_1 = require("react-native");
62
+ __exportStar(require("./styles"), exports);
63
+ __exportStar(require("./types"), exports);
64
+ var OuterInputComponent = function (props) {
65
+ var debugName = props.debugName, toggle = props.toggle, valueLabel = props.valueLabel, placeholder = props.placeholder, otherProps = __rest(props, ["debugName", "toggle", "valueLabel", "placeholder"]);
66
+ return <TextInput_1.TextInput debugName={"".concat(debugName, " outer input")} onPress={toggle} {...otherProps} value={common_1.TypeGuards.isString(valueLabel) ? valueLabel : ''} placeholder={common_1.TypeGuards.isString(placeholder) ? placeholder : ''}/>;
67
+ };
68
+ var defaultFormatDate = function (date) {
69
+ if (!date)
70
+ return null;
71
+ return "".concat(date.getDate(), "/").concat(date.getMonth() + 1, "/").concat(date.getFullYear());
72
+ };
73
+ var DefaultFooter = function (props) {
74
+ var debugName = props.debugName, commitDate = props.commitDate, showDoneButton = props.showDoneButton, styles = props.styles, confirm = props.confirm, _a = props.confirmButtonProps, confirmButtonProps = _a === void 0 ? {} : _a, _b = props.cancelButtonProps, cancelButtonProps = _b === void 0 ? {} : _b, toggle = props.toggle;
75
+ if (commitDate == 'onConfirm') {
76
+ return <>
77
+ <Button_1.Button debugName={"".concat(debugName, " cancel button")} styles={styles.cancel} variants={['flex']} text={"Cancel"} onPress={toggle} {...cancelButtonProps}/>
78
+ <Button_1.Button debugName={"".concat(debugName, " confirm button")} variants={['flex']} styles={styles.confirm} text={"Confirm"} onPress={confirm} {...confirmButtonProps}/>
79
+ </>;
80
+ }
81
+ if (!showDoneButton)
82
+ return null;
83
+ return <Button_1.Button debugName={"".concat(debugName, " done button")} onPress={confirm} text={'Done'} styles={styles.done}/>;
84
+ };
85
+ var defaultProps = {
86
+ outerInputComponent: OuterInputComponent,
87
+ formatDate: defaultFormatDate,
88
+ footerComponent: DefaultFooter,
89
+ mode: 'date',
90
+ commitDate: 'onConfirm',
91
+ showDoneButton: true,
92
+ isCustomModal: true,
93
+ toggleOnConfirm: true,
94
+ };
95
+ var DatePickerModal = function (props) {
96
+ var _a;
97
+ var currentTheme = (0, common_1.useCodeleapContext)().currentTheme;
98
+ var allProps = __assign(__assign({}, defaultProps), props);
99
+ var isCustomModal = allProps.isCustomModal, hideInput = allProps.hideInput, _visible = allProps.visible, _toggle = allProps.toggle, _value = allProps.value, onValueChange = allProps.onValueChange, formatDate = allProps.formatDate, debugName = allProps.debugName, _b = allProps.cancelButtonProps, cancelButtonProps = _b === void 0 ? {} : _b, _c = allProps.confirmButtonProps, confirmButtonProps = _c === void 0 ? {} : _c, outerInputComponent = allProps.outerInputComponent, footer = allProps.footer, _d = allProps.variants, variants = _d === void 0 ? [] : _d, _e = allProps.styles, styles = _e === void 0 ? {} : _e, datePickerProps = allProps.datePickerProps, mode = allProps.mode, label = allProps.label, commitDate = allProps.commitDate, description = allProps.description, showDoneButton = allProps.showDoneButton, style = allProps.style, minimumDate = allProps.minimumDate, maximumDate = allProps.maximumDate, footerComponent = allProps.footerComponent, toggleOnConfirm = allProps.toggleOnConfirm, _onConfirm = allProps.onConfirm, modalProps = __rest(allProps, ["isCustomModal", "hideInput", "visible", "toggle", "value", "onValueChange", "formatDate", "debugName", "cancelButtonProps", "confirmButtonProps", "outerInputComponent", "footer", "variants", "styles", "datePickerProps", "mode", "label", "commitDate", "description", "showDoneButton", "style", "minimumDate", "maximumDate", "footerComponent", "toggleOnConfirm", "onConfirm"]);
100
+ var variantStyles = (0, common_1.useDefaultComponentStyle)('u:DatePickerModal', {
101
+ variants: variants,
102
+ styles: styles,
103
+ rootElement: 'inputWrapper',
104
+ transform: react_native_1.StyleSheet.flatten,
105
+ });
106
+ var _f = !common_1.TypeGuards.isNil(_visible) && !!_toggle ? [_visible, _toggle] : (0, common_1.useBooleanToggle)(false), visible = _f[0], toggle = _f[1];
107
+ var _g = [_value, onValueChange], value = _g[0], setValue = _g[1];
108
+ //const [value, setValue] = _value && onValueChange ? [_value, onValueChange] : useState(_value ?? new Date())
109
+ var Wrapper = isCustomModal ? utils_1.ModalManager.Modal : react_1.default.Fragment;
110
+ var OuterInput = outerInputComponent;
111
+ var Footer = footerComponent;
112
+ var inputStyle = (0, common_1.useNestedStylesByKey)('input', variantStyles);
113
+ var doneStyle = (0, common_1.useNestedStylesByKey)('doneButton', variantStyles);
114
+ var cancelStyle = (0, common_1.useNestedStylesByKey)('cancelButton', variantStyles);
115
+ var confirmStyle = (0, common_1.useNestedStylesByKey)('confirmButton', variantStyles);
116
+ var formattedDate = value ? formatDate(value) : '';
117
+ var locale = (0, common_1.useI18N)().locale;
118
+ var tempDate = (0, react_1.useRef)(null);
119
+ var onConfirm = function () {
120
+ if (commitDate == 'onConfirm' && !!tempDate.current) {
121
+ setValue(tempDate.current);
122
+ }
123
+ if (isCustomModal && toggleOnConfirm) {
124
+ toggle();
125
+ }
126
+ if (common_1.TypeGuards.isFunction(_onConfirm)) {
127
+ _onConfirm === null || _onConfirm === void 0 ? void 0 : _onConfirm(tempDate.current);
128
+ }
129
+ };
130
+ var modalFooter = footer || <Footer {...allProps} confirm={onConfirm} styles={{
131
+ done: doneStyle,
132
+ cancel: cancelStyle,
133
+ confirm: confirmStyle,
134
+ }} confirmButtonProps={confirmButtonProps} cancelButtonProps={cancelButtonProps} showDoneButton={showDoneButton} value={value} debugName={debugName} visible={visible} toggle={toggle} onValueChange={setValue} valueLabel={formattedDate}/>;
135
+ var wrapperProps = isCustomModal ? __assign(__assign({ title: label, description: description, debugName: "".concat(debugName, " Modal"), visible: visible, toggle: toggle, styles: variantStyles, footer: modalFooter }, modalProps), { id: null }) : {};
136
+ return (<>
137
+ {!hideInput && <OuterInput {...allProps} styles={inputStyle} value={value} debugName={debugName} visible={visible} toggle={toggle} onValueChange={setValue} valueLabel={formattedDate} style={style}/>}
138
+ {/* @ts-expect-error */}
139
+ <Wrapper {...wrapperProps}>
140
+ <react_native_date_picker_1.default modal={!isCustomModal} open={visible} onCancel={toggle} date={value !== null && value !== void 0 ? value : new Date()} onDateChange={function (date) {
141
+ if (commitDate === 'onChange') {
142
+ setValue(date);
143
+ return;
144
+ }
145
+ tempDate.current = date;
146
+ }} locale={locale} theme={currentTheme === 'dark' ? 'dark' : 'light'} textColor={(_a = variantStyles === null || variantStyles === void 0 ? void 0 : variantStyles.picker) === null || _a === void 0 ? void 0 : _a.color} androidVariant='iosClone' onConfirm={setValue} minimumDate={minimumDate} maximumDate={maximumDate} {...datePickerProps} mode={mode}/>
147
+ </Wrapper>
148
+
149
+ </>);
150
+ };
151
+ exports.DatePickerModal = DatePickerModal;
152
+ exports.DatePickerModal.defaultProps = defaultProps;
153
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DatePickerModal/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAA;AA3JY,QAAA,eAAe,mBA2J3B;AAED,uBAAe,CAAC,YAAY,GAAG,YAAY,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ButtonComposition } from '../Button';
2
+ import { ModalComposition } from '../Modal';
3
+ import { TextInputComposition } from '../TextInput';
4
+ export type DatePickerModalComposition = ModalComposition | `input${Capitalize<TextInputComposition>}` | `picker` | `doneButton${Capitalize<ButtonComposition>}` | `confirmButton${Capitalize<ButtonComposition>}` | `cancelButton${Capitalize<ButtonComposition>}`;
5
+ export declare const DatePickerModalPresets: import("@codeleap/common").IncludePresetsReturn<(styles: any) => (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<DatePickerModalComposition, any>>>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DatePickerModalPresets = void 0;
4
+ var common_1 = require("@codeleap/common");
5
+ var createDatePickerModalStyle = (0, common_1.createDefaultVariantFactory)();
6
+ exports.DatePickerModalPresets = (0, common_1.includePresets)(function (styles) { return createDatePickerModalStyle(function () { return ({ inputWrapper: styles }); }); });
7
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/DatePickerModal/styles.ts"],"names":[],"mappings":";;;AAAA,2CAA8E;AAa9E,IAAM,0BAA0B,GAAG,IAAA,oCAA2B,GAA8B,CAAA;AAC/E,QAAA,sBAAsB,GAAG,IAAA,uBAAc,EAAC,UAAC,MAAM,IAAK,OAAA,0BAA0B,CAAC,cAAM,OAAA,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,EAA1B,CAA0B,CAAC,EAA5D,CAA4D,CAAC,CAAA"}
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import { ComponentVariants, StylesOf, FormTypes } from '@codeleap/common';
3
+ import { DatePickerModalComposition, DatePickerModalPresets } from './styles';
4
+ import { DatePickerProps } from 'react-native-date-picker';
5
+ import { TextInputComposition } from '../TextInput';
6
+ import { ButtonComposition, ButtonProps } from '../Button';
7
+ import { ModalProps } from '../Modal';
8
+ export type DatePickerModalOuterInputProps = Omit<DatePickerModalProps, 'outerInputComponent' | 'styles'> & {
9
+ valueLabel: FormTypes.Label;
10
+ styles?: StylesOf<TextInputComposition>;
11
+ };
12
+ type DatePickerModalFooterProps = Omit<DatePickerModalProps, 'outerInputComponent' | 'styles'> & {
13
+ valueLabel: FormTypes.Label;
14
+ styles?: Record<'confirm' | 'cancel' | 'done', StylesOf<ButtonComposition>>;
15
+ confirm: () => void;
16
+ };
17
+ export type DatePickerModalProps = Omit<ModalProps, 'styles' | 'variants' | 'ref'> & {
18
+ hideInput?: boolean;
19
+ debugName: string;
20
+ value: Date;
21
+ label?: FormTypes.Label;
22
+ placeholder?: FormTypes.Label;
23
+ onValueChange: (date: Date) => void;
24
+ styles?: StylesOf<DatePickerModalComposition>;
25
+ isCustomModal?: boolean;
26
+ mode?: DatePickerProps['mode'];
27
+ cancelButtonProps?: Partial<ButtonProps>;
28
+ confirmButtonProps?: Partial<ButtonProps>;
29
+ datePickerProps?: Partial<DatePickerProps>;
30
+ outerInputComponent?: React.ComponentType<DatePickerModalOuterInputProps>;
31
+ formatDate?: (date: Date) => FormTypes.Label;
32
+ commitDate?: 'onConfirm' | 'onChange';
33
+ showDoneButton?: boolean;
34
+ footerComponent?: React.ComponentType<DatePickerModalFooterProps>;
35
+ minimumDate?: DatePickerProps['minimumDate'];
36
+ maximumDate?: DatePickerProps['maximumDate'];
37
+ toggleOnConfirm?: boolean;
38
+ onConfirm?: (value: Date) => void;
39
+ } & ComponentVariants<typeof DatePickerModalPresets>;
40
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/DatePickerModal/types.ts"],"names":[],"mappings":""}
@@ -5,15 +5,15 @@ export declare const DrawerStyles: {
5
5
  popup: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
6
6
  fullscreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
7
7
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
8
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
9
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
10
8
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
9
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
11
10
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
12
11
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
13
12
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
14
13
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
15
14
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
16
15
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
16
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
17
17
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
18
18
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
19
19
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ModalComposition, any>>;
@@ -5,14 +5,14 @@ export declare const EmptyPlaceholderStyles: {
5
5
  compact: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
6
6
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
7
7
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
8
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
9
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
10
8
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
9
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
11
10
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
12
11
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
13
12
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
14
13
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
15
14
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
15
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
16
16
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
17
17
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
18
18
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
@@ -2,15 +2,15 @@ export declare type FileInputComposition = 'label' | 'wrapper' | 'input';
2
2
  export declare const FileInputStyles: {
3
3
  default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
4
4
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
5
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
6
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
7
5
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
6
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
8
7
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
9
8
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
10
9
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
11
10
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
12
11
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
13
12
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
13
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
14
14
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
15
15
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
16
16
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
@@ -3,15 +3,15 @@ export declare type GridComposition = ListComposition;
3
3
  export declare const GridStyles: {
4
4
  default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
5
5
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
6
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
7
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
8
6
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
7
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
9
8
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
10
9
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
11
10
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
12
11
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
13
12
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
14
13
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
14
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
15
15
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
16
16
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
17
17
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
@@ -10,15 +10,15 @@ export declare const IconStyles: {
10
10
  medium: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
11
11
  large: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
12
12
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
13
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
14
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
15
13
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
14
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
16
15
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
17
16
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
18
17
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
19
18
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
20
19
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
21
20
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
21
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
22
22
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
23
23
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
24
24
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"icon", any>>;
@@ -3,15 +3,15 @@ export declare const ImageStyles: {
3
3
  default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
4
4
  round: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
5
5
  fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
6
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
7
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
8
6
  hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
7
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
9
8
  flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
10
9
  row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
11
10
  column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
12
11
  wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
13
12
  absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
14
13
  relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
14
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
15
15
  inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
16
16
  block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
17
17
  inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ImageComposition, any>>;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { InputBaseProps } from './types';
3
+ export * from './styles';
4
+ export * from './utils';
5
+ export * from './types';
6
+ export declare const InputBaseDefaultOrder: InputBaseProps['order'];
7
+ export declare const InputBase: React.ForwardRefExoticComponent<{
8
+ label?: React.ReactNode;
9
+ error?: React.ReactNode;
10
+ leftIcon?: JSX.Element | Partial<Omit<{
11
+ iconProps?: Partial<import("../Icon").IconProps>;
12
+ icon?: "__ICON__";
13
+ name?: "__ICON__";
14
+ styles?: Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>> | Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>>[];
15
+ } & Omit<import("../Touchable").TouchableProps, "variants" | "styles"> & import("@codeleap/common").ComponentVariants<import("@codeleap/common").IncludePresetsReturn<(style: any) => (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>>>> & import("../Badge").BadgeComponentProps, "">>;
16
+ rightIcon?: JSX.Element | Partial<Omit<{
17
+ iconProps?: Partial<import("../Icon").IconProps>;
18
+ icon?: "__ICON__";
19
+ name?: "__ICON__";
20
+ styles?: Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>> | Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>>[];
21
+ } & Omit<import("../Touchable").TouchableProps, "variants" | "styles"> & import("@codeleap/common").ComponentVariants<import("@codeleap/common").IncludePresetsReturn<(style: any) => (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>>>> & import("../Badge").BadgeComponentProps, "">>;
22
+ wrapper?: React.FC<any>;
23
+ wrapperProps?: any;
24
+ innerWrapper?: React.FC<any>;
25
+ innerWrapperProps?: any;
26
+ styles?: Partial<Record<import("./styles").InputBaseComposition, any>>;
27
+ description?: React.ReactNode;
28
+ debugName: string;
29
+ focused?: boolean;
30
+ disabled?: boolean;
31
+ order?: ("label" | "error" | "description" | "innerWrapper")[];
32
+ style?: any;
33
+ labelAsRow?: boolean;
34
+ hideErrorMessage?: boolean;
35
+ } & {
36
+ children?: React.ReactNode;
37
+ } & React.RefAttributes<any>>;