Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
77a45cd
feat🚀: update props explorer for airbnbRating
Uyadav207 Mar 12, 2021
cae781d
feat: Update airbnb.mdx
Uyadav207 Mar 13, 2021
1b9eef8
feat: Updated bottomsheet and buttongroup prop_explorer
Uyadav207 Mar 14, 2021
92f7113
feat: add to checkbox prop_explorer
Uyadav207 Mar 14, 2021
9243a8e
feat: add to card prop_explorer
Uyadav207 Mar 14, 2021
e6c2738
feat: add to divider prop_explorer
Uyadav207 Mar 14, 2021
85b07d3
feat: add to header prop_explorer
Uyadav207 Mar 14, 2021
2e609ec
feat: add to icon prop_explorer
Uyadav207 Mar 14, 2021
6d7ebb5
feat: add to image prop_explorer
Uyadav207 Mar 14, 2021
eaf5c62
feat: add to input prop_explorer
Uyadav207 Mar 14, 2021
2b2d268
feat: add to listItem prop_explorer
Uyadav207 Mar 14, 2021
c1c98a7
feat: add to overlay prop explorer
Uyadav207 Mar 14, 2021
69fd762
feat: add to rating prop explorer
Uyadav207 Mar 14, 2021
2c561f3
feat: add to slider prop explorer
Uyadav207 Mar 14, 2021
6225e4f
feat: add to searchBar prop explorer
Uyadav207 Mar 14, 2021
71bdf72
feat: add to social_icon prop explorer
Uyadav207 Mar 14, 2021
9ab75d9
feat: add to text prop explorer
Uyadav207 Mar 14, 2021
afa0e5a
feat: add to tile prop explorer
Uyadav207 Mar 14, 2021
0195bcc
feat: add to tooltip prop explorer
Uyadav207 Mar 14, 2021
f8fcbd5
minors(fix): typo within file_name import statement
Uyadav207 Mar 14, 2021
212474f
feat: add to pricing prop explorer
Uyadav207 Mar 14, 2021
93e9b8b
hot-fix: playground error popup alignment resolved, prevented UI brea…
Uyadav207 Mar 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/playground/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default ({ params }) => {
placeholder={Placeholder}
/>
</div>
<Error msg={params.errorProps.msg} isPopup />
<Knobs {...params.knobProps} />
<Error msg={params.errorProps.msg}/>
<Editor {...params.editorProps} />
<Error {...params.errorProps} />
<ActionButtons {...params.actions} />
Expand Down
49 changes: 49 additions & 0 deletions src/content/AirbnbRating/airbnb.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Props

- [`count`](#count)
- [`defaultRating`](#defaultRating)
- [`onFinishRating`](#onFinishRating)
- [`reviews`](#reviews)
- [`showRating`](#showRating)

---

# Reference

### `count`

Total number of ratings to display

| Type | Default |
| :----: | :-----: |
| number | 5 |

---

### `defaultRating`

Initial value for the rating defaultRating

| Type | Default |
| :------------: | :-----: |
| number | 1 |

---

### `reviews`

Labels to show when each value is tapped e.g. If the first star is tapped, then value in index 0 will be used as the label

| Type | Default |
| :------: | :------------------------------------------: |
| string[] | ['Terrible', 'Bad', 'Okay', 'Good', 'Great'] |

---

### `onFinishRating`

Callback method when the user finishes rating. Gives you the final rating value as a whole number (required)

| Type | Default |
| :------------: | :-----: |
| function | none |
11 changes: 10 additions & 1 deletion src/content/AirbnbRating/index.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import React from "react";
import React, { lazy, Suspense } from "react";
import Playground from "./searchbar.playground.jsx";
import { importMDX } from "mdx.macro";
import PropDrawer from "../../components/PropDrawer";

const Content = lazy(() => importMDX("./airbnb.mdx"));

export default function AirbnbPlayground() {
return (
<div>
<Playground />
<Suspense fallback={<div>Loading...</div>}>
<PropDrawer>
<Content />
</PropDrawer>
</Suspense>
</div>
);
}
2 changes: 1 addition & 1 deletion src/content/Avatar/avatar.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Props
# Props

- [`activeOpacity`](#activeopacity)
- [`avatarStyle`](#avatarstyle)
Expand Down
39 changes: 39 additions & 0 deletions src/content/BottomSheet/bottomsheet.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Props

- [`containerStyle`](#containerStyle)
- [`isVisible`](#isvisible)
- [`modalProps`](#modalprops)

---

# Reference

### `containerStyle`

Style of the bottom sheet's container

Use this to change the color of the underlay

| Type | Default |
| :-----------------: | :------------: |
| View style (object) | Internal Style |

---

### `isVisible`

Is the modal component shown

| Type | Default |
| :-----: | :-----: |
| boolean | false |

---

### `modalProps`

Additional props handed to the `Modal`

| Type | Default |
| :----------------------------------------------------------: | :-----: |
| [Modal Props](https://reactnative.dev/docs/modal.html#props) | {} |
11 changes: 10 additions & 1 deletion src/content/BottomSheet/index.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import React from "react";
import React, { lazy, Suspense } from "react";
import Playground from "./bottomsheet.playground.jsx";
import { importMDX } from "mdx.macro";
import PropDrawer from "../../components/PropDrawer";

const Content = lazy(() => importMDX("./bottomsheet.mdx"));

export default function BottomSheetPlayground() {
return (
<div>
<Playground />
<Suspense fallback={<div>Loading...</div>}>
<PropDrawer>
<Content />
</PropDrawer>
</Suspense>
</div>
);
}
226 changes: 226 additions & 0 deletions src/content/ButtonGroup/buttongroup.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
# Props

- [`buttonContainerStyle`](#buttonContainerStyle)
- [`buttons`](#buttons)
- [`buttonStyle`](#buttonStyle)
- [`Component`](#Component)
- [`containerStyle`](#containerStyle)
- [`disabled`](#disabled)
- [`disabledSelectedStyle`](#disabledSelectedStyle)
- [`disabledSelectedTextStyle`](#disabledSelectedTextStyle)
- [`disabledStyle`](#disabledStyle)
- [`disabledTextStyle`](#disabledTextStyle)
- [`innerBorderStyle`](#innerBorderStyle)
- [`onPress`](#onPress)
- [`selectedButtonStyle`](#selectedButtonStyle)
- [`selectedIndex`](#selectedIndex)
- [`selectedIndexes`](#selectedIndexes)
- [`selectedTextStyle`](#selectedTextStyle)
- [`selectMultiple`](#selectMultiple)
- [`textStyle`](#textStyle)
- [`underlayColor`](#underlayColor)
- [`vertical`](#vertical)

---

# Reference

### `buttonContainerStyle`

specify styling for button containers (optional)

| Type | Default |
| :------------: | :---------------: |
| object (style) | inherited styling |

---

### `buttons`

array of buttons for component (required), if returning a component, must be an
object with { element: componentName }

| Type | Default |
| :---: | :-----: |
| array | none |

---

### `buttonStyle`

specify styling for button (optional)

| Type | Default |
| :------------: | :---------------: |
| object (style) | inherited styling |

---

### `Component`

Choose other button component such as TouchableOpacity (optional)

| Type | Default |
| :--------------------: | :---------------------------------------------------------: |
| React Native Component | TouchableOpacity (ios) or TouchableNativeFeedback (android) |

---

### `containerStyle`

specify styling for main button container (optional)

| Type | Default |
| :------------: | :---------------: |
| object (style) | inherited styling |

---

### `disabled`

Controls if buttons are disabled. Setting `true` makes all of them disabled,
while using an array only makes those indices disabled.

| Type | Default |
| :---------------------: | :-----: |
| boolean **OR** number[] | false |

---

### `disabledSelectedStyle`

Styling for each selected button when disabled.

| Type | Default |
| :-----------------: | :------------: |
| View style (object) | Internal Style |

---

### `disabledSelectedTextStyle`

Styling for the text of each selected button when disabled.

| Type | Default |
| :-----------------: | :------------: |
| Text style (object) | Internal Style |

---

### `disabledStyle`

Styling for each button when disabled.

| Type | Default |
| :-----------------: | :------------: |
| View style (object) | Internal Style |

---

### `disabledTextStyle`

Styling for the text of each button when disabled.

| Type | Default |
| :-----------------: | :------------: |
| Text style (object) | Internal Style |

---

### `innerBorderStyle`

update the styling of the interior border of the list of buttons (optional)

| Type | Default |
| :---------------------: | :---------------: |
| object { width, color } | inherited styling |

---

### `onPress`

method to update Button Group Index (required)

| Type | Default |
| :------: | :-----: |
| function | none |

---

### `selectedButtonStyle`

specify styling for selected button (optional)

| Type | Default |
| :------------: | :---------------: |
| object (style) | inherited styling |

---

### `selectedIndex`

current selected index of array of buttons (required)

| Type | Default |
| :----: | :-----: |
| number | none |

---

### `selectedIndexes`

current selected indexes from the array of buttons

| Type | Default |
| :------------: | :-----: |
| array (number) | [] |

---

### `selectedTextStyle`

specify specific styling for text in the selected state (optional)

| Type | Default |
| :------------: | :---------------: |
| object (style) | inherited styling |

---

### `selectMultiple`

allows the user to select multiple buttons

| Type | Default |
| :-----: | :-----: |
| boolean | false |

---

### `textStyle`

specify specific styling for text (optional)

| Type | Default |
| :------------: | :---------------: |
| object (style) | inherited styling |

---

### `underlayColor`

specify underlayColor for TouchableHighlight (optional)

| Type | Default |
| :----: | :-----: |
| string | white |

---

### `vertical`

Display the ButtonGroup vertically

| Type | Default |
| :-----: | :-----: |
| boolean | false |
11 changes: 10 additions & 1 deletion src/content/ButtonGroup/index.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import React from "react";
import React, { lazy, Suspense } from "react";
import Playground from "./buttongroup.playground.jsx";
import { importMDX } from "mdx.macro";
import PropDrawer from "../../components/PropDrawer";

const Content = lazy(() => importMDX("./buttongroup.mdx"));

export default function ButtonGroupPlayground() {
return (
<div>
<Playground />
<Suspense fallback={<div>Loading...</div>}>
<PropDrawer>
<Content />
</PropDrawer>
</Suspense>
</div>
);
}
Loading