Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
Merge branch 'v3' into greenkeeper/uikit-3.0.0-beta.21
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Apr 14, 2017
2 parents 7b4df23 + 6a695ba commit 31e3698
Show file tree
Hide file tree
Showing 49 changed files with 4,564 additions and 1,013 deletions.
7 changes: 6 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"presets" : ["react", "es2015", "stage-0"]
"presets" : ["react", "es2015", "stage-0"],
"plugins": [
["babel-plugin-inline-import", {
"extensions": [".svg"]
}]
]
}
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
.coverage
.out
.storybook
src
test
assets.json
guard.js
19 changes: 4 additions & 15 deletions .storybook/Logo.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
import src from './static/logo.svg'

const linkStyle = Object.freeze({
height: '40px',
overflow: 'hidden',
paddingRight: 0,
paddingLeft: 0,
marginLeft: '-15px',
})
const src = require('./static/logo.svg')

const logoStyle = Object.freeze({
height: '70px',
marginTop: '-15px',
opacity: 0.9,
width: '82px',
height: '64px',
})

const Logo = () => <a className="uk-navbar-brand" style={linkStyle}>
<img role="presentation" src={src} style={logoStyle} title="UIkit React Logo" />
const Logo = () => <a className="uk-navbar-item uk-logo">
<img alt="UIkit React Logo" src={src} style={logoStyle} />
</a>

export default Logo
53 changes: 32 additions & 21 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './uikit.less'
import 'uikit/src/less/uikit.theme.less'

import infoAddon from '@kadira/react-storybook-addon-info'
import { configure, setAddon, addDecorator } from '@kadira/storybook'
Expand All @@ -8,26 +8,36 @@ import Logo from './Logo'
setAddon(infoAddon)

addDecorator((fn, { kind, story }) => <div>
<nav className="tm-navbar uk-navbar uk-navbar-attached">
<Logo />
<ul className="uk-navbar-nav">
<li className="uk-active">
<a className="uk-navbar-nav-subtitle">
{kind}
<div>{story}</div>
</a>
</li>
</ul>
<div className="uk-navbar-content">
<iframe
frameBorder="0"
height="20px"
scrolling="0"
src="https://ghbtns.com/github-btn.html?user=stipsan&repo=uikit-react&type=star&count=true"
width="170px"
/>
<nav className="uk-navbar-container uk-navbar">
<div className="uk-navbar-left">
<ul className="uk-navbar-nav">
<li className="uk-active">
<a>
<div>
{kind}
<div className="uk-navbar-subtitle">{story}</div>
</div>
</a>
</li>
</ul>
</div>
<div className="uk-navbar-center">
<Logo />
<div className="uk-navbar-center-right">
<div>
<div className="uk-flex uk-flex-middle" style={{ height: '80px' }}>
<iframe
frameBorder="0"
height="20px"
scrolling="0"
src="https://ghbtns.com/github-btn.html?user=stipsan&repo=uikit-react&type=star&count=true"
width="170px"
/>
</div>
</div>
</div>
</div>
<div className="uk-navbar-flip">
<div className="uk-navbar-right">
<ul className="uk-navbar-nav">
<li>
<a
Expand All @@ -50,8 +60,9 @@ function loadStories() {
require('../src/stories/Button')
require('../src/stories/Dropdown')
require('../src/stories/Modal')
require('../src/stories/Notify')
require('../src/stories/Notification')
require('../src/stories/Input')
require('../src/stories/Icon')
}

configure(loadStories, module)
33 changes: 33 additions & 0 deletions .storybook/static/logo-inverse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 13 additions & 4 deletions .storybook/static/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 0 additions & 25 deletions .storybook/uikit.less

This file was deleted.

132 changes: 0 additions & 132 deletions less/select.less

This file was deleted.

Loading

0 comments on commit 31e3698

Please sign in to comment.