diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b59b24d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{html,less,css,yml}] +indent_size = 2 diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..89c86f6 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +dist +package-lock.json +CHANGELOG.md +demo/demo.js diff --git a/README.md b/README.md index adb0134..794a1d0 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ Basic interactive UI patterns like popup menus, tooltips, and modals are surpris `inclusive-elements` provides those basic behaviors in the form of Custom Elements, without any of the cruft. They are: -- **๐ฆฎ Accessible.** Designed following the [WAI-ARIA Authoring Practices](https://w3c.github.io/aria-practices) so everyone can use them. -- **๐ณ Lightweight.** 3kB gzipped with minimal dependencies. Less if you tree-shake only the elements you need. -- **๐จ Unstyled.** Easily integrate with your design bottom-up without having to fight defaults. -- **๐ Easy to use.** Simple API, works with any framework that supports Custom Elements. +- **๐ฆฎ Accessible.** Designed following the [WAI-ARIA Authoring Practices](https://w3c.github.io/aria-practices) so everyone can use them. +- **๐ณ Lightweight.** 3kB gzipped with minimal dependencies. Less if you tree-shake only the elements you need. +- **๐จ Unstyled.** Easily integrate with your design bottom-up without having to fight defaults. +- **๐ Easy to use.** Simple API, works with any framework that supports Custom Elements. ## Installation @@ -23,12 +23,12 @@ npm install inclusive-elements --save Detailed descriptions and usage instructions are contained within each element: -- [Alerts](src/alerts) -- [Menu](src/menu) -- [Modal](src/modal) -- [Popup](src/popup) -- [Toolbar](src/toolbar) -- [Tooltip](src/tooltip) +- [Alerts](src/alerts) +- [Menu](src/menu) +- [Modal](src/modal) +- [Popup](src/popup) +- [Toolbar](src/toolbar) +- [Tooltip](src/tooltip) ## Contributing diff --git a/demo/demo.ts b/demo/demo.ts index 867f240..fefd0e6 100644 --- a/demo/demo.ts +++ b/demo/demo.ts @@ -1,10 +1,10 @@ import { - PopupElement, - TooltipElement, - MenuElement, - ModalElement, - AlertsElement, - ToolbarElement + PopupElement, + TooltipElement, + MenuElement, + ModalElement, + AlertsElement, + ToolbarElement, } from '../dist/index'; window.customElements.define('ui-popup', PopupElement); diff --git a/demo/index.html b/demo/index.html index cb1d700..bc17c30 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1,299 +1,315 @@ - + -
- - -