From 87cfef56e027a0b92e9274615465100a25196ec3 Mon Sep 17 00:00:00 2001 From: Arpit Bhalla Date: Fri, 31 Dec 2021 00:12:58 +0530 Subject: [PATCH 1/6] Update injectLatestProps.js --- injectLatestProps.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/injectLatestProps.js b/injectLatestProps.js index 669d1e0..3d340cc 100644 --- a/injectLatestProps.js +++ b/injectLatestProps.js @@ -36,6 +36,19 @@ try { ); console.log("✔️ Cloned react-native-elements"); + execSync( + "sed -i '/## Props/,$!d' ./react-native-elements/website/docs/main*.mdx", + (err, stdout, stderr) => { + if (err) { + // node couldn't execute the command + return; + } + // the *entire* stdout and stderr (buffered) + console.log(`stdout: ${stdout}`); + console.log(`stderr: ${stderr}`); + } + ); + // Point 4 cpDir.sync( "./react-native-elements/website/docs/main", @@ -45,4 +58,4 @@ try { } catch (err) { console.error(err); return; -} \ No newline at end of file +} From d1cd846e3f128b6ef277a7b619d5e4cfcaed675a Mon Sep 17 00:00:00 2001 From: Arpit Bhalla Date: Fri, 31 Dec 2021 00:16:12 +0530 Subject: [PATCH 2/6] Update injectLatestProps.js --- injectLatestProps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/injectLatestProps.js b/injectLatestProps.js index 3d340cc..5998f19 100644 --- a/injectLatestProps.js +++ b/injectLatestProps.js @@ -37,7 +37,7 @@ try { console.log("✔️ Cloned react-native-elements"); execSync( - "sed -i '/## Props/,$!d' ./react-native-elements/website/docs/main*.mdx", + "sed -i '/## Props/,$!d' ./react-native-elements/website/docs/main/*.mdx", (err, stdout, stderr) => { if (err) { // node couldn't execute the command From ac6e1463fd887d31bc399f9cd6f03374eb50a86e Mon Sep 17 00:00:00 2001 From: Arpit Bhalla Date: Fri, 31 Dec 2021 00:26:43 +0530 Subject: [PATCH 3/6] Uppercase --- src/content/AirbnbRating/index.jsx | 2 +- src/content/Avatar/index.jsx | 2 +- src/content/Badge/index.jsx | 2 +- src/content/BottomSheet/index.jsx | 2 +- src/content/Button/index.jsx | 2 +- src/content/ButtonGroup/index.jsx | 2 +- src/content/Card/index.jsx | 2 +- src/content/CheckBox/index.jsx | 2 +- src/content/Divider/index.jsx | 2 +- src/content/FAB/index.jsx | 2 +- src/content/Header/index.jsx | 2 +- src/content/Icon/index.jsx | 2 +- src/content/Image/index.jsx | 2 +- src/content/Input/index.jsx | 2 +- src/content/LinearProgress/index.jsx | 2 +- src/content/ListItem/index.jsx | 2 +- src/content/Overlay/index.jsx | 2 +- src/content/Pricing/index.jsx | 2 +- src/content/Rating/index.jsx | 2 +- src/content/SearchBar/index.jsx | 2 +- src/content/Slider/index.jsx | 2 +- src/content/SocialIcon/index.jsx | 2 +- src/content/SpeedDial/index.jsx | 2 +- src/content/Switch/index.jsx | 2 +- src/content/Tab/index.jsx | 2 +- src/content/Text/index.jsx | 2 +- src/content/Tile/index.jsx | 2 +- src/content/ToolTip/index.jsx | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/content/AirbnbRating/index.jsx b/src/content/AirbnbRating/index.jsx index 72673d4..6582299 100644 --- a/src/content/AirbnbRating/index.jsx +++ b/src/content/AirbnbRating/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./airbnbrating.playground.jsx"; -const Content = lazy(() => importMDX("../Props/rating.md")); +const Content = lazy(() => importMDX("../Props/Rating.md")); export default function AirbnbPlayground() { return ( diff --git a/src/content/Avatar/index.jsx b/src/content/Avatar/index.jsx index e49bc33..1b57c31 100644 --- a/src/content/Avatar/index.jsx +++ b/src/content/Avatar/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./avatar.playground.jsx"; -const Content = lazy(() => importMDX("../Props/avatar.md")); +const Content = lazy(() => importMDX("../Props/Avatar.md")); export default function Avatar() { return ( diff --git a/src/content/Badge/index.jsx b/src/content/Badge/index.jsx index 31964d3..2595036 100644 --- a/src/content/Badge/index.jsx +++ b/src/content/Badge/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./badge.playground.jsx"; -const Content = lazy(() => importMDX("../Props/badge.md")); +const Content = lazy(() => importMDX("../Props/Badge.md")); export default function TilePlayground() { return ( diff --git a/src/content/BottomSheet/index.jsx b/src/content/BottomSheet/index.jsx index b7bc587..12cbc1b 100644 --- a/src/content/BottomSheet/index.jsx +++ b/src/content/BottomSheet/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./bottomsheet.playground.jsx"; -const Content = lazy(() => importMDX("../Props/bottomsheet.md")); +const Content = lazy(() => importMDX("../Props/Bottomsheet.md")); export default function BottomSheetPlayground() { return (
diff --git a/src/content/Button/index.jsx b/src/content/Button/index.jsx index 618e954..60e9e57 100644 --- a/src/content/Button/index.jsx +++ b/src/content/Button/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./button.playground.jsx"; -const Content = lazy(() => importMDX("../Props/button.md")); +const Content = lazy(() => importMDX("../Props/Button.md")); class App extends Component { render() { diff --git a/src/content/ButtonGroup/index.jsx b/src/content/ButtonGroup/index.jsx index ccffa50..e1ab6b9 100644 --- a/src/content/ButtonGroup/index.jsx +++ b/src/content/ButtonGroup/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./buttongroup.playground.jsx"; -const Content = lazy(() => importMDX("../Props/button_group.md")); +const Content = lazy(() => importMDX("../Props/Button_group.md")); export default function ButtonGroupPlayground() { return ( diff --git a/src/content/Card/index.jsx b/src/content/Card/index.jsx index 8a3c3be..a982ac8 100644 --- a/src/content/Card/index.jsx +++ b/src/content/Card/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./card.playground.jsx"; -const Content = lazy(() => importMDX("../Props/card.md")); +const Content = lazy(() => importMDX("../Props/Card.md")); export default function CardPlayground() { return ( diff --git a/src/content/CheckBox/index.jsx b/src/content/CheckBox/index.jsx index 22a831e..9d5004d 100644 --- a/src/content/CheckBox/index.jsx +++ b/src/content/CheckBox/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./checkbox.playground.jsx"; -const Content = lazy(() => importMDX("../Props/checkbox.md")); +const Content = lazy(() => importMDX("../Props/Checkbox.md")); export default function CheckBoxPlayground() { return ( diff --git a/src/content/Divider/index.jsx b/src/content/Divider/index.jsx index d09220d..7fcfddd 100644 --- a/src/content/Divider/index.jsx +++ b/src/content/Divider/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./divider.playground.jsx"; -const Content = lazy(() => importMDX("../Props/divider.md")); +const Content = lazy(() => importMDX("../Props/Divider.md")); export default function DividerPlayground() { return ( diff --git a/src/content/FAB/index.jsx b/src/content/FAB/index.jsx index cfb1a80..0d26b3d 100644 --- a/src/content/FAB/index.jsx +++ b/src/content/FAB/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./fab.playground"; -const Content = lazy(() => importMDX("../Props/fab.md")); +const Content = lazy(() => importMDX("../Props/Fab.md")); export default function FabPlayground() { return ( diff --git a/src/content/Header/index.jsx b/src/content/Header/index.jsx index 44953a7..41f603a 100644 --- a/src/content/Header/index.jsx +++ b/src/content/Header/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./header.playground.jsx"; -const Content = lazy(() => importMDX("../Props/header.md")); +const Content = lazy(() => importMDX("../Props/Header.md")); export default function HeaderPlayground() { return ( diff --git a/src/content/Icon/index.jsx b/src/content/Icon/index.jsx index 106160f..104f3f5 100644 --- a/src/content/Icon/index.jsx +++ b/src/content/Icon/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./icon.playground.jsx"; -const Content = lazy(() => importMDX("../Props/icon.md")); +const Content = lazy(() => importMDX("../Props/Icon.md")); export default function IconPlayground() { return ( diff --git a/src/content/Image/index.jsx b/src/content/Image/index.jsx index d19fe42..c6ab333 100644 --- a/src/content/Image/index.jsx +++ b/src/content/Image/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./input.playground.jsx"; -const Content = lazy(() => importMDX("../Props/image.md")); +const Content = lazy(() => importMDX("../Props/Image.md")); export default function ImagePlayground() { return ( diff --git a/src/content/Input/index.jsx b/src/content/Input/index.jsx index 62a3b67..c6c9c91 100644 --- a/src/content/Input/index.jsx +++ b/src/content/Input/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./input.playground.jsx"; -const Content = lazy(() => importMDX("../Props/input.md")); +const Content = lazy(() => importMDX("../Props/Input.md")); export default function InputPlayground() { return ( diff --git a/src/content/LinearProgress/index.jsx b/src/content/LinearProgress/index.jsx index da343c9..916e2c0 100644 --- a/src/content/LinearProgress/index.jsx +++ b/src/content/LinearProgress/index.jsx @@ -3,7 +3,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./linearprogress.playground"; -const Content = lazy(() => importMDX("../Props/linearProgress.md")); +const Content = lazy(() => importMDX("../Props/LinearProgress.md")); export default function LinearProgressPlayground() { return ( diff --git a/src/content/ListItem/index.jsx b/src/content/ListItem/index.jsx index e11afec..56c7a03 100644 --- a/src/content/ListItem/index.jsx +++ b/src/content/ListItem/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Playground from "./listitem.playground.jsx"; import Spinner from "../../containers/Spinner"; -const Content = lazy(() => importMDX("../Props/listitem.md")); +const Content = lazy(() => importMDX("../Props/Listitem.md")); export default function ListItemPlayground() { return ( diff --git a/src/content/Overlay/index.jsx b/src/content/Overlay/index.jsx index 9c992ba..8b27874 100644 --- a/src/content/Overlay/index.jsx +++ b/src/content/Overlay/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./overlay.playground.jsx"; -const Content = lazy(() => importMDX("../Props/overlay.md")); +const Content = lazy(() => importMDX("../Props/Overlay.md")); export default function OverlayPlayground() { return ( diff --git a/src/content/Pricing/index.jsx b/src/content/Pricing/index.jsx index 3bdb401..12b11af 100644 --- a/src/content/Pricing/index.jsx +++ b/src/content/Pricing/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./pricing.playground.jsx"; -const Content = lazy(() => importMDX("../Props/pricing.md")); +const Content = lazy(() => importMDX("../Props/Pricing.md")); export default function PricingPlayground() { return ( diff --git a/src/content/Rating/index.jsx b/src/content/Rating/index.jsx index d7462e5..dbb1b2d 100644 --- a/src/content/Rating/index.jsx +++ b/src/content/Rating/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Playground from "./rating.playground.jsx"; import Spinner from "../../containers/Spinner"; -const Content = lazy(() => importMDX("../Props/rating.md")); +const Content = lazy(() => importMDX("../Props/Rating.md")); export default function RatingPlayground() { return ( diff --git a/src/content/SearchBar/index.jsx b/src/content/SearchBar/index.jsx index b2b6205..6249369 100644 --- a/src/content/SearchBar/index.jsx +++ b/src/content/SearchBar/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./searchbar.playground.jsx"; -const Content = lazy(() => importMDX("../Props/searchbar.md")); +const Content = lazy(() => importMDX("../Props/Searchbar.md")); export default function SearchBarPlayground() { return ( diff --git a/src/content/Slider/index.jsx b/src/content/Slider/index.jsx index 59a66ba..5207b3c 100644 --- a/src/content/Slider/index.jsx +++ b/src/content/Slider/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./slider.playground.jsx"; -const Content = lazy(() => importMDX("../Props/slider.md")); +const Content = lazy(() => importMDX("../Props/Slider.md")); export default function SliderPlayground() { return ( diff --git a/src/content/SocialIcon/index.jsx b/src/content/SocialIcon/index.jsx index 24efa1b..c773f5d 100644 --- a/src/content/SocialIcon/index.jsx +++ b/src/content/SocialIcon/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./socialicon.playground.jsx"; -const Content = lazy(() => importMDX("../Props/social_icons.md")); +const Content = lazy(() => importMDX("../Props/Social_icons.md")); export default function SocialIconPlayground() { return ( diff --git a/src/content/SpeedDial/index.jsx b/src/content/SpeedDial/index.jsx index 341214b..ad204f4 100644 --- a/src/content/SpeedDial/index.jsx +++ b/src/content/SpeedDial/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./speeddial.playground"; -const Content = lazy(() => importMDX("../Props/speeddial.md")); +const Content = lazy(() => importMDX("../Props/Speeddial.md")); export default function SpeedDialPlayground() { return ( diff --git a/src/content/Switch/index.jsx b/src/content/Switch/index.jsx index 30b9c0f..d4a8090 100644 --- a/src/content/Switch/index.jsx +++ b/src/content/Switch/index.jsx @@ -3,7 +3,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./switch.playground.jsx"; -const Content = lazy(() => importMDX("../Props/switch.md")); +const Content = lazy(() => importMDX("../Props/Switch.md")); export default function SwitchPlayground() { return ( diff --git a/src/content/Tab/index.jsx b/src/content/Tab/index.jsx index 856a263..5d6ef3a 100644 --- a/src/content/Tab/index.jsx +++ b/src/content/Tab/index.jsx @@ -3,7 +3,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./tab.playground.jsx"; -const Content = lazy(() => importMDX("../Props/tab.md")); +const Content = lazy(() => importMDX("../Props/Tab.md")); export default function TabPlayground() { return ( diff --git a/src/content/Text/index.jsx b/src/content/Text/index.jsx index c8ffe94..23e54b4 100644 --- a/src/content/Text/index.jsx +++ b/src/content/Text/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./text.playground.jsx"; -const Content = lazy(() => importMDX("../Props/text.md")); +const Content = lazy(() => importMDX("../Props/Text.md")); export default function TextPlayground() { return ( diff --git a/src/content/Tile/index.jsx b/src/content/Tile/index.jsx index 38b97b8..b573149 100644 --- a/src/content/Tile/index.jsx +++ b/src/content/Tile/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./tile.playground.jsx"; -const Content = lazy(() => importMDX("../Props/tile.md")); +const Content = lazy(() => importMDX("../Props/Tile.md")); export default function TilePlayground() { return ( diff --git a/src/content/ToolTip/index.jsx b/src/content/ToolTip/index.jsx index a248cc0..023000c 100644 --- a/src/content/ToolTip/index.jsx +++ b/src/content/ToolTip/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./tooltip.playground.jsx"; -const Content = lazy(() => importMDX("../Props/tooltip.md")); +const Content = lazy(() => importMDX("../Props/Tooltip.md")); export default function ToolTipPlayground() { return ( From d033296495e1807b566a12848966c7899c02ac54 Mon Sep 17 00:00:00 2001 From: Arpit Bhalla Date: Fri, 31 Dec 2021 00:31:44 +0530 Subject: [PATCH 4/6] extension --- src/content/AirbnbRating/index.jsx | 2 +- src/content/Avatar/index.jsx | 2 +- src/content/Badge/index.jsx | 2 +- src/content/BottomSheet/index.jsx | 2 +- src/content/Button/index.jsx | 2 +- src/content/ButtonGroup/index.jsx | 2 +- src/content/Card/index.jsx | 2 +- src/content/CheckBox/index.jsx | 2 +- src/content/Divider/index.jsx | 2 +- src/content/FAB/index.jsx | 2 +- src/content/Header/index.jsx | 2 +- src/content/Icon/index.jsx | 2 +- src/content/Image/index.jsx | 2 +- src/content/Input/index.jsx | 2 +- src/content/LinearProgress/index.jsx | 2 +- src/content/ListItem/index.jsx | 2 +- src/content/Overlay/index.jsx | 2 +- src/content/Pricing/index.jsx | 2 +- src/content/Rating/index.jsx | 2 +- src/content/SearchBar/index.jsx | 2 +- src/content/Slider/index.jsx | 2 +- src/content/SocialIcon/index.jsx | 2 +- src/content/SpeedDial/index.jsx | 2 +- src/content/Switch/index.jsx | 2 +- src/content/Tab/index.jsx | 2 +- src/content/Text/index.jsx | 2 +- src/content/Tile/index.jsx | 2 +- src/content/ToolTip/index.jsx | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/content/AirbnbRating/index.jsx b/src/content/AirbnbRating/index.jsx index 6582299..409ad70 100644 --- a/src/content/AirbnbRating/index.jsx +++ b/src/content/AirbnbRating/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./airbnbrating.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Rating.md")); +const Content = lazy(() => importMDX("../Props/Rating.mdx")); export default function AirbnbPlayground() { return ( diff --git a/src/content/Avatar/index.jsx b/src/content/Avatar/index.jsx index 1b57c31..6ccf7f9 100644 --- a/src/content/Avatar/index.jsx +++ b/src/content/Avatar/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./avatar.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Avatar.md")); +const Content = lazy(() => importMDX("../Props/Avatar.mdx")); export default function Avatar() { return ( diff --git a/src/content/Badge/index.jsx b/src/content/Badge/index.jsx index 2595036..42b6728 100644 --- a/src/content/Badge/index.jsx +++ b/src/content/Badge/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./badge.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Badge.md")); +const Content = lazy(() => importMDX("../Props/Badge.mdx")); export default function TilePlayground() { return ( diff --git a/src/content/BottomSheet/index.jsx b/src/content/BottomSheet/index.jsx index 12cbc1b..f273a1b 100644 --- a/src/content/BottomSheet/index.jsx +++ b/src/content/BottomSheet/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./bottomsheet.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Bottomsheet.md")); +const Content = lazy(() => importMDX("../Props/Bottomsheet.mdx")); export default function BottomSheetPlayground() { return (
diff --git a/src/content/Button/index.jsx b/src/content/Button/index.jsx index 60e9e57..7cfc965 100644 --- a/src/content/Button/index.jsx +++ b/src/content/Button/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./button.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Button.md")); +const Content = lazy(() => importMDX("../Props/Button.mdx")); class App extends Component { render() { diff --git a/src/content/ButtonGroup/index.jsx b/src/content/ButtonGroup/index.jsx index e1ab6b9..f091ce7 100644 --- a/src/content/ButtonGroup/index.jsx +++ b/src/content/ButtonGroup/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./buttongroup.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Button_group.md")); +const Content = lazy(() => importMDX("../Props/Button_group.mdx")); export default function ButtonGroupPlayground() { return ( diff --git a/src/content/Card/index.jsx b/src/content/Card/index.jsx index a982ac8..90ae1af 100644 --- a/src/content/Card/index.jsx +++ b/src/content/Card/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./card.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Card.md")); +const Content = lazy(() => importMDX("../Props/Card.mdx")); export default function CardPlayground() { return ( diff --git a/src/content/CheckBox/index.jsx b/src/content/CheckBox/index.jsx index 9d5004d..37c816a 100644 --- a/src/content/CheckBox/index.jsx +++ b/src/content/CheckBox/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./checkbox.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Checkbox.md")); +const Content = lazy(() => importMDX("../Props/Checkbox.mdx")); export default function CheckBoxPlayground() { return ( diff --git a/src/content/Divider/index.jsx b/src/content/Divider/index.jsx index 7fcfddd..43a8da1 100644 --- a/src/content/Divider/index.jsx +++ b/src/content/Divider/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./divider.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Divider.md")); +const Content = lazy(() => importMDX("../Props/Divider.mdx")); export default function DividerPlayground() { return ( diff --git a/src/content/FAB/index.jsx b/src/content/FAB/index.jsx index 0d26b3d..10716f5 100644 --- a/src/content/FAB/index.jsx +++ b/src/content/FAB/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./fab.playground"; -const Content = lazy(() => importMDX("../Props/Fab.md")); +const Content = lazy(() => importMDX("../Props/Fab.mdx")); export default function FabPlayground() { return ( diff --git a/src/content/Header/index.jsx b/src/content/Header/index.jsx index 41f603a..87f9477 100644 --- a/src/content/Header/index.jsx +++ b/src/content/Header/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./header.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Header.md")); +const Content = lazy(() => importMDX("../Props/Header.mdx")); export default function HeaderPlayground() { return ( diff --git a/src/content/Icon/index.jsx b/src/content/Icon/index.jsx index 104f3f5..a48dc8c 100644 --- a/src/content/Icon/index.jsx +++ b/src/content/Icon/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./icon.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Icon.md")); +const Content = lazy(() => importMDX("../Props/Icon.mdx")); export default function IconPlayground() { return ( diff --git a/src/content/Image/index.jsx b/src/content/Image/index.jsx index c6ab333..afc5fe0 100644 --- a/src/content/Image/index.jsx +++ b/src/content/Image/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./input.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Image.md")); +const Content = lazy(() => importMDX("../Props/Image.mdx")); export default function ImagePlayground() { return ( diff --git a/src/content/Input/index.jsx b/src/content/Input/index.jsx index c6c9c91..d5b337d 100644 --- a/src/content/Input/index.jsx +++ b/src/content/Input/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./input.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Input.md")); +const Content = lazy(() => importMDX("../Props/Input.mdx")); export default function InputPlayground() { return ( diff --git a/src/content/LinearProgress/index.jsx b/src/content/LinearProgress/index.jsx index 916e2c0..6403378 100644 --- a/src/content/LinearProgress/index.jsx +++ b/src/content/LinearProgress/index.jsx @@ -3,7 +3,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./linearprogress.playground"; -const Content = lazy(() => importMDX("../Props/LinearProgress.md")); +const Content = lazy(() => importMDX("../Props/LinearProgress.mdx")); export default function LinearProgressPlayground() { return ( diff --git a/src/content/ListItem/index.jsx b/src/content/ListItem/index.jsx index 56c7a03..cac3967 100644 --- a/src/content/ListItem/index.jsx +++ b/src/content/ListItem/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Playground from "./listitem.playground.jsx"; import Spinner from "../../containers/Spinner"; -const Content = lazy(() => importMDX("../Props/Listitem.md")); +const Content = lazy(() => importMDX("../Props/Listitem.mdx")); export default function ListItemPlayground() { return ( diff --git a/src/content/Overlay/index.jsx b/src/content/Overlay/index.jsx index 8b27874..22cb498 100644 --- a/src/content/Overlay/index.jsx +++ b/src/content/Overlay/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./overlay.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Overlay.md")); +const Content = lazy(() => importMDX("../Props/Overlay.mdx")); export default function OverlayPlayground() { return ( diff --git a/src/content/Pricing/index.jsx b/src/content/Pricing/index.jsx index 12b11af..12a8fe6 100644 --- a/src/content/Pricing/index.jsx +++ b/src/content/Pricing/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./pricing.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Pricing.md")); +const Content = lazy(() => importMDX("../Props/Pricing.mdx")); export default function PricingPlayground() { return ( diff --git a/src/content/Rating/index.jsx b/src/content/Rating/index.jsx index dbb1b2d..b944955 100644 --- a/src/content/Rating/index.jsx +++ b/src/content/Rating/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Playground from "./rating.playground.jsx"; import Spinner from "../../containers/Spinner"; -const Content = lazy(() => importMDX("../Props/Rating.md")); +const Content = lazy(() => importMDX("../Props/Rating.mdx")); export default function RatingPlayground() { return ( diff --git a/src/content/SearchBar/index.jsx b/src/content/SearchBar/index.jsx index 6249369..fc3ce9a 100644 --- a/src/content/SearchBar/index.jsx +++ b/src/content/SearchBar/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./searchbar.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Searchbar.md")); +const Content = lazy(() => importMDX("../Props/Searchbar.mdx")); export default function SearchBarPlayground() { return ( diff --git a/src/content/Slider/index.jsx b/src/content/Slider/index.jsx index 5207b3c..d0c6ef5 100644 --- a/src/content/Slider/index.jsx +++ b/src/content/Slider/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./slider.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Slider.md")); +const Content = lazy(() => importMDX("../Props/Slider.mdx")); export default function SliderPlayground() { return ( diff --git a/src/content/SocialIcon/index.jsx b/src/content/SocialIcon/index.jsx index c773f5d..6df670f 100644 --- a/src/content/SocialIcon/index.jsx +++ b/src/content/SocialIcon/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./socialicon.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Social_icons.md")); +const Content = lazy(() => importMDX("../Props/Social_icons.mdx")); export default function SocialIconPlayground() { return ( diff --git a/src/content/SpeedDial/index.jsx b/src/content/SpeedDial/index.jsx index ad204f4..730d3d8 100644 --- a/src/content/SpeedDial/index.jsx +++ b/src/content/SpeedDial/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./speeddial.playground"; -const Content = lazy(() => importMDX("../Props/Speeddial.md")); +const Content = lazy(() => importMDX("../Props/Speeddial.mdx")); export default function SpeedDialPlayground() { return ( diff --git a/src/content/Switch/index.jsx b/src/content/Switch/index.jsx index d4a8090..d1a2012 100644 --- a/src/content/Switch/index.jsx +++ b/src/content/Switch/index.jsx @@ -3,7 +3,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./switch.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Switch.md")); +const Content = lazy(() => importMDX("../Props/Switch.mdx")); export default function SwitchPlayground() { return ( diff --git a/src/content/Tab/index.jsx b/src/content/Tab/index.jsx index 5d6ef3a..f072677 100644 --- a/src/content/Tab/index.jsx +++ b/src/content/Tab/index.jsx @@ -3,7 +3,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./tab.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Tab.md")); +const Content = lazy(() => importMDX("../Props/Tab.mdx")); export default function TabPlayground() { return ( diff --git a/src/content/Text/index.jsx b/src/content/Text/index.jsx index 23e54b4..4ba26a3 100644 --- a/src/content/Text/index.jsx +++ b/src/content/Text/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./text.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Text.md")); +const Content = lazy(() => importMDX("../Props/Text.mdx")); export default function TextPlayground() { return ( diff --git a/src/content/Tile/index.jsx b/src/content/Tile/index.jsx index b573149..9343a4f 100644 --- a/src/content/Tile/index.jsx +++ b/src/content/Tile/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./tile.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Tile.md")); +const Content = lazy(() => importMDX("../Props/Tile.mdx")); export default function TilePlayground() { return ( diff --git a/src/content/ToolTip/index.jsx b/src/content/ToolTip/index.jsx index 023000c..319881d 100644 --- a/src/content/ToolTip/index.jsx +++ b/src/content/ToolTip/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./tooltip.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Tooltip.md")); +const Content = lazy(() => importMDX("../Props/Tooltip.mdx")); export default function ToolTipPlayground() { return ( From dbc4ac25e975a5cb32c4d9e8cfa49010360064b4 Mon Sep 17 00:00:00 2001 From: Arpit Bhalla Date: Fri, 31 Dec 2021 00:35:39 +0530 Subject: [PATCH 5/6] RNE Dependency --- package.json | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 3a4ad19..6e0d326 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "react-dom": "^16.13.0", "react-helmet": "^6.1.0", "react-lottie": "^1.2.3", - "react-native-elements": "https://github.com/react-native-elements/react-native-elements#dist", + "react-native-elements": "*", "react-native-safe-area-context": "^3.2.0", "react-native-vector-icons": "^6.7.0", "react-native-web": "^0.12.0", @@ -47,11 +47,7 @@ "extends": "react-app" }, "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], + "production": [">0.2%", "not dead", "not op_mini all"], "development": [ "last 1 chrome version", "last 1 firefox version", @@ -81,9 +77,6 @@ } }, "lint-staged": { - "*.{js,jsx,css,md,json}": [ - "npm run validate", - "git add" - ] + "*.{js,jsx,css,md,json}": ["npm run validate", "git add"] } } From 0fd761eecb69d41845955780d187d2005afce877 Mon Sep 17 00:00:00 2001 From: Arpit Bhalla Date: Fri, 31 Dec 2021 00:44:20 +0530 Subject: [PATCH 6/6] typo --- src/content/BottomSheet/index.jsx | 2 +- src/content/ButtonGroup/index.jsx | 2 +- src/content/CheckBox/index.jsx | 2 +- src/content/FAB/index.jsx | 2 +- src/content/ListItem/index.jsx | 2 +- src/content/Pricing/index.jsx | 2 +- src/content/SearchBar/index.jsx | 2 +- src/content/SocialIcon/index.jsx | 2 +- src/content/SpeedDial/index.jsx | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/content/BottomSheet/index.jsx b/src/content/BottomSheet/index.jsx index f273a1b..2d89f11 100644 --- a/src/content/BottomSheet/index.jsx +++ b/src/content/BottomSheet/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./bottomsheet.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Bottomsheet.mdx")); +const Content = lazy(() => importMDX("../Props/BottomSheet.mdx")); export default function BottomSheetPlayground() { return (
diff --git a/src/content/ButtonGroup/index.jsx b/src/content/ButtonGroup/index.jsx index f091ce7..de31ff8 100644 --- a/src/content/ButtonGroup/index.jsx +++ b/src/content/ButtonGroup/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./buttongroup.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Button_group.mdx")); +const Content = lazy(() => importMDX("../Props/ButtonGroup.mdx")); export default function ButtonGroupPlayground() { return ( diff --git a/src/content/CheckBox/index.jsx b/src/content/CheckBox/index.jsx index 37c816a..6d142b0 100644 --- a/src/content/CheckBox/index.jsx +++ b/src/content/CheckBox/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./checkbox.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Checkbox.mdx")); +const Content = lazy(() => importMDX("../Props/CheckBox.mdx")); export default function CheckBoxPlayground() { return ( diff --git a/src/content/FAB/index.jsx b/src/content/FAB/index.jsx index 10716f5..f68acd7 100644 --- a/src/content/FAB/index.jsx +++ b/src/content/FAB/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./fab.playground"; -const Content = lazy(() => importMDX("../Props/Fab.mdx")); +const Content = lazy(() => importMDX("../Props/FAB.mdx")); export default function FabPlayground() { return ( diff --git a/src/content/ListItem/index.jsx b/src/content/ListItem/index.jsx index cac3967..c6d8a26 100644 --- a/src/content/ListItem/index.jsx +++ b/src/content/ListItem/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Playground from "./listitem.playground.jsx"; import Spinner from "../../containers/Spinner"; -const Content = lazy(() => importMDX("../Props/Listitem.mdx")); +const Content = lazy(() => importMDX("../Props/ListItem.mdx")); export default function ListItemPlayground() { return ( diff --git a/src/content/Pricing/index.jsx b/src/content/Pricing/index.jsx index 12a8fe6..d2e86e3 100644 --- a/src/content/Pricing/index.jsx +++ b/src/content/Pricing/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./pricing.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Pricing.mdx")); +const Content = lazy(() => importMDX("../Props/PricingCard.mdx")); export default function PricingPlayground() { return ( diff --git a/src/content/SearchBar/index.jsx b/src/content/SearchBar/index.jsx index fc3ce9a..3f82354 100644 --- a/src/content/SearchBar/index.jsx +++ b/src/content/SearchBar/index.jsx @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./searchbar.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Searchbar.mdx")); +const Content = lazy(() => importMDX("../Props/SearchBar.mdx")); export default function SearchBarPlayground() { return ( diff --git a/src/content/SocialIcon/index.jsx b/src/content/SocialIcon/index.jsx index 6df670f..89749f9 100644 --- a/src/content/SocialIcon/index.jsx +++ b/src/content/SocialIcon/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Spinner from "../../containers/Spinner"; import Playground from "./socialicon.playground.jsx"; -const Content = lazy(() => importMDX("../Props/Social_icons.mdx")); +const Content = lazy(() => importMDX("../Props/SocialIcon.mdx")); export default function SocialIconPlayground() { return ( diff --git a/src/content/SpeedDial/index.jsx b/src/content/SpeedDial/index.jsx index 730d3d8..c46f331 100644 --- a/src/content/SpeedDial/index.jsx +++ b/src/content/SpeedDial/index.jsx @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro"; import PropDrawer from "../../components/PropDrawer"; import Playground from "./speeddial.playground"; -const Content = lazy(() => importMDX("../Props/Speeddial.mdx")); +const Content = lazy(() => importMDX("../Props/SpeedDial.mdx")); export default function SpeedDialPlayground() { return (