@mapples/ui 1.0.8 → 1.1.1
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 +0 -32
- package/dist/components/form/FormView/FormView.d.ts +16 -9
- package/dist/components/form/FormView/FormView.d.ts.map +1 -1
- package/dist/components/form/FormView/FormView.js +11 -8
- package/dist/components/form/FormView/FormView.js.map +1 -1
- package/dist/components/form/FormView/schematics.d.ts +8 -0
- package/dist/components/form/FormView/schematics.d.ts.map +1 -1
- package/dist/components/form/FormView/schematics.js +8 -0
- package/dist/components/form/FormView/schematics.js.map +1 -1
- package/dist/components/form/SubmitButton/schematics.d.ts +2 -2
- package/dist/components/form/SubmitButton/schematics.js +2 -2
- package/dist/components/form/TextField/TextField.d.ts +21 -17
- package/dist/components/form/TextField/TextField.d.ts.map +1 -1
- package/dist/components/form/TextField/TextField.js +13 -18
- package/dist/components/form/TextField/TextField.js.map +1 -1
- package/dist/components/form/TextField/schematics.d.ts +8 -0
- package/dist/components/form/TextField/schematics.d.ts.map +1 -1
- package/dist/components/form/TextField/schematics.js +8 -0
- package/dist/components/form/TextField/schematics.js.map +1 -1
- package/dist/components/form/schematics.d.ts +9 -0
- package/dist/components/form/schematics.d.ts.map +1 -1
- package/dist/components/form/schematics.js +9 -0
- package/dist/components/form/schematics.js.map +1 -1
- package/dist/components/inputs/IconButton/MockIcon.d.ts.map +1 -1
- package/dist/components/inputs/IconButton/MockIcon.js +8 -0
- package/dist/components/inputs/IconButton/MockIcon.js.map +1 -1
- package/dist/components/inputs/IconButton/schematics.d.ts +8 -0
- package/dist/components/inputs/IconButton/schematics.d.ts.map +1 -1
- package/dist/components/inputs/IconButton/schematics.js +8 -0
- package/dist/components/inputs/IconButton/schematics.js.map +1 -1
- package/dist/components/inputs/Pressable/Pressable.d.ts +26 -0
- package/dist/components/inputs/Pressable/Pressable.d.ts.map +1 -1
- package/dist/components/inputs/Pressable/Pressable.js +18 -0
- package/dist/components/inputs/Pressable/Pressable.js.map +1 -1
- package/dist/components/inputs/Pressable/schematics.d.ts +8 -0
- package/dist/components/inputs/Pressable/schematics.d.ts.map +1 -1
- package/dist/components/inputs/Pressable/schematics.js +8 -0
- package/dist/components/inputs/Pressable/schematics.js.map +1 -1
- package/dist/components/inputs/Select/Select.d.ts +30 -0
- package/dist/components/inputs/Select/Select.d.ts.map +1 -1
- package/dist/components/inputs/Select/Select.js +19 -0
- package/dist/components/inputs/Select/Select.js.map +1 -1
- package/dist/components/inputs/Select/SelectItem.d.ts +23 -0
- package/dist/components/inputs/Select/SelectItem.d.ts.map +1 -1
- package/dist/components/inputs/Select/SelectItem.js +16 -0
- package/dist/components/inputs/Select/SelectItem.js.map +1 -1
- package/dist/components/inputs/Select/schematics.d.ts +8 -0
- package/dist/components/inputs/Select/schematics.d.ts.map +1 -1
- package/dist/components/inputs/Select/schematics.js +8 -0
- package/dist/components/inputs/Select/schematics.js.map +1 -1
- package/dist/components/inputs/TextInput/schematics.d.ts +8 -0
- package/dist/components/inputs/TextInput/schematics.d.ts.map +1 -1
- package/dist/components/inputs/TextInput/schematics.js +8 -0
- package/dist/components/inputs/TextInput/schematics.js.map +1 -1
- package/dist/components/inputs/schematics.d.ts +9 -0
- package/dist/components/inputs/schematics.d.ts.map +1 -1
- package/dist/components/inputs/schematics.js +9 -0
- package/dist/components/inputs/schematics.js.map +1 -1
- package/dist/components/media/BarCode/schematics.d.ts +8 -0
- package/dist/components/media/BarCode/schematics.d.ts.map +1 -1
- package/dist/components/media/BarCode/schematics.js +8 -0
- package/dist/components/media/BarCode/schematics.js.map +1 -1
- package/dist/components/media/Icon/Icon.d.ts +34 -0
- package/dist/components/media/Icon/Icon.d.ts.map +1 -1
- package/dist/components/media/Icon/Icon.js +23 -0
- package/dist/components/media/Icon/Icon.js.map +1 -1
- package/dist/components/media/Icon/MockIcon.d.ts.map +1 -1
- package/dist/components/media/Icon/MockIcon.js +9 -0
- package/dist/components/media/Icon/MockIcon.js.map +1 -1
- package/dist/components/media/Icon/schematics.d.ts +8 -0
- package/dist/components/media/Icon/schematics.d.ts.map +1 -1
- package/dist/components/media/Icon/schematics.js +8 -0
- package/dist/components/media/Icon/schematics.js.map +1 -1
- package/dist/components/media/Image/Image.d.ts +2 -0
- package/dist/components/media/Image/Image.d.ts.map +1 -1
- package/dist/components/media/Image/Image.js.map +1 -1
- package/dist/components/media/Image/schematics.d.ts +8 -0
- package/dist/components/media/Image/schematics.d.ts.map +1 -1
- package/dist/components/media/Image/schematics.js +8 -0
- package/dist/components/media/Image/schematics.js.map +1 -1
- package/dist/components/media/QRCode/schematics.d.ts +8 -0
- package/dist/components/media/QRCode/schematics.d.ts.map +1 -1
- package/dist/components/media/QRCode/schematics.js +8 -0
- package/dist/components/media/QRCode/schematics.js.map +1 -1
- package/dist/components/media/Svg/Svg.d.ts.map +1 -1
- package/dist/components/media/Svg/Svg.js +1 -1
- package/dist/components/media/Svg/Svg.js.map +1 -1
- package/dist/components/media/Svg/schematics.d.ts +8 -0
- package/dist/components/media/Svg/schematics.d.ts.map +1 -1
- package/dist/components/media/Svg/schematics.js +8 -0
- package/dist/components/media/Svg/schematics.js.map +1 -1
- package/dist/components/media/Video/Video.d.ts +44 -0
- package/dist/components/media/Video/Video.d.ts.map +1 -1
- package/dist/components/media/Video/Video.js +25 -0
- package/dist/components/media/Video/Video.js.map +1 -1
- package/dist/components/media/Video/schematics.d.ts +8 -0
- package/dist/components/media/Video/schematics.d.ts.map +1 -1
- package/dist/components/media/Video/schematics.js +8 -0
- package/dist/components/media/Video/schematics.js.map +1 -1
- package/dist/components/media/schematics.d.ts +9 -0
- package/dist/components/media/schematics.d.ts.map +1 -1
- package/dist/components/media/schematics.js +9 -0
- package/dist/components/media/schematics.js.map +1 -1
- package/dist/components/typography/Text/Text.d.ts +4 -10
- package/dist/components/typography/Text/Text.d.ts.map +1 -1
- package/dist/components/typography/Text/Text.js +4 -10
- package/dist/components/typography/Text/Text.js.map +1 -1
- package/dist/components/typography/Text/schematics.d.ts +8 -0
- package/dist/components/typography/Text/schematics.d.ts.map +1 -1
- package/dist/components/typography/Text/schematics.js +8 -0
- package/dist/components/typography/Text/schematics.js.map +1 -1
- package/dist/components/typography/Typography/Typography.d.ts +27 -0
- package/dist/components/typography/Typography/Typography.d.ts.map +1 -1
- package/dist/components/typography/Typography/Typography.js +20 -0
- package/dist/components/typography/Typography/Typography.js.map +1 -1
- package/dist/components/typography/Typography/schematics.d.ts +8 -0
- package/dist/components/typography/Typography/schematics.d.ts.map +1 -1
- package/dist/components/typography/Typography/schematics.js +8 -0
- package/dist/components/typography/Typography/schematics.js.map +1 -1
- package/dist/components/typography/schematics.d.ts +9 -0
- package/dist/components/typography/schematics.d.ts.map +1 -1
- package/dist/components/typography/schematics.js +9 -0
- package/dist/components/typography/schematics.js.map +1 -1
- package/dist/components/views/FlatList/FlatList.d.ts +12 -0
- package/dist/components/views/FlatList/FlatList.d.ts.map +1 -1
- package/dist/components/views/FlatList/FlatList.js +24 -0
- package/dist/components/views/FlatList/FlatList.js.map +1 -1
- package/dist/components/views/FlatList/schematics.d.ts +20 -0
- package/dist/components/views/FlatList/schematics.d.ts.map +1 -1
- package/dist/components/views/FlatList/schematics.js +20 -0
- package/dist/components/views/FlatList/schematics.js.map +1 -1
- package/dist/components/views/ImageBackgroundView/ImageBackgroundView.d.ts +40 -0
- package/dist/components/views/ImageBackgroundView/ImageBackgroundView.d.ts.map +1 -1
- package/dist/components/views/ImageBackgroundView/ImageBackgroundView.js +24 -0
- package/dist/components/views/ImageBackgroundView/ImageBackgroundView.js.map +1 -1
- package/dist/components/views/ImageBackgroundView/schematics.d.ts +5 -0
- package/dist/components/views/ImageBackgroundView/schematics.d.ts.map +1 -1
- package/dist/components/views/ImageBackgroundView/schematics.js +5 -0
- package/dist/components/views/ImageBackgroundView/schematics.js.map +1 -1
- package/dist/components/views/SafeAreaView/SafeAreaView.d.ts +29 -0
- package/dist/components/views/SafeAreaView/SafeAreaView.d.ts.map +1 -1
- package/dist/components/views/SafeAreaView/SafeAreaView.js +24 -0
- package/dist/components/views/SafeAreaView/SafeAreaView.js.map +1 -1
- package/dist/components/views/SafeAreaView/schematics.d.ts +5 -0
- package/dist/components/views/SafeAreaView/schematics.d.ts.map +1 -1
- package/dist/components/views/SafeAreaView/schematics.js +5 -0
- package/dist/components/views/SafeAreaView/schematics.js.map +1 -1
- package/dist/components/views/ScrollView/schematics.d.ts +10 -0
- package/dist/components/views/ScrollView/schematics.d.ts.map +1 -1
- package/dist/components/views/ScrollView/schematics.js +10 -0
- package/dist/components/views/ScrollView/schematics.js.map +1 -1
- package/dist/components/views/View/schematics.d.ts +13 -0
- package/dist/components/views/View/schematics.d.ts.map +1 -1
- package/dist/components/views/View/schematics.js +13 -0
- package/dist/components/views/View/schematics.js.map +1 -1
- package/dist/components/views/schematics.d.ts +9 -0
- package/dist/components/views/schematics.d.ts.map +1 -1
- package/dist/components/views/schematics.js +9 -0
- package/dist/components/views/schematics.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,18 +2,58 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import { StyledProp, StyledProps, WithStyledProps } from '@mapples/style';
|
|
3
3
|
import { ImageProps as ExpoImageProps } from 'expo-image';
|
|
4
4
|
import { ImageStyle, ViewProps, ViewStyle } from 'react-native';
|
|
5
|
+
/**
|
|
6
|
+
* Props for the ImageBackgroundView component.
|
|
7
|
+
*
|
|
8
|
+
* Combines Expo Image props with an extended `styled` object that controls the
|
|
9
|
+
* outer container, the background image, and the overlaid content view
|
|
10
|
+
* independently. Accepts an optional `dataSource` string that takes precedence
|
|
11
|
+
* over the standard `source` prop when provided.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
5
15
|
export type ImageProps = PropsWithChildren<Omit<WithStyledProps<ExpoImageProps>, 'styled'> & {
|
|
6
16
|
styled?: StyledProps<ViewProps> & {
|
|
17
|
+
/** Style applied to the absolutely-positioned background image */
|
|
7
18
|
styleImage?: StyledProp<ImageStyle>;
|
|
19
|
+
/** Style applied to the view rendered on top of the background image */
|
|
8
20
|
styleContent?: StyledProp<ViewStyle>;
|
|
9
21
|
};
|
|
22
|
+
/** URI string that overrides `source` when present */
|
|
10
23
|
dataSource?: string;
|
|
11
24
|
}>;
|
|
25
|
+
/**
|
|
26
|
+
* A container view with an absolutely-positioned background image.
|
|
27
|
+
*
|
|
28
|
+
* `ImageBackgroundView` renders a full-bleed background image (via Expo Image)
|
|
29
|
+
* beneath an overlay content view. Children are placed inside the content
|
|
30
|
+
* view and are rendered on top of the image. Pass `dataSource` (a URI string)
|
|
31
|
+
* to override the standard `source` prop at runtime.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <ImageBackgroundView
|
|
36
|
+
* dataSource="https://example.com/hero.jpg"
|
|
37
|
+
* alt="Hero background"
|
|
38
|
+
* styled={{
|
|
39
|
+
* style: { flex: 1 },
|
|
40
|
+
* styleContent: { padding: 24, justifyContent: 'flex-end' },
|
|
41
|
+
* }}
|
|
42
|
+
* >
|
|
43
|
+
* <Text text="Welcome" />
|
|
44
|
+
* </ImageBackgroundView>
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
12
49
|
declare const ImageBackgroundView: import("react").ForwardRefExoticComponent<Omit<WithStyledProps<ExpoImageProps>, "styled"> & {
|
|
13
50
|
styled?: StyledProps<ViewProps> & {
|
|
51
|
+
/** Style applied to the absolutely-positioned background image */
|
|
14
52
|
styleImage?: StyledProp<ImageStyle>;
|
|
53
|
+
/** Style applied to the view rendered on top of the background image */
|
|
15
54
|
styleContent?: StyledProp<ViewStyle>;
|
|
16
55
|
};
|
|
56
|
+
/** URI string that overrides `source` when present */
|
|
17
57
|
dataSource?: string;
|
|
18
58
|
} & {
|
|
19
59
|
children?: import("react").ReactNode | undefined;
|
|
@@ -1 +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;
|
|
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;;;;;;;;;GASG;AACH,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,kEAAkE;QAClE,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;QACpC,wEAAwE;QACxE,YAAY,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;KACtC,CAAC;IACF,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CACF,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAA,MAAM,mBAAmB;aArCZ,WAAW,CAAC,SAAS,CAAC,GAAG;QAChC,kEAAkE;QAClE,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;QACpC,wEAAwE;QACxE,YAAY,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;KACtC;IACD,sDAAsD;iBACzC,MAAM;;;2CAgDtB,CAAC;AAcF,eAAe,mBAAmB,CAAC"}
|
|
@@ -2,6 +2,30 @@ import { forwardRef } from 'react';
|
|
|
2
2
|
import { styled, StyledView, Styler, } from '@mapples/style';
|
|
3
3
|
import { Image as ExpoImage } from 'expo-image';
|
|
4
4
|
const StyledExpoImage = styled(ExpoImage);
|
|
5
|
+
/**
|
|
6
|
+
* A container view with an absolutely-positioned background image.
|
|
7
|
+
*
|
|
8
|
+
* `ImageBackgroundView` renders a full-bleed background image (via Expo Image)
|
|
9
|
+
* beneath an overlay content view. Children are placed inside the content
|
|
10
|
+
* view and are rendered on top of the image. Pass `dataSource` (a URI string)
|
|
11
|
+
* to override the standard `source` prop at runtime.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <ImageBackgroundView
|
|
16
|
+
* dataSource="https://example.com/hero.jpg"
|
|
17
|
+
* alt="Hero background"
|
|
18
|
+
* styled={{
|
|
19
|
+
* style: { flex: 1 },
|
|
20
|
+
* styleContent: { padding: 24, justifyContent: 'flex-end' },
|
|
21
|
+
* }}
|
|
22
|
+
* >
|
|
23
|
+
* <Text text="Welcome" />
|
|
24
|
+
* </ImageBackgroundView>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
5
29
|
const ImageBackgroundView = forwardRef(({ styled, source, alt, children, dataSource, ...props }, ref) => {
|
|
6
30
|
const { styleImage, styleContent, ...styledProps } = styled || {};
|
|
7
31
|
return (<StyledView ref={ref} styled={styledProps} {...props}>
|
|
@@ -1 +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;
|
|
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;AA0B9E,MAAM,eAAe,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,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"}
|
|
@@ -1 +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"}
|
|
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;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,mBAG3C,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import ImageBackgroundView from './ImageBackgroundView';
|
|
2
|
+
/**
|
|
3
|
+
* Schematic configuration for the ImageBackgroundView component.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
2
7
|
export const ImageBackgroundViewSchematics = {
|
|
3
8
|
type: 'ImageBackgroundView',
|
|
4
9
|
Component: ImageBackgroundView,
|
|
@@ -1 +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"}
|
|
1
|
+
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/views/ImageBackgroundView/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAwB;IAChE,IAAI,EAAE,qBAAqB;IAC3B,SAAS,EAAE,mBAAmB;CAC/B,CAAC"}
|
|
@@ -1,7 +1,36 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { WithStyledProps } from '@mapples/style';
|
|
3
3
|
import { SafeAreaViewProps as RNSafeAreaViewProps } from 'react-native-safe-area-context';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the SafeAreaView component.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
4
9
|
export type SafeAreaViewProps = PropsWithChildren<WithStyledProps<RNSafeAreaViewProps>>;
|
|
10
|
+
/**
|
|
11
|
+
* A customizable safe-area view component with built-in styling support.
|
|
12
|
+
*
|
|
13
|
+
* `SafeAreaView` wraps `react-native-safe-area-context`'s `SafeAreaView` and
|
|
14
|
+
* adds styling capabilities through the `@mapples/style` system. It ensures
|
|
15
|
+
* content is rendered within the device's safe-area insets (notch, home
|
|
16
|
+
* indicator, status bar, etc.).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <SafeAreaView
|
|
21
|
+
* styled={{
|
|
22
|
+
* style: {
|
|
23
|
+
* flex: 1,
|
|
24
|
+
* backgroundColor: 'white',
|
|
25
|
+
* },
|
|
26
|
+
* }}
|
|
27
|
+
* >
|
|
28
|
+
* <Text text="Safe content" />
|
|
29
|
+
* </SafeAreaView>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
5
34
|
declare const SafeAreaView: import("react").ForwardRefExoticComponent<{
|
|
6
35
|
styled?: import("@mapples/style").StyledProps<Partial<import("react-native-safe-area-context").NativeSafeAreaViewProps>> | undefined;
|
|
7
36
|
} & import("react-native-safe-area-context").NativeSafeAreaViewProps & {
|
|
@@ -1 +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"}
|
|
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;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAC/C,eAAe,CAAC,mBAAmB,CAAC,CACrC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAA,MAAM,YAAY;;;;2CAQjB,CAAC;AAGF,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import { StyledSafeAreaView } from '@mapples/style';
|
|
3
|
+
/**
|
|
4
|
+
* A customizable safe-area view component with built-in styling support.
|
|
5
|
+
*
|
|
6
|
+
* `SafeAreaView` wraps `react-native-safe-area-context`'s `SafeAreaView` and
|
|
7
|
+
* adds styling capabilities through the `@mapples/style` system. It ensures
|
|
8
|
+
* content is rendered within the device's safe-area insets (notch, home
|
|
9
|
+
* indicator, status bar, etc.).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <SafeAreaView
|
|
14
|
+
* styled={{
|
|
15
|
+
* style: {
|
|
16
|
+
* flex: 1,
|
|
17
|
+
* backgroundColor: 'white',
|
|
18
|
+
* },
|
|
19
|
+
* }}
|
|
20
|
+
* >
|
|
21
|
+
* <Text text="Safe content" />
|
|
22
|
+
* </SafeAreaView>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
3
27
|
const SafeAreaView = forwardRef(({ styled, children, ...props }, ref) => {
|
|
4
28
|
return (<StyledSafeAreaView ref={ref} styled={{ ...styled }} {...props}>
|
|
5
29
|
{children}
|
|
@@ -1 +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;
|
|
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;AAYrE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,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"}
|
|
@@ -1 +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"}
|
|
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;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,mBAGnC,CAAC"}
|
|
@@ -1 +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"}
|
|
1
|
+
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/views/SafeAreaView/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACxD,IAAI,EAAE,cAAc;IACpB,SAAS,EAAE,YAAY;CACxB,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { RegisteredComponent } from '@mapples/types';
|
|
2
|
+
/**
|
|
3
|
+
* Schematic configuration for the ScrollView component.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
2
7
|
export declare const ScrollViewSchematic: RegisteredComponent;
|
|
8
|
+
/**
|
|
9
|
+
* Schematic configuration for a horizontally-scrolling ScrollView.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
3
13
|
export declare const HorizontalScrollView: RegisteredComponent;
|
|
4
14
|
//# sourceMappingURL=schematics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/views/ScrollView/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,eAAO,MAAM,mBAAmB,EAAE,mBAGjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,mBAGlC,CAAC"}
|
|
1
|
+
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/views/ScrollView/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAGjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,mBAGlC,CAAC"}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import ScrollView from './ScrollView';
|
|
2
|
+
/**
|
|
3
|
+
* Schematic configuration for the ScrollView component.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
2
7
|
export const ScrollViewSchematic = {
|
|
3
8
|
type: 'ScrollView',
|
|
4
9
|
Component: ScrollView,
|
|
5
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Schematic configuration for a horizontally-scrolling ScrollView.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
6
16
|
export const HorizontalScrollView = {
|
|
7
17
|
...ScrollViewSchematic,
|
|
8
18
|
type: 'HorizontalScrollView',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/views/ScrollView/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAwB;IACtD,IAAI,EAAE,YAAY;IAClB,SAAS,EAAE,UAAU;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAwB;IACvD,GAAG,mBAAmB;IACtB,IAAI,EAAE,sBAAsB;CAC7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/views/ScrollView/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAwB;IACtD,IAAI,EAAE,YAAY;IAClB,SAAS,EAAE,UAAU;CACtB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAwB;IACvD,GAAG,mBAAmB;IACtB,IAAI,EAAE,sBAAsB;CAC7B,CAAC"}
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import { RegisteredComponent } from '@mapples/types';
|
|
2
|
+
/**
|
|
3
|
+
* Schematic configuration for the View component.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
2
7
|
export declare const ViewSchematic: RegisteredComponent;
|
|
8
|
+
/**
|
|
9
|
+
* Schematic configuration for the Container component.
|
|
10
|
+
*
|
|
11
|
+
* An alias of `ViewSchematic` registered under the `'Container'` type for use
|
|
12
|
+
* as a generic layout container in the visual editor.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
3
16
|
export declare const ContainerSchematic: RegisteredComponent;
|
|
4
17
|
//# sourceMappingURL=schematics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/views/View/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,eAAO,MAAM,aAAa,EAAE,mBAG3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,mBAGhC,CAAC"}
|
|
1
|
+
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../../src/components/views/View/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,mBAG3B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAAE,mBAGhC,CAAC"}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import View from './View';
|
|
2
|
+
/**
|
|
3
|
+
* Schematic configuration for the View component.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
2
7
|
export const ViewSchematic = {
|
|
3
8
|
type: 'View',
|
|
4
9
|
Component: View,
|
|
5
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Schematic configuration for the Container component.
|
|
13
|
+
*
|
|
14
|
+
* An alias of `ViewSchematic` registered under the `'Container'` type for use
|
|
15
|
+
* as a generic layout container in the visual editor.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
6
19
|
export const ContainerSchematic = {
|
|
7
20
|
...ViewSchematic,
|
|
8
21
|
type: 'Container',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/views/View/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;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAwB;IACrD,GAAG,aAAa;IAChB,IAAI,EAAE,WAAW;CAClB,CAAC"}
|
|
1
|
+
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../../src/components/views/View/schematics.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAwB;IAChD,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,IAAI;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAwB;IACrD,GAAG,aAAa;IAChB,IAAI,EAAE,WAAW;CAClB,CAAC"}
|
|
@@ -3,6 +3,15 @@ import { ImageBackgroundViewSchematics } from './ImageBackgroundView';
|
|
|
3
3
|
import { SafeAreaViewSchematic } from './SafeAreaView';
|
|
4
4
|
import { HorizontalScrollView, ScrollViewSchematic } from './ScrollView';
|
|
5
5
|
import { ContainerSchematic, ViewSchematic } from './View';
|
|
6
|
+
/**
|
|
7
|
+
* Complete registry of all view component schematics.
|
|
8
|
+
*
|
|
9
|
+
* Maps each component type string to its `RegisteredComponent` entry,
|
|
10
|
+
* covering View, Container, SafeAreaView, ScrollView, HorizontalScrollView,
|
|
11
|
+
* ImageBackgroundView, FlatList, and grid layout variants.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
6
15
|
export declare const ViewsSchematics: {
|
|
7
16
|
readonly [ViewSchematic.type]: import("@mapples/types").RegisteredComponent<object>;
|
|
8
17
|
readonly [ContainerSchematic.type]: import("@mapples/types").RegisteredComponent<object>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../src/components/views/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE3D,eAAO,MAAM,eAAe;IAC1B,SAAA,CAAC,aAAa,CAAC,IAAI,CAAC,uDAAe;IACnC,SAAA,CAAC,kBAAkB,CAAC,IAAI,CAAC,uDAAoB;IAC7C,SAAA,CAAC,qBAAqB,CAAC,IAAI,CAAC,uDAAuB;IACnD,SAAA,CAAC,mBAAmB,CAAC,IAAI,CAAC,uDAAqB;IAC/C,SAAA,CAAC,oBAAoB,CAAC,IAAI,CAAC,uDAAsB;IACjD,SAAA,CAAC,6BAA6B,CAAC,IAAI,CAAC,uDAA+B;IACnE,SAAA,CAAC,iBAAiB,CAAC,IAAI,CAAC,uDAAmB;IAC3C,SAAA,CAAC,uBAAuB,CAAC,IAAI,CAAC,uDAAyB;IACvD,SAAA,CAAC,yBAAyB,CAAC,IAAI,CAAC,uDAA2B;IAC3D,SAAA,CAAC,wBAAwB,CAAC,IAAI,CAAC,uDAA0B;CACjD,CAAC"}
|
|
1
|
+
{"version":3,"file":"schematics.d.ts","sourceRoot":"","sources":["../../../src/components/views/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;IAC1B,SAAA,CAAC,aAAa,CAAC,IAAI,CAAC,uDAAe;IACnC,SAAA,CAAC,kBAAkB,CAAC,IAAI,CAAC,uDAAoB;IAC7C,SAAA,CAAC,qBAAqB,CAAC,IAAI,CAAC,uDAAuB;IACnD,SAAA,CAAC,mBAAmB,CAAC,IAAI,CAAC,uDAAqB;IAC/C,SAAA,CAAC,oBAAoB,CAAC,IAAI,CAAC,uDAAsB;IACjD,SAAA,CAAC,6BAA6B,CAAC,IAAI,CAAC,uDAA+B;IACnE,SAAA,CAAC,iBAAiB,CAAC,IAAI,CAAC,uDAAmB;IAC3C,SAAA,CAAC,uBAAuB,CAAC,IAAI,CAAC,uDAAyB;IACvD,SAAA,CAAC,yBAAyB,CAAC,IAAI,CAAC,uDAA2B;IAC3D,SAAA,CAAC,wBAAwB,CAAC,IAAI,CAAC,uDAA0B;CACjD,CAAC"}
|
|
@@ -3,6 +3,15 @@ import { ImageBackgroundViewSchematics } from './ImageBackgroundView';
|
|
|
3
3
|
import { SafeAreaViewSchematic } from './SafeAreaView';
|
|
4
4
|
import { HorizontalScrollView, ScrollViewSchematic } from './ScrollView';
|
|
5
5
|
import { ContainerSchematic, ViewSchematic } from './View';
|
|
6
|
+
/**
|
|
7
|
+
* Complete registry of all view component schematics.
|
|
8
|
+
*
|
|
9
|
+
* Maps each component type string to its `RegisteredComponent` entry,
|
|
10
|
+
* covering View, Container, SafeAreaView, ScrollView, HorizontalScrollView,
|
|
11
|
+
* ImageBackgroundView, FlatList, and grid layout variants.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
6
15
|
export const ViewsSchematics = {
|
|
7
16
|
[ViewSchematic.type]: ViewSchematic,
|
|
8
17
|
[ContainerSchematic.type]: ContainerSchematic,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../src/components/views/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE3D,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,aAAa;IACnC,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,kBAAkB;IAC7C,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,qBAAqB;IACnD,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,mBAAmB;IAC/C,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,oBAAoB;IACjD,CAAC,6BAA6B,CAAC,IAAI,CAAC,EAAE,6BAA6B;IACnE,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,iBAAiB;IAC3C,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAAE,uBAAuB;IACvD,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,yBAAyB;IAC3D,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,wBAAwB;CACjD,CAAC"}
|
|
1
|
+
{"version":3,"file":"schematics.js","sourceRoot":"","sources":["../../../src/components/views/schematics.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,aAAa;IACnC,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,kBAAkB;IAC7C,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,qBAAqB;IACnD,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,mBAAmB;IAC/C,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,oBAAoB;IACjD,CAAC,6BAA6B,CAAC,IAAI,CAAC,EAAE,6BAA6B;IACnE,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,iBAAiB;IAC3C,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAAE,uBAAuB;IACvD,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,yBAAyB;IAC3D,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,wBAAwB;CACjD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapples/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": ">=18.0.0 <20.0.0",
|
|
31
|
-
"typescript": "~
|
|
31
|
+
"typescript": "~6.0.3"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|