mk-ui
v2.1.61
Published
Flexible, Accessible Web Components
Downloads
64
Readme
Mk[ui] v2.0
Flexible, Accessible Web Components.
- Independent of any 3rd party libraries/frameworks (including jQuery).
- Supports AMD, CommonJS, and vanilla JavaScript.
- Plays nice with Angular and React.
- Easily customizable JavaScript, CSS (both LESS and SCSS versions), and Markup for any component.
- Written with responsive design and full WCAG 2.0 accessibility support.
- Written with full mobile and tablet support (and their screen readers) for the best user experience possible.
Live Docs & Examples
Check out our live documentation and example of each available component on our GitHub Pages.
Mk[ui] v1.0
Using an older version of Mk[ui]? Get access to the old repository here.
Currently Available Components
- Core
- Selectmenu
- Datepicker
- Autocomplete
- Tooltip
- Dialog
- Loader
Available Soon
- Modal
- Accordion
- Table Sorter
Install
You can copy the files directly from this repo OR (recommended) you can install this project as a node module using npm. Using NPM is ideal for easy updates. It also will not give you the enitre project. Doing an install gives you the JavaScript, Less, SCSS, and CSS assets for Mk-Ui only. So don't worry about the install being bulky, it ain't.
npm install mk-ui
Documentation
Clone or Fork this repository for the most up to date documentation. Once the you have the app running, simply go to localhost:5280 to launch the docs site. Or just visit our GitHub Pages.
git clone https://github.com/markitondemand/mk-ui.git mk-ui
cd mk-ui
npm install !!!!NOTE THAT THIS REQUIRES AN OLDER VERSION OF NODE/NPM 6.10.0 WORKS!!!!
node index.js
Bugs, Patches, Features, and Pull Requests
When implementing a bug fix, patch, feature, and creating a pull request, you'll want to modify the JavaScript source files that live in /src/js. For CSS/SCSS changes, you'll want to make modifications to /dist/scss. DO NOT MODIFY JAVASCRIPT or .CSS FILES LIVING IN THE DIST FOLDER. When your changes are completed and at a point where you're ready to open a Pull Request, we have a couple handy gulp methods you should take advantage of first.
For compiling SCSS to CSS:
gulp sass
For compiling LESS to CSS (use for testing only. SCSS output is cleaner):
gulp less
For concating the Core files (Mk Core or Mk DOM). Use when making changes to the Core or DOM and BEFORE minify.
# to build core
gulp build-core
#to build dom
gulp build-dom
For creating both minified and unminified JavaScript files in the dist folder:
gulp minify
If you edit any documentation pages:
gulp static-site
Publishing: Log in to the npmjs.org registry. If you are on a Markit machine you need to log out of Artifactory and into npmjs.org first. Make sure the version number has been bumped in the package.json file or you will not be able to create a new package.
npm login
# enter username and password at the prompt
npm publish