-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'react-16.3' of https://github.com/Semantic-Org/Semantic…
…-UI-React into feat/forward-ref Signed-off-by: Oleksandr Fediashov <ofediashov@exadel.com> # Conflicts: # package.json # yarn.lock
- Loading branch information
Showing
91 changed files
with
6,072 additions
and
1,946 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 |
---|---|---|
@@ -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'] }]], | ||
}, | ||
}, | ||
}) |
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,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"] | ||
} |
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 |
---|---|---|
|
@@ -14,3 +14,4 @@ docs/src/exampleMenus | |
docs/dist/ | ||
dll/ | ||
node_modules/ | ||
tmp/ |
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 was deleted.
Oops, something went wrong.
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,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; | ||
} |
This file was deleted.
Oops, something went wrong.
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 { 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) |
Oops, something went wrong.