vanilla-jui 1.4.8 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +10 -4
  2. package/dist/index.d.ts +402 -977
  3. package/dist/index.js +1 -1
  4. package/dist/index.umd.js +1 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +3 -3
  7. package/src/components/accordion.ts +467 -349
  8. package/src/components/flow.ts +779 -1133
  9. package/src/components/form.ts +666 -509
  10. package/src/components/menu.ts +199 -326
  11. package/src/components/modal.ts +510 -747
  12. package/src/components/offcanvas.ts +281 -361
  13. package/src/components/pagination.ts +207 -374
  14. package/src/components/swiper.ts +688 -1168
  15. package/src/components/tabs.ts +468 -788
  16. package/src/components/toc.ts +191 -244
  17. package/src/core/component.ts +332 -0
  18. package/src/core/motion.ts +298 -0
  19. package/src/core/presence.ts +233 -0
  20. package/src/core/scheduler.ts +91 -0
  21. package/src/core/view.ts +31 -0
  22. package/src/css/accordion.css +94 -3
  23. package/src/css/content.css +18 -24
  24. package/src/css/drop.css +4 -1
  25. package/src/css/form.css +8 -0
  26. package/src/css/menu.css +10 -5
  27. package/src/css/modal.css +2 -1
  28. package/src/css/offcanvas.css +5 -17
  29. package/src/css/swiper.css +2 -1
  30. package/src/css/tabs.css +8 -17
  31. package/src/css/themes/default/accordion.css +0 -48
  32. package/src/css/themes/default/swiper.css +1 -1
  33. package/src/css/themes/default/tabs.css +4 -6
  34. package/src/css/toast.css +1 -17
  35. package/src/css/tooltip.css +2 -1
  36. package/src/index.ts +8 -3
  37. package/src/locales/index.ts +3 -0
  38. package/src/primitives/drop.ts +253 -262
  39. package/src/primitives/loading.ts +22 -4
  40. package/src/primitives/parabola.ts +123 -164
  41. package/src/primitives/sticky.ts +297 -0
  42. package/src/primitives/theme.ts +164 -222
  43. package/src/primitives/toast.ts +309 -284
  44. package/src/primitives/tooltip.ts +65 -66
  45. package/src/utilities/browser.ts +38 -0
  46. package/src/utilities/dom.ts +0 -54
  47. package/src/utilities/refs.ts +61 -0
  48. package/src/utilities/state.ts +73 -0
  49. package/src/utilities/timer.ts +11 -31
  50. package/src/validation/validator.ts +289 -389
  51. package/src/components/sticky.ts +0 -297
  52. package/src/core/Component.ts +0 -377
  53. package/src/utilities/scheduler.ts +0 -156
package/README.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # JUI Library
2
2
 
3
- A lightweight vanilla UI library for building user interfaces.
3
+ A lightweight, reactive, and fully customizable vanilla JS UI library.
4
+
5
+ [中文](README_zh.md)
4
6
 
5
7
  ## Features
6
8
 
7
9
  - Lightweight
8
10
  - Reactive data management
9
- - Customizable UI: Supports `tailwindcss` or hand-written styles to fully customize component styles, without using the default `style.css`.
11
+ - Customizable UI: Supports `tailwindcss` or custom css styles to fully customize component UI, without using the default `style.css`.
10
12
 
11
13
  ## Installation
12
14
 
@@ -27,12 +29,16 @@ UMD, GlobalName: `jui`
27
29
  ESM
28
30
 
29
31
  ```javascript
30
- import { Toast, Modal } from 'vanilla-jui';
32
+ import { createToast, createModal } from 'vanilla-jui';
31
33
  import 'vanilla-jui/style.css';
32
34
  ```
33
35
 
34
36
  UMD, GlobalName: `jui`
35
37
 
36
38
  ```javascript
37
- const { Toast, Modal } = jui;
39
+ const { createToast, createModal } = jui;
38
40
  ```
41
+
42
+ ## Documentation
43
+
44
+ [Online Documentation](https://app.jealer.com/vanilla-jui/)