mg-library 1.0.653 → 1.0.655
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/blocks.js +2 -2
- package/components.js +19 -16
- package/package.json +1 -1
package/blocks.js
CHANGED
|
@@ -5,8 +5,8 @@ import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityI
|
|
|
5
5
|
import * as ImageManipulator from 'expo-image-manipulator';
|
|
6
6
|
import { Camera, CameraType, CameraView } from 'expo-camera';
|
|
7
7
|
import axios from 'axios';
|
|
8
|
-
import {
|
|
9
|
-
import { Box } from '@gluestack-ui/themed';
|
|
8
|
+
import { Button as NBButton, Icon as NBIcon, Popover as NBPopover, Input as NBInput } from 'native-base';
|
|
9
|
+
import { Box, Divider } from '@gluestack-ui/themed';
|
|
10
10
|
import { uploadFile } from '@uploadcare/upload-client';
|
|
11
11
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
12
12
|
|
package/components.js
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
//import { Text } from 'native-base';
|
|
2
1
|
import { Box, Text } from '@gluestack-ui/themed';
|
|
3
2
|
import { MGDivider } from './blocks.js';
|
|
4
3
|
|
|
5
4
|
const categoryMap = {
|
|
6
|
-
h1: {
|
|
7
|
-
h2: {
|
|
8
|
-
h3: {
|
|
9
|
-
h4: {
|
|
10
|
-
h5: {
|
|
11
|
-
h6: {
|
|
12
|
-
s1: {
|
|
13
|
-
s2: {
|
|
14
|
-
p1: {
|
|
15
|
-
p2: {
|
|
16
|
-
label: {
|
|
17
|
-
c1: {
|
|
18
|
-
c2: {
|
|
5
|
+
h1: { size: '4xl', fontWeight: '$bold' },
|
|
6
|
+
h2: { size: '3xl', fontWeight: '$bold' },
|
|
7
|
+
h3: { size: '2xl', fontWeight: '$bold' },
|
|
8
|
+
h4: { size: 'xl', fontWeight: '$semibold' },
|
|
9
|
+
h5: { size: 'lg', fontWeight: '$semibold' },
|
|
10
|
+
h6: { size: 'md', fontWeight: '$semibold' },
|
|
11
|
+
s1: { size: 'md', fontWeight: '$medium' },
|
|
12
|
+
s2: { size: 'sm', fontWeight: '$medium' },
|
|
13
|
+
p1: { size: 'md', fontWeight: '$normal' },
|
|
14
|
+
p2: { size: 'sm', fontWeight: '$normal' },
|
|
15
|
+
label: { size: 'sm', fontWeight: '$medium' },
|
|
16
|
+
c1: { size: 'xs' },
|
|
17
|
+
c2: { size: '2xs' },
|
|
19
18
|
};
|
|
20
19
|
|
|
21
|
-
export function MGText({ category = 'p1', style, ...props }) {
|
|
20
|
+
export function MGText({ category = 'p1', style, children, ...props }) {
|
|
22
21
|
const styleProps = categoryMap[category] || categoryMap.p1;
|
|
23
|
-
return
|
|
22
|
+
return (
|
|
23
|
+
<Text {...styleProps} {...props} style={style}>
|
|
24
|
+
{children}
|
|
25
|
+
</Text>
|
|
26
|
+
);
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
export function MGCard({ children, header = null, footer = null, style = {}, ...props }) {
|