vanilla-jui 1.4.7 → 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.
- package/README.md +10 -4
- package/dist/index.d.ts +418 -970
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/components/accordion.ts +466 -346
- package/src/components/flow.ts +779 -1133
- package/src/components/form.ts +666 -509
- package/src/components/menu.ts +198 -328
- package/src/components/modal.ts +510 -747
- package/src/components/offcanvas.ts +273 -367
- package/src/components/pagination.ts +201 -375
- package/src/components/swiper.ts +689 -1107
- package/src/components/tabs.ts +467 -778
- package/src/components/toc.ts +191 -244
- package/src/core/component.ts +332 -0
- package/src/core/motion.ts +298 -0
- package/src/core/presence.ts +233 -0
- package/src/core/scheduler.ts +91 -0
- package/src/core/view.ts +31 -0
- package/src/css/accordion.css +94 -3
- package/src/css/content.css +18 -24
- package/src/css/drop.css +4 -1
- package/src/css/form.css +8 -0
- package/src/css/menu.css +10 -5
- package/src/css/modal.css +2 -1
- package/src/css/offcanvas.css +5 -17
- package/src/css/swiper.css +2 -1
- package/src/css/tabs.css +8 -17
- package/src/css/themes/default/accordion.css +0 -48
- package/src/css/themes/default/swiper.css +1 -1
- package/src/css/themes/default/tabs.css +4 -6
- package/src/css/toast.css +1 -17
- package/src/css/tooltip.css +2 -1
- package/src/index.ts +8 -2
- package/src/locales/index.ts +3 -0
- package/src/primitives/drop.ts +253 -262
- package/src/primitives/loading.ts +22 -4
- package/src/primitives/parabola.ts +123 -164
- package/src/primitives/sticky.ts +297 -0
- package/src/primitives/theme.ts +164 -222
- package/src/primitives/toast.ts +309 -284
- package/src/primitives/tooltip.ts +65 -66
- package/src/utilities/browser.ts +38 -0
- package/src/utilities/dom.ts +0 -54
- package/src/utilities/refs.ts +61 -0
- package/src/utilities/state.ts +73 -0
- package/src/utilities/timer.ts +11 -31
- package/src/validation/validator.ts +289 -389
- package/src/components/sticky.ts +0 -297
- package/src/core/Component.ts +0 -377
package/README.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# JUI Library
|
|
2
2
|
|
|
3
|
-
A lightweight
|
|
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
|
|
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 {
|
|
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 {
|
|
39
|
+
const { createToast, createModal } = jui;
|
|
38
40
|
```
|
|
41
|
+
|
|
42
|
+
## Documentation
|
|
43
|
+
|
|
44
|
+
[Online Documentation](https://app.jealer.com/vanilla-jui/)
|