@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.
- package/README.md +297 -0
- package/dist/components/inputs/Button/Button.d.ts +44 -0
- package/dist/components/inputs/Button/Button.d.ts.map +1 -0
- package/dist/components/inputs/Button/Button.js +34 -0
- package/dist/components/inputs/Button/Button.js.map +1 -0
- package/dist/components/inputs/Button/index.d.ts +5 -0
- package/dist/components/inputs/Button/index.d.ts.map +1 -0
- package/dist/components/inputs/Button/index.js +5 -0
- package/dist/components/inputs/Button/index.js.map +1 -0
- package/dist/components/inputs/Button/schematics.d.ts +11 -0
- package/dist/components/inputs/Button/schematics.d.ts.map +1 -0
- package/dist/components/inputs/Button/schematics.js +14 -0
- package/dist/components/inputs/Button/schematics.js.map +1 -0
- package/dist/components/inputs/IconButton/IconButton.d.ts +62 -0
- package/dist/components/inputs/IconButton/IconButton.d.ts.map +1 -0
- package/dist/components/inputs/IconButton/IconButton.js +55 -0
- package/dist/components/inputs/IconButton/IconButton.js.map +1 -0
- package/dist/components/inputs/IconButton/MockIcon.d.ts +6 -0
- package/dist/components/inputs/IconButton/MockIcon.d.ts.map +1 -0
- package/dist/components/inputs/IconButton/MockIcon.js +9 -0
- package/dist/components/inputs/IconButton/MockIcon.js.map +1 -0
- package/dist/components/inputs/IconButton/index.d.ts +4 -0
- package/dist/components/inputs/IconButton/index.d.ts.map +1 -0
- package/dist/components/inputs/IconButton/index.js +4 -0
- package/dist/components/inputs/IconButton/index.js.map +1 -0
- package/dist/components/inputs/IconButton/schematics.d.ts +3 -0
- package/dist/components/inputs/IconButton/schematics.d.ts.map +1 -0
- package/dist/components/inputs/IconButton/schematics.js +6 -0
- package/dist/components/inputs/IconButton/schematics.js.map +1 -0
- package/dist/components/inputs/Pressable/Pressable.d.ts +9 -0
- package/dist/components/inputs/Pressable/Pressable.d.ts.map +1 -0
- package/dist/components/inputs/Pressable/Pressable.js +10 -0
- package/dist/components/inputs/Pressable/Pressable.js.map +1 -0
- package/dist/components/inputs/Pressable/index.d.ts +5 -0
- package/dist/components/inputs/Pressable/index.d.ts.map +1 -0
- package/dist/components/inputs/Pressable/index.js +5 -0
- package/dist/components/inputs/Pressable/index.js.map +1 -0
- package/dist/components/inputs/Pressable/schematics.d.ts +3 -0
- package/dist/components/inputs/Pressable/schematics.d.ts.map +1 -0
- package/dist/components/inputs/Pressable/schematics.js +6 -0
- package/dist/components/inputs/Pressable/schematics.js.map +1 -0
- package/dist/components/inputs/TextInput/TextInput.d.ts +32 -0
- package/dist/components/inputs/TextInput/TextInput.d.ts.map +1 -0
- package/dist/components/inputs/TextInput/TextInput.js +34 -0
- package/dist/components/inputs/TextInput/TextInput.js.map +1 -0
- package/dist/components/inputs/TextInput/index.d.ts +4 -0
- package/dist/components/inputs/TextInput/index.d.ts.map +1 -0
- package/dist/components/inputs/TextInput/index.js +4 -0
- package/dist/components/inputs/TextInput/index.js.map +1 -0
- package/dist/components/inputs/TextInput/schematics.d.ts +3 -0
- package/dist/components/inputs/TextInput/schematics.d.ts.map +1 -0
- package/dist/components/inputs/TextInput/schematics.js +6 -0
- package/dist/components/inputs/TextInput/schematics.js.map +1 -0
- package/dist/components/inputs/index.d.ts +10 -0
- package/dist/components/inputs/index.d.ts.map +1 -0
- package/dist/components/inputs/index.js +10 -0
- package/dist/components/inputs/index.js.map +1 -0
- package/dist/components/inputs/schematics.d.ts +3 -0
- package/dist/components/inputs/schematics.d.ts.map +1 -0
- package/dist/components/inputs/schematics.js +11 -0
- package/dist/components/inputs/schematics.js.map +1 -0
- package/dist/components/media/Icon/Icon.d.ts +21 -0
- package/dist/components/media/Icon/Icon.d.ts.map +1 -0
- package/dist/components/media/Icon/Icon.js +25 -0
- package/dist/components/media/Icon/Icon.js.map +1 -0
- package/dist/components/media/Icon/MockIcon.d.ts +6 -0
- package/dist/components/media/Icon/MockIcon.d.ts.map +1 -0
- package/dist/components/media/Icon/MockIcon.js +9 -0
- package/dist/components/media/Icon/MockIcon.js.map +1 -0
- package/dist/components/media/Icon/index.d.ts +4 -0
- package/dist/components/media/Icon/index.d.ts.map +1 -0
- package/dist/components/media/Icon/index.js +4 -0
- package/dist/components/media/Icon/index.js.map +1 -0
- package/dist/components/media/Icon/schematics.d.ts +3 -0
- package/dist/components/media/Icon/schematics.d.ts.map +1 -0
- package/dist/components/media/Icon/schematics.js +6 -0
- package/dist/components/media/Icon/schematics.js.map +1 -0
- package/dist/components/media/Image/Image.d.ts +58 -0
- package/dist/components/media/Image/Image.d.ts.map +1 -0
- package/dist/components/media/Image/Image.js +40 -0
- package/dist/components/media/Image/Image.js.map +1 -0
- package/dist/components/media/Image/index.d.ts +4 -0
- package/dist/components/media/Image/index.d.ts.map +1 -0
- package/dist/components/media/Image/index.js +4 -0
- package/dist/components/media/Image/index.js.map +1 -0
- package/dist/components/media/Image/schematics.d.ts +3 -0
- package/dist/components/media/Image/schematics.d.ts.map +1 -0
- package/dist/components/media/Image/schematics.js +6 -0
- package/dist/components/media/Image/schematics.js.map +1 -0
- package/dist/components/media/Video/Video.d.ts +28 -0
- package/dist/components/media/Video/Video.d.ts.map +1 -0
- package/dist/components/media/Video/Video.js +26 -0
- package/dist/components/media/Video/Video.js.map +1 -0
- package/dist/components/media/Video/index.d.ts +4 -0
- package/dist/components/media/Video/index.d.ts.map +1 -0
- package/dist/components/media/Video/index.js +4 -0
- package/dist/components/media/Video/index.js.map +1 -0
- package/dist/components/media/Video/schematics.d.ts +3 -0
- package/dist/components/media/Video/schematics.d.ts.map +1 -0
- package/dist/components/media/Video/schematics.js +6 -0
- package/dist/components/media/Video/schematics.js.map +1 -0
- package/dist/components/media/index.d.ts +8 -0
- package/dist/components/media/index.d.ts.map +1 -0
- package/dist/components/media/index.js +8 -0
- package/dist/components/media/index.js.map +1 -0
- package/dist/components/media/schematics.d.ts +3 -0
- package/dist/components/media/schematics.d.ts.map +1 -0
- package/dist/components/media/schematics.js +9 -0
- package/dist/components/media/schematics.js.map +1 -0
- package/dist/components/typography/Text/Text.d.ts +52 -0
- package/dist/components/typography/Text/Text.d.ts.map +1 -0
- package/dist/components/typography/Text/Text.js +41 -0
- package/dist/components/typography/Text/Text.js.map +1 -0
- package/dist/components/typography/Text/index.d.ts +4 -0
- package/dist/components/typography/Text/index.d.ts.map +1 -0
- package/dist/components/typography/Text/index.js +4 -0
- package/dist/components/typography/Text/index.js.map +1 -0
- package/dist/components/typography/Text/schematics.d.ts +3 -0
- package/dist/components/typography/Text/schematics.d.ts.map +1 -0
- package/dist/components/typography/Text/schematics.js +6 -0
- package/dist/components/typography/Text/schematics.js.map +1 -0
- package/dist/components/typography/Typography/Typography.d.ts +15 -0
- package/dist/components/typography/Typography/Typography.d.ts.map +1 -0
- package/dist/components/typography/Typography/Typography.js +11 -0
- package/dist/components/typography/Typography/Typography.js.map +1 -0
- package/dist/components/typography/Typography/index.d.ts +4 -0
- package/dist/components/typography/Typography/index.d.ts.map +1 -0
- package/dist/components/typography/Typography/index.js +4 -0
- package/dist/components/typography/Typography/index.js.map +1 -0
- package/dist/components/typography/Typography/schematics.d.ts +3 -0
- package/dist/components/typography/Typography/schematics.d.ts.map +1 -0
- package/dist/components/typography/Typography/schematics.js +6 -0
- package/dist/components/typography/Typography/schematics.js.map +1 -0
- package/dist/components/typography/index.d.ts +6 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/typography/index.js +6 -0
- package/dist/components/typography/index.js.map +1 -0
- package/dist/components/typography/schematics.d.ts +3 -0
- package/dist/components/typography/schematics.d.ts.map +1 -0
- package/dist/components/typography/schematics.js +7 -0
- package/dist/components/typography/schematics.js.map +1 -0
- package/dist/components/views/FlatList/FlatList.d.ts +16 -0
- package/dist/components/views/FlatList/FlatList.d.ts.map +1 -0
- package/dist/components/views/FlatList/FlatList.js +23 -0
- package/dist/components/views/FlatList/FlatList.js.map +1 -0
- package/dist/components/views/FlatList/index.d.ts +4 -0
- package/dist/components/views/FlatList/index.d.ts.map +1 -0
- package/dist/components/views/FlatList/index.js +4 -0
- package/dist/components/views/FlatList/index.js.map +1 -0
- package/dist/components/views/FlatList/schematics.d.ts +6 -0
- package/dist/components/views/FlatList/schematics.d.ts.map +1 -0
- package/dist/components/views/FlatList/schematics.js +18 -0
- package/dist/components/views/FlatList/schematics.js.map +1 -0
- package/dist/components/views/ImageBackgroundView/ImageBackgroundView.d.ts +22 -0
- package/dist/components/views/ImageBackgroundView/ImageBackgroundView.d.ts.map +1 -0
- package/dist/components/views/ImageBackgroundView/ImageBackgroundView.js +25 -0
- package/dist/components/views/ImageBackgroundView/ImageBackgroundView.js.map +1 -0
- package/dist/components/views/ImageBackgroundView/index.d.ts +4 -0
- package/dist/components/views/ImageBackgroundView/index.d.ts.map +1 -0
- package/dist/components/views/ImageBackgroundView/index.js +4 -0
- package/dist/components/views/ImageBackgroundView/index.js.map +1 -0
- package/dist/components/views/ImageBackgroundView/schematics.d.ts +3 -0
- package/dist/components/views/ImageBackgroundView/schematics.d.ts.map +1 -0
- package/dist/components/views/ImageBackgroundView/schematics.js +6 -0
- package/dist/components/views/ImageBackgroundView/schematics.js.map +1 -0
- package/dist/components/views/SafeAreaView/SafeAreaView.d.ts +11 -0
- package/dist/components/views/SafeAreaView/SafeAreaView.d.ts.map +1 -0
- package/dist/components/views/SafeAreaView/SafeAreaView.js +10 -0
- package/dist/components/views/SafeAreaView/SafeAreaView.js.map +1 -0
- package/dist/components/views/SafeAreaView/index.d.ts +4 -0
- package/dist/components/views/SafeAreaView/index.d.ts.map +1 -0
- package/dist/components/views/SafeAreaView/index.js +4 -0
- package/dist/components/views/SafeAreaView/index.js.map +1 -0
- package/dist/components/views/SafeAreaView/schematics.d.ts +3 -0
- package/dist/components/views/SafeAreaView/schematics.d.ts.map +1 -0
- package/dist/components/views/SafeAreaView/schematics.js +6 -0
- package/dist/components/views/SafeAreaView/schematics.js.map +1 -0
- package/dist/components/views/ScrollView/ScrollView.d.ts +40 -0
- package/dist/components/views/ScrollView/ScrollView.d.ts.map +1 -0
- package/dist/components/views/ScrollView/ScrollView.js +34 -0
- package/dist/components/views/ScrollView/ScrollView.js.map +1 -0
- package/dist/components/views/ScrollView/index.d.ts +4 -0
- package/dist/components/views/ScrollView/index.d.ts.map +1 -0
- package/dist/components/views/ScrollView/index.js +4 -0
- package/dist/components/views/ScrollView/index.js.map +1 -0
- package/dist/components/views/ScrollView/schematics.d.ts +4 -0
- package/dist/components/views/ScrollView/schematics.d.ts.map +1 -0
- package/dist/components/views/ScrollView/schematics.js +10 -0
- package/dist/components/views/ScrollView/schematics.js.map +1 -0
- package/dist/components/views/View/View.d.ts +40 -0
- package/dist/components/views/View/View.d.ts.map +1 -0
- package/dist/components/views/View/View.js +34 -0
- package/dist/components/views/View/View.js.map +1 -0
- package/dist/components/views/View/index.d.ts +4 -0
- package/dist/components/views/View/index.d.ts.map +1 -0
- package/dist/components/views/View/index.js +4 -0
- package/dist/components/views/View/index.js.map +1 -0
- package/dist/components/views/View/schematics.d.ts +4 -0
- package/dist/components/views/View/schematics.d.ts.map +1 -0
- package/dist/components/views/View/schematics.js +10 -0
- package/dist/components/views/View/schematics.js.map +1 -0
- package/dist/components/views/index.d.ts +12 -0
- package/dist/components/views/index.d.ts.map +1 -0
- package/dist/components/views/index.js +12 -0
- package/dist/components/views/index.js.map +1 -0
- package/dist/components/views/schematics.d.ts +18 -0
- package/dist/components/views/schematics.d.ts.map +1 -0
- package/dist/components/views/schematics.js +18 -0
- package/dist/components/views/schematics.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/schematics.d.ts +20 -0
- package/dist/schematics.d.ts.map +1 -0
- package/dist/schematics.js +27 -0
- package/dist/schematics.js.map +1 -0
- 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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|