mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-06-24 15:03:06 +03:00
update gp version, setup test.md for a fileInput
This commit is contained in:
parent
92af9a3b31
commit
14a3595909
|
@ -4,89 +4,34 @@ title: Test
|
||||||
group: material-design
|
group: material-design
|
||||||
---
|
---
|
||||||
|
|
||||||
## Example
|
## Test
|
||||||
|
|
||||||
|
File browser
|
||||||
|
|
||||||
{% example html id=drawer-1 %}
|
{% example html %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="exampleInputEmail1" class="bmd-label-floating">Email address</label>
|
<label class="control-label" for="inputFile2">Static label</label>
|
||||||
<input type="email" class="form-control" id="exampleInputEmail1">
|
<input type="file" id="inputFile2" multiple>
|
||||||
<span class="bmd-help">We'll never share your email with anyone else.</span>
|
<input type="text" readonly class="form-control" placeholder="Browse2...">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<h2>normal</h2>
|
|
||||||
<div class="form-group has-success">
|
|
||||||
<label class="form-control-label" for="inputSuccess1">Input with success</label>
|
|
||||||
<input type="text" class="form-control form-control-success" id="inputSuccess1">
|
|
||||||
</div>
|
|
||||||
<div class="form-group has-warning">
|
|
||||||
<label class="form-control-label" for="inputWarning1">Input with warning</label>
|
|
||||||
<input type="text" class="form-control form-control-warning" id="inputWarning1">
|
|
||||||
</div>
|
|
||||||
<div class="form-group has-danger">
|
|
||||||
<label class="form-control-label" for="inputDanger1">Input with danger</label>
|
|
||||||
<input type="text" class="form-control form-control-danger" id="inputDanger1">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<h2>sm</h2>
|
|
||||||
<div class="bmd-form-group-sm form-group has-success">
|
|
||||||
<label class="form-control-label" for="inputSuccess1">Input with success</label>
|
|
||||||
<input type="text" class="form-control form-control-success" id="inputSuccess1">
|
|
||||||
</div>
|
|
||||||
<div class="bmd-form-group-sm form-group has-warning">
|
|
||||||
<label class="form-control-label" for="inputWarning1">Input with warning</label>
|
|
||||||
<input type="text" class="form-control form-control-warning" id="inputWarning1">
|
|
||||||
</div>
|
|
||||||
<div class="bmd-form-group-sm form-group has-danger">
|
|
||||||
<label class="form-control-label" for="inputDanger1">Input with danger</label>
|
|
||||||
<input type="text" class="form-control form-control-danger" id="inputDanger1">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2>lg</h2>
|
|
||||||
<div class="bmd-form-group-lg form-group has-success">
|
|
||||||
<label class="form-control-label" for="inputSuccess1">Input with success</label>
|
|
||||||
<input type="text" class="form-control form-control-success" id="inputSuccess1">
|
|
||||||
</div>
|
|
||||||
<div class="bmd-form-group-lg form-group has-warning">
|
|
||||||
<label class="form-control-label" for="inputWarning1">Input with warning</label>
|
|
||||||
<input type="text" class="form-control form-control-warning" id="inputWarning1">
|
|
||||||
</div>
|
|
||||||
<div class="bmd-form-group-lg form-group has-danger">
|
|
||||||
<label class="form-control-label" for="inputDanger1">Input with danger</label>
|
|
||||||
<input type="text" class="form-control form-control-danger" id="inputDanger1">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<fieldset class="form-group">
|
|
||||||
<label for="exampleSelect1">Example select</label>
|
|
||||||
<select class="form-control" id="exampleSelect1">
|
|
||||||
<option>1</option>
|
|
||||||
<option>2</option>
|
|
||||||
<option>3</option>
|
|
||||||
<option>4</option>
|
|
||||||
<option>5</option>
|
|
||||||
</select>
|
|
||||||
</fieldset>
|
|
||||||
<fieldset class="form-group">
|
|
||||||
<label for="exampleSelect2">Example multiple select</label>
|
|
||||||
<select multiple class="form-control" id="exampleSelect2">
|
|
||||||
<option>1</option>
|
|
||||||
<option>2</option>
|
|
||||||
<option>3</option>
|
|
||||||
<option>4</option>
|
|
||||||
<option>5</option>
|
|
||||||
</select>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="exampleInputEmail4" class="bmd-label-floating">Email address disabled</label>
|
<!--<label class="control-label" for="inputFile3">File</label>-->
|
||||||
<input type="email" class="form-control" id="exampleInputEmail4" disabled>
|
<input type="file" id="inputFile3" multiple>
|
||||||
|
<input type="text" readonly class="form-control" placeholder="Placeholder only...">
|
||||||
</div>
|
</div>
|
||||||
<fieldset class="form-group" disabled>
|
|
||||||
<label for="exampleInputEmail5" class="bmd-label-floating">Email address fieldset disabled</label>
|
<div class="form-group">
|
||||||
<input type="email" class="form-control" id="exampleInputEmail5">
|
<input type="file" id="inputFile4" multiple>
|
||||||
</fieldset>
|
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="text" readonly class="form-control" placeholder="Placeholder w/input-group...">
|
||||||
|
<span class="input-group-btn input-group-sm">
|
||||||
|
<button type="button" class="btn btn-fab btn-fab-mini">
|
||||||
|
<i class="mdi-editor-attach-file"></i>
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
|
@ -15,22 +15,19 @@ import {
|
||||||
Aggregate,
|
Aggregate,
|
||||||
Uglify,
|
Uglify,
|
||||||
series,
|
series,
|
||||||
parallel
|
parallel,
|
||||||
|
File
|
||||||
} from 'gulp-pipeline'
|
} from 'gulp-pipeline'
|
||||||
import gulp from 'gulp'
|
import gulp from 'gulp'
|
||||||
import findup from 'findup-sync'
|
|
||||||
import pkg from './package.json'
|
import pkg from './package.json'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import gulpDocs from './gulpfile.babel.docs'
|
import gulpDocs from './gulpfile.babel.docs'
|
||||||
|
|
||||||
const node_modules = findup('node_modules')
|
|
||||||
|
|
||||||
// we have a lot of aggregates, which add listeners
|
// we have a lot of aggregates, which add listeners
|
||||||
gulp.setMaxListeners(20)
|
gulp.setMaxListeners(20)
|
||||||
|
|
||||||
const preset = Preset.baseline({postProcessor: {dest: 'dist'}})
|
|
||||||
|
|
||||||
// When converting non-modular dependencies into usable ones using rollup-plugin-commonjs, if they don't have properly read exports add them here.
|
// When converting non-modular dependencies into usable ones using rollup-plugin-commonjs, if they don't have properly read exports add them here.
|
||||||
|
const node_modules = File.findup('node_modules')
|
||||||
let namedExports = {}
|
let namedExports = {}
|
||||||
//namedExports[`${node_modules}/corejs-typeahead/dist/bloodhound.js`] = ['Bloodhound']
|
//namedExports[`${node_modules}/corejs-typeahead/dist/bloodhound.js`] = ['Bloodhound']
|
||||||
//namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
|
//namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
|
||||||
|
@ -58,6 +55,8 @@ const rollupConfig = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const preset = Preset.baseline()
|
||||||
|
|
||||||
const copyJsToDocs = new Copy(gulp, preset, {
|
const copyJsToDocs = new Copy(gulp, preset, {
|
||||||
task: {name: 'dist:js->docs'},
|
task: {name: 'dist:js->docs'},
|
||||||
source: {
|
source: {
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
"babel-eslint": ">=6.0.4",
|
"babel-eslint": ">=6.0.4",
|
||||||
"babel-preset-es2015": "^6.6.0",
|
"babel-preset-es2015": "^6.6.0",
|
||||||
"gulp": "github:gulpjs/gulp#4.0",
|
"gulp": "github:gulpjs/gulp#4.0",
|
||||||
"gulp-pipeline": "^4.0.34",
|
"gulp-pipeline": "^4.0.37",
|
||||||
"moment": "^2.13.0"
|
"moment": "^2.13.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -37,4 +37,3 @@
|
||||||
margin-left: .75rem;
|
margin-left: .75rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user