Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #343 from cthit/dev
Browse files Browse the repository at this point in the history
v1.0
  • Loading branch information
Portals authored Apr 11, 2020
2 parents f044279 + 5462d89 commit 19a393f
Show file tree
Hide file tree
Showing 146 changed files with 7,747 additions and 2,642 deletions.
6 changes: 1 addition & 5 deletions .storybook/DigitProvidersDecorator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import { DigitProviders, DigitToast, DigitDialog } from "../src";

const DigitProvidersDecorator = StoryFn => (
<DigitProviders memoryRouter defaultLanguage={"en"}>
<>
<DigitToast />
<DigitDialog />
<StoryFn />
</>
<StoryFn />
</DigitProviders>
);

Expand Down
7 changes: 3 additions & 4 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<link
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,900"
rel="stylesheet"
/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900&display=swap" />

<style>
body {
padding: 0;
margin: 0;
}

pre code { tab-size: 2 !important; }
</style>
4 changes: 3 additions & 1 deletion COMPONENT-REQUIREMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ These are the rules for every component in react-digit-component:
* Inputs are uncontrolled
* Inputs should have a value and an onChange prop.
* Try not to add new dependencies to react-digit-components with your component
* There must be a really, **really** good reason to add a new dependency.
* There must be a really, **really** good reason to add a new dependency.
* Only add HTML elements that actively contributes to the semantics.
* Avoid having divs that wraps around components that only applies CSS for example.
26 changes: 13 additions & 13 deletions docs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"files": {
"main.js": "/cthit/react-digit-components/main.f83ad833d5a47e84bf07.bundle.js",
"main.js.map": "/cthit/react-digit-components/main.f83ad833d5a47e84bf07.bundle.js.map",
"runtime~main.js": "/cthit/react-digit-components/runtime~main.f83ad833d5a47e84bf07.bundle.js",
"runtime~main.js.map": "/cthit/react-digit-components/runtime~main.f83ad833d5a47e84bf07.bundle.js.map",
"vendors~main.js": "/cthit/react-digit-components/vendors~main.f83ad833d5a47e84bf07.bundle.js",
"vendors~main.js.map": "/cthit/react-digit-components/vendors~main.f83ad833d5a47e84bf07.bundle.js.map",
"iframe.html": "/cthit/react-digit-components/iframe.html",
"precache-manifest.628f3cfd2394c662f5105cf87c58b0fe.js": "/cthit/react-digit-components/precache-manifest.628f3cfd2394c662f5105cf87c58b0fe.js",
"service-worker.js": "/cthit/react-digit-components/service-worker.js",
"vendors~main.f83ad833d5a47e84bf07.bundle.js.LICENSE": "/cthit/react-digit-components/vendors~main.f83ad833d5a47e84bf07.bundle.js.LICENSE"
"main.js": "/cthit/react-digit-componentsmain.a8818cb465da650b787a.bundle.js",
"main.js.map": "/cthit/react-digit-componentsmain.a8818cb465da650b787a.bundle.js.map",
"runtime~main.js": "/cthit/react-digit-componentsruntime~main.a8818cb465da650b787a.bundle.js",
"runtime~main.js.map": "/cthit/react-digit-componentsruntime~main.a8818cb465da650b787a.bundle.js.map",
"vendors~main.js": "/cthit/react-digit-componentsvendors~main.a8818cb465da650b787a.bundle.js",
"vendors~main.js.map": "/cthit/react-digit-componentsvendors~main.a8818cb465da650b787a.bundle.js.map",
"iframe.html": "/cthit/react-digit-componentsiframe.html",
"precache-manifest.813c1b8118e54c0ffe1534cf36142b02.js": "/cthit/react-digit-componentsprecache-manifest.813c1b8118e54c0ffe1534cf36142b02.js",
"service-worker.js": "/cthit/react-digit-componentsservice-worker.js",
"vendors~main.a8818cb465da650b787a.bundle.js.LICENSE.txt": "/cthit/react-digit-componentsvendors~main.a8818cb465da650b787a.bundle.js.LICENSE.txt"
},
"entrypoints": [
"runtime~main.f83ad833d5a47e84bf07.bundle.js",
"vendors~main.f83ad833d5a47e84bf07.bundle.js",
"main.f83ad833d5a47e84bf07.bundle.js"
"runtime~main.a8818cb465da650b787a.bundle.js",
"vendors~main.a8818cb465da650b787a.bundle.js",
"main.a8818cb465da650b787a.bundle.js"
]
}
8 changes: 5 additions & 3 deletions docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@
} catch (e) {
// eslint-disable-next-line no-console
console.warn('unable to connect to top frame for connecting dev tools');
}</script><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,900" rel="stylesheet"><style>body {
}</script><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900&display=swap"><style>body {
padding: 0;
margin: 0;
}</style><style>#root[hidden],
}

pre code { tab-size: 2 !important; }</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.f83ad833d5a47e84bf07.bundle.js"></script><script src="vendors~main.f83ad833d5a47e84bf07.bundle.js"></script><script src="main.f83ad833d5a47e84bf07.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.a8818cb465da650b787a.bundle.js"></script><script src="vendors~main.a8818cb465da650b787a.bundle.js"></script><script src="main.a8818cb465da650b787a.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.cb88fc986ee6a42eb7f0.bundle.js"></script><script src="vendors~main.45405e3984480fa4078f.bundle.js"></script><script src="main.4be2edf984db80c73c8c.bundle.js"></script></body></html>
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['DOCS_MODE'] = true;</script><script src="runtime~main.cb88fc986ee6a42eb7f0.bundle.js"></script><script src="vendors~main.9d7a66bede8111286bbf.bundle.js"></script><script src="main.4be2edf984db80c73c8c.bundle.js"></script></body></html>
2 changes: 2 additions & 0 deletions docs/main.a8818cb465da650b787a.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/main.a8818cb465da650b787a.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.f83ad833d5a47e84bf07.bundle.js

This file was deleted.

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

This file was deleted.

18 changes: 0 additions & 18 deletions docs/precache-manifest.628f3cfd2394c662f5105cf87c58b0fe.js

This file was deleted.

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

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.a8818cb465da650b787a.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.f83ad833d5a47e84bf07.bundle.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion docs/sb_dll/storybook_ui-manifest.json

Large diffs are not rendered by default.

130 changes: 65 additions & 65 deletions docs/sb_dll/storybook_ui_dll.LICENCE
Original file line number Diff line number Diff line change
@@ -1,33 +1,8 @@
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.0
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

/*!
* https://github.com/es-shims/es5-shim
* @license es5-shim Copyright 2009-2015 by contributors, MIT License
* see https://github.com/es-shims/es5-shim/blob/master/LICENSE
*/
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/*!
Copyright (c) 2017 Jed Watson.
Expand All @@ -36,10 +11,18 @@
*/

/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
* Fuse.js v3.4.6 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*/

/*!
* https://github.com/es-shims/es5-shim
* @license es5-shim Copyright 2009-2015 by contributors, MIT License
* see https://github.com/es-shims/es5-shim/blob/master/LICENSE
*/

/*!
Expand All @@ -52,8 +35,24 @@
* https://github.com/paulmillr/es6-shim/
*/

/** @license React v16.12.0
* react.production.min.js
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/

/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/

/** @license React v0.18.0
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
Expand All @@ -62,52 +61,53 @@
*/

/** @license React v16.12.0
* react-is.production.min.js
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v0.16.2
* scheduler.production.min.js
/** @license React v16.12.0
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/

/*!
* Fuse.js v3.4.6 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*/

/** @license React v16.11.0
* react-dom.production.min.js
/** @license React v16.12.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
2 changes: 1 addition & 1 deletion docs/sb_dll/storybook_ui_dll.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions 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.628f3cfd2394c662f5105cf87c58b0fe.js"
"precache-manifest.813c1b8118e54c0ffe1534cf36142b02.js"
);

self.addEventListener('message', (event) => {
Expand All @@ -33,7 +33,7 @@ workbox.core.clientsClaim();
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});

workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/cthit/react-digit-components/index.html"), {
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/cthit/react-digit-componentsindex.html"), {

blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
});
111 changes: 0 additions & 111 deletions docs/vendors~main.45405e3984480fa4078f.bundle.js

This file was deleted.

111 changes: 111 additions & 0 deletions docs/vendors~main.9d7a66bede8111286bbf.bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/vendors~main.a8818cb465da650b787a.bundle.js

Large diffs are not rendered by default.

Loading

0 comments on commit 19a393f

Please sign in to comment.