|
1 | 1 | <h3 align="center"> |
2 | | - <img alt="Logo" src="https://user-images.githubusercontent.com/30767528/123517467-622b0f80-d6a1-11eb-9bf3-abcb4928a89e.png" width="400"/> |
| 2 | + <img alt="Logo" src="https://user-images.githubusercontent.com/30767528/123517467-622b0f80-d6a1-11eb-9bf3-abcb4928a89e.png" width="350"/> |
3 | 3 | </h3> |
4 | 4 |
|
5 | 5 | <h3 align="center"> |
|
19 | 19 | <a href="https://www.buymeacoffee.com/aVc3krbXQ"><img |
20 | 20 | alt="Buy me a coffee" |
21 | 21 | src="https://img.shields.io/badge/%F0%9F%8D%BA-buy%20me%20a%20beer-%23FFDD00"></a> |
22 | | - <a href="https://github.com/simonwep/viselect/actions?query=workflow%3ACI"><img |
| 22 | + <a href="https://github.com/simonwep/viselect/actions/workflows/main.yml"><img |
23 | 23 | alt="Build Status" |
24 | | - src="https://github.com/simonwep/viselect/workflows/CI/badge.svg"></a> |
| 24 | + src="https://github.com/simonwep/viselect/actions/workflows/main.yml/badge.svg"></a> |
| 25 | + <a href="https://github.com/simonwep/viselect/actions/workflows/deploy.yml"><img |
| 26 | + alt="Docs" |
| 27 | + src="https://github.com/simonwep/viselect/actions/workflows/deploy.yml/badge.svg"></a> |
25 | 28 | <img alt="gzip size" src="https://img.badgesize.io/https://cdn.jsdelivr.net/npm/@viselect/vanilla/dist/viselect.umd.js?compression=gzip"> |
26 | 29 | <img alt="brotli size" src="https://img.badgesize.io/https://cdn.jsdelivr.net/npm/@viselect/vanilla/dist/viselect.umd.js?compression=brotli"> |
27 | 30 | <a href="https://v3.vuejs.org"><img |
|
33 | 36 | <a href="https://reactjs.org"><img |
34 | 37 | alt="React support" |
35 | 38 | src="https://img.shields.io/badge/✔-react-%2359D7FF"></a> |
36 | | - <a href="https://svelte.dev"><img |
37 | | - alt="Svelte support" |
38 | | - src="https://img.shields.io/badge/%E2%9A%99-svelte-%23F83C00"></a> |
39 | 39 | </p> |
40 | 40 |
|
41 | 41 | ### Features 🤘 |
|
47 | 47 | * ✔ Zero dependencies |
48 | 48 | * 📱 Mobile / touch support |
49 | 49 | * 🖱 Vertical and horizontal scroll support |
50 | | -* 💪 Hardened (over 3 years old and used in many apps) |
| 50 | +* 💪 Battle tested (over 6 years old and used in many apps) |
51 | 51 |
|
52 | 52 | ### Getting started |
53 | 53 |
|
54 | | -> [!NOTE] |
55 | | -> I'm currently in the middle of moving the migration from readmes to a new docs websites. |
56 | | -> Stay tuned for a better, more detailed documentation in the coming weeks! |
57 | | -
|
58 | | -Check out the documentation for the package you want to use: |
59 | | - |
60 | | -* [@viselect/vanilla](packages/vanilla) - To be used with plain [JavaScript](http://vanilla-js.com/) or [TypeScript](https://www.typescriptlang.org/). |
61 | | -* [@viselect/preact](packages/preact) - [Preact](https://preactjs.com/) wrapper. |
62 | | -* [@viselect/react](packages/react) - [React](https://reactjs.org/) wrapper. |
63 | | -* [@viselect/vue](packages/vue) - [Vue3](https://v3.vuejs.org/) wrapper. |
64 | | - |
65 | | -> Check out [recipes](packages/vanilla/recipes.md) for commonly asked questions and how to solve them using the standard library! |
66 | | -> For information about events and more check out the [vanilla readme](packages/vanilla/README.md)! |
67 | | -
|
68 | | -### Browser support |
69 | | - |
70 | | -This library will always produce an ESNext bundle. |
71 | | -If you want to support legacy browsers, please use the feature of your bundler to transpile dependencies. |
72 | | -In case of webpack and babel (give [vite](https://vitejs.dev/) a try, it's awesome) you'll have to install corresponding plugins such as [babel-plugin-proposal-optional-chaining](https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining) and include the dependency from `node_modules` which is normally entirely excluded from being processed. |
73 | | - |
74 | | -I do this to provide maximum flexibility and give those who target ESNext a chance to make full use of how this library is bundled. |
75 | | -Everything else is just a matter of configuration :) |
76 | | - |
77 | | -### Is this library the right choice for me? |
78 | | - |
79 | | -Viselect primarily focuses on being a high-performant engine to select elements with various boundaries, behaviors, and modes in your browser. |
80 | | -Viselect is to "full-blown libraries" what is [popper.js](https://popper.js.org/) to [tippy.js](https://atomiks.github.io/tippyjs/) - the _core_ of your feature. |
81 | | - |
82 | | -### Development |
83 | | - |
84 | | -Use the following commands to work on this locally (we use [lerna](https://lerna.js.org/) to manage this): |
85 | | - |
86 | | -* `npm run dev` _- Spawns a dev-server for all packages. Every framework-dependent package is bundled with the vanilla version._ |
87 | | -* `npm run build` _- Builds all packages in parallel._ |
88 | | -* `npm run lint:fix` _- Lints and fixes all errors in all packages._ |
89 | | - |
90 | | -For the development servers [vite](https://vitejs.dev/) is used. It's superb, you should give it a try. |
91 | | -To bundle it, we use [rollup](https://rollupjs.org/) (which is btw also used by vite behind the scenes) to have full control over how the bundle looks like. |
92 | | - |
93 | | -### Releasing a new version |
94 | | - |
95 | | -This project is managed via [lerna](https://lerna.js.org/). |
96 | | -To bump the version and publish a new one run the following commands: |
97 | | - |
98 | | -* `lerna version` |
99 | | -* `lerna publish from-package` |
| 54 | +Head over to [the documentation](https://simonwep.github.io/viselect) to get started 🚀 |
100 | 55 |
|
101 | 56 | ### You want to contribute? |
102 | 57 |
|
|
0 commit comments