vanilla-jui 1.7.28 → 1.7.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jui",
3
- "version": "1.7.28",
3
+ "version": "1.7.30",
4
4
  "private": false,
5
5
  "description": "A lightweight, reactive, and fully customizable vanilla JS UI library.",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  @layer components {
2
2
  .j-badge {
3
- --badge-padding: 0 calc(var(--space) * 1.5);
3
+ --badge-padding: 0 var(--s1d5);
4
4
  --badge-min-width: 1.25rem;
5
5
  --badge-height: 1.25rem;
6
6
  --badge-font-size: var(--font-size-sm);
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  .j-input:not([type='checkbox']) {
58
- --input-padding: calc(var(--space) * 1.5) var(--s2);
58
+ --input-padding: var(--s1d5) var(--s2);
59
59
  --input-height: var(--el-height-md);
60
60
  --input-line-height: var(--line-height);
61
61
 
@@ -246,7 +246,7 @@
246
246
  .j-radio.is-group label span.radio-text {
247
247
  color: var(--ui-fg);
248
248
  background-color: var(--ui-bg);
249
- padding: var(--radio-group-padding, calc(var(--space) * 1.5) var(--s3));
249
+ padding: var(--radio-group-padding, var(--s1d5) var(--s3));
250
250
  height: var(--el-height-md);
251
251
  line-height: var(--line-height);
252
252
  box-shadow: 0 0 0 1px var(--ui-input-border);
@@ -288,7 +288,7 @@
288
288
  }
289
289
 
290
290
  .j-radio.is-group.is-sm label span.radio-text {
291
- --radio-group-padding: var(--space) calc(var(--space) * 2.5);
291
+ --radio-group-padding: var(--space) var(--s2d5);
292
292
  height: var(--el-height-sm);
293
293
  }
294
294
 
@@ -297,7 +297,7 @@
297
297
  }
298
298
 
299
299
  .j-radio.is-group.is-lg label span.radio-text {
300
- --radio-group-padding: var(--s3) calc(var(--space) * 3.5);
300
+ --radio-group-padding: var(--s3) var(--s3d5);
301
301
  height: var(--el-height-lg);
302
302
  }
303
303
 
@@ -320,7 +320,7 @@
320
320
  .j-checkbox label {
321
321
  display: flex;
322
322
  align-items: center;
323
- gap: calc(var(--space) * 1.5);
323
+ gap: var(--s1d5);
324
324
  font-size: var(--font-size-md);
325
325
  height: var(--el-height-md);
326
326
  padding: var(--s2);
@@ -458,7 +458,7 @@
458
458
 
459
459
  /* select */
460
460
  select.j-select {
461
- --input-padding: calc(var(--space) * 1.5);
461
+ --input-padding: var(--s1d5);
462
462
  --input-height: var(--el-height-md);
463
463
  --input-font-size: var(--font-size-md);
464
464
 
@@ -200,7 +200,7 @@
200
200
  }
201
201
 
202
202
  .j-menu .menu-item.list-menu>.sub-menu>.menu-item>a {
203
- padding: calc(var(--space) * 1.25) calc(var(--space) * 2.5);
203
+ padding: calc(var(--space) * 1.25) var(--s2d5);
204
204
  line-height: 1.75;
205
205
  }
206
206
 
@@ -42,11 +42,9 @@
42
42
  color: var(--ui-fg-soft);
43
43
  font-size: var(--font-size-md);
44
44
  background-color: var(--tone-wash);
45
- background-image: radial-gradient(
46
- circle,
47
- var(--ui-border) 1px,
48
- transparent 1px
49
- );
45
+ background-image: radial-gradient(circle,
46
+ var(--ui-border) 1px,
47
+ transparent 1px);
50
48
  background-size: 20px 20px;
51
49
 
52
50
  position: absolute;
@@ -79,7 +77,7 @@
79
77
  right: var(--swiper-title-inset);
80
78
  bottom: var(--swiper-title-inset);
81
79
  left: var(--swiper-title-inset);
82
- padding: calc(var(--space) * 1.5) var(--s2);
80
+ padding: var(--s1d5) var(--s2);
83
81
  color: #fff;
84
82
  font-size: var(--swiper-title-font-size);
85
83
  font-weight: var(--font-bold);
@@ -194,4 +192,4 @@
194
192
  --swiper-navigation-size: 32px;
195
193
  }
196
194
  }
197
- }
195
+ }
@@ -18,8 +18,11 @@
18
18
 
19
19
  /* --- Spacing --- */
20
20
  --space: 0.25rem;
21
+ --s1d5: 0.375rem;
21
22
  --s2: 0.5rem;
23
+ --s2d5: 0.625rem;
22
24
  --s3: 0.75rem;
25
+ --s3d5: 0.875rem;
23
26
  --s4: 1rem;
24
27
  --s5: 1.25rem;
25
28
  --s6: 1.5rem;
@@ -305,50 +308,50 @@
305
308
  --ui-tooltip-fg: #f8fafc;
306
309
 
307
310
  /* --- Fixed Theme Colors (15 themes) --- */
308
- --ui-gray: #e5e7eb;
309
- --ui-gray-tint: #f3f4f6;
311
+ --ui-gray: #d1d5db;
312
+ --ui-gray-tint: #e5e7eb;
310
313
  --ui-gray-shade: #9ca3af;
311
- --ui-olive: #d4d9cc;
312
- --ui-olive-tint: #e5e7db;
313
- --ui-olive-shade: #a8b092;
314
- --ui-tomato: #fca5a5;
315
- --ui-tomato-tint: #fecaca;
316
- --ui-tomato-shade: #f87171;
317
- --ui-ruby: #fda4af;
318
- --ui-ruby-tint: #fecdd3;
319
- --ui-ruby-shade: #fb7185;
320
- --ui-pink: #f9a8d4;
321
- --ui-pink-tint: #fbcfe8;
322
- --ui-pink-shade: #f472b6;
323
- --ui-violet: #c4b5fd;
324
- --ui-violet-tint: #ddd6fe;
325
- --ui-violet-shade: #a78bfa;
326
- --ui-indigo: #a5b4fc;
327
- --ui-indigo-tint: #c7d2fe;
328
- --ui-indigo-shade: #818cf8;
329
- --ui-blue: #93c5fd;
330
- --ui-blue-tint: #bfdbfe;
331
- --ui-blue-shade: #60a5fa;
332
- --ui-teal: #5eead4;
333
- --ui-teal-tint: #99f6e4;
334
- --ui-teal-shade: #2dd4bf;
335
- --ui-grass: #86efac;
336
- --ui-grass-tint: #bbf7d0;
337
- --ui-grass-shade: #4ade80;
338
- --ui-mint: #67e8f9;
339
- --ui-mint-tint: #a5f3fc;
340
- --ui-mint-shade: #22d3ee;
341
- --ui-lime: #bef264;
342
- --ui-lime-tint: #d9f99d;
343
- --ui-lime-shade: #a3e635;
344
- --ui-yellow: #fde047;
345
- --ui-yellow-tint: #fef08a;
346
- --ui-yellow-shade: #facc15;
347
- --ui-orange: #fdba74;
348
- --ui-orange-tint: #fed7aa;
349
- --ui-orange-shade: #fb923c;
350
- --ui-gold: #fbbf24;
351
- --ui-gold-tint: #fcd34d;
314
+ --ui-olive: #a8b092;
315
+ --ui-olive-tint: #c2c9b3;
316
+ --ui-olive-shade: #8a927d;
317
+ --ui-tomato: #f87171;
318
+ --ui-tomato-tint: #fca5a5;
319
+ --ui-tomato-shade: #ef4444;
320
+ --ui-ruby: #fb7185;
321
+ --ui-ruby-tint: #fda4af;
322
+ --ui-ruby-shade: #f43f5e;
323
+ --ui-pink: #f472b6;
324
+ --ui-pink-tint: #f9a8d4;
325
+ --ui-pink-shade: #ec4899;
326
+ --ui-violet: #a78bfa;
327
+ --ui-violet-tint: #c4b5fd;
328
+ --ui-violet-shade: #8b5cf6;
329
+ --ui-indigo: #818cf8;
330
+ --ui-indigo-tint: #a5b4fc;
331
+ --ui-indigo-shade: #6366f1;
332
+ --ui-blue: #60a5fa;
333
+ --ui-blue-tint: #93c5fd;
334
+ --ui-blue-shade: #3b82f6;
335
+ --ui-teal: #2dd4bf;
336
+ --ui-teal-tint: #5eead4;
337
+ --ui-teal-shade: #14b8a6;
338
+ --ui-grass: #4ade80;
339
+ --ui-grass-tint: #86efac;
340
+ --ui-grass-shade: #22c55e;
341
+ --ui-mint: #22d3ee;
342
+ --ui-mint-tint: #67e8f9;
343
+ --ui-mint-shade: #06b6d4;
344
+ --ui-lime: #a3e635;
345
+ --ui-lime-tint: #bef264;
346
+ --ui-lime-shade: #84cc16;
347
+ --ui-yellow: #facc15;
348
+ --ui-yellow-tint: #fde047;
349
+ --ui-yellow-shade: #eab308;
350
+ --ui-orange: #fb923c;
351
+ --ui-orange-tint: #fdba74;
352
+ --ui-orange-shade: #f97316;
353
+ --ui-gold: #f59e0b;
354
+ --ui-gold-tint: #fbbf24;
352
355
  --ui-gold-shade: #d97706;
353
356
 
354
357
  /* Theme Color (default indigo) */
@@ -1292,4 +1295,4 @@
1292
1295
  --el-height-2xl: 3.5rem;
1293
1296
  --el-height-3xl: 3.75rem;
1294
1297
  }
1295
- }
1298
+ }