vanilla-jui 1.7.33 → 1.7.35

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 (36) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/index.umd.js +1 -1
  3. package/dist/style.css +1 -1
  4. package/package.json +5 -10
  5. package/src/components/accordion.ts +1 -1
  6. package/src/css/animation.css +1 -7
  7. package/src/css/card.css +4 -4
  8. package/src/css/font.css +6 -3
  9. package/src/css/gradient.css +128 -63
  10. package/src/css/icon.css +1 -5
  11. package/src/css/layout.css +15 -12
  12. package/src/css/status.css +5 -8
  13. package/src/css/themes/default/accordion.css +9 -6
  14. package/src/css/themes/default/avatar.css +3 -4
  15. package/src/css/themes/default/badge.css +2 -2
  16. package/src/css/themes/default/breadcrumb.css +11 -12
  17. package/src/css/themes/default/button.css +6 -14
  18. package/src/css/themes/default/captcha.css +69 -71
  19. package/src/css/themes/default/drop.css +1 -1
  20. package/src/css/themes/default/editor.css +15 -15
  21. package/src/css/themes/default/flow.css +6 -11
  22. package/src/css/themes/default/form.css +46 -44
  23. package/src/css/themes/default/index.css +1 -1
  24. package/src/css/themes/default/loading.css +62 -47
  25. package/src/css/themes/default/menu.css +102 -48
  26. package/src/css/themes/default/modal.css +6 -10
  27. package/src/css/themes/default/offcanvas.css +12 -13
  28. package/src/css/themes/default/swiper.css +19 -18
  29. package/src/css/themes/default/tabs.css +3 -3
  30. package/src/css/themes/default/theme-palette.css +2 -2
  31. package/src/css/themes/default/tip.css +7 -8
  32. package/src/css/themes/default/toast.css +2 -2
  33. package/src/css/themes/default/toolbar.css +4 -6
  34. package/src/css/themes/default/tooltip.css +4 -8
  35. package/src/css/tokens.css +18 -57
  36. package/src/css/tokens_/345/211/257/346/234/254.css +1 -1
@@ -1,16 +1,15 @@
1
1
  @layer components {
2
2
  .j-tip {
3
- --tip-border-color: var(--ui-border-subtle);
4
3
  --tip-icon-shadow: var(--ui-bg-soft);
5
4
  --tip-icon-bg: var(--ui-bg-soft);
6
5
 
7
6
  row-gap: 8px;
8
7
  width: 100%;
9
- border: 1px solid var(--tip-border-color);
8
+ border: 1px solid var(--tip-border-color, var(--ui-border-subtle));
10
9
  border-radius: var(--radius-md);
11
10
  padding: 12px 16px;
12
11
  font-size: var(--font-size-md);
13
- background: var(--tip-bg);
12
+ background: var(--tip-bg, var(--ui-bg));
14
13
  box-shadow: var(--shadow-xs);
15
14
  backdrop-filter: blur(2px);
16
15
 
@@ -48,7 +47,7 @@
48
47
  }
49
48
 
50
49
  .j-tip .tip-title {
51
- font-weight: var(--font-medium);
50
+ font-weight: 500;
52
51
 
53
52
  grid-column-start: 2;
54
53
  overflow: hidden;
@@ -61,18 +60,18 @@
61
60
 
62
61
  .j-tip .tip-content {
63
62
  grid-column-start: 2;
64
- color: var(--ui-gray);
63
+ color: var(--tone-body);
65
64
  }
66
65
 
67
66
  .j-tip .tip-content p {
68
67
  margin: 6px 0;
69
68
  }
70
69
 
71
- .j-tip .tip-content>*:first-child {
70
+ .j-tip .tip-content > *:first-child {
72
71
  margin-top: 0;
73
72
  }
74
73
 
75
- .j-tip .tip-content>*:last-child {
74
+ .j-tip .tip-content > *:last-child {
76
75
  margin-bottom: 0;
77
76
  }
78
77
 
@@ -107,4 +106,4 @@
107
106
  --tip-icon-shadow: var(--state-error-soft);
108
107
  --tip-icon-bg: var(--state-error-soft);
109
108
  }
110
- }
109
+ }
@@ -61,7 +61,7 @@
61
61
  .j-toast .toast-title {
62
62
  color: var(--toast-fg);
63
63
  font-size: var(--font-size-md);
64
- font-weight: var(--font-medium);
64
+ font-weight: 500;
65
65
 
66
66
  word-break: normal;
67
67
  grid-column-start: 2;
@@ -141,4 +141,4 @@
141
141
  justify-content: flex-end;
142
142
  position: relative;
143
143
  }
144
- }
144
+ }
@@ -1,7 +1,7 @@
1
1
  @layer components {
2
2
  .j-toolbar-container {
3
3
  background: var(--ui-bg);
4
- border-bottom: 1px solid var(--ui-border);
4
+ border-bottom: var(--border);
5
5
 
6
6
  position: sticky;
7
7
  top: 0;
@@ -17,15 +17,13 @@
17
17
  }
18
18
 
19
19
  .j-toolbar {
20
- --toolbar-justify: center;
21
-
22
20
  gap: 0;
23
21
  padding: 8px;
24
22
  box-shadow: var(--shadow-sm);
25
23
 
26
24
  position: relative;
27
25
  display: flex;
28
- justify-content: var(--toolbar-justify);
26
+ justify-content: var(--toolbar-justify, center);
29
27
  align-items: center;
30
28
  }
31
29
 
@@ -56,7 +54,7 @@
56
54
  width: 32px;
57
55
  height: 32px;
58
56
  border-radius: var(--radius-sm);
59
- border: 1px solid var(--ui-border);
57
+ border: var(--border);
60
58
  }
61
59
 
62
60
  .editor-drop-color .color-panel .color-btn:last-of-type {
@@ -77,4 +75,4 @@
77
75
  --toolbar-justify: flex-start;
78
76
  }
79
77
  }
80
- }
78
+ }
@@ -1,12 +1,8 @@
1
1
  @layer comopnents {
2
2
  .j-tooltip {
3
- --tooltip-fg: var(--ui-bg);
4
- --tooltip-bg: var(--ui-fg);
5
- --tooltip-border-color: var(--ui-border);
6
-
7
- background: var(--tooltip-bg);
8
- color: var(--tooltip-fg);
9
- border: 1px solid var(--tooltip-border-color);
3
+ background: var(--tooltip-bg, var(--ui-fg));
4
+ color: var(--tooltip-fg, var(--ui-bg));
5
+ border: 1px solid var(--tooltip-border-color, var(--ui-border));
10
6
  border-radius: var(--radius-md);
11
7
  max-width: 260px;
12
8
  padding: 2px 4px;
@@ -59,4 +55,4 @@
59
55
  background: unset;
60
56
  box-shadow: unset;
61
57
  }
62
- }
58
+ }
@@ -20,26 +20,8 @@
20
20
  --space: 0.25rem;
21
21
 
22
22
  /* --- Typography Scale --- */
23
- --text-xs: 0.75rem;
24
- --text-sm: 0.875rem;
25
- --text-md: 1rem;
26
- --text-lg: 1.125rem;
27
- --text-xl: 1.25rem;
28
- --text-2xl: 1.5rem;
29
- --text-3xl: 1.875rem;
30
- --text-4xl: 2.25rem;
31
- --text-5xl: 3rem;
32
23
 
33
24
  /* --- Font Weight --- */
34
- --font-thin: 100;
35
- --font-extraLight: 200;
36
- --font-light: 300;
37
- --font-normal: 400;
38
- --font-medium: 500;
39
- --font-semiBold: 600;
40
- --font-bold: 700;
41
- --font-extraBold: 800;
42
- --font-black: 900;
43
25
 
44
26
  /* --- height size --- */
45
27
  --el-height: var(--el-height-md);
@@ -60,13 +42,15 @@
60
42
 
61
43
  /* --- Opacity --- */
62
44
  --opacity-hover: 0.68;
63
- --opacity-active: 0.95;
64
45
  --opacity-disabled: 0.5;
65
46
 
66
47
  /* --- Animation --- */
67
- --time: 0.2s;
48
+ --speed: 0.2s;
68
49
 
69
- --bezier: cubic-bezier(.4, 0, .2, 1);
50
+ --bezier: cubic-bezier(0.4, 0, 0.2, 1);
51
+
52
+ /* border */
53
+ --border: 1px solid var(--ui-border);
70
54
  }
71
55
 
72
56
  /* ============================================
@@ -105,11 +89,9 @@
105
89
  --ui-surface-overlay: rgba(255, 255, 255, 0.85);
106
90
 
107
91
  --ui-reverse: #000;
108
- --ui-outline: rgba(0, 0, 0, 0.15);
109
- --ui-placeholder: #9ca3af;
110
- --ui-overlay: rgba(0, 0, 0, 0.25);
111
92
  --ui-popup-bg: rgba(0, 0, 0, 0.0625);
112
- --ui-tooltip-fg: #f9fafb;
93
+ --ui-code-bg: #f3f4f6;
94
+ --ui-code-fg: #374151;
113
95
 
114
96
  /* --- Fixed Theme Colors (15 themes) --- */
115
97
  --ui-gray: #374151;
@@ -186,7 +168,6 @@
186
168
  --tone-body: #4b5563;
187
169
  --tone-caption: #6b7280;
188
170
  --tone-muted: #9ca3af;
189
- --tone-disabled: #d1d5db;
190
171
 
191
172
  /* Links */
192
173
  --tone-link: #4f46e5;
@@ -202,10 +183,6 @@
202
183
  --tone-card-border: rgba(0, 0, 0, 0.08);
203
184
  --tone-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
204
185
 
205
- /* Code */
206
- --tone-code-bg: #f3f4f6;
207
- --tone-code-fg: #374151;
208
-
209
186
  /* States */
210
187
  --state-error: #ef4444;
211
188
  --state-error-hover: #dc2626;
@@ -253,16 +230,6 @@
253
230
  --state-info-muted: rgba(59, 130, 246, 0.16);
254
231
  --state-info-border: rgba(59, 130, 246, 0.25);
255
232
  --state-info-ring: rgba(59, 130, 246, 0.3);
256
-
257
- /* Component Aliases */
258
- --state-error-solid: var(--state-error);
259
- --state-error-surface: var(--state-error-subtle);
260
- --state-success-solid: var(--state-success);
261
- --state-success-surface: var(--state-success-subtle);
262
- --state-warning-solid: var(--state-warning);
263
- --state-warning-surface: var(--state-warning-subtle);
264
- --state-info-solid: var(--state-info);
265
- --state-info-surface: var(--state-info-subtle);
266
233
  }
267
234
 
268
235
  /* ============================================
@@ -300,11 +267,9 @@
300
267
  --ui-surface-overlay: rgba(7, 10, 15, 0.9);
301
268
 
302
269
  --ui-reverse: #fff;
303
- --ui-outline: rgba(148, 163, 184, 0.2);
304
- --ui-placeholder: #64748b;
305
- --ui-overlay: rgba(2, 6, 23, 0.7);
306
270
  --ui-popup-bg: rgba(0, 0, 0, 0.0375);
307
- --ui-tooltip-fg: #f8fafc;
271
+ --ui-code-bg: #11161d;
272
+ --ui-code-fg: #e5e7eb;
308
273
 
309
274
  /* --- Fixed Theme Colors (15 themes) --- */
310
275
  --ui-gray: #d1d5db;
@@ -396,10 +361,6 @@
396
361
  --tone-card-border: rgba(148, 163, 184, 0.12);
397
362
  --tone-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
398
363
 
399
- /* Code */
400
- --tone-code-bg: #11161d;
401
- --tone-code-fg: #e5e7eb;
402
-
403
364
  /* States */
404
365
  --state-error: #f87171;
405
366
  --state-error-hover: #fca5a5;
@@ -460,8 +421,8 @@
460
421
  }
461
422
 
462
423
  /* ============================================
463
- 5. Theme Variants (15 themes)
464
- ============================================ */
424
+ 5. Theme Variants (15 themes)
425
+ ============================================ */
465
426
 
466
427
  /* --- Gray --- */
467
428
  .j-theme-gray {
@@ -809,8 +770,8 @@
809
770
  }
810
771
 
811
772
  /* ============================================
812
- 6. Dark Theme Variants
813
- ============================================ */
773
+ 6. Dark Theme Variants
774
+ ============================================ */
814
775
 
815
776
  .dark.j-theme-gray {
816
777
  --tone-subtle: rgba(255, 255, 255, 0.06);
@@ -1113,7 +1074,7 @@
1113
1074
  }
1114
1075
 
1115
1076
  /* ============================================
1116
- 7. Radius Themes
1077
+ 7. Radius Themes
1117
1078
  ============================================ */
1118
1079
  :root,
1119
1080
  .j-radius-md {
@@ -1184,8 +1145,8 @@
1184
1145
  }
1185
1146
 
1186
1147
  /* ============================================
1187
- 8. Shadow Themes
1188
- ============================================ */
1148
+ 8. Shadow Themes
1149
+ ============================================ */
1189
1150
 
1190
1151
  :root,
1191
1152
  .j-shadow-md {
@@ -1245,7 +1206,7 @@
1245
1206
  }
1246
1207
 
1247
1208
  /* ============================================
1248
- 9. Font Themes
1209
+ 9. Font Themes
1249
1210
  ============================================ */
1250
1211
 
1251
1212
  :root,
@@ -1325,4 +1286,4 @@
1325
1286
  --el-height-2xl: 3.5rem;
1326
1287
  --el-height-3xl: 3.75rem;
1327
1288
  }
1328
- }
1289
+ }
@@ -1295,4 +1295,4 @@
1295
1295
  --el-height-2xl: 3.5rem;
1296
1296
  --el-height-3xl: 3.75rem;
1297
1297
  }
1298
- }
1298
+ }