Skip to content

Commit e0807be

Browse files
Pawan KumarPawan Kumar
authored andcommitted
fix merge conflicts
2 parents d69e5ab + e577ff2 commit e0807be

136 files changed

Lines changed: 11077 additions & 6244 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/content/blogs/using-formik-with-react-native-and-magnus/index.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ export default function Main() {
6969
<ThemeProvider>
7070
<SafeAreaView style={{ flex: 1 }}>
7171
<Div m="lg">
72-
<Text
73-
mt="2xl"
74-
color="black900"
75-
fontWeight="bold"
76-
fontSize="bigText100"
77-
>
72+
<Text mt="2xl" color="gray900" fontWeight="bold" fontSize="2xl">
7873
Login
7974
</Text>
8075
<Text color="gray500" mt="sm">
@@ -205,7 +200,7 @@ Now let's integrate our input and submit button with Formik.
205200
<>
206201
<Text
207202
mt="2xl"
208-
color="black900"
203+
color="gray900"
209204
fontWeight="bold"
210205
fontSize="bigText100"
211206
>

docs/content/docs/avatar/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ import { Avatar, Icon } from 'react-native-magnus';
3434
/>
3535
```
3636

37+
## Avatar Group
38+
39+
```jsx
40+
<Avatar.Group>
41+
<Avatar bg="red500" color="white">
42+
A
43+
</Avatar>
44+
<Avatar bg="blue500" color="white">
45+
B
46+
</Avatar>
47+
<Avatar bg="yellow500" color="white">
48+
C
49+
</Avatar>
50+
</Avatar.Group>
51+
```
52+
3753
## Props
3854

3955
| Property | Description | Type | Default |

docs/content/docs/collapse/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Custom component for rendering collapse panel.
1010
<img src="/images/docs/collapse/1.gif" class="mobile" style="height: 600px; width: auto;" />
1111

1212
```jsx
13-
import { Collapse, CollapseBody, CollapseHeader } from "react-native-magnus";
13+
import { Collapse } from "react-native-magnus";
1414

1515
<Collapse>
16-
<CollapseHeader
16+
<Collapse.Header
1717
active
1818
color="gray900"
1919
fontSize="md"
@@ -22,14 +22,14 @@ import { Collapse, CollapseBody, CollapseHeader } from "react-native-magnus";
2222
prefix={<Icon name="wallet" mr="md" color="gray400" />}
2323
>
2424
Header 1
25-
</CollapseHeader>
26-
<CollapseBody pb="xl">
25+
</Collapse.Header>
26+
<Collapse.Body pb="xl">
2727
<Text>
2828
Lorem ipsum dolor sit amet consectetur adipisicing elit. Minus nobis
2929
corporis ut, ex sed aperiam. Debitis, facere! Animi quis laudantium, odio
3030
nulla recusandae labore pariatur in, vitae corporis delectus repellendus.
3131
</Text>
32-
</CollapseBody>
32+
</Collapse.Body>
3333
</Collapse>;
3434
```
3535

@@ -45,15 +45,15 @@ Collapse is basically a `Div` component. So it accepts all props of `Div` with t
4545
| ------------- | ------------------------------------------------- | --------- | ------- |
4646
| defaultActive | shows the collapse as opened when true by default | `boolean` | `false` |
4747

48-
### CollapseHeader
48+
### Collapse.Header
4949

50-
CollapseHeader is basically a `Button` component. So it accepts all props of `Button` with the following extra props
50+
Collapse.Header is basically a `Button` component. So it accepts all props of `Button` with the following extra props
5151

5252
| Property | Description | Type | Default |
5353
| ------------ | ------------------------------------------------------ | ----------- | ------- |
5454
| activeSuffix | Renders a component on the right of button when active | `ReactNode` | `-` |
5555
| activePrefix | Renders a component on the left of button when active | `ReactNode` | `-` |
5656

57-
### CollapseBody
57+
### Collapse.Body
5858

5959
CollapseHeader is basically a `Div` component. So it accepts all props of `Div`

docs/content/docs/div/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Div, Text } from "react-native-magnus";
2424
<img src="/images/docs/div/2.png" style="height: 60px; width: auto;" />
2525

2626
```jsx
27-
<Div h={40} w={40} bg="brand500"></Div>
27+
<Div h={40} w={40} bg="pink500"></Div>
2828
<Div h={40} w={40} bg="green500"></Div>
2929
<Div h={40} w={40} bg="teal500"></Div>
3030
<Div h={40} w={40} bg="yellow500"></Div>
@@ -107,7 +107,7 @@ You can check complete list of colors from [here](/docs/colors-system)
107107
}}
108108
>
109109
<Div
110-
bg="brand500"
110+
bg="pink500"
111111
rounded="md"
112112
row
113113
flexWrap="wrap"

docs/content/docs/dropdown/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ const dropdownRef = React.createRef();
1818

1919
<Button
2020
block
21-
bg="brand500"
21+
bg="pink500"
2222
mt="sm"
2323
p="md"
2424
color="white"
2525
onPress={() => dropdownRef.current.open()}>
2626
Open Dropdown
2727
</Button>
2828

29-
<Dropdown.Container
29+
<Dropdown
3030
ref={dropdownRef}
3131
title={
3232
<Text mx="xl" color="gray500" pb="md">
@@ -46,7 +46,7 @@ const dropdownRef = React.createRef();
4646
<Dropdown.Option py="md" px="xl" block>
4747
Third Option
4848
</Dropdown.Option>
49-
</Dropdown.Container>
49+
</Dropdown>
5050
```
5151

5252
<br />
@@ -64,7 +64,7 @@ const dropdownRef = React.createRef();
6464

6565
<Button
6666
block
67-
bg="brand500"
67+
bg="pink500"
6868
mt="sm"
6969
p="md"
7070
color="white"
@@ -132,7 +132,7 @@ const dropdownRef = React.createRef();
132132

133133
<Button
134134
block
135-
bg="brand500"
135+
bg="pink500"
136136
mt="sm"
137137
p="md"
138138
color="white"
@@ -210,7 +210,7 @@ const dropdownRef = React.createRef();
210210
px="md"
211211
block
212212
prefix={
213-
<Icon name="file1" mr="lg" color="brand500" fontSize="3xl" />
213+
<Icon name="file1" mr="lg" color="pink500" fontSize="3xl" />
214214
}>
215215
Documents
216216
</Dropdown.Option>

docs/content/docs/icon/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import { Icon } from 'react-native-magnus'
1515
<Icon
1616
name="star"
1717
color="yellow700"
18-
fontSize="title"
18+
fontSize="6xl"
1919
fontFamily="FontAwesome"
2020
/>
21-
<Icon name="codesquare" color="red500" fontSize="title" />
22-
<Icon name="android1" color="teal500" fontSize="title" />
23-
<Icon name="heart" color="red500" fontSize="title" />
24-
<Icon name="apple1" color="blue700" fontSize="title" />
25-
<Icon name="appstore1" color="teal500" fontSize="title" />
26-
<Icon name="slack" color="yellow700" fontSize="title" />
21+
<Icon name="codesquare" color="red500" fontSize="6xl" />
22+
<Icon name="android1" color="teal500" fontSize="6xl" />
23+
<Icon name="heart" color="red500" fontSize="6xl" />
24+
<Icon name="apple1" color="blue700" fontSize="6xl" />
25+
<Icon name="appstore1" color="teal500" fontSize="6xl" />
26+
<Icon name="slack" color="yellow700" fontSize="6xl" />
2727
```
2828

2929
We are using `react-native-vector-icons` behinds the scene.

docs/content/docs/image/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import { Image } from "react-native-magnus";
1717
m={10}
1818
rounded="circle"
1919
source={{
20-
uri: "https://timedotcom.files.wordpress.com/2014/07/301386_full1.jpg",
20+
uri:
21+
"https://images.unsplash.com/photo-1593642532400-2682810df593?ixid=MXwxMjA3fDF8MHxlZGl0b3JpYWwtZmVlZHwxfHx8ZW58MHx8fA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=60",
2122
}}
2223
/>;
2324
```

docs/content/docs/modal/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const modalRef = React.createRef();
4242
}
4343
}}
4444
>
45-
<Icon color="black900" name="close" />
45+
<Icon color="gray900" name="close" />
4646
</Button>
4747
</Modal>
4848
```

docs/content/docs/tag/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import { Tag, Icon } from 'react-native-magnus'
1515
<Tag
1616
ml="sm"
1717
suffix={
18-
<Icon name="close" color="black700" fontSize="md" />
18+
<Icon name="close" color="gray700" fontSize="caption" />
1919
}
2020
>
2121
Close
2222
</Tag>
2323
<Tag
2424
ml="sm"
2525
suffix={
26-
<Icon name="edit" color="black700" fontSize="md" />
26+
<Icon name="edit" color="gray700" fontSize="caption" />
2727
}
2828
>
2929
Edit

docs/src/components/layout/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Header({
2424
<div className="flex items-center relative">
2525
<Logo hasText />
2626
<div className="text-gray-700 text-xs bg-gray-200 px-1 ml-3 md:ml-3 rounded-sm">
27-
v 1.0.53
27+
v 1.0.54
2828
</div>
2929
</div>
3030
<Search />

0 commit comments

Comments
 (0)