@mapples/ui 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +297 -0
  2. package/dist/components/inputs/Button/Button.d.ts +44 -0
  3. package/dist/components/inputs/Button/Button.d.ts.map +1 -0
  4. package/dist/components/inputs/Button/Button.js +34 -0
  5. package/dist/components/inputs/Button/Button.js.map +1 -0
  6. package/dist/components/inputs/Button/index.d.ts +5 -0
  7. package/dist/components/inputs/Button/index.d.ts.map +1 -0
  8. package/dist/components/inputs/Button/index.js +5 -0
  9. package/dist/components/inputs/Button/index.js.map +1 -0
  10. package/dist/components/inputs/Button/schematics.d.ts +11 -0
  11. package/dist/components/inputs/Button/schematics.d.ts.map +1 -0
  12. package/dist/components/inputs/Button/schematics.js +14 -0
  13. package/dist/components/inputs/Button/schematics.js.map +1 -0
  14. package/dist/components/inputs/IconButton/IconButton.d.ts +62 -0
  15. package/dist/components/inputs/IconButton/IconButton.d.ts.map +1 -0
  16. package/dist/components/inputs/IconButton/IconButton.js +55 -0
  17. package/dist/components/inputs/IconButton/IconButton.js.map +1 -0
  18. package/dist/components/inputs/IconButton/MockIcon.d.ts +6 -0
  19. package/dist/components/inputs/IconButton/MockIcon.d.ts.map +1 -0
  20. package/dist/components/inputs/IconButton/MockIcon.js +9 -0
  21. package/dist/components/inputs/IconButton/MockIcon.js.map +1 -0
  22. package/dist/components/inputs/IconButton/index.d.ts +4 -0
  23. package/dist/components/inputs/IconButton/index.d.ts.map +1 -0
  24. package/dist/components/inputs/IconButton/index.js +4 -0
  25. package/dist/components/inputs/IconButton/index.js.map +1 -0
  26. package/dist/components/inputs/IconButton/schematics.d.ts +3 -0
  27. package/dist/components/inputs/IconButton/schematics.d.ts.map +1 -0
  28. package/dist/components/inputs/IconButton/schematics.js +6 -0
  29. package/dist/components/inputs/IconButton/schematics.js.map +1 -0
  30. package/dist/components/inputs/Pressable/Pressable.d.ts +9 -0
  31. package/dist/components/inputs/Pressable/Pressable.d.ts.map +1 -0
  32. package/dist/components/inputs/Pressable/Pressable.js +10 -0
  33. package/dist/components/inputs/Pressable/Pressable.js.map +1 -0
  34. package/dist/components/inputs/Pressable/index.d.ts +5 -0
  35. package/dist/components/inputs/Pressable/index.d.ts.map +1 -0
  36. package/dist/components/inputs/Pressable/index.js +5 -0
  37. package/dist/components/inputs/Pressable/index.js.map +1 -0
  38. package/dist/components/inputs/Pressable/schematics.d.ts +3 -0
  39. package/dist/components/inputs/Pressable/schematics.d.ts.map +1 -0
  40. package/dist/components/inputs/Pressable/schematics.js +6 -0
  41. package/dist/components/inputs/Pressable/schematics.js.map +1 -0
  42. package/dist/components/inputs/TextInput/TextInput.d.ts +32 -0
  43. package/dist/components/inputs/TextInput/TextInput.d.ts.map +1 -0
  44. package/dist/components/inputs/TextInput/TextInput.js +34 -0
  45. package/dist/components/inputs/TextInput/TextInput.js.map +1 -0
  46. package/dist/components/inputs/TextInput/index.d.ts +4 -0
  47. package/dist/components/inputs/TextInput/index.d.ts.map +1 -0
  48. package/dist/components/inputs/TextInput/index.js +4 -0
  49. package/dist/components/inputs/TextInput/index.js.map +1 -0
  50. package/dist/components/inputs/TextInput/schematics.d.ts +3 -0
  51. package/dist/components/inputs/TextInput/schematics.d.ts.map +1 -0
  52. package/dist/components/inputs/TextInput/schematics.js +6 -0
  53. package/dist/components/inputs/TextInput/schematics.js.map +1 -0
  54. package/dist/components/inputs/index.d.ts +10 -0
  55. package/dist/components/inputs/index.d.ts.map +1 -0
  56. package/dist/components/inputs/index.js +10 -0
  57. package/dist/components/inputs/index.js.map +1 -0
  58. package/dist/components/inputs/schematics.d.ts +3 -0
  59. package/dist/components/inputs/schematics.d.ts.map +1 -0
  60. package/dist/components/inputs/schematics.js +11 -0
  61. package/dist/components/inputs/schematics.js.map +1 -0
  62. package/dist/components/media/Icon/Icon.d.ts +21 -0
  63. package/dist/components/media/Icon/Icon.d.ts.map +1 -0
  64. package/dist/components/media/Icon/Icon.js +25 -0
  65. package/dist/components/media/Icon/Icon.js.map +1 -0
  66. package/dist/components/media/Icon/MockIcon.d.ts +6 -0
  67. package/dist/components/media/Icon/MockIcon.d.ts.map +1 -0
  68. package/dist/components/media/Icon/MockIcon.js +9 -0
  69. package/dist/components/media/Icon/MockIcon.js.map +1 -0
  70. package/dist/components/media/Icon/index.d.ts +4 -0
  71. package/dist/components/media/Icon/index.d.ts.map +1 -0
  72. package/dist/components/media/Icon/index.js +4 -0
  73. package/dist/components/media/Icon/index.js.map +1 -0
  74. package/dist/components/media/Icon/schematics.d.ts +3 -0
  75. package/dist/components/media/Icon/schematics.d.ts.map +1 -0
  76. package/dist/components/media/Icon/schematics.js +6 -0
  77. package/dist/components/media/Icon/schematics.js.map +1 -0
  78. package/dist/components/media/Image/Image.d.ts +58 -0
  79. package/dist/components/media/Image/Image.d.ts.map +1 -0
  80. package/dist/components/media/Image/Image.js +40 -0
  81. package/dist/components/media/Image/Image.js.map +1 -0
  82. package/dist/components/media/Image/index.d.ts +4 -0
  83. package/dist/components/media/Image/index.d.ts.map +1 -0
  84. package/dist/components/media/Image/index.js +4 -0
  85. package/dist/components/media/Image/index.js.map +1 -0
  86. package/dist/components/media/Image/schematics.d.ts +3 -0
  87. package/dist/components/media/Image/schematics.d.ts.map +1 -0
  88. package/dist/components/media/Image/schematics.js +6 -0
  89. package/dist/components/media/Image/schematics.js.map +1 -0
  90. package/dist/components/media/Video/Video.d.ts +28 -0
  91. package/dist/components/media/Video/Video.d.ts.map +1 -0
  92. package/dist/components/media/Video/Video.js +26 -0
  93. package/dist/components/media/Video/Video.js.map +1 -0
  94. package/dist/components/media/Video/index.d.ts +4 -0
  95. package/dist/components/media/Video/index.d.ts.map +1 -0
  96. package/dist/components/media/Video/index.js +4 -0
  97. package/dist/components/media/Video/index.js.map +1 -0
  98. package/dist/components/media/Video/schematics.d.ts +3 -0
  99. package/dist/components/media/Video/schematics.d.ts.map +1 -0
  100. package/dist/components/media/Video/schematics.js +6 -0
  101. package/dist/components/media/Video/schematics.js.map +1 -0
  102. package/dist/components/media/index.d.ts +8 -0
  103. package/dist/components/media/index.d.ts.map +1 -0
  104. package/dist/components/media/index.js +8 -0
  105. package/dist/components/media/index.js.map +1 -0
  106. package/dist/components/media/schematics.d.ts +3 -0
  107. package/dist/components/media/schematics.d.ts.map +1 -0
  108. package/dist/components/media/schematics.js +9 -0
  109. package/dist/components/media/schematics.js.map +1 -0
  110. package/dist/components/typography/Text/Text.d.ts +52 -0
  111. package/dist/components/typography/Text/Text.d.ts.map +1 -0
  112. package/dist/components/typography/Text/Text.js +41 -0
  113. package/dist/components/typography/Text/Text.js.map +1 -0
  114. package/dist/components/typography/Text/index.d.ts +4 -0
  115. package/dist/components/typography/Text/index.d.ts.map +1 -0
  116. package/dist/components/typography/Text/index.js +4 -0
  117. package/dist/components/typography/Text/index.js.map +1 -0
  118. package/dist/components/typography/Text/schematics.d.ts +3 -0
  119. package/dist/components/typography/Text/schematics.d.ts.map +1 -0
  120. package/dist/components/typography/Text/schematics.js +6 -0
  121. package/dist/components/typography/Text/schematics.js.map +1 -0
  122. package/dist/components/typography/Typography/Typography.d.ts +15 -0
  123. package/dist/components/typography/Typography/Typography.d.ts.map +1 -0
  124. package/dist/components/typography/Typography/Typography.js +11 -0
  125. package/dist/components/typography/Typography/Typography.js.map +1 -0
  126. package/dist/components/typography/Typography/index.d.ts +4 -0
  127. package/dist/components/typography/Typography/index.d.ts.map +1 -0
  128. package/dist/components/typography/Typography/index.js +4 -0
  129. package/dist/components/typography/Typography/index.js.map +1 -0
  130. package/dist/components/typography/Typography/schematics.d.ts +3 -0
  131. package/dist/components/typography/Typography/schematics.d.ts.map +1 -0
  132. package/dist/components/typography/Typography/schematics.js +6 -0
  133. package/dist/components/typography/Typography/schematics.js.map +1 -0
  134. package/dist/components/typography/index.d.ts +6 -0
  135. package/dist/components/typography/index.d.ts.map +1 -0
  136. package/dist/components/typography/index.js +6 -0
  137. package/dist/components/typography/index.js.map +1 -0
  138. package/dist/components/typography/schematics.d.ts +3 -0
  139. package/dist/components/typography/schematics.d.ts.map +1 -0
  140. package/dist/components/typography/schematics.js +7 -0
  141. package/dist/components/typography/schematics.js.map +1 -0
  142. package/dist/components/views/FlatList/FlatList.d.ts +16 -0
  143. package/dist/components/views/FlatList/FlatList.d.ts.map +1 -0
  144. package/dist/components/views/FlatList/FlatList.js +23 -0
  145. package/dist/components/views/FlatList/FlatList.js.map +1 -0
  146. package/dist/components/views/FlatList/index.d.ts +4 -0
  147. package/dist/components/views/FlatList/index.d.ts.map +1 -0
  148. package/dist/components/views/FlatList/index.js +4 -0
  149. package/dist/components/views/FlatList/index.js.map +1 -0
  150. package/dist/components/views/FlatList/schematics.d.ts +6 -0
  151. package/dist/components/views/FlatList/schematics.d.ts.map +1 -0
  152. package/dist/components/views/FlatList/schematics.js +18 -0
  153. package/dist/components/views/FlatList/schematics.js.map +1 -0
  154. package/dist/components/views/ImageBackgroundView/ImageBackgroundView.d.ts +22 -0
  155. package/dist/components/views/ImageBackgroundView/ImageBackgroundView.d.ts.map +1 -0
  156. package/dist/components/views/ImageBackgroundView/ImageBackgroundView.js +25 -0
  157. package/dist/components/views/ImageBackgroundView/ImageBackgroundView.js.map +1 -0
  158. package/dist/components/views/ImageBackgroundView/index.d.ts +4 -0
  159. package/dist/components/views/ImageBackgroundView/index.d.ts.map +1 -0
  160. package/dist/components/views/ImageBackgroundView/index.js +4 -0
  161. package/dist/components/views/ImageBackgroundView/index.js.map +1 -0
  162. package/dist/components/views/ImageBackgroundView/schematics.d.ts +3 -0
  163. package/dist/components/views/ImageBackgroundView/schematics.d.ts.map +1 -0
  164. package/dist/components/views/ImageBackgroundView/schematics.js +6 -0
  165. package/dist/components/views/ImageBackgroundView/schematics.js.map +1 -0
  166. package/dist/components/views/SafeAreaView/SafeAreaView.d.ts +11 -0
  167. package/dist/components/views/SafeAreaView/SafeAreaView.d.ts.map +1 -0
  168. package/dist/components/views/SafeAreaView/SafeAreaView.js +10 -0
  169. package/dist/components/views/SafeAreaView/SafeAreaView.js.map +1 -0
  170. package/dist/components/views/SafeAreaView/index.d.ts +4 -0
  171. package/dist/components/views/SafeAreaView/index.d.ts.map +1 -0
  172. package/dist/components/views/SafeAreaView/index.js +4 -0
  173. package/dist/components/views/SafeAreaView/index.js.map +1 -0
  174. package/dist/components/views/SafeAreaView/schematics.d.ts +3 -0
  175. package/dist/components/views/SafeAreaView/schematics.d.ts.map +1 -0
  176. package/dist/components/views/SafeAreaView/schematics.js +6 -0
  177. package/dist/components/views/SafeAreaView/schematics.js.map +1 -0
  178. package/dist/components/views/ScrollView/ScrollView.d.ts +40 -0
  179. package/dist/components/views/ScrollView/ScrollView.d.ts.map +1 -0
  180. package/dist/components/views/ScrollView/ScrollView.js +34 -0
  181. package/dist/components/views/ScrollView/ScrollView.js.map +1 -0
  182. package/dist/components/views/ScrollView/index.d.ts +4 -0
  183. package/dist/components/views/ScrollView/index.d.ts.map +1 -0
  184. package/dist/components/views/ScrollView/index.js +4 -0
  185. package/dist/components/views/ScrollView/index.js.map +1 -0
  186. package/dist/components/views/ScrollView/schematics.d.ts +4 -0
  187. package/dist/components/views/ScrollView/schematics.d.ts.map +1 -0
  188. package/dist/components/views/ScrollView/schematics.js +10 -0
  189. package/dist/components/views/ScrollView/schematics.js.map +1 -0
  190. package/dist/components/views/View/View.d.ts +40 -0
  191. package/dist/components/views/View/View.d.ts.map +1 -0
  192. package/dist/components/views/View/View.js +34 -0
  193. package/dist/components/views/View/View.js.map +1 -0
  194. package/dist/components/views/View/index.d.ts +4 -0
  195. package/dist/components/views/View/index.d.ts.map +1 -0
  196. package/dist/components/views/View/index.js +4 -0
  197. package/dist/components/views/View/index.js.map +1 -0
  198. package/dist/components/views/View/schematics.d.ts +4 -0
  199. package/dist/components/views/View/schematics.d.ts.map +1 -0
  200. package/dist/components/views/View/schematics.js +10 -0
  201. package/dist/components/views/View/schematics.js.map +1 -0
  202. package/dist/components/views/index.d.ts +12 -0
  203. package/dist/components/views/index.d.ts.map +1 -0
  204. package/dist/components/views/index.js +12 -0
  205. package/dist/components/views/index.js.map +1 -0
  206. package/dist/components/views/schematics.d.ts +18 -0
  207. package/dist/components/views/schematics.d.ts.map +1 -0
  208. package/dist/components/views/schematics.js +18 -0
  209. package/dist/components/views/schematics.js.map +1 -0
  210. package/dist/index.d.ts +15 -0
  211. package/dist/index.d.ts.map +1 -0
  212. package/dist/index.js +15 -0
  213. package/dist/index.js.map +1 -0
  214. package/dist/schematics.d.ts +20 -0
  215. package/dist/schematics.d.ts.map +1 -0
  216. package/dist/schematics.js +27 -0
  217. package/dist/schematics.js.map +1 -0
  218. package/package.json +36 -0
@@ -0,0 +1,8 @@
1
+ export { default as Video } from './Video';
2
+ export * from './Video';
3
+ export { default as Image } from './Image';
4
+ export * from './Image';
5
+ export { default as Icon } from './Icon';
6
+ export * from './Icon';
7
+ export * from './schematics';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/media/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { RegisteredComponents } from '@mapples/types';
2
+ export declare const MediaSchematics: RegisteredComponents;
3
+ //# sourceMappingURL=schematics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../src/components/media/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAMtD,eAAO,MAAM,eAAe,EAAE,oBAI7B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { IconSchematics } from './Icon';
2
+ import { ImageSchematic } from './Image';
3
+ import { VideoSchematic } from './Video';
4
+ export const MediaSchematics = {
5
+ [VideoSchematic.type]: VideoSchematic,
6
+ [ImageSchematic.type]: ImageSchematic,
7
+ [IconSchematics.type]: IconSchematics,
8
+ };
9
+ //# sourceMappingURL=schematics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../src/components/media/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAyB;IACnD,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc;IACrC,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc;IACrC,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc;CACtC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { WithStyledProps } from '@mapples/style';
3
+ import { TextProps as RNTextProps } from 'react-native';
4
+ /**
5
+ * Props for the Text component.
6
+ *
7
+ * @public
8
+ */
9
+ export type TextProps = PropsWithChildren<WithStyledProps<RNTextProps> & {
10
+ /** The text content to display */
11
+ text?: string;
12
+ }>;
13
+ /**
14
+ * A customizable text component with built-in styling support.
15
+ *
16
+ * The Text component extends React Native's Text with additional styling
17
+ * capabilities through the @mapples/style system. It can display text content
18
+ * either through the `text` prop or as children.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * <Text
23
+ * text="Hello World"
24
+ * styled={{
25
+ * style: {
26
+ * fontSize: 18,
27
+ * color: 'blue',
28
+ * fontWeight: 'bold'
29
+ * }
30
+ * }}
31
+ * />
32
+ * ```
33
+ *
34
+ * @example
35
+ * ```tsx
36
+ * <Text styled={{ style: { fontSize: 16, color: 'black' } }}>
37
+ * This is text content as children
38
+ * </Text>
39
+ * ```
40
+ *
41
+ * @public
42
+ */
43
+ declare const Text: import("react").ForwardRefExoticComponent<{
44
+ styled?: import("@mapples/style").StyledProps<Partial<RNTextProps>> | undefined;
45
+ } & RNTextProps & {
46
+ /** The text content to display */
47
+ text?: string;
48
+ } & {
49
+ children?: import("react").ReactNode | undefined;
50
+ } & import("react").RefAttributes<unknown>>;
51
+ export default Text;
52
+ //# sourceMappingURL=Text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAc,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,iBAAiB,CACvC,eAAe,CAAC,WAAW,CAAC,GAAG;IAC7B,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,QAAA,MAAM,IAAI;;;IAnCN,kCAAkC;WAC3B,MAAM;;;2CA0ChB,CAAC;AAGF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { forwardRef } from 'react';
2
+ import { StyledText } from '@mapples/style';
3
+ import { isNumber, isString } from 'lodash';
4
+ /**
5
+ * A customizable text component with built-in styling support.
6
+ *
7
+ * The Text component extends React Native's Text with additional styling
8
+ * capabilities through the @mapples/style system. It can display text content
9
+ * either through the `text` prop or as children.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <Text
14
+ * text="Hello World"
15
+ * styled={{
16
+ * style: {
17
+ * fontSize: 18,
18
+ * color: 'blue',
19
+ * fontWeight: 'bold'
20
+ * }
21
+ * }}
22
+ * />
23
+ * ```
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * <Text styled={{ style: { fontSize: 16, color: 'black' } }}>
28
+ * This is text content as children
29
+ * </Text>
30
+ * ```
31
+ *
32
+ * @public
33
+ */
34
+ const Text = forwardRef(({ styled, children, text, ...props }, ref) => {
35
+ return (<StyledText ref={ref} styled={{ ...styled }} {...props}>
36
+ {isString(text) || isNumber(text) ? text.toString() : 'Not a string'}
37
+ </StyledText>);
38
+ });
39
+ Text.displayName = 'Text';
40
+ export default Text;
41
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/components/typography/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAe5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,IAAI,GAAG,UAAU,CACrB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAa,EAAE,GAAG,EAAE,EAAE;IACvD,OAAO,CACL,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,IAAI,KAAK,CAAC,CACrD;QAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,cAAc,CACtE;MAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AACF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;AAE1B,eAAe,IAAI,CAAC"}
@@ -0,0 +1,4 @@
1
+ import Text from './Text';
2
+ export * from './schematics';
3
+ export default Text;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,cAAc,cAAc,CAAC;AAE7B,eAAe,IAAI,CAAC"}
@@ -0,0 +1,4 @@
1
+ import Text from './Text';
2
+ export * from './schematics';
3
+ export default Text;
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/typography/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,cAAc,cAAc,CAAC;AAE7B,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { RegisteredComponent } from '@mapples/types';
2
+ export declare const TextSchematic: RegisteredComponent;
3
+ //# sourceMappingURL=schematics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Text/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,eAAO,MAAM,aAAa,EAAE,mBAG3B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import Text from './Text';
2
+ export const TextSchematic = {
3
+ type: 'Text',
4
+ Component: Text,
5
+ };
6
+ //# sourceMappingURL=schematics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/typography/Text/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,aAAa,GAAwB;IAChD,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,IAAI;CAChB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { WithStyledProps } from '@mapples/style';
3
+ import { TextProps as RNTextProps, Text } from 'react-native';
4
+ export type TextProps = PropsWithChildren<WithStyledProps<RNTextProps> & {
5
+ text?: string;
6
+ }>;
7
+ declare const Typography: import("react").ForwardRefExoticComponent<{
8
+ styled?: import("@mapples/style").StyledProps<Partial<RNTextProps>> | undefined;
9
+ } & RNTextProps & {
10
+ text?: string;
11
+ } & {
12
+ children?: import("react").ReactNode | undefined;
13
+ } & import("react").RefAttributes<Text>>;
14
+ export default Typography;
15
+ //# sourceMappingURL=Typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EACL,eAAe,EAEhB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,MAAM,SAAS,GAAG,iBAAiB,CACvC,eAAe,CAAC,WAAW,CAAC,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CACF,CAAC;AAEF,QAAA,MAAM,UAAU;;;WAJL,MAAM;;;wCAiBhB,CAAC;AAGF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { forwardRef } from 'react';
2
+ import { Typography as StyledTypography, } from '@mapples/style';
3
+ import { isNumber, isString } from 'lodash';
4
+ const Typography = forwardRef(({ styled, children, text, ...props }, ref) => {
5
+ return (<StyledTypography ref={ref} style={styled?.style} styled={styled} {...props}>
6
+ {isString(text) || isNumber(text) ? text.toString() : 'Not a string'}
7
+ </StyledTypography>);
8
+ });
9
+ Typography.displayName = 'Text';
10
+ export default Typography;
11
+ //# sourceMappingURL=Typography.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../../src/components/typography/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,OAAO,CAAC;AAEtD,OAAO,EAEL,UAAU,IAAI,gBAAgB,GAC/B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAS5C,MAAM,UAAU,GAAG,UAAU,CAC3B,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC5C,OAAO,CACL,CAAC,gBAAgB,CACf,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,KAAK,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CACrB,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,IAAI,KAAK,CAAC,CAEV;QAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,cAAc,CACtE;MAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,MAAM,CAAC;AAEhC,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import Typography from './Typography';
2
+ export * from './schematics';
3
+ export default Typography;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,cAAc,cAAc,CAAC;AAE7B,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import Typography from './Typography';
2
+ export * from './schematics';
3
+ export default Typography;
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/typography/Typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,cAAc,cAAc,CAAC;AAE7B,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { RegisteredComponent } from '@mapples/types';
2
+ export declare const TypographyComponentSchematics: RegisteredComponent;
3
+ //# sourceMappingURL=schematics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/Typography/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,eAAO,MAAM,6BAA6B,EAAE,mBAG3C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import Typography from './Typography';
2
+ export const TypographyComponentSchematics = {
3
+ type: 'Typography',
4
+ Component: Typography,
5
+ };
6
+ //# sourceMappingURL=schematics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/typography/Typography/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,6BAA6B,GAAwB;IAChE,IAAI,EAAE,YAAY;IAClB,SAAS,EAAE,UAAU;CACtB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { default as Text } from './Text';
2
+ export * from './Text';
3
+ export { default as Typography } from './Typography';
4
+ export * from './Typography';
5
+ export * from './schematics';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,cAAc,CAAC;AAE7B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { default as Text } from './Text';
2
+ export * from './Text';
3
+ export { default as Typography } from './Typography';
4
+ export * from './Typography';
5
+ export * from './schematics';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,cAAc,cAAc,CAAC;AAE7B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { RegisteredComponents } from '@mapples/types';
2
+ export declare const TypographySchematics: RegisteredComponents;
3
+ //# sourceMappingURL=schematics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../src/components/typography/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAKtD,eAAO,MAAM,oBAAoB,EAAE,oBAGlC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TextSchematic } from './Text';
2
+ import { TypographyComponentSchematics } from './Typography';
3
+ export const TypographySchematics = {
4
+ [TextSchematic.type]: TextSchematic,
5
+ [TypographyComponentSchematics.type]: TypographyComponentSchematics,
6
+ };
7
+ //# sourceMappingURL=schematics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../src/components/typography/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAE7D,MAAM,CAAC,MAAM,oBAAoB,GAAyB;IACxD,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,aAAa;IACnC,CAAC,6BAA6B,CAAC,IAAI,CAAC,EAAE,6BAA6B;CACpE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { ReactElement, Ref } from 'react';
2
+ import { StyledProp } from '@mapples/style';
3
+ import type { StyledFlatListProps } from '@mapples/style/src/components/StyledFlatList';
4
+ import type { View as RNView, ViewStyle } from 'react-native';
5
+ export type FlatListProps<T extends object> = Omit<StyledFlatListProps<T>, 'styled'> & {
6
+ styled?: {
7
+ style?: StyledProp<ViewStyle>;
8
+ styleList?: StyledProp<ViewStyle>;
9
+ contentContainerStyle?: StyledProp<ViewStyle>;
10
+ };
11
+ };
12
+ declare const FlatListExport: <T extends object>(props: FlatListProps<T> & {
13
+ ref?: Ref<RNView>;
14
+ }) => ReactElement;
15
+ export default FlatListExport;
16
+ //# sourceMappingURL=FlatList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../src/components/views/FlatList/FlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAkB,UAAU,EAAc,MAAM,gBAAgB,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,KAAK,EAAkB,IAAI,IAAI,MAAM,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9E,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAChD,mBAAmB,CAAC,CAAC,CAAC,EACtB,QAAQ,CACT,GAAG;IACF,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;QAC9B,SAAS,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;QAClC,qBAAqB,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;KAC/C,CAAC;CACH,CAAC;AAmCF,QAAA,MAAM,cAAc,EAAwB,CAAC,CAAC,SAAS,MAAM,EAC3D,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAAE,KAC5C,YAAY,CAAC;AAElB,eAAe,cAAc,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { forwardRef, Fragment } from 'react';
2
+ import StateProvider from '@mapples/state';
3
+ import { StyledFlatList, StyledView } from '@mapples/style';
4
+ const FlatListComponent = forwardRef(({ styled, children, ...props }, ref) => {
5
+ const containerStyled = { style: styled?.style };
6
+ const listStyled = {
7
+ style: styled?.styleList,
8
+ contentContainerStyle: styled?.contentContainerStyle,
9
+ columnWrapperStyle: styled?.columnWrapperStyle,
10
+ };
11
+ const renderItem = ({ item }) => {
12
+ return (<Fragment>
13
+ <StateProvider state={item}>{children}</StateProvider>
14
+ </Fragment>);
15
+ };
16
+ return (<StyledView ref={ref} styled={containerStyled}>
17
+ <StyledFlatList {...props} renderItem={renderItem} styled={listStyled}/>
18
+ </StyledView>);
19
+ });
20
+ FlatListComponent.displayName = 'FlatList';
21
+ const FlatListExport = FlatListComponent;
22
+ export default FlatListExport;
23
+ //# sourceMappingURL=FlatList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlatList.js","sourceRoot":"","sources":["../../../../src/components/views/FlatList/FlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAqB,MAAM,OAAO,CAAC;AAEhE,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAc,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAexE,MAAM,iBAAiB,GAAG,UAAU,CAClC,CACE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAoB,EAChD,GAAgB,EAChB,EAAE;IACF,MAAM,eAAe,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAS,CAAC;IACxD,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM,EAAE,SAAS;QACxB,qBAAqB,EAAE,MAAM,EAAE,qBAAqB;QACpD,kBAAkB,EAAG,MAAc,EAAE,kBAAkB;KACjD,CAAC;IAET,MAAM,UAAU,GAAwB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACnD,OAAO,CACL,CAAC,QAAQ,CACP;UAAA,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,aAAa,CACvD;QAAA,EAAE,QAAQ,CAAC,CACZ,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAC5C;QAAA,CAAC,cAAc,CACb,IAAK,KAAa,CAAC,CACnB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,MAAM,CAAC,CAAC,UAAU,CAAC,EAEvB;MAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AACF,iBAAiB,CAAC,WAAW,GAAG,UAAU,CAAC;AAE3C,MAAM,cAAc,GAAG,iBAEN,CAAC;AAElB,eAAe,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import FlatList from './FlatList';
2
+ export * from './schematics';
3
+ export default FlatList;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/views/FlatList/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,cAAc,cAAc,CAAC;AAE7B,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import FlatList from './FlatList';
2
+ export * from './schematics';
3
+ export default FlatList;
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/views/FlatList/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,cAAc,cAAc,CAAC;AAE7B,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { RegisteredComponent } from '@mapples/types';
2
+ export declare const FlatListSchematic: RegisteredComponent;
3
+ export declare const GridTwoColumnsSchematic: RegisteredComponent;
4
+ export declare const GridThreeColumnsSchematic: RegisteredComponent;
5
+ export declare const GridFourColumnsSchematic: RegisteredComponent;
6
+ //# sourceMappingURL=schematics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/views/FlatList/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,eAAO,MAAM,iBAAiB,EAAE,mBAG/B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,mBAGrC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,mBAGvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,mBAGtC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import FlatList from './FlatList';
2
+ export const FlatListSchematic = {
3
+ type: 'FlatList',
4
+ Component: FlatList,
5
+ };
6
+ export const GridTwoColumnsSchematic = {
7
+ ...FlatListSchematic,
8
+ type: 'GridTwoColumns',
9
+ };
10
+ export const GridThreeColumnsSchematic = {
11
+ ...FlatListSchematic,
12
+ type: 'GridThreeColumns',
13
+ };
14
+ export const GridFourColumnsSchematic = {
15
+ ...FlatListSchematic,
16
+ type: 'GridFourColumns',
17
+ };
18
+ //# sourceMappingURL=schematics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/views/FlatList/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,MAAM,CAAC,MAAM,iBAAiB,GAAwB;IACpD,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,QAA0B;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAwB;IAC1D,GAAG,iBAAiB;IACpB,IAAI,EAAE,gBAAgB;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAwB;IAC5D,GAAG,iBAAiB;IACpB,IAAI,EAAE,kBAAkB;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAwB;IAC3D,GAAG,iBAAiB;IACpB,IAAI,EAAE,iBAAiB;CACxB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { StyledProp, StyledProps, WithStyledProps } from '@mapples/style';
3
+ import { ImageProps as ExpoImageProps } from 'expo-image';
4
+ import { ImageStyle, ViewProps, ViewStyle } from 'react-native';
5
+ export type ImageProps = PropsWithChildren<Omit<WithStyledProps<ExpoImageProps>, 'styled'> & {
6
+ styled?: StyledProps<ViewProps> & {
7
+ styleImage?: StyledProp<ImageStyle>;
8
+ styleContent?: StyledProp<ViewStyle>;
9
+ };
10
+ dataSource?: string;
11
+ }>;
12
+ declare const ImageBackgroundView: import("react").ForwardRefExoticComponent<Omit<WithStyledProps<ExpoImageProps>, "styled"> & {
13
+ styled?: StyledProps<ViewProps> & {
14
+ styleImage?: StyledProp<ImageStyle>;
15
+ styleContent?: StyledProp<ViewStyle>;
16
+ };
17
+ dataSource?: string;
18
+ } & {
19
+ children?: import("react").ReactNode | undefined;
20
+ } & import("react").RefAttributes<unknown>>;
21
+ export default ImageBackgroundView;
22
+ //# sourceMappingURL=ImageBackgroundView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageBackgroundView.d.ts","sourceRoot":"","sources":["../../../../src/components/views/ImageBackgroundView/ImageBackgroundView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAEL,UAAU,EACV,WAAW,EAGX,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAsB,UAAU,IAAI,cAAc,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,UAAU,GAAG,iBAAiB,CACxC,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,GAAG;IAChD,MAAM,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG;QAChC,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;QACpC,YAAY,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;KACtC,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CACF,CAAC;AAIF,QAAA,MAAM,mBAAmB;aAVZ,WAAW,CAAC,SAAS,CAAC,GAAG;QAChC,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;QACpC,YAAY,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;KACtC;iBACY,MAAM;;;2CAwBtB,CAAC;AAcF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { forwardRef } from 'react';
2
+ import { styled, StyledView, Styler, } from '@mapples/style';
3
+ import { Image as ExpoImage } from 'expo-image';
4
+ const StyledExpoImage = styled(ExpoImage);
5
+ const ImageBackgroundView = forwardRef(({ styled, source, alt, children, dataSource, ...props }, ref) => {
6
+ const { styleImage, styleContent, ...styledProps } = styled || {};
7
+ return (<StyledView ref={ref} styled={styledProps} {...props}>
8
+ <StyledExpoImage source={dataSource || source} alt={alt} styled={{ style: [imageConstantStyles.image, styleImage] }}/>
9
+ <StyledView styled={{ style: styleContent }}>{children}</StyledView>
10
+ </StyledView>);
11
+ });
12
+ ImageBackgroundView.displayName = 'ImageBackgroundView';
13
+ const imageConstantStyles = Styler.create({
14
+ image: {
15
+ position: 'absolute',
16
+ top: 0,
17
+ left: 0,
18
+ right: 0,
19
+ bottom: 0,
20
+ width: '100%',
21
+ height: '100%',
22
+ },
23
+ });
24
+ export default ImageBackgroundView;
25
+ //# sourceMappingURL=ImageBackgroundView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageBackgroundView.js","sourceRoot":"","sources":["../../../../src/components/views/ImageBackgroundView/ImageBackgroundView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,OAAO,CAAC;AAEtD,OAAO,EACL,MAAM,EAGN,UAAU,EACV,MAAM,GAEP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,IAAI,SAAS,EAAgC,MAAM,YAAY,CAAC;AAa9E,MAAM,eAAe,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAE1C,MAAM,mBAAmB,GAAG,UAAU,CACpC,CACE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,EAAc,EACnE,GAAG,EACH,EAAE;IACF,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;IAElE,OAAO,CACL,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CACnD;QAAA,CAAC,eAAe,CACd,MAAM,CAAC,CAAC,UAAU,IAAI,MAAM,CAAC,CAC7B,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC,EAE7D;QAAA,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,CACrE;MAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AACF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AACxD,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE;QACL,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;CACF,CAAC,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import ImageBackgroundView from './ImageBackgroundView';
2
+ export * from './schematics';
3
+ export default ImageBackgroundView;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/views/ImageBackgroundView/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,cAAc,cAAc,CAAC;AAE7B,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import ImageBackgroundView from './ImageBackgroundView';
2
+ export * from './schematics';
3
+ export default ImageBackgroundView;
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/views/ImageBackgroundView/index.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,cAAc,cAAc,CAAC;AAE7B,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { RegisteredComponent } from '@mapples/types';
2
+ export declare const ImageBackgroundViewSchematics: RegisteredComponent;
3
+ //# sourceMappingURL=schematics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/views/ImageBackgroundView/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,eAAO,MAAM,6BAA6B,EAAE,mBAG3C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import ImageBackgroundView from './ImageBackgroundView';
2
+ export const ImageBackgroundViewSchematics = {
3
+ type: 'ImageBackgroundView',
4
+ Component: ImageBackgroundView,
5
+ };
6
+ //# sourceMappingURL=schematics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/views/ImageBackgroundView/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,MAAM,6BAA6B,GAAwB;IAChE,IAAI,EAAE,qBAAqB;IAC3B,SAAS,EAAE,mBAAmB;CAC/B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { WithStyledProps } from '@mapples/style';
3
+ import { SafeAreaViewProps as RNSafeAreaViewProps } from 'react-native-safe-area-context';
4
+ export type SafeAreaViewProps = PropsWithChildren<WithStyledProps<RNSafeAreaViewProps>>;
5
+ declare const SafeAreaView: import("react").ForwardRefExoticComponent<{
6
+ styled?: import("@mapples/style").StyledProps<Partial<import("react-native-safe-area-context").NativeSafeAreaViewProps>> | undefined;
7
+ } & import("react-native-safe-area-context").NativeSafeAreaViewProps & {
8
+ children?: import("react").ReactNode | undefined;
9
+ } & import("react").RefAttributes<unknown>>;
10
+ export default SafeAreaView;
11
+ //# sourceMappingURL=SafeAreaView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeAreaView.d.ts","sourceRoot":"","sources":["../../../../src/components/views/SafeAreaView/SafeAreaView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAsB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,iBAAiB,IAAI,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1F,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAC/C,eAAe,CAAC,mBAAmB,CAAC,CACrC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;2CAQjB,CAAC;AAGF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { forwardRef } from 'react';
2
+ import { StyledSafeAreaView } from '@mapples/style';
3
+ const SafeAreaView = forwardRef(({ styled, children, ...props }, ref) => {
4
+ return (<StyledSafeAreaView ref={ref} styled={{ ...styled }} {...props}>
5
+ {children}
6
+ </StyledSafeAreaView>);
7
+ });
8
+ SafeAreaView.displayName = 'SafeAreaView';
9
+ export default SafeAreaView;
10
+ //# sourceMappingURL=SafeAreaView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SafeAreaView.js","sourceRoot":"","sources":["../../../../src/components/views/SafeAreaView/SafeAreaView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAmB,MAAM,gBAAgB,CAAC;AAOrE,MAAM,YAAY,GAAG,UAAU,CAC7B,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAqB,EAAE,GAAG,EAAE,EAAE;IACzD,OAAO,CACL,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,IAAI,KAAK,CAAC,CAC7D;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,kBAAkB,CAAC,CACtB,CAAC;AACJ,CAAC,CACF,CAAC;AACF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,eAAe,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ import SafeAreaView from './SafeAreaView';
2
+ export * from './schematics';
3
+ export default SafeAreaView;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/views/SafeAreaView/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,cAAc,cAAc,CAAC;AAE7B,eAAe,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ import SafeAreaView from './SafeAreaView';
2
+ export * from './schematics';
3
+ export default SafeAreaView;
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/views/SafeAreaView/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,cAAc,cAAc,CAAC;AAE7B,eAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { RegisteredComponent } from '@mapples/types';
2
+ export declare const SafeAreaViewSchematic: RegisteredComponent;
3
+ //# sourceMappingURL=schematics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/views/SafeAreaView/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,eAAO,MAAM,qBAAqB,EAAE,mBAGnC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import SafeAreaView from './SafeAreaView';
2
+ export const SafeAreaViewSchematic = {
3
+ type: 'SafeAreaView',
4
+ Component: SafeAreaView,
5
+ };
6
+ //# sourceMappingURL=schematics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/views/SafeAreaView/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACxD,IAAI,EAAE,cAAc;IACpB,SAAS,EAAE,YAAY;CACxB,CAAC"}