Skip to content

Commit

Permalink
color palette fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshadmirza committed Jan 18, 2020
1 parent 3340f98 commit 3e15c6c
Show file tree
Hide file tree
Showing 22 changed files with 209 additions and 214 deletions.
22 changes: 11 additions & 11 deletions docs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"files": {
"main.js": "/iamshadmirza/react-native-design-system/main.f21124e3495f10574424.bundle.js",
"main.js.map": "/iamshadmirza/react-native-design-system/main.f21124e3495f10574424.bundle.js.map",
"runtime~main.js": "/iamshadmirza/react-native-design-system/runtime~main.f21124e3495f10574424.bundle.js",
"runtime~main.js.map": "/iamshadmirza/react-native-design-system/runtime~main.f21124e3495f10574424.bundle.js.map",
"vendors~main.js": "/iamshadmirza/react-native-design-system/vendors~main.f21124e3495f10574424.bundle.js",
"vendors~main.js.map": "/iamshadmirza/react-native-design-system/vendors~main.f21124e3495f10574424.bundle.js.map",
"main.js": "/iamshadmirza/react-native-design-system/main.c76ea786f78a18fccc62.bundle.js",
"main.js.map": "/iamshadmirza/react-native-design-system/main.c76ea786f78a18fccc62.bundle.js.map",
"runtime~main.js": "/iamshadmirza/react-native-design-system/runtime~main.c76ea786f78a18fccc62.bundle.js",
"runtime~main.js.map": "/iamshadmirza/react-native-design-system/runtime~main.c76ea786f78a18fccc62.bundle.js.map",
"vendors~main.js": "/iamshadmirza/react-native-design-system/vendors~main.c76ea786f78a18fccc62.bundle.js",
"vendors~main.js.map": "/iamshadmirza/react-native-design-system/vendors~main.c76ea786f78a18fccc62.bundle.js.map",
"iframe.html": "/iamshadmirza/react-native-design-system/iframe.html",
"precache-manifest.352e0522653ddf512291e730b0408dfc.js": "/iamshadmirza/react-native-design-system/precache-manifest.352e0522653ddf512291e730b0408dfc.js",
"precache-manifest.3fb88077a982e15b79340b8c6736de89.js": "/iamshadmirza/react-native-design-system/precache-manifest.3fb88077a982e15b79340b8c6736de89.js",
"service-worker.js": "/iamshadmirza/react-native-design-system/service-worker.js",
"vendors~main.f21124e3495f10574424.bundle.js.LICENSE": "/iamshadmirza/react-native-design-system/vendors~main.f21124e3495f10574424.bundle.js.LICENSE"
"vendors~main.c76ea786f78a18fccc62.bundle.js.LICENSE": "/iamshadmirza/react-native-design-system/vendors~main.c76ea786f78a18fccc62.bundle.js.LICENSE"
},
"entrypoints": [
"runtime~main.f21124e3495f10574424.bundle.js",
"vendors~main.f21124e3495f10574424.bundle.js",
"main.f21124e3495f10574424.bundle.js"
"runtime~main.c76ea786f78a18fccc62.bundle.js",
"vendors~main.c76ea786f78a18fccc62.bundle.js",
"main.c76ea786f78a18fccc62.bundle.js"
]
}
2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@
}</style><style>#root[hidden],
#docs-root[hidden] {
display: none !important;
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.f21124e3495f10574424.bundle.js"></script><script src="vendors~main.f21124e3495f10574424.bundle.js"></script><script src="main.f21124e3495f10574424.bundle.js"></script></body></html>
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.c76ea786f78a18fccc62.bundle.js"></script><script src="vendors~main.c76ea786f78a18fccc62.bundle.js"></script><script src="main.c76ea786f78a18fccc62.bundle.js"></script></body></html>
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
}</script><style>#root[hidden],
#docs-root[hidden] {
display: none !important;
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['DOCS_MODE'] = false;</script><script src="runtime~main.1082140af9db1185c9a2.bundle.js"></script><script src="vendors~main.5d9fc8bc430beb89e1a7.bundle.js"></script><script src="main.fe00dd6206d82a44b6f0.bundle.js"></script></body></html>
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['DOCS_MODE'] = false;</script><script src="runtime~main.1082140af9db1185c9a2.bundle.js"></script><script src="vendors~main.c17bac74e08433f48834.bundle.js"></script><script src="main.fe00dd6206d82a44b6f0.bundle.js"></script></body></html>
2 changes: 2 additions & 0 deletions docs/main.c76ea786f78a18fccc62.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/main.c76ea786f78a18fccc62.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions docs/main.f21124e3495f10574424.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/main.f21124e3495f10574424.bundle.js.map

This file was deleted.

18 changes: 0 additions & 18 deletions docs/precache-manifest.352e0522653ddf512291e730b0408dfc.js

This file was deleted.

18 changes: 18 additions & 0 deletions docs/precache-manifest.3fb88077a982e15b79340b8c6736de89.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "3c442accc26b7e455784a471d24ebe7f",
"url": "iframe.html"
},
{
"url": "main.c76ea786f78a18fccc62.bundle.js"
},
{
"url": "runtime~main.c76ea786f78a18fccc62.bundle.js"
},
{
"url": "vendors~main.c76ea786f78a18fccc62.bundle.js"
},
{
"url": "vendors~main.c76ea786f78a18fccc62.bundle.js.LICENSE"
}
]);

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/runtime~main.c76ea786f78a18fccc62.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/runtime~main.f21124e3495f10574424.bundle.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion docs/sb_dll/storybook_ui_dll.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"precache-manifest.352e0522653ddf512291e730b0408dfc.js"
"precache-manifest.3fb88077a982e15b79340b8c6736de89.js"
);

self.addEventListener('message', (event) => {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/vendors~main.c76ea786f78a18fccc62.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/vendors~main.f21124e3495f10574424.bundle.js.map

This file was deleted.

35 changes: 15 additions & 20 deletions guides/Colors.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,22 @@ import { colors } from 'react-native-design-system';

theme.brandColor.primary = color.lime['A700'];
```

<Preview>
<Story name="colors">
<ColorPalette>
<ColorPalette>
<FlatList
data={Object.keys(color)}
keyExtractor={(colorGroup, index) => index.toString()}
renderItem={({ item: colorGroup }) => (
<FlatList
data={Object.keys(color)}
keyExtractor={(colorGroup, index) => index.toString()}
renderItem={({ item: colorGroup }) => (
<FlatList
data={Object.keys(color[colorGroup])}
keyExtractor={hex => hex}
renderItem={({ item: hex }) => (
<ColorItem
title={`colors.${colorGroup}['${hex}']`}
subtitle={colorGroup.toUpperCase()}
colors={[color[colorGroup][hex]]}
/>
)}
data={Object.keys(color[colorGroup])}
keyExtractor={hex => hex}
renderItem={({ item: hex }) => (
<ColorItem
title={`colors.${colorGroup}['${hex}']`}
subtitle={colorGroup.toUpperCase()}
colors={[color[colorGroup][hex]]}
/>
)}
/>
</ColorPalette>
</Story>
</Preview>
)}
/>
</ColorPalette>
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@
"prop-types": "^15.7.2"
},
"peerDependencies": {
"react-native-vector-icons": ">6.0.0",
"react": ">=16.4.1",
"react-native": ">=0.56.0"
"react-native": ">=0.56.0",
"react-native-vector-icons": ">6.0.0"
},
"devDependencies": {
"@babel/core": "^7.7.5",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.7.6",
"@react-native-community/eslint-config": "^0.0.5",
"@storybook/addon-actions": "^5.3.0",
"@storybook/addon-docs": "^5.3.0",
"@storybook/addon-knobs": "^5.3.0",
"@storybook/react": "^5.3.0",
"@storybook/theming": "^5.3.0",
"@storybook/addon-actions": "^5.3.6",
"@storybook/addon-docs": "^5.3.6",
"@storybook/addon-knobs": "^5.3.6",
"@storybook/react": "^5.3.6",
"@storybook/theming": "^5.3.6",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"cache-loader": "^2.0.1",
Expand All @@ -56,11 +56,11 @@
"metro-react-native-babel-preset": "^0.57.0",
"react": "16.9.0",
"react-dom": "^16.8.3",
"react-native-vector-icons": "^6.6.0",
"react-native-web": "^0.11.7",
"react-scripts": "^3.2.0",
"react-test-renderer": "16.9.0",
"thread-loader": "^2.1.2",
"url-loader": "^3.0.0",
"react-native-vector-icons": "^6.6.0"
"url-loader": "^3.0.0"
}
}
}
Loading

0 comments on commit 3e15c6c

Please sign in to comment.