mg-library 1.0.593 → 1.0.594

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 (2) hide show
  1. package/components.js +6 -5
  2. package/package.json +1 -1
package/components.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Text, Box } from 'native-base';
2
+ import { MGDivider } from './blocks.js';
2
3
 
3
4
  const categoryMap = {
4
5
  h1: { fontSize: '4xl', fontWeight: 'bold' },
@@ -21,7 +22,7 @@ export function MGText({ category = 'p1', style, ...props }) {
21
22
  return <Text {...styleProps} {...props} style={style} />;
22
23
  }
23
24
 
24
- export function MGCard({ children, header = null, style = {}, ...props }) {
25
+ /* export function MGCard({ children, header = null, style = {}, ...props }) {
25
26
  return (
26
27
  <Box
27
28
  borderWidth={1}
@@ -39,21 +40,21 @@ export function MGCard({ children, header = null, style = {}, ...props }) {
39
40
  {children}
40
41
  </Box>
41
42
  );
42
- }
43
+ } */
43
44
 
44
- export default function MGCard({ children, header = null, footer = null, style = {}, ...props }) {
45
+ export function MGCard({ children, header = null, footer = null, style = {}, ...props }) {
45
46
  return (
46
47
  <Box borderWidth={1} borderColor="coolGray.200" borderRadius="md" bg="white" shadow={2} overflow="hidden" mb={4} mx={2} style={style} {...props}>
47
48
  {header && (
48
49
  <>
49
50
  <Box p={4}>{header}</Box>
50
- <Divider />
51
+ <MGDivider />
51
52
  </>
52
53
  )}
53
54
  <Box p={4}>{children}</Box>
54
55
  {footer && (
55
56
  <>
56
- <Divider />
57
+ <MGDivider />
57
58
  <Box p={4}>{footer}</Box>
58
59
  </>
59
60
  )}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.593",
3
+ "version": "1.0.594",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {