Skip to content

Commit

Permalink
build: switch from Rollup to Vite, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Aug 4, 2022
1 parent 40d6dec commit 422f283
Show file tree
Hide file tree
Showing 28 changed files with 2,897 additions and 9,388 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dist
package-lock.json
CHANGELOG.md
demo/demo.js
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Upgrade to `@floating-ui/dom` 1.0.0.
- Switch build tool from Rollup to Vite.

## [0.1.3] - 2022-06-05
### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**Accessible, lightweight, unstyled implementations of common UI controls.**

[**Demo**](https://tobyzerner.github.io/inclusive-elements/demo/index.html)
[**Demo**](https://tobyzerner.github.io/inclusive-elements/index.html)

Basic interactive UI patterns like popup menus, tooltips, and modals are surprisingly hard to get right on the web. Component libraries tend to be weighty, opinionated, and come tightly coupled with styles you don't want. On the other hand, rolling your own components feels like you're reinventing the wheel and puts accessibility at risk.

Expand Down
10 changes: 0 additions & 10 deletions demo/demo.js

This file was deleted.

15 changes: 0 additions & 15 deletions demo/demo.ts

This file was deleted.

17 changes: 0 additions & 17 deletions demo/rollup.config.js

This file was deleted.

17 changes: 0 additions & 17 deletions dist/alerts/alerts.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions dist/index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions dist/menu/menu.d.ts

This file was deleted.

17 changes: 0 additions & 17 deletions dist/modal/modal.d.ts

This file was deleted.

15 changes: 0 additions & 15 deletions dist/popup/popup.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions dist/toolbar/toolbar.d.ts

This file was deleted.

23 changes: 0 additions & 23 deletions dist/tooltip/tooltip.d.ts

This file was deleted.

19 changes: 18 additions & 1 deletion demo/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,24 @@ <h2 id="your-dialog-title-id">Your dialog title</h2>
<button>Five</button>
</ui-toolbar>

<script src="demo.js"></script>
<script type="module">
import {
PopupElement,
TooltipElement,
MenuElement,
ModalElement,
AlertsElement,
ToolbarElement,
} from 'https://unpkg.com/inclusive-elements';
// } from './src/index.ts';

window.customElements.define('ui-popup', PopupElement);
window.customElements.define('ui-tooltip', TooltipElement);
window.customElements.define('ui-menu', MenuElement);
window.customElements.define('ui-modal', ModalElement);
window.customElements.define('ui-alerts', AlertsElement);
window.customElements.define('ui-toolbar', ToolbarElement);
</script>

<script>
function createAlert(type, message) {
Expand Down
Loading

0 comments on commit 422f283

Please sign in to comment.