This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new presentational components and the required mocks and tests to test them: Components: * Text Input (default, touched, valid, error) * Typography Kit * Dispute Card * Nav Bar * Toasts (info, message, success, error, confirm, etc) Mocks: * Timezone * Current time Also add the --pure-lockfile flag to the travis-ci install script.
- Loading branch information
Showing
37 changed files
with
7,188 additions
and
1,179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# Environment Variables | ||
/.env | ||
|
||
# Dependencies | ||
/node_modules/ | ||
|
||
# Styles | ||
/src/**/*.css | ||
|
||
# Testing | ||
/coverage/ | ||
|
||
# Production | ||
/build/ | ||
|
||
# Docs | ||
# Documentation | ||
/docs/ | ||
|
||
# Env Vars | ||
/.env | ||
|
||
# Misc | ||
/.DS_Store | ||
# Production | ||
/build/ | ||
|
||
# Logs | ||
/yarn-debug.log* | ||
/yarn-error.log* | ||
|
||
# Styles | ||
/src/**/*.css | ||
|
||
# Editors | ||
/.vscode/ | ||
/.idea/* | ||
|
||
# Misc | ||
/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '@storybook/addon-actions/register' | ||
import '@dump247/storybook-state/register' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,39 @@ | ||
import React from 'react' | ||
import { configure, addDecorator } from '@storybook/react' | ||
import { host } from 'storybook-host' | ||
import 'normalize.css' | ||
import { combineReducers, applyMiddleware, createStore } from 'redux' | ||
import { Provider } from 'react-redux' | ||
import ReduxToastr, { reducer as toastr } from 'react-redux-toastr' | ||
import { MemoryRouter } from 'react-router-dom' | ||
|
||
import GlobalComponents from '../src/bootstrap/global-components' | ||
|
||
import '../src/bootstrap/app.css' | ||
|
||
addDecorator( | ||
host({ | ||
title: 'Kleros UI-Kit', | ||
align: 'center middle' | ||
}) | ||
) | ||
|
||
const store = createStore( | ||
combineReducers({ | ||
toastr | ||
}), | ||
applyMiddleware(store => next => action => { | ||
console.log(action) | ||
return next(action) | ||
}) | ||
) | ||
addDecorator(story => ( | ||
<Provider store={store}> | ||
<div> | ||
{console.log(store.getState())} | ||
<MemoryRouter initialEntries={['/']}>{story()}</MemoryRouter> | ||
<GlobalComponents /> | ||
</div> | ||
</Provider> | ||
)) | ||
|
||
configure(() => require('../stories/index.js'), module) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react' | ||
import ReactTooltip from 'react-tooltip' | ||
import ReduxToastr from 'react-redux-toastr' | ||
|
||
export default () => ( | ||
<div> | ||
<ReactTooltip /> | ||
<ReduxToastr | ||
timeOut={0} | ||
position="top-center" | ||
transitionIn="bounceInDown" | ||
transitionOut="bounceOutUp" | ||
progressBar | ||
/> | ||
</div> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.