Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-UI-React into feat/forward-ref

Signed-off-by: Oleksandr Fediashov <ofediashov@exadel.com>

# Conflicts:
#	package.json
#	yarn.lock
  • Loading branch information
Oleksandr Fediashov committed Jul 25, 2018
2 parents 5cc56b6 + b4844a7 commit da9fa2d
Show file tree
Hide file tree
Showing 91 changed files with 6,072 additions and 1,946 deletions.
78 changes: 78 additions & 0 deletions .babel-preset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
const { NODE_ENV } = process.env

const isESBuild = NODE_ENV === 'build-es'
const isLibBuild = NODE_ENV === 'build' || isESBuild
const isDocsBuild = NODE_ENV === 'development' || NODE_ENV === 'production'

const browsers = [
'last 8 versions',
'safari > 8',
'firefox > 23',
'chrome > 24',
'opera > 15',
'not ie < 11',
'not ie_mob <= 11',
]

const plugins = [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-syntax-dynamic-import',
[
'@babel/plugin-transform-runtime',
{
polyfill: false,
regenerator: isDocsBuild,
},
],
// Plugins that allow to reduce the target bundle size
'lodash',
'transform-react-handled-props',
[
'transform-react-remove-prop-types',
{
mode: 'wrap',
},
],
// A plugin for react-static
isDocsBuild && [
'universal-import',
{
disableWarnings: true,
},
],
// A plugin for removal of debug in production builds
isLibBuild && [
'filter-imports',
{
imports: {
debug: ['default'],
'../../lib': ['makeDebugger'],
},
},
],
].filter(Boolean)

module.exports = () => ({
compact: false,
presets: [
[
'@babel/env',
{
modules: isESBuild ? false : 'commonjs',
targets: { browsers },
},
],
'@babel/react',
],
plugins,
env: {
development: {
plugins: ['react-hot-loader/babel'],
},
test: {
plugins: [['istanbul', { include: ['src'] }]],
},
},
})
32 changes: 1 addition & 31 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,33 +1,3 @@
{
"presets": [
"./build/preset-env",
"@babel/react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-syntax-dynamic-import",
"lodash",
"transform-react-handled-props",
["transform-react-remove-prop-types", {
"mode": "wrap"
}],
["@babel/transform-runtime", {
"polyfill": false,
"regenerator": false
}]
],
"env": {
"development": {
"plugins": [
"react-hot-loader/babel"
]
},
"test": {
"plugins": [
["istanbul", { "include": ["src"] }]
]
}
}
"presets": ["./.babel-preset.js"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ docs/src/exampleMenus
docs/dist/
dll/
node_modules/
tmp/
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Change Log

## [v0.82.1](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.82.1) (2018-07-22)
[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.82.0...v0.82.1)

**Merged pull requests:**

- fix\(Popup\): removing dead line of code [\#3025](https://github.com/Semantic-Org/Semantic-UI-React/pull/3025) ([fracmak](https://github.com/fracmak))
- docs\(Layouts\): add new layout with Grid [\#3023](https://github.com/Semantic-Org/Semantic-UI-React/pull/3023) ([layershifter](https://github.com/layershifter))
- fix\(Portal\): use portalNode to check focus [\#3015](https://github.com/Semantic-Org/Semantic-UI-React/pull/3015) ([layershifter](https://github.com/layershifter))
- docs\(Layouts\): fix size variables in HomepageLayout [\#3014](https://github.com/Semantic-Org/Semantic-UI-React/pull/3014) ([layershifter](https://github.com/layershifter))
- docs\(Button\): update ButtonExampleAnimated to match SemanticICONS type [\#3008](https://github.com/Semantic-Org/Semantic-UI-React/pull/3008) ([tuol](https://github.com/tuol))
- fix\(Icon\): add 'file text outline' type [\#2993](https://github.com/Semantic-Org/Semantic-UI-React/pull/2993) ([paulkoegel-wessels](https://github.com/paulkoegel-wessels))
- fix\(EventStack\): fix erroneous removal of non-empty EventPool [\#2992](https://github.com/Semantic-Org/Semantic-UI-React/pull/2992) ([mic4ael](https://github.com/mic4ael))
- fix\(Modal\): use eventStack to handle clicks on dimmers [\#2989](https://github.com/Semantic-Org/Semantic-UI-React/pull/2989) ([layershifter](https://github.com/layershifter))
- docs\(plugins\): add a plugin for collect sources of examples [\#2986](https://github.com/Semantic-Org/Semantic-UI-React/pull/2986) ([layershifter](https://github.com/layershifter))
- docs\(views\): wrap each view with divs [\#2985](https://github.com/Semantic-Org/Semantic-UI-React/pull/2985) ([layershifter](https://github.com/layershifter))
- fix\(Input\): add lang prop for input fields [\#2982](https://github.com/Semantic-Org/Semantic-UI-React/pull/2982) ([foysalit](https://github.com/foysalit))

## [v0.82.0](https://github.com/Semantic-Org/Semantic-UI-React/tree/v0.82.0) (2018-07-06)
[Full Changelog](https://github.com/Semantic-Org/Semantic-UI-React/compare/v0.81.3...v0.82.0)

Expand Down
35 changes: 0 additions & 35 deletions build/preset-env.js

This file was deleted.

4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ const config = {
compiler_vendor: [
'@babel/standalone',
'brace',
'brace/ext/language_tools',
'brace/mode/jsx',
'brace/mode/html',
'brace/theme/tomorrow',
'brace/theme/tomorrow_night',
'classnames',
'copy-to-clipboard',
'faker',
'prettier/standalone',
'react',
'react-ace',
'react-dom',
Expand Down
109 changes: 109 additions & 0 deletions docs/public/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
html, body {
background: #f7f7f7 !important;
}

.anchorjs-link {
position: absolute;
transition: margin-left .25s, color .25s, opacity 0.25s;
margin-left: -0.2em;
color: #777;
opacity: 0;
}

h1:hover > .anchorjs-link:not(:hover),
h2:hover > .anchorjs-link:not(:hover),
h3:hover > .anchorjs-link:not(:hover),
h4:hover > .anchorjs-link:not(:hover),
h5:hover > .anchorjs-link:not(:hover),
h6:hover > .anchorjs-link:not(:hover) {
margin-left: 0;
opacity: 0.5;
}

.anchorjs-link:hover {
margin-left: 0;
color: cornflowerblue;
opacity: 1;
}

#introduction-page p {
font-size: 1.125em;
margin: 1.5em 0;
}

pre {
margin: 0;
}

code:not(.hljs) {
font-size: 87.5%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
white-space: pre;
display: inline-block;
}

code:not(.hljs)::before {
letter-spacing: -0.2em;
content: "\00a0";
}

code:not(.hljs)::after {
letter-spacing: -0.2em;
content: "\00a0";
}

.docs-icon-set-column {
cursor: pointer;
}

.docs-icon-set-column .icon {
font-size: 2em;
color: #555;
transform: scale(1);
transition: opacity 0.2s, color 0.2s, transform 0.2s;
}

.docs-icon-set-column .name {
display: block;
margin: 1em 0;
color: #777;
}

.docs-icon-set-column:hover > .icon,
.docs-icon-set-column:hover > .name {
color: #000;
}

.docs-icon-set-column:hover > .icon {
transform: scale(1.5);
}

#carbonads {
display: block;
}

#carbonads span {
display: block;
}

.carbon-img {
display: block;
}

.carbon-img img {
display: block;
}

.carbon-text {
display: block;
margin-top: 1em;
}

.carbon-poweredby {
display: block;
margin-top: 0.5em;
font-size: 0.8em;
color: #ffffff;
opacity: 0.5;
}
9 changes: 0 additions & 9 deletions docs/src/404.html

This file was deleted.

16 changes: 16 additions & 0 deletions docs/src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import { hot } from 'react-hot-loader'
import { Router, Switch } from 'react-static'
import Routes from 'react-static-routes'

const App = () => (
<Router>
<Switch>
<Switch>
<Routes />
</Switch>
</Switch>
</Router>
)

export default hot(module)(App)
Loading

0 comments on commit da9fa2d

Please sign in to comment.