vanilla-jui 1.7.34 → 1.7.36

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 (37) 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 +2 -2
  6. package/src/components/toc.ts +1 -1
  7. package/src/css/animation.css +2 -8
  8. package/src/css/card.css +4 -4
  9. package/src/css/font.css +6 -3
  10. package/src/css/gradient.css +128 -63
  11. package/src/css/icon.css +1 -5
  12. package/src/css/layout.css +15 -12
  13. package/src/css/status.css +5 -8
  14. package/src/css/themes/default/accordion.css +8 -7
  15. package/src/css/themes/default/avatar.css +3 -4
  16. package/src/css/themes/default/badge.css +2 -2
  17. package/src/css/themes/default/breadcrumb.css +11 -12
  18. package/src/css/themes/default/button.css +7 -15
  19. package/src/css/themes/default/captcha.css +69 -71
  20. package/src/css/themes/default/drop.css +1 -1
  21. package/src/css/themes/default/editor.css +16 -16
  22. package/src/css/themes/default/flow.css +6 -13
  23. package/src/css/themes/default/form.css +49 -52
  24. package/src/css/themes/default/index.css +1 -1
  25. package/src/css/themes/default/loading.css +62 -47
  26. package/src/css/themes/default/menu.css +133 -79
  27. package/src/css/themes/default/modal.css +7 -11
  28. package/src/css/themes/default/offcanvas.css +12 -13
  29. package/src/css/themes/default/swiper.css +25 -23
  30. package/src/css/themes/default/tabs.css +3 -3
  31. package/src/css/themes/default/theme-palette.css +2 -2
  32. package/src/css/themes/default/tip.css +8 -10
  33. package/src/css/themes/default/toast.css +2 -2
  34. package/src/css/themes/default/toolbar.css +4 -6
  35. package/src/css/themes/default/tooltip.css +4 -8
  36. package/src/css/tokens.css +18 -57
  37. package/src/css/tokens_/345/211/257/346/234/254.css +1 -1
@@ -51,7 +51,7 @@
51
51
  }
52
52
 
53
53
  .j-input:not([type='checkbox']) {
54
- border: 1px solid var(--ui-border);
54
+ border: var(--border);
55
55
  border-radius: var(--radius-md);
56
56
  padding: var(--input-padding, 0 8px);
57
57
  height: var(--input-height, var(--el-height));
@@ -148,7 +148,7 @@
148
148
  width: 1rem;
149
149
  height: 1rem;
150
150
  border-radius: 50%;
151
- border: 1px solid var(--ui-border);
151
+ border: var(--border);
152
152
  background-color: var(--ui-bg);
153
153
  margin: 0;
154
154
  cursor: pointer;
@@ -164,7 +164,7 @@
164
164
  top: 50%;
165
165
  left: 50%;
166
166
  transform: translate(-50%, -50%) scale(0);
167
- transition: transform 0.15s ease-in-out;
167
+ transition: transform 0.2s ease;
168
168
  }
169
169
 
170
170
  .j-radio label input[type='radio']:checked::before {
@@ -201,14 +201,16 @@
201
201
  align-items: center;
202
202
  text-align: center;
203
203
  user-select: none;
204
- transition: all 0.2s ease-in-out;
204
+ transition-property: box-shadow, color, background-color;
205
+ transition-duration: 0.2s;
206
+ transition-timing-function: ease;
205
207
  }
206
208
 
207
209
  .j-radio.is-group label:not(:first-child) span.radio-text {
208
210
  margin-left: 1px;
209
211
  }
210
212
 
211
- .j-radio.is-group input[type='radio']:checked+span.radio-text {
213
+ .j-radio.is-group input[type='radio']:checked + span.radio-text {
212
214
  box-shadow: 0 0 0 1px var(--tone-solid);
213
215
  color: var(--tone-solid);
214
216
  background-color: var(--tone-soft);
@@ -275,7 +277,7 @@
275
277
  width: 1rem;
276
278
  height: 1rem;
277
279
  aspect-ratio: 1/1;
278
- border: 1px solid var(--ui-border);
280
+ border: var(--border);
279
281
  border-radius: var(--checkbox-radius, var(--radius-sm));
280
282
  cursor: pointer;
281
283
  position: relative;
@@ -322,7 +324,7 @@
322
324
  inset: 0;
323
325
  border-radius: 50px;
324
326
  background-color: var(--ui-border);
325
- transition: all 0.2s var(--bezier);
327
+ transition: all 0.2s ease;
326
328
  }
327
329
 
328
330
  .j-switch .switch-slider:after {
@@ -330,7 +332,7 @@
330
332
  position: absolute;
331
333
  border-radius: 50%;
332
334
  background-color: #fff;
333
- transition: all 0.2s var(--bezier);
335
+ transition: all 0.2s ease;
334
336
  }
335
337
 
336
338
  .j-switch.is-sm .switch-slider:after {
@@ -354,27 +356,33 @@
354
356
  height: 1.5rem;
355
357
  }
356
358
 
357
- .j-switch input[type='checkbox']:checked+.switch-slider {
359
+ .j-switch input[type='checkbox']:checked + .switch-slider {
358
360
  background-color: var(--tone-solid);
359
361
  }
360
362
 
361
- .j-switch.is-sm input[type='checkbox']:checked+.switch-slider:after {
363
+ .j-switch.is-sm input[type='checkbox']:checked + .switch-slider:after {
362
364
  transform: translateX(0.75rem);
363
365
  }
364
366
 
365
- .j-switch.is-md input[type='checkbox']:checked+.switch-slider:after {
367
+ .j-switch.is-md input[type='checkbox']:checked + .switch-slider:after {
366
368
  transform: translateX(1.125rem);
367
369
  }
368
370
 
369
- .j-switch.is-lg input[type='checkbox']:checked+.switch-slider:after {
371
+ .j-switch.is-lg input[type='checkbox']:checked + .switch-slider:after {
370
372
  transform: translateX(1.5rem);
371
373
  }
372
374
 
373
- .j-theme-gray .j-switch input[type='checkbox']:checked+.switch-slider:after {
375
+ .j-theme-gray
376
+ .j-switch
377
+ input[type='checkbox']:checked
378
+ + .switch-slider:after {
374
379
  background-color: var(--ui-bg);
375
380
  }
376
381
 
377
- .j-theme-olive .j-switch input[type='checkbox']:checked+.switch-slider:after {
382
+ .j-theme-olive
383
+ .j-switch
384
+ input[type='checkbox']:checked
385
+ + .switch-slider:after {
378
386
  background-color: var(--ui-bg);
379
387
  }
380
388
 
@@ -385,7 +393,7 @@
385
393
  /* select */
386
394
  select.j-select {
387
395
  padding: var(--input-padding, 0 6px);
388
- border: 1px solid var(--ui-border);
396
+ border: var(--border);
389
397
  border-radius: var(--radius-md);
390
398
  height: var(--el-height);
391
399
  line-height: var(--line-height);
@@ -402,7 +410,7 @@
402
410
  /* textarea */
403
411
  textarea.j-textarea {
404
412
  min-height: 72px;
405
- border: 1px solid var(--ui-border);
413
+ border: var(--border);
406
414
  border-radius: var(--radius-md);
407
415
  color: var(--tone-body);
408
416
  background-color: var(--ui-bg);
@@ -446,9 +454,9 @@
446
454
  --btn-box-shadow: none;
447
455
  }
448
456
 
449
- .input-group .el-addon>.el-text {
457
+ .input-group .el-addon > .el-text {
450
458
  background-color: var(--ui-bg-muted);
451
- border: 1px solid var(--ui-border);
459
+ border: var(--border);
452
460
  border-radius: var(--radius-md);
453
461
  }
454
462
 
@@ -457,28 +465,31 @@
457
465
  width: var(--input-height);
458
466
  }
459
467
 
460
- .input-group>*:not(:first-child) {
468
+ .input-group > *:not(:first-child) {
461
469
  margin-left: -1px;
462
470
  }
463
471
 
464
- .input-group>input.j-input:not(:first-child),
465
- .input-group>select.j-select:not(:first-child),
466
- .input-group> :not(select.j-select)+.el-addon:not(:first-child)>.el-text {
472
+ .input-group > input.j-input:not(:first-child),
473
+ .input-group > select.j-select:not(:first-child),
474
+ .input-group
475
+ > :not(select.j-select)
476
+ + .el-addon:not(:first-child)
477
+ > .el-text {
467
478
  border-left-color: transparent;
468
479
  }
469
480
 
470
- .input-group>input.j-input:not(:first-child),
471
- .input-group>select.j-select:not(:first-child),
472
- .input-group>*:not(:first-child)>*,
473
- .input-group>*:not(:first-child)>.el-text {
481
+ .input-group > input.j-input:not(:first-child),
482
+ .input-group > select.j-select:not(:first-child),
483
+ .input-group > *:not(:first-child) > *,
484
+ .input-group > *:not(:first-child) > .el-text {
474
485
  border-top-left-radius: 0;
475
486
  border-bottom-left-radius: 0;
476
487
  }
477
488
 
478
- .input-group>input.j-input:not(:last-child),
479
- .input-group>select.j-select:not(:last-child),
480
- .input-group>*:not(:last-child)>*,
481
- .input-group>*:not(:last-child)>.el-text {
489
+ .input-group > input.j-input:not(:last-child),
490
+ .input-group > select.j-select:not(:last-child),
491
+ .input-group > *:not(:last-child) > *,
492
+ .input-group > *:not(:last-child) > .el-text {
482
493
  border-top-right-radius: 0;
483
494
  border-bottom-right-radius: 0;
484
495
  }
@@ -493,7 +504,7 @@
493
504
  }
494
505
 
495
506
  .input-inner-group {
496
- border: 1px solid var(--ui-border);
507
+ border: var(--border);
497
508
  border-radius: var(--radius-md);
498
509
  }
499
510
 
@@ -507,13 +518,13 @@
507
518
  --btn-box-shadow: none;
508
519
  }
509
520
 
510
- .input-inner-group .el-addon+.j-input {
521
+ .input-inner-group .el-addon + .j-input {
511
522
  padding-left: 0;
512
523
  padding-right: 4px;
513
524
  }
514
525
 
515
- .input-inner-group .el-addon+.j-select {
516
- padding-left: 2px;
526
+ .input-inner-group .el-addon + .j-select {
527
+ padding: 0;
517
528
  }
518
529
 
519
530
  .input-inner-group .el-addon {
@@ -524,15 +535,6 @@
524
535
  justify-content: center;
525
536
  }
526
537
 
527
- .input-inner-group .el-addon .j-btn:not(.is-icon) {
528
- --btn-height: var(--el-height-sm);
529
- }
530
-
531
- .input-inner-group .el-addon .j-btn.is-xs:not(.is-icon),
532
- .input-inner-group .el-addon .j-btn.is-sm:not(.is-icon) {
533
- height: inherit;
534
- }
535
-
536
538
  /* .input-group .j-btn:active, */
537
539
  .input-inner-group:has(input:focus),
538
540
  .input-inner-group:has(select:focus) {
@@ -545,8 +547,8 @@
545
547
  height: var(--font-size-xl);
546
548
  }
547
549
 
548
- .input-group .el-addon>.el-text,
549
- .input-inner-group .el-addon>.el-text {
550
+ .input-group .el-addon > .el-text,
551
+ .input-inner-group .el-addon > .el-text {
550
552
  display: flex;
551
553
  align-items: center;
552
554
  user-select: none;
@@ -649,7 +651,7 @@
649
651
  background-color: var(--ui-bg-disabled);
650
652
  }
651
653
 
652
- .j-radio.is-group label input[type='radio']:disabled+.radio-text {
654
+ .j-radio.is-group label input[type='radio']:disabled + .radio-text {
653
655
  cursor: not-allowed;
654
656
  background-color: var(--ui-bg-disabled);
655
657
  color: var(--ui-fg-disabled);
@@ -683,12 +685,7 @@
683
685
  /*************************
684
686
  * .mobile
685
687
  *************************/
686
- .mobile input.j-input[type='file'] {
687
- --input-padding: 8px;
688
- }
689
-
690
- .mobile .j-input[type='file'],
691
688
  .mobile .j-textarea {
692
689
  width: 100%;
693
690
  }
694
- }
691
+ }
@@ -26,4 +26,4 @@
26
26
 
27
27
  @import url('./tooltip.css');
28
28
  @import url('./captcha.css');
29
- @import url('./loading.css');
29
+ @import url('./loading.css');
@@ -53,11 +53,14 @@
53
53
  .j-loader .flow-loader {
54
54
  --loader-width: 2px;
55
55
  --loader-bg:
56
- radial-gradient(farthest-side, var(--tone-solid) 94%, #0000) top/var(--loader-width) var(--loader-width) no-repeat,
56
+ radial-gradient(farthest-side, var(--tone-solid) 94%, #0000)
57
+ top/var(--loader-width) var(--loader-width) no-repeat,
57
58
  conic-gradient(#0000 30%, var(--tone-solid));
58
- --loader-mask: radial-gradient(farthest-side,
59
- #0000 calc(100% - var(--loader-width)),
60
- #000 0);
59
+ --loader-mask: radial-gradient(
60
+ farthest-side,
61
+ #0000 calc(100% - var(--loader-width)),
62
+ #000 0
63
+ );
61
64
 
62
65
  width: var(--loader-size);
63
66
  height: var(--loader-size);
@@ -75,63 +78,75 @@
75
78
  }
76
79
 
77
80
  12.5% {
78
- clip-path: polygon(50% 50%,
79
- 0 0,
80
- 50% 0%,
81
- 100% 0%,
82
- 100% 0%,
83
- 100% 0%,
84
- 100% 0%);
81
+ clip-path: polygon(
82
+ 50% 50%,
83
+ 0 0,
84
+ 50% 0%,
85
+ 100% 0%,
86
+ 100% 0%,
87
+ 100% 0%,
88
+ 100% 0%
89
+ );
85
90
  }
86
91
 
87
92
  25% {
88
- clip-path: polygon(50% 50%,
89
- 0 0,
90
- 50% 0%,
91
- 100% 0%,
92
- 100% 100%,
93
- 100% 100%,
94
- 100% 100%);
93
+ clip-path: polygon(
94
+ 50% 50%,
95
+ 0 0,
96
+ 50% 0%,
97
+ 100% 0%,
98
+ 100% 100%,
99
+ 100% 100%,
100
+ 100% 100%
101
+ );
95
102
  }
96
103
 
97
104
  50% {
98
- clip-path: polygon(50% 50%,
99
- 0 0,
100
- 50% 0%,
101
- 100% 0%,
102
- 100% 100%,
103
- 50% 100%,
104
- 0% 100%);
105
+ clip-path: polygon(
106
+ 50% 50%,
107
+ 0 0,
108
+ 50% 0%,
109
+ 100% 0%,
110
+ 100% 100%,
111
+ 50% 100%,
112
+ 0% 100%
113
+ );
105
114
  }
106
115
 
107
116
  62.5% {
108
- clip-path: polygon(50% 50%,
109
- 100% 0,
110
- 100% 0%,
111
- 100% 0%,
112
- 100% 100%,
113
- 50% 100%,
114
- 0% 100%);
117
+ clip-path: polygon(
118
+ 50% 50%,
119
+ 100% 0,
120
+ 100% 0%,
121
+ 100% 0%,
122
+ 100% 100%,
123
+ 50% 100%,
124
+ 0% 100%
125
+ );
115
126
  }
116
127
 
117
128
  75% {
118
- clip-path: polygon(50% 50%,
119
- 100% 100%,
120
- 100% 100%,
121
- 100% 100%,
122
- 100% 100%,
123
- 50% 100%,
124
- 0% 100%);
129
+ clip-path: polygon(
130
+ 50% 50%,
131
+ 100% 100%,
132
+ 100% 100%,
133
+ 100% 100%,
134
+ 100% 100%,
135
+ 50% 100%,
136
+ 0% 100%
137
+ );
125
138
  }
126
139
 
127
140
  100% {
128
- clip-path: polygon(50% 50%,
129
- 50% 100%,
130
- 50% 100%,
131
- 50% 100%,
132
- 50% 100%,
133
- 50% 100%,
134
- 0% 100%);
141
+ clip-path: polygon(
142
+ 50% 50%,
143
+ 50% 100%,
144
+ 50% 100%,
145
+ 50% 100%,
146
+ 50% 100%,
147
+ 50% 100%,
148
+ 0% 100%
149
+ );
135
150
  }
136
151
  }
137
152
 
@@ -152,4 +167,4 @@
152
167
  transform: scaleY(-1) rotate(-135deg);
153
168
  }
154
169
  }
155
- }
170
+ }