Skip to content

Commit

Permalink
Add theming capability (#487)
Browse files Browse the repository at this point in the history
* Add custom theme and provider and begin implementation on components

* Update autocomplete and clean up shared styles and add docs

* Update choice and combobox

* Update more components with theme

* Add theming to more components

* Update even more components with theming

* Update the remaining components

* Merge branch 'master' into add-theming

# Conflicts:
#	src/components/index.js

* Fix button and autocomplete tests

* Fix tests for more components

* Return classname if not found

* Fix remaining tests and update final snapshots

* Add test for themeProvider

* Fixes

* Remove old test

* Fix linting

* Sonar fixes

* Fix mistake

* More sonar fixes

* Fix linting

* More sonar fixes

* Fixes

* Update snapshots

* Fix changes to combobox styles which were a mistake

* Remove empty styles from label

* Fixes

* Fix linting and update snapshot

* Bump major version due to major feature

* Fix babel/storybook issues when running and building

* Build docs
  • Loading branch information
kaytcat authored May 3, 2019
1 parent c5fd2fb commit 59092af
Show file tree
Hide file tree
Showing 146 changed files with 4,240 additions and 2,052 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
"original": "utils/params",
"replacement": "../../utils/params",
},
{
"original": "utils/theming",
"replacement": "../../utils/theming",
},
{
"original": "utils/themeContext",
"replacement": "../../utils/themeContext",
},
{
"original": "./index.scss",
"replacement": "./index.css"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Welcome to [kununu's](https://wwww.kununu.com) collection of [React](https://fac
* Over 80% code coverage
* Frequently updated
* Wide range of form and UI components
* Themeable

<br />

Expand Down
2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
console.warn('unable to connect to parent frame for connecting dev tools');
}</script></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></div></div><div class="sb-errordisplay sb-wrapper"><div id="error-message" class="sb-heading"></div><pre class="sb-errordisplay_code">
<code id="error-stack"></code>
</pre></div><div id="root"></div><script src="runtime~main.c6b4ffc9f003e0bbaf95.bundle.js"></script><script src="vendors~main.c6b4ffc9f003e0bbaf95.bundle.js"></script><script src="main.c6b4ffc9f003e0bbaf95.bundle.js"></script></body></html>
</pre></div><div id="root"></div><script src="runtime~main.35ab7ebd607dba53499d.bundle.js"></script><script src="vendors~main.35ab7ebd607dba53499d.bundle.js"></script><script src="main.35ab7ebd607dba53499d.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 @@ -80,4 +80,4 @@
c1.2,1.5,0.7,3.5,0.7,3.5c-0.7,2.9,1,4.3,2.3,4.9l0.3-0.3c1-0.8,2-1,2.7-1c-2.7-3.4-4.7-7.7,0.5-13c1.5-1.5,3.3-2.2,5.1-2.2
c0.2-0.5,1.1-2.4,3.7-3.5c0,0,1.5,0.8,2.4,5.2c1.4,0.8,2.7,1.8,3.9,2.9c1.2,1.2,2.2,2.5,2.9,3.9c4.4,0.8,5.2,2.3,5.2,2.3
c-1.2,2.6-3,3.6-3.5,3.7c-0.1,1.9-0.8,3.6-2.3,5.1c-5.2,5.2-9.6,3.2-13,0.5c0.1,0.9-0.3,2.2-1.6,3.5l-3.7,3.7
c-0.2,0.2-0.1,0.5-0.1,0.9l0.4,0.9L-135,297v-80H-215z"/></g></svg></a><script>document.title = 'Nukleus';</script></head><body><div id="root"></div><script src="./sb_dll/storybook_ui_dll.js"></script><script src="runtime~main.6ac4c33d73ae9704bbb9.bundle.js"></script><script src="vendors~main.313a5565c870676eef3b.bundle.js"></script><script src="main.63a98c5aef6a878d23a7.bundle.js"></script></body></html>
c-0.2,0.2-0.1,0.5-0.1,0.9l0.4,0.9L-135,297v-80H-215z"/></g></svg></a><script>document.title = 'Nukleus';</script></head><body><div id="root"></div><script src="./sb_dll/storybook_ui_dll.js"></script><script src="runtime~main.6ac4c33d73ae9704bbb9.bundle.js"></script><script src="vendors~main.ae0f9bd021234ed49e44.bundle.js"></script><script src="main.29d295f6af76d587efb4.bundle.js"></script></body></html>
1 change: 1 addition & 0 deletions docs/main.29d295f6af76d587efb4.bundle.js

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

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/main.35ab7ebd607dba53499d.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/main.63a98c5aef6a878d23a7.bundle.js

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

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

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

Large diffs are not rendered by default.

105 changes: 0 additions & 105 deletions docs/vendors~main.313a5565c870676eef3b.bundle.js

This file was deleted.

110 changes: 110 additions & 0 deletions docs/vendors~main.35ab7ebd607dba53499d.bundle.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

105 changes: 105 additions & 0 deletions docs/vendors~main.ae0f9bd021234ed49e44.bundle.js

Large diffs are not rendered by default.

110 changes: 0 additions & 110 deletions docs/vendors~main.c6b4ffc9f003e0bbaf95.bundle.js

This file was deleted.

Loading

0 comments on commit 59092af

Please sign in to comment.