vanilla-jui 1.4.5 → 1.4.7
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 +6 -0
- package/dist/index.d.ts +1273 -1896
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +21 -2
- package/src/components/accordion.ts +297 -216
- package/src/components/flow.ts +222 -258
- package/src/components/form.ts +44 -102
- package/src/components/menu.ts +268 -356
- package/src/components/modal.ts +181 -641
- package/src/components/offcanvas.ts +225 -106
- package/src/components/pagination.ts +296 -326
- package/src/components/sticky.ts +55 -54
- package/src/components/swiper.ts +237 -247
- package/src/components/tabs.ts +278 -271
- package/src/components/toc.ts +42 -46
- package/src/core/Component.ts +69 -47
- package/src/css/accordion.css +2 -2
- package/src/css/animation.css +1 -5
- package/src/css/avatar.css +1 -1
- package/src/css/badge.css +1 -1
- package/src/css/breadcrumb.css +9 -10
- package/src/css/button.css +1 -1
- package/src/css/card.css +2 -2
- package/src/css/color.css +974 -1002
- package/src/css/color_p3.css +974 -1004
- package/src/css/components.css +1 -1
- package/src/css/content.css +72 -63
- package/src/css/drop.css +1 -1
- package/src/css/editor.css +14 -14
- package/src/css/flow.css +4 -14
- package/src/css/font.css +5 -4
- package/src/css/form.css +76 -52
- package/src/css/gradient.css +299 -222
- package/src/css/icon.css +57 -57
- package/src/css/index.css +1 -1
- package/src/css/layout.css +13 -10
- package/src/css/loading.css +60 -12
- package/src/css/menu.css +262 -188
- package/src/css/modal.css +1 -1
- package/src/css/offcanvas.css +9 -13
- package/src/css/pagination.css +5 -1
- package/src/css/popup.css +1 -1
- package/src/css/skeleton.css +3 -2
- package/src/css/status.css +2 -3
- package/src/css/swiper.css +1 -1
- package/src/css/table.css +1 -1
- package/src/css/tabs.css +12 -11
- package/src/css/tag.css +1 -1
- package/src/css/theme-palette.css +19 -5
- package/src/css/themes/default/accordion.css +61 -61
- package/src/css/themes/default/avatar.css +54 -54
- package/src/css/themes/default/badge.css +62 -62
- package/src/css/themes/default/breadcrumb.css +23 -23
- package/src/css/themes/default/button.css +203 -203
- package/src/css/themes/default/content.css +53 -53
- package/src/css/themes/default/drop.css +10 -10
- package/src/css/themes/default/editor.css +9 -9
- package/src/css/themes/default/index.css +1 -1
- package/src/css/themes/default/loading.css +26 -20
- package/src/css/themes/default/menu.css +75 -11
- package/src/css/themes/default/modal.css +32 -36
- package/src/css/themes/default/pagination.css +7 -7
- package/src/css/themes/default/popup.css +6 -6
- package/src/css/themes/default/swiper.css +32 -32
- package/src/css/themes/default/table.css +16 -16
- package/src/css/themes/default/tabs.css +30 -30
- package/src/css/themes/default/tag.css +71 -71
- package/src/css/themes/default/theme-palette.css +11 -11
- package/src/css/themes/default/tip.css +42 -42
- package/src/css/themes/default/toast.css +60 -60
- package/src/css/themes/default/toolbar.css +23 -29
- package/src/css/themes/default/tooltip.css +43 -13
- package/src/css/themes/index.css +1 -1
- package/src/css/tip.css +2 -2
- package/src/css/toast.css +3 -3
- package/src/css/tokens.css +12 -17
- package/src/css/toolbar.css +9 -10
- package/src/css/tooltip.css +3 -2
- package/src/index.ts +22 -19
- package/src/{components → primitives}/drop.ts +58 -49
- package/src/{components → primitives}/icons.ts +1 -1
- package/src/primitives/loading.ts +23 -0
- package/src/primitives/parabola.ts +388 -0
- package/src/primitives/popup.ts +61 -0
- package/src/{components → primitives}/theme.ts +89 -57
- package/src/{components → primitives}/toast.ts +18 -25
- package/src/{components → primitives}/tooltip.ts +100 -25
- package/src/utilities/browser.ts +23 -49
- package/src/utilities/class-name.ts +5 -0
- package/src/utilities/dom.ts +14 -32
- package/src/utilities/function.ts +4 -0
- package/src/utilities/http.ts +7 -7
- package/src/utilities/id.ts +57 -0
- package/src/utilities/object.ts +5 -0
- package/src/utilities/timer.ts +38 -0
- package/src/utilities/types.ts +420 -0
- package/src/{components → validation}/validator.ts +64 -53
- package/src/components/parabola.ts +0 -335
- package/src/utilities/cache.ts +0 -57
- package/src/utilities/core.ts +0 -614
- package/src/utilities/storage.ts +0 -46
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
@layer themes {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
.j-tip {
|
|
3
|
+
--tip-gap: var(--s2);
|
|
4
|
+
--tip-width: 100%;
|
|
5
|
+
--tip-padding: var(--s3) var(--s4);
|
|
6
|
+
--tip-border-width: 1px;
|
|
7
|
+
--tip-border-style: solid;
|
|
8
|
+
--tip-border-color: var(--ui-border);
|
|
9
|
+
--tip-border-radius: var(--radius-md);
|
|
10
|
+
--tip-font-size: var(--font-size-md);
|
|
11
|
+
--tip-fg: var(--ui-fg);
|
|
12
|
+
--tip-bg: var(--ui-bg);
|
|
13
|
+
--tip-box-shadow: var(--shadow-sm);
|
|
14
|
+
--tip-icon-fg: var(--tip-fg);
|
|
15
|
+
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
.j-tip .tip-icon,
|
|
18
|
+
.j-tip .tip-icon svg {
|
|
19
|
+
--tip-icon-size: var(--font-size-xl);
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
.j-tip .tip-title {
|
|
23
|
+
--tip-title-line-height: var(--line-height-paragraph);
|
|
24
|
+
--tip-title-font-weight: var(--font-medium);
|
|
25
|
+
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
.j-tip .tip-content {
|
|
28
|
+
--tip-content-gap: var(--s2);
|
|
29
|
+
--tip-content-line-height: var(--line-height-paragraph);
|
|
30
|
+
}
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
.j-tip.is-success {
|
|
33
|
+
--tip-border-color: var(--state-success);
|
|
34
|
+
--tip-bg: var(--state-success-muted);
|
|
35
|
+
--tip-icon-fg: var(--state-success);
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
.j-tip.is-warning {
|
|
39
|
+
--tip-border-color: var(--state-warning);
|
|
40
|
+
--tip-bg: var(--state-warning-muted);
|
|
41
|
+
--tip-icon-fg: var(--state-warning);
|
|
42
|
+
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
44
|
+
.j-tip.is-danger {
|
|
45
|
+
--tip-border-color: var(--state-danger);
|
|
46
|
+
--tip-bg: var(--state-danger-muted);
|
|
47
|
+
--tip-icon-fg: var(--state-danger);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
@layer themes {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
.j-toast-container {
|
|
3
|
+
--toast-container-offset: var(--s2);
|
|
4
|
+
--toast-container-gap: var(--s2);
|
|
5
|
+
}
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
.j-toast {
|
|
8
|
+
--toast-padding: var(--s3) var(--s4);
|
|
9
|
+
--toast-font-size: var(--font-size-md);
|
|
10
|
+
--toast-font-weight: var(--font-medium);
|
|
11
|
+
--toast-min-width: 200px;
|
|
12
|
+
--toast-max-width: 310px;
|
|
13
|
+
--toast-box-shadow: var(--shadow-md);
|
|
14
|
+
--toast-border-width: 1px;
|
|
15
|
+
--toast-border-style: solid;
|
|
16
|
+
--toast-border-color: var(--ui-border);
|
|
17
|
+
--toast-border-radius: var(--radius-md);
|
|
18
|
+
--toast-fg: var(--ui-fg);
|
|
19
|
+
--toast-bg: var(--ui-bg);
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
.j-toast .el-icon {
|
|
23
|
+
--toast-icon-size: var(--font-size-lg);
|
|
24
|
+
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
.j-toast.is-success {
|
|
27
|
+
--toast-fg: var(--state-success);
|
|
28
|
+
--toast-bg: var(--state-success-weak);
|
|
29
|
+
--toast-border-color: var(--state-success-border);
|
|
30
|
+
}
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
.j-toast.is-error {
|
|
33
|
+
--toast-fg: var(--state-danger);
|
|
34
|
+
--toast-bg: var(--state-danger-weak);
|
|
35
|
+
--toast-border-color: var(--state-danger-border);
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
.j-toast.is-warning {
|
|
39
|
+
--toast-fg: var(--state-warning);
|
|
40
|
+
--toast-bg: var(--state-warning-weak);
|
|
41
|
+
--toast-border-color: var(--state-warning-border);
|
|
42
|
+
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
.j-toast.is-primary {
|
|
45
|
+
--toast-fg: var(--tone-solid);
|
|
46
|
+
--toast-bg: var(--tone-weak);
|
|
47
|
+
--toast-border-color: var(--tone-border);
|
|
48
|
+
}
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
.j-toast.is-action {
|
|
51
|
+
--toast-gap: calc(var(--space)*4);
|
|
52
|
+
--toast-min-width: 280px;
|
|
53
|
+
}
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
.j-toast.is-action .toast-actions {
|
|
56
|
+
width: 100%;
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: flex-end;
|
|
59
|
+
gap: var(--space);
|
|
60
|
+
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
62
|
+
.j-toast-lite {
|
|
63
|
+
font-size: var(--font-size-md);
|
|
64
|
+
color: var(--ui-bg);
|
|
65
|
+
background: var(--ui-fg);
|
|
66
|
+
border-radius: var(--radius-md);
|
|
67
|
+
padding: var(--s2) var(--s3);
|
|
68
|
+
max-width: calc(var(--screen-sm) / 2);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -1,34 +1,28 @@
|
|
|
1
1
|
@layer themes {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
.j-toolbar-container {
|
|
3
|
+
--toolbar-container-position: sticky;
|
|
4
|
+
--toolbar-container-bg: var(--ui-bg);
|
|
5
|
+
--toolbar-container-border: 1px solid var(--ui-border);
|
|
6
|
+
}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
--toolbar-drop-bg: var(--ui-bg-subtle);
|
|
17
|
-
--toolbar-drop-padding: var(--space);
|
|
18
|
-
--toolbar-drop-border: 1px solid var(--ui-border);
|
|
19
|
-
--toolbar-drop-radius: var(--radius-sm);
|
|
20
|
-
--toolbar-drop-box-shadow: var(--shadow-md);
|
|
21
|
-
}
|
|
8
|
+
.j-toolbar {
|
|
9
|
+
--toolbar-gap: 0;
|
|
10
|
+
--toolbar-padding: var(--s2);
|
|
11
|
+
--toolbar-box-shadow: var(--shadow-sm);
|
|
12
|
+
--toolbar-divider-width: 1px;
|
|
13
|
+
--toolbar-divider-height: 16px;
|
|
14
|
+
--toolbar-divider-bg: var(--ui-fg);
|
|
15
|
+
}
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
.j-toolbar button svg {
|
|
18
|
+
--toolbar-icon-size: var(--font-size-xl);
|
|
19
|
+
}
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
.j-toolbar button.is-sm svg {
|
|
22
|
+
--toolbar-icon-size: var(--font-size-lg);
|
|
23
|
+
}
|
|
30
24
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
25
|
+
.j-toolbar button.is-lg svg {
|
|
26
|
+
--toolbar-icon-size: var(--font-size-2xl);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,14 +1,44 @@
|
|
|
1
1
|
@layer themes {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
.j-tooltip {
|
|
3
|
+
--tooltip-fg: var(--ui-bg);
|
|
4
|
+
--tooltip-bg: var(--ui-fg);
|
|
5
|
+
--tooltip-border-width: 1px;
|
|
6
|
+
--tooltip-border-style: solid;
|
|
7
|
+
--tooltip-border-color: var(--ui-border-strong);
|
|
8
|
+
--tooltip-border-radius: var(--radius-md);
|
|
9
|
+
--tooltip-max-width: 260px;
|
|
10
|
+
--tooltip-padding: calc(var(--space) * 1.5) var(--s2);
|
|
11
|
+
--tooltip-font-size: var(--font-size-md);
|
|
12
|
+
--tooltip-line-height: var(--line-height);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.j-tooltip.is-reverse {
|
|
16
|
+
--tooltip-fg: var(--ui-fg);
|
|
17
|
+
--tooltip-bg: var(--ui-bg);
|
|
18
|
+
--tooltip-border-color: var(--ui-border);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.j-tooltip.is-primary {
|
|
22
|
+
--tooltip-fg: var(--state-info-fg);
|
|
23
|
+
--tooltip-bg: var(--state-info-text);
|
|
24
|
+
--tooltip-border-color: var(--state-info-border);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.j-tooltip.is-success {
|
|
28
|
+
--tooltip-fg: var(--state-success-fg);
|
|
29
|
+
--tooltip-bg: var(--state-success-text);
|
|
30
|
+
--tooltip-border-color: var(--state-success-border);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.j-tooltip.is-warning {
|
|
34
|
+
--tooltip-fg: var(--state-warning-fg);
|
|
35
|
+
--tooltip-bg: var(--state-warning-text);
|
|
36
|
+
--tooltip-border-color: var(--state-warning-border);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.j-tooltip.is-error {
|
|
40
|
+
--tooltip-fg: var(--state-danger-fg);
|
|
41
|
+
--tooltip-bg: var(--state-danger-text);
|
|
42
|
+
--tooltip-border-color: var(--state-danger-border);
|
|
43
|
+
}
|
|
44
|
+
}
|
package/src/css/themes/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import url('./default/index.css');
|
|
1
|
+
@import url('./default/index.css');
|
package/src/css/tip.css
CHANGED
package/src/css/toast.css
CHANGED
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
transform: translateY(0);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.j-toast .
|
|
46
|
+
.j-toast .el-icon {
|
|
47
47
|
margin-right: var(--s2);
|
|
48
48
|
width: var(--toast-icon-size);
|
|
49
49
|
color: inherit;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.j-toast .
|
|
52
|
+
.j-toast .el-text {
|
|
53
53
|
flex: 1;
|
|
54
54
|
word-break: normal;
|
|
55
55
|
}
|
|
@@ -79,4 +79,4 @@
|
|
|
79
79
|
align-items: flex-start;
|
|
80
80
|
cursor: default;
|
|
81
81
|
}
|
|
82
|
-
}
|
|
82
|
+
}
|
package/src/css/tokens.css
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
============================================ */
|
|
5
5
|
|
|
6
6
|
@layer config {
|
|
7
|
-
|
|
8
7
|
/* ============================================
|
|
9
8
|
1. Layout Tokens
|
|
10
9
|
============================================ */
|
|
@@ -99,7 +98,6 @@
|
|
|
99
98
|
--opacity-disabled: 0.5;
|
|
100
99
|
}
|
|
101
100
|
|
|
102
|
-
|
|
103
101
|
/* ============================================
|
|
104
102
|
2. Color Tokens - Light Mode
|
|
105
103
|
============================================ */
|
|
@@ -241,7 +239,7 @@
|
|
|
241
239
|
--state-danger-subtle: rgba(239, 68, 68, 0.08);
|
|
242
240
|
--state-danger-soft: rgba(239, 68, 68, 0.12);
|
|
243
241
|
--state-danger-muted: rgba(239, 68, 68, 0.16);
|
|
244
|
-
--state-danger-weak: #
|
|
242
|
+
--state-danger-weak: #fce1e1;
|
|
245
243
|
--state-danger-border: rgba(239, 68, 68, 0.25);
|
|
246
244
|
--state-danger-ring: rgba(239, 68, 68, 0.3);
|
|
247
245
|
|
|
@@ -253,7 +251,7 @@
|
|
|
253
251
|
--state-success-subtle: rgba(34, 197, 94, 0.08);
|
|
254
252
|
--state-success-soft: rgba(34, 197, 94, 0.12);
|
|
255
253
|
--state-success-muted: rgba(34, 197, 94, 0.16);
|
|
256
|
-
--state-success-weak: #
|
|
254
|
+
--state-success-weak: #dcf6e5;
|
|
257
255
|
--state-success-border: rgba(34, 197, 94, 0.25);
|
|
258
256
|
--state-success-ring: rgba(34, 197, 94, 0.3);
|
|
259
257
|
|
|
@@ -265,7 +263,7 @@
|
|
|
265
263
|
--state-warning-subtle: rgba(245, 158, 11, 0.08);
|
|
266
264
|
--state-warning-soft: rgba(245, 158, 11, 0.12);
|
|
267
265
|
--state-warning-muted: rgba(245, 158, 11, 0.16);
|
|
268
|
-
--state-warning-weak: #
|
|
266
|
+
--state-warning-weak: #fdf0d8;
|
|
269
267
|
--state-warning-border: rgba(245, 158, 11, 0.25);
|
|
270
268
|
--state-warning-ring: rgba(245, 158, 11, 0.3);
|
|
271
269
|
|
|
@@ -291,7 +289,6 @@
|
|
|
291
289
|
--state-info-surface: var(--state-info-subtle);
|
|
292
290
|
}
|
|
293
291
|
|
|
294
|
-
|
|
295
292
|
/* ============================================
|
|
296
293
|
3. Color Tokens - Dark Mode
|
|
297
294
|
============================================ */
|
|
@@ -444,7 +441,7 @@
|
|
|
444
441
|
--state-success-subtle: rgba(74, 222, 128, 0.1);
|
|
445
442
|
--state-success-soft: rgba(74, 222, 128, 0.15);
|
|
446
443
|
--state-success-muted: rgba(74, 222, 128, 0.2);
|
|
447
|
-
--state-success-weak: #
|
|
444
|
+
--state-success-weak: #08251e;
|
|
448
445
|
--state-success-border: rgba(74, 222, 128, 0.25);
|
|
449
446
|
--state-success-ring: rgba(74, 222, 128, 0.4);
|
|
450
447
|
|
|
@@ -456,7 +453,7 @@
|
|
|
456
453
|
--state-warning-subtle: rgba(251, 191, 36, 0.1);
|
|
457
454
|
--state-warning-soft: rgba(251, 191, 36, 0.15);
|
|
458
455
|
--state-warning-muted: rgba(251, 191, 36, 0.2);
|
|
459
|
-
--state-warning-weak: #
|
|
456
|
+
--state-warning-weak: #2a1f11;
|
|
460
457
|
--state-warning-border: rgba(251, 191, 36, 0.25);
|
|
461
458
|
--state-warning-ring: rgba(251, 191, 36, 0.4);
|
|
462
459
|
|
|
@@ -474,12 +471,14 @@
|
|
|
474
471
|
/* shadow */
|
|
475
472
|
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
|
|
476
473
|
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3);
|
|
477
|
-
--shadow-md:
|
|
478
|
-
|
|
479
|
-
--shadow-
|
|
474
|
+
--shadow-md:
|
|
475
|
+
0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
|
|
476
|
+
--shadow-lg:
|
|
477
|
+
0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
|
|
478
|
+
--shadow-xl:
|
|
479
|
+
0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
|
|
483
482
|
/* ============================================
|
|
484
483
|
5. Theme Variants (15 themes)
|
|
485
484
|
============================================ */
|
|
@@ -814,7 +813,6 @@
|
|
|
814
813
|
--tone-link-visited: #653008;
|
|
815
814
|
}
|
|
816
815
|
|
|
817
|
-
|
|
818
816
|
/* ============================================
|
|
819
817
|
6. Dark Theme Variants
|
|
820
818
|
============================================ */
|
|
@@ -1119,7 +1117,6 @@
|
|
|
1119
1117
|
--tone-link-visited: #d97706;
|
|
1120
1118
|
}
|
|
1121
1119
|
|
|
1122
|
-
|
|
1123
1120
|
/* ============================================
|
|
1124
1121
|
7. Radius Themes
|
|
1125
1122
|
============================================ */
|
|
@@ -1191,7 +1188,6 @@
|
|
|
1191
1188
|
--radius-2xl: 9999px;
|
|
1192
1189
|
}
|
|
1193
1190
|
|
|
1194
|
-
|
|
1195
1191
|
/* ============================================
|
|
1196
1192
|
8. Shadow Themes
|
|
1197
1193
|
============================================ */
|
|
@@ -1253,7 +1249,6 @@
|
|
|
1253
1249
|
--shadow-xl: 0 24px 38px -6px rgb(0 0 0 / 0.65);
|
|
1254
1250
|
}
|
|
1255
1251
|
|
|
1256
|
-
|
|
1257
1252
|
/* ============================================
|
|
1258
1253
|
9. Font Themes
|
|
1259
1254
|
============================================ */
|
|
@@ -1297,4 +1292,4 @@
|
|
|
1297
1292
|
--el-height-2xl: 3rem;
|
|
1298
1293
|
--el-height-3xl: 3.25rem;
|
|
1299
1294
|
}
|
|
1300
|
-
}
|
|
1295
|
+
}
|
package/src/css/toolbar.css
CHANGED
|
@@ -46,26 +46,25 @@
|
|
|
46
46
|
.heading-drop-menu,
|
|
47
47
|
.editor-size-menu,
|
|
48
48
|
.color-drop-menu,
|
|
49
|
-
|
|
50
49
|
.editor-drop-heading,
|
|
51
50
|
.editor-drop-size,
|
|
52
51
|
.editor-drop-color {
|
|
53
|
-
background: var(--toolbar-drop-bg);
|
|
54
|
-
box-shadow: var(--toolbar-drop-box-shadow);
|
|
55
|
-
border: var(--toolbar-drop-border);
|
|
56
|
-
border-radius: var(--toolbar-drop-radius);
|
|
57
|
-
font-size: var(--toolbar-drop-font-size);
|
|
52
|
+
background: var(--toolbar-drop-bg, var(--ui-bg-subtle));
|
|
53
|
+
box-shadow: var(--toolbar-drop-box-shadow, var(--shadow-md));
|
|
54
|
+
border: var(--toolbar-drop-border, 1px solid var(--ui-border));
|
|
55
|
+
border-radius: var(--toolbar-drop-radius, var(--radius-sm));
|
|
56
|
+
font-size: var(--toolbar-drop-font-size, var(--font-size-md));
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
.editor-drop-color {
|
|
61
|
-
padding: var(--toolbar-drop-padding);
|
|
60
|
+
padding: var(--toolbar-drop-padding, var(--space));
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
.editor-drop-color .color-panel {
|
|
65
|
-
padding: .5rem;
|
|
64
|
+
padding: 0.5rem;
|
|
66
65
|
display: grid;
|
|
67
66
|
grid-template-columns: repeat(5, 1fr);
|
|
68
|
-
gap: .5rem;
|
|
67
|
+
gap: 0.5rem;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
.editor-drop-color .color-panel button.color-btn {
|
|
@@ -93,4 +92,4 @@
|
|
|
93
92
|
grid-column: span 5;
|
|
94
93
|
width: auto;
|
|
95
94
|
}
|
|
96
|
-
}
|
|
95
|
+
}
|
package/src/css/tooltip.css
CHANGED
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
border-style: var(--tooltip-border-style);
|
|
8
8
|
border-color: var(--tooltip-border-color);
|
|
9
9
|
border-radius: var(--tooltip-border-radius);
|
|
10
|
+
width: fit-content;
|
|
10
11
|
max-width: var(--tooltip-max-width);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
.j-tooltip .
|
|
14
|
+
.j-tooltip .el-text {
|
|
14
15
|
word-wrap: break-word;
|
|
15
16
|
padding: var(--tooltip-padding);
|
|
16
17
|
font-size: var(--tooltip-font-size);
|
|
17
18
|
line-height: var(--tooltip-line-height);
|
|
18
19
|
}
|
|
19
|
-
}
|
|
20
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -3,35 +3,38 @@ import './css/index.css';
|
|
|
3
3
|
|
|
4
4
|
// Utilities
|
|
5
5
|
export * from './utilities/browser.ts';
|
|
6
|
-
export * from './utilities/
|
|
7
|
-
export * from './utilities/core.ts';
|
|
6
|
+
export * from './utilities/id.ts';
|
|
8
7
|
export * from './utilities/dom.ts';
|
|
9
8
|
export * from './utilities/events.ts';
|
|
10
9
|
export * from './utilities/http.ts';
|
|
11
|
-
export * from './utilities/
|
|
10
|
+
export * from './utilities/object.ts';
|
|
11
|
+
export * from './utilities/timer.ts';
|
|
12
|
+
export * from './utilities/types.ts';
|
|
13
|
+
export * from './utilities/function.ts';
|
|
12
14
|
|
|
13
|
-
//
|
|
14
|
-
export
|
|
15
|
+
// UI primitives
|
|
16
|
+
export * from './primitives/icons.ts';
|
|
17
|
+
export * from './primitives/loading.ts';
|
|
18
|
+
export * from './primitives/popup.ts';
|
|
19
|
+
export * from './primitives/drop.ts';
|
|
20
|
+
export * from './primitives/tooltip.ts';
|
|
21
|
+
export * from './primitives/toast.ts';
|
|
22
|
+
export * from './primitives/theme.ts';
|
|
23
|
+
export * from './primitives/parabola.ts';
|
|
15
24
|
|
|
16
|
-
//
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './components/theme.ts';
|
|
19
|
-
export * from './components/toast.ts';
|
|
25
|
+
// Validation
|
|
26
|
+
export * from './validation/validator.ts';
|
|
20
27
|
|
|
21
|
-
// Components
|
|
22
|
-
|
|
23
|
-
export * from './components/form.ts';
|
|
24
|
-
export * from './components/validator.ts';
|
|
28
|
+
// Components
|
|
29
|
+
export { default as Component } from './core/Component.ts';
|
|
25
30
|
export * from './components/toc.ts';
|
|
26
31
|
export * from './components/sticky.ts';
|
|
32
|
+
export * from './components/accordion.ts';
|
|
33
|
+
export * from './components/form.ts';
|
|
27
34
|
export * from './components/flow.ts';
|
|
28
|
-
export * from './components/
|
|
35
|
+
export * from './components/modal.ts';
|
|
36
|
+
export * from './components/swiper.ts';
|
|
29
37
|
export * from './components/tabs.ts';
|
|
30
|
-
export * from './components/accordion.ts';
|
|
31
|
-
export * from './components/drop.ts';
|
|
32
|
-
export * from './components/tooltip.ts';
|
|
33
38
|
export * from './components/offcanvas.ts';
|
|
34
|
-
export * from './components/modal.ts';
|
|
35
39
|
export * from './components/pagination.ts';
|
|
36
|
-
export * from './components/swiper.ts';
|
|
37
40
|
export * from './components/menu.ts';
|