mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-10 19:57:13 +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
|
||||
---
|
||||
|
||||
## Example
|
||||
## Test
|
||||
|
||||
File browser
|
||||
|
||||
{% example html id=drawer-1 %}
|
||||
{% example html %}
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1" class="bmd-label-floating">Email address</label>
|
||||
<input type="email" class="form-control" id="exampleInputEmail1">
|
||||
<span class="bmd-help">We'll never share your email with anyone else.</span>
|
||||
<label class="control-label" for="inputFile2">Static label</label>
|
||||
<input type="file" id="inputFile2" multiple>
|
||||
<input type="text" readonly class="form-control" placeholder="Browse2...">
|
||||
</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">
|
||||
<label for="exampleInputEmail4" class="bmd-label-floating">Email address disabled</label>
|
||||
<input type="email" class="form-control" id="exampleInputEmail4" disabled>
|
||||
<!--<label class="control-label" for="inputFile3">File</label>-->
|
||||
<input type="file" id="inputFile3" multiple>
|
||||
<input type="text" readonly class="form-control" placeholder="Placeholder only...">
|
||||
</div>
|
||||
<fieldset class="form-group" disabled>
|
||||
<label for="exampleInputEmail5" class="bmd-label-floating">Email address fieldset disabled</label>
|
||||
<input type="email" class="form-control" id="exampleInputEmail5">
|
||||
</fieldset>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="file" id="inputFile4" multiple>
|
||||
|
||||
<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 %}
|
||||
|
|
|
@ -15,22 +15,19 @@ import {
|
|||
Aggregate,
|
||||
Uglify,
|
||||
series,
|
||||
parallel
|
||||
parallel,
|
||||
File
|
||||
} from 'gulp-pipeline'
|
||||
import gulp from 'gulp'
|
||||
import findup from 'findup-sync'
|
||||
import pkg from './package.json'
|
||||
import moment from 'moment'
|
||||
import gulpDocs from './gulpfile.babel.docs'
|
||||
|
||||
const node_modules = findup('node_modules')
|
||||
|
||||
// we have a lot of aggregates, which add listeners
|
||||
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.
|
||||
const node_modules = File.findup('node_modules')
|
||||
let namedExports = {}
|
||||
//namedExports[`${node_modules}/corejs-typeahead/dist/bloodhound.js`] = ['Bloodhound']
|
||||
//namedExports[`${node_modules}/anchor-js/anchor.js`] = ['AnchorJS']
|
||||
|
@ -58,6 +55,8 @@ const rollupConfig = {
|
|||
}
|
||||
}
|
||||
|
||||
const preset = Preset.baseline()
|
||||
|
||||
const copyJsToDocs = new Copy(gulp, preset, {
|
||||
task: {name: 'dist:js->docs'},
|
||||
source: {
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
"babel-eslint": ">=6.0.4",
|
||||
"babel-preset-es2015": "^6.6.0",
|
||||
"gulp": "github:gulpjs/gulp#4.0",
|
||||
"gulp-pipeline": "^4.0.34",
|
||||
"gulp-pipeline": "^4.0.37",
|
||||
"moment": "^2.13.0"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -37,4 +37,3 @@
|
|||
margin-left: .75rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user