Skip to content

Commit

Permalink
Merge branch 'master' of github.com:elastic/kibana into metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Dec 21, 2016
2 parents f9d527e + 3079cb4 commit c5e936f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/optimize/babel_options.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (!process.env.BABEL_CACHE_PATH) {

exports.webpack = {
stage: 1,
nonStandard: false,
nonStandard: true,
optional: ['runtime']
};

Expand Down
2 changes: 1 addition & 1 deletion src/optimize/babel_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (!process.env.BABEL_CACHE_PATH) {

exports.webpack = {
stage: 1,
nonStandard: false,
nonStandard: true,
optional: ['runtime']
};

Expand Down
23 changes: 7 additions & 16 deletions src/optimize/base_optimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,6 @@ class BaseOptimizer {
return ExtractTextPlugin.extract(makeLoaderString(loaders));
};

const makeBabelLoader = query => {
return makeLoaderString([
{
name: 'babel-loader',
query: defaults({}, query || {}, babelOptions.webpack)
}
]);
};

return {
context: fromRoot('.'),
entry: this.bundles.toWebpackEntries(),
Expand Down Expand Up @@ -143,15 +134,15 @@ class BaseOptimizer {
{ test: /\.(woff|woff2|ttf|eot|svg|ico)(\?|$)/, loader: 'file-loader' },
{ test: /[\/\\]src[\/\\](core_plugins|ui)[\/\\].+\.js$/, loader: loaderWithSourceMaps('rjs-repack-loader') },
{
test: /\.js$/,
test: /\.jsx?$/,
exclude: babelExclude.concat(this.env.noParse),
loader: makeBabelLoader(),
loader: makeLoaderString([
{
name: 'babel-loader',
query: babelOptions.webpack
}
]),
},
{
test: /\.jsx$/,
exclude: babelExclude.concat(this.env.noParse),
loader: makeBabelLoader({ nonStandard: true }),
}
],
postLoaders: this.env.postLoaders || [],
noParse: this.env.noParse,
Expand Down
5 changes: 5 additions & 0 deletions src/ui_framework/components/form/_check_box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@
&:focus {
@include focus;
}

&:disabled {
opacity: 0.3;
cursor: not-allowed;
}
}
5 changes: 5 additions & 0 deletions src/ui_framework/components/form/_text_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@
outline: none;
border-color: $selectedBorderColor;
}

&:disabled {
opacity: 0.3;
cursor: not-allowed;
}
}
6 changes: 6 additions & 0 deletions src/ui_framework/doc_site/src/views/form/check_box.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<input type="checkbox" class="kuiCheckBox">

<hr class="guideBreak">

<input type="checkbox" class="kuiCheckBox" checked>

<hr class="guideBreak">

<input type="checkbox" class="kuiCheckBox" checked disabled>
4 changes: 4 additions & 0 deletions src/ui_framework/doc_site/src/views/form/text_input.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
<hr class="guideBreak">

<input type="text" class="kuiTextInput" required>

<hr class="guideBreak">

<input type="text" class="kuiTextInput" value="Disabled" disabled>

0 comments on commit c5e936f

Please sign in to comment.