Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 docs/default-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id: default-theme
title: Default Theme
---

import { ColorsBlock, FontBlocks, SpaceBlocks } from "/src/components/index";
import { ColorsBlock, FontBlocks, SpaceBlocks } from "../src/components/index";

The theme object is where you define your application's color palette, type scale, font stacks, breakpoints, border radius values, and more.

Expand Down
4 changes: 2 additions & 2 deletions docs/pseudoProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ Now all the pseudo props follow a specific order that defines which pseudo prop
| \_hover | 60 |
| \_focus | 50 |
| \_focusVisible | 55 |
| \_active | 30 |
| \_checked | 30 |
| \_readOnly | 40 |
| \_invalid | 40 |
| \_active | 30 |
| \_checked | 30 |
| \_web | 10 |
| \_android | 10 |
| \_ios | 10 |
Expand Down
2 changes: 1 addition & 1 deletion docs/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Select

import { ComponentTheme } from '../src/components';

import { AndroidBadge } from "/src/components/index";
import { AndroidBadge } from "../src/components/index";

Select creates a dropdown list of items with the selected item in closed view.

Expand Down
52 changes: 52 additions & 0 deletions docs/skeleton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
id: skeleton
title: Skeleton
---

import { ComponentTheme } from '../src/components';

`Skeleton` is used to display the loading state of a component.

## Examples

### Usage

```ComponentSnackPlayer path=components,composites,Skeleton,Basic.tsx

```

### Color

```ComponentSnackPlayer path=components,composites,Skeleton,Color.tsx

```

### Composition

```ComponentSnackPlayer path=components,composites,Skeleton,Composition.tsx

```

### IsLoaded

```ComponentSnackPlayer path=components,composites,Skeleton,isLoaded.tsx

```

## Props

### Skeleton

```ComponentPropTable path=composites,Skeleton,Skeleton.tsx

```

### SkeletonText

```ComponentPropTable path=composites,Skeleton,SkeletonText.tsx

```

## Styling

<ComponentTheme name="skeleton" />
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
content:
'NativeBase 3.0 enables you to build a consistent design system across android, iOS & web. It is powered by React Native ARIA and Styled System. Rich, highly themeable and responsive.',
},
{ name: 'twitter:site', content: '@NativeBaseIO' },
{ name: 'twitter:site', content: '@nativebase' },
{
property: 'og:title',
content:
Expand Down Expand Up @@ -155,7 +155,7 @@ module.exports = {
items: [
{
label: 'Twitter',
href: 'https://twitter.com/nativebaseio',
href: 'https://twitter.com/nativebase',
},
{
label: 'Stack Overflow',
Expand Down
2 changes: 1 addition & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ module.exports = {
'alert',
// 'circularProgress',
'progress',
// 'skeleton',
'skeleton',
// 'snackBar',
'spinner',
'toast',
Expand Down
62 changes: 25 additions & 37 deletions src/theme/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import useThemeContext from '@theme/hooks/useThemeContext';
const communities = [
{
name: 'Twitter',
url: 'https://twitter.com/nativebaseio',
url: 'https://twitter.com/nativebase',
},
{
name: 'StackOverflow',
Expand Down Expand Up @@ -55,16 +55,14 @@ export default function Footer() {
return (
<div className="tailwind">
<div
className={`w-full py-8 mt-10 ${
isDarkTheme ? 'bg-coolGray-800' : 'bg-coolGray-100'
} `}
className={`w-full py-8 mt-10 ${isDarkTheme ? 'bg-coolGray-800' : 'bg-coolGray-100'
} `}
>
<div className="flex flex-col justify-between w-full px-6 mx-auto text-gray-500 max-w-7xl lg:px-4 md:flex-row gap-y-10">
<div className="">
<div
className={`font-semibold ${
isDarkTheme ? 'text-gray-100' : 'text-gray-900'
}`}
className={`font-semibold ${isDarkTheme ? 'text-gray-100' : 'text-gray-900'
}`}
>
Docs
</div>
Expand All @@ -73,9 +71,8 @@ export default function Footer() {
return (
<div className="text-gray-500 hover:underline" key={idx}>
<a
className={` ${linkHoverColor} ${
isDarkTheme ? 'text-gray-200' : 'text-gray-500'
}`}
className={` ${linkHoverColor} ${isDarkTheme ? 'text-gray-200' : 'text-gray-500'
}`}
rel="noreferrer"
href={items.url}
>
Expand All @@ -88,9 +85,8 @@ export default function Footer() {
</div>
<div>
<div
className={`font-semibold ${
isDarkTheme ? 'text-gray-100' : 'text-gray-900'
}`}
className={`font-semibold ${isDarkTheme ? 'text-gray-100' : 'text-gray-900'
}`}
>
Community
</div>
Expand All @@ -99,9 +95,8 @@ export default function Footer() {
return (
<div className="hover:underline " key={idx}>
<a
className={` ${linkHoverColor} ${
isDarkTheme ? 'text-gray-200' : 'text-gray-500'
}`}
className={` ${linkHoverColor} ${isDarkTheme ? 'text-gray-200' : 'text-gray-500'
}`}
rel="noreferrer"
target="_blank"
href={items.url}
Expand All @@ -115,9 +110,8 @@ export default function Footer() {
</div>
<div className="">
<div
className={`font-semibold ${
isDarkTheme ? 'text-gray-100' : 'text-gray-900'
}`}
className={`font-semibold ${isDarkTheme ? 'text-gray-100' : 'text-gray-900'
}`}
>
More
</div>
Expand All @@ -126,9 +120,8 @@ export default function Footer() {
return (
<div className="hover:underline" key={idx}>
<a
className={` ${linkHoverColor} ${
isDarkTheme ? 'text-gray-200' : 'text-gray-500'
} `}
className={` ${linkHoverColor} ${isDarkTheme ? 'text-gray-200' : 'text-gray-500'
} `}
rel="noreferrer"
target="_blank"
href={items.url}
Expand All @@ -143,9 +136,8 @@ export default function Footer() {
<div className="flex flex-col space-y-5 text-gray-500 list-none">
<div className="hover:underline">
<a
className={` ${linkHoverColor} ${
isDarkTheme ? 'text-gray-200' : 'text-gray-500'
}`}
className={` ${linkHoverColor} ${isDarkTheme ? 'text-gray-200' : 'text-gray-500'
}`}
href="https://geekyants.com/?utm_source=RnD&utm_medium=Landing_Page&utm_campaign=NativeBase_3"
target="_blank"
rel="noreferrer"
Expand All @@ -161,9 +153,8 @@ export default function Footer() {
href="https://www.linkedin.com/company/nativebase/about/?viewAsMember=true"
>
<svg
className={`w-6 h-6 ${
isDarkTheme ? 'text-gray-200' : 'text-gray-500 '
} fill-current`}
className={`w-6 h-6 ${isDarkTheme ? 'text-gray-200' : 'text-gray-500 '
} fill-current`}
aria-hidden="true"
focusable="false"
data-prefix="fab"
Expand All @@ -185,9 +176,8 @@ export default function Footer() {
href="https://www.instagram.com/nativebaseio/?hl=en"
>
<svg
className={`w-6 h-6 ${
isDarkTheme ? 'text-gray-200' : 'text-gray-500 '
} fill-current`}
className={`w-6 h-6 ${isDarkTheme ? 'text-gray-200' : 'text-gray-500 '
} fill-current`}
xmlns="http://www.w3.org/2000/svg"
data-name="Layer 1"
viewBox="0 0 24 24"
Expand All @@ -201,9 +191,8 @@ export default function Footer() {
href="https://www.youtube.com/channel/UCoL_iTwpY07vDs91974z3xA/about"
>
<svg
className={`w-6 h-6 ${
isDarkTheme ? 'text-gray-200' : 'text-gray-500 '
} fill-current`}
className={`w-6 h-6 ${isDarkTheme ? 'text-gray-200' : 'text-gray-500 '
} fill-current`}
version="1.0"
xmlns="http://www.w3.org/2000/svg"
width="512.000000pt"
Expand Down Expand Up @@ -233,9 +222,8 @@ export default function Footer() {
</a>
</div>
<div
className={`text-sm ${
isDarkTheme ? 'text-gray-200' : 'text-gray-500 '
}`}
className={`text-sm ${isDarkTheme ? 'text-gray-200' : 'text-gray-500 '
}`}
>
Copyright © 2021 NativeBase
</div>
Expand Down
137 changes: 0 additions & 137 deletions unreleased-docs/skeleton.md

This file was deleted.

Loading