├── .github
└── FUNDING.yml
├── .gitignore
├── .npmignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── docs
├── wired-button.md
├── wired-calendar.md
├── wired-card.md
├── wired-checkbox.md
├── wired-combo.md
├── wired-dialog.md
├── wired-divider.md
├── wired-fab.md
├── wired-icon-button.md
├── wired-image.md
├── wired-input.md
├── wired-item.md
├── wired-link.md
├── wired-listbox.md
├── wired-progress-ring.md
├── wired-progress.md
├── wired-radio-group.md
├── wired-radio.md
├── wired-search-input.md
├── wired-slider.md
├── wired-spinner.md
├── wired-tabs.md
├── wired-textarea.md
├── wired-toggle.md
└── wired-video.md
├── examples
├── button.html
├── calendar.html
├── card.html
├── checkbox.html
├── combo.html
├── dialog.html
├── divider.html
├── fab.html
├── icon-button.html
├── image.html
├── input.html
├── link.html
├── listbox.html
├── progress-ring.html
├── progress.html
├── radio.html
├── search-input.html
├── slider.html
├── spinner.html
├── tabs.html
├── textarea.html
├── toggle.html
└── video.html
├── experimental
├── icon.html
├── iconset-generator.html
├── wired-icon
│ ├── README.md
│ ├── lib
│ │ ├── WiredIcon.d.ts
│ │ ├── WiredIcon.js
│ │ ├── wired-icon.d.ts
│ │ └── wired-icon.js
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ ├── WiredIcon.ts
│ │ └── wired-icon.ts
│ └── tsconfig.json
└── wired-mat-icon
│ ├── CONTRIBUTING.md
│ ├── README.md
│ ├── generate
│ ├── actions.svg
│ ├── alert.svg
│ ├── av.svg
│ ├── communication.svg
│ ├── content.svg
│ ├── device.svg
│ ├── editor.svg
│ ├── file.svg
│ ├── hardware.svg
│ ├── image.svg
│ ├── index.html
│ ├── maps.svg
│ ├── navigation.svg
│ ├── not_converted.svg
│ ├── notification.svg
│ ├── places.svg
│ ├── social.svg
│ └── toggle.svg
│ ├── lib
│ ├── WiredMatIcon.d.ts
│ ├── WiredMatIcon.js
│ ├── iconset
│ │ ├── iconset-full.d.ts
│ │ ├── iconset-full.js
│ │ ├── index.d.ts
│ │ └── index.js
│ ├── wired-mat-icon.d.ts
│ └── wired-mat-icon.js
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ ├── WiredMatIcon.ts
│ ├── iconset
│ │ ├── iconset-full.ts
│ │ └── index.ts
│ └── wired-mat-icon.ts
│ └── tsconfig.json
├── package-lock.json
├── package.json
├── src
├── wired-base.ts
├── wired-button.ts
├── wired-calendar.ts
├── wired-card.ts
├── wired-checkbox.ts
├── wired-combo.ts
├── wired-dialog.ts
├── wired-divider.ts
├── wired-elements.ts
├── wired-fab.ts
├── wired-icon-button.ts
├── wired-image.ts
├── wired-input.ts
├── wired-item.ts
├── wired-lib.ts
├── wired-link.ts
├── wired-listbox.ts
├── wired-progress-ring.ts
├── wired-progress.ts
├── wired-radio-group.ts
├── wired-radio.ts
├── wired-search-input.ts
├── wired-slider.ts
├── wired-spinner.ts
├── wired-tab.ts
├── wired-tabs.ts
├── wired-textarea.ts
├── wired-toggle.ts
└── wired-video.ts
├── tsconfig.json
└── tslint.json
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: pshihn
2 | open_collective: rough
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | lib
3 | packages
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | examples
3 | .github
4 | tsconfig.json
5 | tslint.json
6 | packages
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to this project will be documented in this file.
4 |
5 | ## [3.0.0] - April 21, 2021
6 | * Moved from lit-elment to lit 2.0 as the base Web Component class
7 | * Moved multi-package monorepo to a single package that has all the elements exported
8 |
9 | ## [2.0.0] - October 19, 2019
10 | * New component: **wired-video** Video player with the hand-drawn look
11 | * New component: **wired-calendar** is a calendar component contributed by [@elingerojo](https://github.com/elingerojo)
12 | * New component: **wired-dialog** emulates dialogs
13 | * New component: **wired-divider** Draws a sketchy horizontal line between two sections
14 | * New component: **wired-image** Image component that frames the image in a sketchy border
15 | * New component: **wired-link** Akin to `` tag, a link with href, and a sketchy underline
16 | * New component: **wired-search-input** is a text input emulating a search input
17 | * **wired-card** now supports a sketchy filled background
18 | * **wired-slider** is more accessible, now built on top of input range.
19 | * Elements are more responsive to size changes using the Resize observer
20 | * **wired-textarea** does not auto-grow anymore.
21 |
22 |
23 | ## [1.0.0] - April 24, 2019
24 |
25 | * New component: **wired-fab** mimics the floating action button proposed in Material design
26 | * New component: **wired-spinner** to show pending progress in a sketchy way
27 | * New component: **wired-tabs**
28 | 
29 | * Selection in Combo and List is now shown with a sketchy zig-zag fill in the style of [rough.js](https://roughjs.com)
30 | 
31 | * Sketchy fill also applied to progress boxes
32 | * Better Accessibility on all components
33 | * Refactored code to use TypeScript and latest [Lit Element](https://lit-element.polymer-project.org/)
34 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Preet Shihn
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # wired-elements 👉 [wiredjs.com](https://wiredjs.com)
2 | Wired Elements is a series of basic UI Elements that have a hand drawn look. These can be used for wireframes, mockups, or just the fun hand-drawn look.
3 |
4 | 
5 |
6 |
7 | ## Try now
8 | Play with wired-elements:
9 |
10 | [Wired Elements](https://codesandbox.io/s/wired-elements-vanilla-4bpny)
11 |
12 | #### Try it with a framework
13 |
14 | [Wired Elements in React](https://codesandbox.io/s/xrll5wyl8w)
15 |
16 | [Wired Elements in Vue](https://codesandbox.io/s/vj389y9375)
17 |
18 | [Wired Elements in Svelte](https://codesandbox.io/s/wired-elements-svelte-4hfkb)
19 |
20 |
21 | ## Install
22 |
23 | The package (wired-elements) exports all components in the **_wired_** category. List of all wired elements can be found [here](https://github.com/rough-stuff/wired-elements/tree/master/src).
24 |
25 | Add wired-elements to your project:
26 | ```
27 | npm i wired-elements
28 | ```
29 |
30 |
31 | Or load the ES module directly through unpkg
32 |
33 | ```html
34 |
35 | ```
36 |
37 |
38 | ## Usage
39 |
40 | Import into your module script:
41 | ```javascript
42 | import { WiredButton, WiredInput } from "wired-elements"
43 | ```
44 |
45 | or
46 |
47 | ```javascript
48 | import { WiredButton } from 'wired-elements/lib/wired-button.js';
49 | import { WiredInput } from 'wired-elements/lib/wired-input.js';
50 | ```
51 |
52 | #### Use it in your HTML:
53 | ```html
54 | Elevation: 1 Elevation: 3
31 | Dialog content here
32 |
83 |
84 | #### Organizations
85 |
86 | Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/rough/contribute)]
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 | ## License
100 | [MIT License](https://github.com/rough-stuff/wired-elements/blob/master/LICENSE) (c) [Preet Shihn](https://twitter.com/preetster)
101 |
--------------------------------------------------------------------------------
/docs/wired-button.md:
--------------------------------------------------------------------------------
1 | # wired-button
2 | Hand-drawn sketchy Button web component.
3 |
4 | For demo and view the complete set of wired-elememts: [wiredjs.com](http://wiredjs.com/)
5 |
6 | ## Usage
7 |
8 | Add wired-elements to your JavaScript project:
9 | ```
10 | npm i wired-elements
11 | ```
12 |
13 | Import module in your code:
14 |
15 | ```javascript
16 | import { WiredButton } from 'wired-elements';
17 | // or
18 | import { WiredButton } from 'wired-elements/lib/wired-button.js';
19 | ```
20 |
21 | Or load directly into your HTML page:
22 | ```html
23 |
24 | ```
25 |
26 | Use it in your HTML:
27 | ```html
28 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
29 |Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
31 | ``` 32 | 33 | ## Properties 34 | 35 | **elevation** - Number between 1 and 5 (inclusive) represents number of lines drawn. Default value is 1. 36 | 37 | 38 | ## License 39 | [MIT License](https://github.com/rough-stuff/wired-elements/blob/master/LICENSE) (c) [Preet Shihn](https://twitter.com/preetster) -------------------------------------------------------------------------------- /docs/wired-fab.md: -------------------------------------------------------------------------------- 1 | # wired-fab 2 | Hand-drawn sketchy Floating Action Button (FAB) 3 | 4 | For demo and view the complete set of wired-elememts: [wiredjs.com](http://wiredjs.com/) 5 | 6 | ## Usage 7 | 8 | AAdd wired-elements to your JavaScript project: 9 | ``` 10 | npm i wired-elements 11 | ``` 12 | 13 | Import module in your code: 14 | 15 | ```javascript 16 | import { WiredFab } from 'wired-elements'; 17 | // or 18 | import { WiredFab } from 'wired-elements/lib/wired-fab.js'; 19 | ``` 20 | 21 | Or load directly into your HTML page: 22 | ```html 23 | 24 | ``` 25 | 26 | Use it in your HTML: 27 | ```html 28 |32 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore 33 | magna aliqua. 34 | Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 35 |
36 |40 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore 41 | magna aliqua. 42 | Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 43 |
44 |48 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore 49 | magna aliqua. 50 | Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 51 |
52 |