vanilla-jui 1.7.30 → 1.7.32
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/dist/index.d.ts +276 -334
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -4
- package/src/components/accordion.ts +22 -8
- package/src/components/flow.ts +1 -1
- package/src/components/form.ts +1 -1
- package/src/components/modal.ts +1 -1
- package/src/components/offcanvas.ts +2 -2
- package/src/components/pagination.ts +5 -5
- package/src/components/tabs.ts +132 -16
- package/src/css/animation.css +7 -3
- package/src/css/card.css +10 -10
- package/src/css/font.css +3 -6
- package/src/css/icon.css +3 -20
- package/src/css/layout.css +11 -18
- package/src/css/status.css +39 -3
- package/src/css/themes/default/accordion.css +13 -45
- package/src/css/themes/default/avatar.css +2 -3
- package/src/css/themes/default/badge.css +14 -22
- package/src/css/themes/default/breadcrumb.css +11 -12
- package/src/css/themes/default/button.css +101 -159
- package/src/css/themes/default/editor.css +36 -36
- package/src/css/themes/default/flow.css +4 -4
- package/src/css/themes/default/form.css +110 -217
- package/src/css/themes/default/loading.css +48 -63
- package/src/css/themes/default/menu.css +17 -17
- package/src/css/themes/default/modal.css +9 -9
- package/src/css/themes/default/offcanvas.css +3 -3
- package/src/css/themes/default/swiper.css +18 -18
- package/src/css/themes/default/tabs.css +38 -24
- package/src/css/themes/default/theme-palette.css +22 -18
- package/src/css/themes/default/tip.css +24 -13
- package/src/css/themes/default/toast.css +65 -45
- package/src/css/themes/default/toolbar.css +2 -2
- package/src/css/themes/default/tooltip.css +3 -4
- package/src/css/tokens.css +89 -59
- package/src/css/tokens_/345/211/257/346/234/254.css +4 -4
- package/src/icons/index.ts +9 -7
- package/src/locales/index.ts +3 -1
- package/src/primitives/theme.ts +7 -10
- package/src/primitives/toast.ts +191 -107
- package/src/primitives/tooltip.ts +4 -4
- package/src/utilities/browser.ts +1 -1
package/src/css/tokens.css
CHANGED
|
@@ -18,22 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
/* --- Spacing --- */
|
|
20
20
|
--space: 0.25rem;
|
|
21
|
-
--s1d5: 0.375rem;
|
|
22
|
-
--s2: 0.5rem;
|
|
23
|
-
--s2d5: 0.625rem;
|
|
24
|
-
--s3: 0.75rem;
|
|
25
|
-
--s3d5: 0.875rem;
|
|
26
|
-
--s4: 1rem;
|
|
27
|
-
--s5: 1.25rem;
|
|
28
|
-
--s6: 1.5rem;
|
|
29
|
-
--s7: 1.75rem;
|
|
30
|
-
--s8: 2rem;
|
|
31
|
-
|
|
32
|
-
/* --- Transitions --- */
|
|
33
|
-
--speed-sm: 0.15s;
|
|
34
|
-
--speed-md: 0.25s;
|
|
35
|
-
--speed-lg: 0.5s;
|
|
36
|
-
--speed-xl: 0.75s;
|
|
37
21
|
|
|
38
22
|
/* --- Typography Scale --- */
|
|
39
23
|
--text-xs: 0.75rem;
|
|
@@ -57,6 +41,10 @@
|
|
|
57
41
|
--font-extraBold: 800;
|
|
58
42
|
--font-black: 900;
|
|
59
43
|
|
|
44
|
+
/* --- height size --- */
|
|
45
|
+
--el-height: var(--el-height-md);
|
|
46
|
+
--el-font-size: var(--font-size-md);
|
|
47
|
+
|
|
60
48
|
/* --- Line Height --- */
|
|
61
49
|
--line-height: 1.5;
|
|
62
50
|
--line-height-paragraph: 1.5;
|
|
@@ -71,9 +59,14 @@
|
|
|
71
59
|
--screen-xl: 1200px;
|
|
72
60
|
|
|
73
61
|
/* --- Opacity --- */
|
|
74
|
-
--opacity-hover: 0.
|
|
62
|
+
--opacity-hover: 0.68;
|
|
75
63
|
--opacity-active: 0.95;
|
|
76
|
-
--opacity-disabled: 0.
|
|
64
|
+
--opacity-disabled: 0.5;
|
|
65
|
+
|
|
66
|
+
/* --- Animation --- */
|
|
67
|
+
--time: 0.2s;
|
|
68
|
+
|
|
69
|
+
--bezier: cubic-bezier(.4, 0, .2, 1);
|
|
77
70
|
}
|
|
78
71
|
|
|
79
72
|
/* ============================================
|
|
@@ -82,10 +75,27 @@
|
|
|
82
75
|
|
|
83
76
|
:root,
|
|
84
77
|
.light {
|
|
78
|
+
--svg-check: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e");
|
|
79
|
+
|
|
85
80
|
/* UI Structure */
|
|
86
|
-
--ui-
|
|
87
|
-
--ui-
|
|
88
|
-
--ui-
|
|
81
|
+
--ui-fg: #111827;
|
|
82
|
+
--ui-fg-muted: #6b7280;
|
|
83
|
+
--ui-fg-soft: #9ca3af;
|
|
84
|
+
--ui-fg-subtle: #d1d5db;
|
|
85
|
+
|
|
86
|
+
--ui-bg: hsl(210, 12%, 99%);
|
|
87
|
+
--ui-bg-subtle: hsl(210, 12%, 98%);
|
|
88
|
+
--ui-bg-soft: hsl(210, 12%, 96%);
|
|
89
|
+
--ui-bg-muted: hsl(210, 12%, 94%);
|
|
90
|
+
|
|
91
|
+
--ui-fg-disabled: #9ca3af;
|
|
92
|
+
--ui-bg-disabled: rgba(0, 0, 0, 0.04);
|
|
93
|
+
|
|
94
|
+
--ui-border: hsla(210, 12%, 84%);
|
|
95
|
+
--ui-border-subtle: hsla(210, 12%, 88%);
|
|
96
|
+
--ui-border-soft: hsla(210, 12%, 92%);
|
|
97
|
+
--ui-border-muted: hsla(210, 12%, 96%);
|
|
98
|
+
|
|
89
99
|
--ui-surface: #ffffff;
|
|
90
100
|
--ui-surface-subtle: #f9fafb;
|
|
91
101
|
--ui-surface-muted: #f3f4f6;
|
|
@@ -93,27 +103,12 @@
|
|
|
93
103
|
--ui-surface-active: rgba(0, 0, 0, 0.04);
|
|
94
104
|
--ui-surface-raised: #ffffff;
|
|
95
105
|
--ui-surface-overlay: rgba(255, 255, 255, 0.85);
|
|
96
|
-
|
|
97
|
-
--ui-fg-muted: #6b7280;
|
|
98
|
-
--ui-fg-soft: #9ca3af;
|
|
99
|
-
--ui-fg-subtle: #d1d5db;
|
|
106
|
+
|
|
100
107
|
--ui-reverse: #000;
|
|
101
|
-
--ui-border-subtle: rgba(0, 0, 0, 0.06);
|
|
102
|
-
--ui-border: rgba(0, 0, 0, 0.1);
|
|
103
|
-
--ui-border-strong: rgba(0, 0, 0, 0.2);
|
|
104
108
|
--ui-outline: rgba(0, 0, 0, 0.15);
|
|
105
109
|
--ui-placeholder: #9ca3af;
|
|
106
|
-
--ui-disabled-bg: rgba(0, 0, 0, 0.04);
|
|
107
|
-
--ui-disabled-fg: #9ca3af;
|
|
108
110
|
--ui-overlay: rgba(0, 0, 0, 0.25);
|
|
109
|
-
--ui-overlay-muted: rgba(0, 0, 0, 0.0625);
|
|
110
111
|
--ui-popup-bg: rgba(0, 0, 0, 0.0625);
|
|
111
|
-
--ui-input-color: #111827;
|
|
112
|
-
--ui-input-border: rgba(0, 0, 0, 0.15);
|
|
113
|
-
--ui-input-focus-border: var(--ui-blue);
|
|
114
|
-
--ui-input-placeholder: #9ca3af;
|
|
115
|
-
--ui-input-focus-ring: rgba(59, 130, 246, 0.25);
|
|
116
|
-
--ui-tooltip-bg: #1f2937;
|
|
117
112
|
--ui-tooltip-fg: #f9fafb;
|
|
118
113
|
|
|
119
114
|
/* --- Fixed Theme Colors (15 themes) --- */
|
|
@@ -169,6 +164,7 @@
|
|
|
169
164
|
--tone-muted: rgba(99, 102, 241, 0.12);
|
|
170
165
|
--tone-weak: #ececf7;
|
|
171
166
|
--tone-wash: rgba(99, 102, 241, 0.03);
|
|
167
|
+
--tone-bg: rgba(99, 102, 241, 0.01);
|
|
172
168
|
--tone-border: rgba(99, 102, 241, 0.2);
|
|
173
169
|
--tone-border-strong: rgba(99, 102, 241, 0.35);
|
|
174
170
|
--tone-solid: #6366f1;
|
|
@@ -180,6 +176,7 @@
|
|
|
180
176
|
--tone-text-hover: #4338ca;
|
|
181
177
|
--tone-fg: #ffffff;
|
|
182
178
|
--tone-ring: rgba(99, 102, 241, 0.4);
|
|
179
|
+
|
|
183
180
|
--tone-highlight: #fef08a;
|
|
184
181
|
--tone-highlight-fg: #854d0e;
|
|
185
182
|
|
|
@@ -273,10 +270,27 @@
|
|
|
273
270
|
============================================ */
|
|
274
271
|
|
|
275
272
|
.dark {
|
|
273
|
+
--svg-check: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e");
|
|
274
|
+
|
|
276
275
|
/* UI Structure */
|
|
277
|
-
--ui-
|
|
278
|
-
--ui-
|
|
279
|
-
--ui-
|
|
276
|
+
--ui-fg: #f9fafb;
|
|
277
|
+
--ui-fg-muted: #cbd5e1;
|
|
278
|
+
--ui-fg-soft: #94a3b8;
|
|
279
|
+
--ui-fg-subtle: #64748b;
|
|
280
|
+
|
|
281
|
+
--ui-bg: hsl(210, 4%, 8%);
|
|
282
|
+
--ui-bg-subtle: hsl(210, 4%, 10%);
|
|
283
|
+
--ui-bg-soft: hsl(210, 4%, 12%);
|
|
284
|
+
--ui-bg-muted: hsl(210, 4%, 14%);
|
|
285
|
+
|
|
286
|
+
--ui-fg-disabled: #64748b;
|
|
287
|
+
--ui-bg-disabled: rgba(255, 255, 255, 0.04);
|
|
288
|
+
|
|
289
|
+
--ui-border: hsl(210, 8%, 24%);
|
|
290
|
+
--ui-border-subtle: hsl(210, 8%, 16%);
|
|
291
|
+
--ui-border-soft: hsl(210, 8%, 12%);
|
|
292
|
+
--ui-border-muted: hsl(210, 8%, 10%);
|
|
293
|
+
|
|
280
294
|
--ui-surface: #0b0f14;
|
|
281
295
|
--ui-surface-subtle: #11161d;
|
|
282
296
|
--ui-surface-muted: #181e27;
|
|
@@ -284,27 +298,12 @@
|
|
|
284
298
|
--ui-surface-active: rgba(255, 255, 255, 0.07);
|
|
285
299
|
--ui-surface-raised: #151b24;
|
|
286
300
|
--ui-surface-overlay: rgba(7, 10, 15, 0.9);
|
|
287
|
-
|
|
288
|
-
--ui-fg-muted: #cbd5e1;
|
|
289
|
-
--ui-fg-soft: #94a3b8;
|
|
290
|
-
--ui-fg-subtle: #64748b;
|
|
301
|
+
|
|
291
302
|
--ui-reverse: #fff;
|
|
292
|
-
--ui-border-subtle: rgba(148, 163, 184, 0.12);
|
|
293
|
-
--ui-border: rgba(148, 163, 184, 0.18);
|
|
294
|
-
--ui-border-strong: rgba(148, 163, 184, 0.28);
|
|
295
303
|
--ui-outline: rgba(148, 163, 184, 0.2);
|
|
296
304
|
--ui-placeholder: #64748b;
|
|
297
|
-
--ui-disabled-bg: rgba(255, 255, 255, 0.04);
|
|
298
|
-
--ui-disabled-fg: #64748b;
|
|
299
305
|
--ui-overlay: rgba(2, 6, 23, 0.7);
|
|
300
|
-
--ui-
|
|
301
|
-
--ui-popup-bg: rgba(17, 24, 39, 0.45);
|
|
302
|
-
--ui-input-color: #f9fafb;
|
|
303
|
-
--ui-input-border: rgba(148, 163, 184, 0.2);
|
|
304
|
-
--ui-input-focus-border: #a78bfa;
|
|
305
|
-
--ui-input-placeholder: #64748b;
|
|
306
|
-
--ui-input-focus-ring: rgba(167, 139, 250, 0.28);
|
|
307
|
-
--ui-tooltip-bg: #11161d;
|
|
306
|
+
--ui-popup-bg: rgba(0, 0, 0, 0.0375);
|
|
308
307
|
--ui-tooltip-fg: #f8fafc;
|
|
309
308
|
|
|
310
309
|
/* --- Fixed Theme Colors (15 themes) --- */
|
|
@@ -360,6 +359,7 @@
|
|
|
360
359
|
--tone-muted: rgba(129, 140, 248, 0.2);
|
|
361
360
|
--tone-weak: #151b23;
|
|
362
361
|
--tone-wash: rgba(129, 140, 248, 0.05);
|
|
362
|
+
--tone-bg: rgba(129, 140, 248, 0.01);
|
|
363
363
|
--tone-border: rgba(129, 140, 248, 0.2);
|
|
364
364
|
--tone-border-strong: rgba(129, 140, 248, 0.35);
|
|
365
365
|
--tone-solid: #818cf8;
|
|
@@ -468,7 +468,8 @@
|
|
|
468
468
|
--tone-subtle: rgba(0, 0, 0, 0.04);
|
|
469
469
|
--tone-soft: rgba(0, 0, 0, 0.06);
|
|
470
470
|
--tone-muted: rgba(0, 0, 0, 0.1);
|
|
471
|
-
--tone-wash: rgba(0, 0, 0, 0.
|
|
471
|
+
--tone-wash: rgba(0, 0, 0, 0.03);
|
|
472
|
+
--tone-bg: rgba(0, 0, 0, 0.01);
|
|
472
473
|
--tone-border: rgba(0, 0, 0, 0.2);
|
|
473
474
|
--tone-border-strong: rgba(0, 0, 0, 0.35);
|
|
474
475
|
--tone-solid: var(--ui-gray);
|
|
@@ -491,6 +492,7 @@
|
|
|
491
492
|
--tone-soft: rgba(113, 119, 98, 0.1);
|
|
492
493
|
--tone-muted: rgba(113, 119, 98, 0.15);
|
|
493
494
|
--tone-wash: rgba(113, 119, 98, 0.03);
|
|
495
|
+
--tone-bg: rgba(113, 119, 98, 0.01);
|
|
494
496
|
--tone-border: rgba(113, 119, 98, 0.2);
|
|
495
497
|
--tone-border-strong: rgba(113, 119, 98, 0.35);
|
|
496
498
|
--tone-solid: var(--ui-olive);
|
|
@@ -513,6 +515,7 @@
|
|
|
513
515
|
--tone-soft: rgba(239, 68, 68, 0.1);
|
|
514
516
|
--tone-muted: rgba(239, 68, 68, 0.15);
|
|
515
517
|
--tone-wash: rgba(239, 68, 68, 0.03);
|
|
518
|
+
--tone-bg: rgba(239, 68, 68, 0.01);
|
|
516
519
|
--tone-border: rgba(239, 68, 68, 0.2);
|
|
517
520
|
--tone-border-strong: rgba(239, 68, 68, 0.35);
|
|
518
521
|
--tone-solid: var(--ui-tomato);
|
|
@@ -535,6 +538,7 @@
|
|
|
535
538
|
--tone-soft: rgba(244, 63, 94, 0.1);
|
|
536
539
|
--tone-muted: rgba(244, 63, 94, 0.15);
|
|
537
540
|
--tone-wash: rgba(244, 63, 94, 0.03);
|
|
541
|
+
--tone-bg: rgba(244, 63, 94, 0.01);
|
|
538
542
|
--tone-border: rgba(244, 63, 94, 0.2);
|
|
539
543
|
--tone-border-strong: rgba(244, 63, 94, 0.35);
|
|
540
544
|
--tone-solid: var(--ui-ruby);
|
|
@@ -557,6 +561,7 @@
|
|
|
557
561
|
--tone-soft: rgba(236, 72, 153, 0.1);
|
|
558
562
|
--tone-muted: rgba(236, 72, 153, 0.15);
|
|
559
563
|
--tone-wash: rgba(236, 72, 153, 0.03);
|
|
564
|
+
--tone-bg: rgba(236, 72, 153, 0.01);
|
|
560
565
|
--tone-border: rgba(236, 72, 153, 0.2);
|
|
561
566
|
--tone-border-strong: rgba(236, 72, 153, 0.35);
|
|
562
567
|
--tone-solid: var(--ui-pink);
|
|
@@ -579,6 +584,7 @@
|
|
|
579
584
|
--tone-soft: rgba(139, 92, 246, 0.1);
|
|
580
585
|
--tone-muted: rgba(139, 92, 246, 0.15);
|
|
581
586
|
--tone-wash: rgba(139, 92, 246, 0.03);
|
|
587
|
+
--tone-bg: rgba(139, 92, 246, 0.01);
|
|
582
588
|
--tone-border: rgba(139, 92, 246, 0.2);
|
|
583
589
|
--tone-border-strong: rgba(139, 92, 246, 0.35);
|
|
584
590
|
--tone-solid: var(--ui-violet);
|
|
@@ -601,6 +607,7 @@
|
|
|
601
607
|
--tone-soft: rgba(99, 102, 241, 0.1);
|
|
602
608
|
--tone-muted: rgba(99, 102, 241, 0.15);
|
|
603
609
|
--tone-wash: rgba(99, 102, 241, 0.03);
|
|
610
|
+
--tone-bg: rgba(99, 102, 241, 0.01);
|
|
604
611
|
--tone-border: rgba(99, 102, 241, 0.2);
|
|
605
612
|
--tone-border-strong: rgba(99, 102, 241, 0.35);
|
|
606
613
|
--tone-solid: var(--ui-indigo);
|
|
@@ -623,6 +630,7 @@
|
|
|
623
630
|
--tone-soft: rgba(59, 130, 246, 0.1);
|
|
624
631
|
--tone-muted: rgba(59, 130, 246, 0.15);
|
|
625
632
|
--tone-wash: rgba(59, 130, 246, 0.03);
|
|
633
|
+
--tone-bg: rgba(59, 130, 246, 0.01);
|
|
626
634
|
--tone-border: rgba(59, 130, 246, 0.2);
|
|
627
635
|
--tone-border-strong: rgba(59, 130, 246, 0.35);
|
|
628
636
|
--tone-solid: var(--ui-blue);
|
|
@@ -645,6 +653,7 @@
|
|
|
645
653
|
--tone-soft: rgba(20, 184, 166, 0.1);
|
|
646
654
|
--tone-muted: rgba(20, 184, 166, 0.15);
|
|
647
655
|
--tone-wash: rgba(20, 184, 166, 0.03);
|
|
656
|
+
--tone-bg: rgba(20, 184, 166, 0.01);
|
|
648
657
|
--tone-border: rgba(20, 184, 166, 0.2);
|
|
649
658
|
--tone-border-strong: rgba(20, 184, 166, 0.35);
|
|
650
659
|
--tone-solid: var(--ui-teal);
|
|
@@ -667,6 +676,7 @@
|
|
|
667
676
|
--tone-soft: rgba(34, 197, 94, 0.1);
|
|
668
677
|
--tone-muted: rgba(34, 197, 94, 0.15);
|
|
669
678
|
--tone-wash: rgba(34, 197, 94, 0.03);
|
|
679
|
+
--tone-bg: rgba(34, 197, 94, 0.01);
|
|
670
680
|
--tone-border: rgba(34, 197, 94, 0.2);
|
|
671
681
|
--tone-border-strong: rgba(34, 197, 94, 0.35);
|
|
672
682
|
--tone-solid: var(--ui-grass);
|
|
@@ -689,6 +699,7 @@
|
|
|
689
699
|
--tone-soft: rgba(6, 182, 212, 0.1);
|
|
690
700
|
--tone-muted: rgba(6, 182, 212, 0.15);
|
|
691
701
|
--tone-wash: rgba(6, 182, 212, 0.03);
|
|
702
|
+
--tone-bg: rgba(6, 182, 212, 0.01);
|
|
692
703
|
--tone-border: rgba(6, 182, 212, 0.2);
|
|
693
704
|
--tone-border-strong: rgba(6, 182, 212, 0.35);
|
|
694
705
|
--tone-solid: var(--ui-mint);
|
|
@@ -711,6 +722,7 @@
|
|
|
711
722
|
--tone-soft: rgba(132, 204, 22, 0.1);
|
|
712
723
|
--tone-muted: rgba(132, 204, 22, 0.15);
|
|
713
724
|
--tone-wash: rgba(132, 204, 22, 0.03);
|
|
725
|
+
--tone-bg: rgba(132, 204, 22, 0.01);
|
|
714
726
|
--tone-border: rgba(132, 204, 22, 0.2);
|
|
715
727
|
--tone-border-strong: rgba(132, 204, 22, 0.35);
|
|
716
728
|
--tone-solid: var(--ui-lime);
|
|
@@ -733,6 +745,7 @@
|
|
|
733
745
|
--tone-soft: rgba(234, 179, 8, 0.1);
|
|
734
746
|
--tone-muted: rgba(234, 179, 8, 0.15);
|
|
735
747
|
--tone-wash: rgba(234, 179, 8, 0.03);
|
|
748
|
+
--tone-bg: rgba(234, 179, 8, 0.01);
|
|
736
749
|
--tone-border: rgba(234, 179, 8, 0.2);
|
|
737
750
|
--tone-border-strong: rgba(234, 179, 8, 0.35);
|
|
738
751
|
--tone-solid: var(--ui-yellow);
|
|
@@ -755,6 +768,7 @@
|
|
|
755
768
|
--tone-soft: rgba(249, 115, 22, 0.1);
|
|
756
769
|
--tone-muted: rgba(249, 115, 22, 0.15);
|
|
757
770
|
--tone-wash: rgba(249, 115, 22, 0.03);
|
|
771
|
+
--tone-bg: rgba(249, 115, 22, 0.01);
|
|
758
772
|
--tone-border: rgba(249, 115, 22, 0.2);
|
|
759
773
|
--tone-border-strong: rgba(249, 115, 22, 0.35);
|
|
760
774
|
--tone-solid: var(--ui-orange);
|
|
@@ -777,6 +791,7 @@
|
|
|
777
791
|
--tone-soft: rgba(180, 83, 9, 0.1);
|
|
778
792
|
--tone-muted: rgba(180, 83, 9, 0.15);
|
|
779
793
|
--tone-wash: rgba(180, 83, 9, 0.03);
|
|
794
|
+
--tone-bg: rgba(180, 83, 9, 0.01);
|
|
780
795
|
--tone-border: rgba(180, 83, 9, 0.2);
|
|
781
796
|
--tone-border-strong: rgba(180, 83, 9, 0.35);
|
|
782
797
|
--tone-solid: var(--ui-gold);
|
|
@@ -802,6 +817,7 @@
|
|
|
802
817
|
--tone-soft: rgba(255, 255, 255, 0.1);
|
|
803
818
|
--tone-muted: rgba(255, 255, 255, 0.15);
|
|
804
819
|
--tone-wash: rgba(255, 255, 255, 0.03);
|
|
820
|
+
--tone-bg: rgba(255, 255, 255, 0.01);
|
|
805
821
|
--tone-border: rgba(255, 255, 255, 0.2);
|
|
806
822
|
--tone-border-strong: rgba(255, 255, 255, 0.35);
|
|
807
823
|
/* --tone-solid: #e5e7eb; */
|
|
@@ -821,6 +837,7 @@
|
|
|
821
837
|
--tone-soft: rgba(180, 188, 162, 0.15);
|
|
822
838
|
--tone-muted: rgba(180, 188, 162, 0.2);
|
|
823
839
|
--tone-wash: rgba(180, 188, 162, 0.05);
|
|
840
|
+
--tone-bg: rgba(180, 188, 162, 0.01);
|
|
824
841
|
--tone-border: rgba(180, 188, 162, 0.2);
|
|
825
842
|
--tone-border-strong: rgba(180, 188, 162, 0.35);
|
|
826
843
|
/* --tone-solid: #b4bc9e; */
|
|
@@ -840,6 +857,7 @@
|
|
|
840
857
|
--tone-soft: rgba(248, 113, 113, 0.15);
|
|
841
858
|
--tone-muted: rgba(248, 113, 113, 0.2);
|
|
842
859
|
--tone-wash: rgba(248, 113, 113, 0.05);
|
|
860
|
+
--tone-bg: rgba(248, 113, 113, 0.01);
|
|
843
861
|
--tone-border: rgba(248, 113, 113, 0.2);
|
|
844
862
|
--tone-border-strong: rgba(248, 113, 113, 0.35);
|
|
845
863
|
/* --tone-solid: #f87171; */
|
|
@@ -859,6 +877,7 @@
|
|
|
859
877
|
--tone-soft: rgba(251, 113, 133, 0.15);
|
|
860
878
|
--tone-muted: rgba(251, 113, 133, 0.2);
|
|
861
879
|
--tone-wash: rgba(251, 113, 133, 0.05);
|
|
880
|
+
--tone-bg: rgba(251, 113, 133, 0.01);
|
|
862
881
|
--tone-border: rgba(251, 113, 133, 0.2);
|
|
863
882
|
--tone-border-strong: rgba(251, 113, 133, 0.35);
|
|
864
883
|
/* --tone-solid: #fb7185; */
|
|
@@ -878,6 +897,7 @@
|
|
|
878
897
|
--tone-soft: rgba(244, 114, 182, 0.15);
|
|
879
898
|
--tone-muted: rgba(244, 114, 182, 0.2);
|
|
880
899
|
--tone-wash: rgba(244, 114, 182, 0.05);
|
|
900
|
+
--tone-bg: rgba(244, 114, 182, 0.01);
|
|
881
901
|
--tone-border: rgba(244, 114, 182, 0.2);
|
|
882
902
|
--tone-border-strong: rgba(244, 114, 182, 0.35);
|
|
883
903
|
/* --tone-solid: #f472b6; */
|
|
@@ -897,6 +917,7 @@
|
|
|
897
917
|
--tone-soft: rgba(167, 139, 250, 0.15);
|
|
898
918
|
--tone-muted: rgba(167, 139, 250, 0.2);
|
|
899
919
|
--tone-wash: rgba(167, 139, 250, 0.05);
|
|
920
|
+
--tone-bg: rgba(167, 139, 250, 0.01);
|
|
900
921
|
--tone-border: rgba(167, 139, 250, 0.2);
|
|
901
922
|
--tone-border-strong: rgba(167, 139, 250, 0.35);
|
|
902
923
|
/* --tone-solid: #a78bfa; */
|
|
@@ -916,6 +937,7 @@
|
|
|
916
937
|
--tone-soft: rgba(129, 140, 248, 0.15);
|
|
917
938
|
--tone-muted: rgba(129, 140, 248, 0.2);
|
|
918
939
|
--tone-wash: rgba(129, 140, 248, 0.05);
|
|
940
|
+
--tone-bg: rgba(129, 140, 248, 0.01);
|
|
919
941
|
--tone-border: rgba(129, 140, 248, 0.2);
|
|
920
942
|
--tone-border-strong: rgba(129, 140, 248, 0.35);
|
|
921
943
|
/* --tone-solid: #818cf8; */
|
|
@@ -935,6 +957,7 @@
|
|
|
935
957
|
--tone-soft: rgba(96, 165, 250, 0.15);
|
|
936
958
|
--tone-muted: rgba(96, 165, 250, 0.2);
|
|
937
959
|
--tone-wash: rgba(96, 165, 250, 0.05);
|
|
960
|
+
--tone-bg: rgba(96, 165, 250, 0.01);
|
|
938
961
|
--tone-border: rgba(96, 165, 250, 0.2);
|
|
939
962
|
--tone-border-strong: rgba(96, 165, 250, 0.35);
|
|
940
963
|
/* --tone-solid: #60a5fa; */
|
|
@@ -954,6 +977,7 @@
|
|
|
954
977
|
--tone-soft: rgba(45, 212, 191, 0.15);
|
|
955
978
|
--tone-muted: rgba(45, 212, 191, 0.2);
|
|
956
979
|
--tone-wash: rgba(45, 212, 191, 0.05);
|
|
980
|
+
--tone-bg: rgba(45, 212, 191, 0.01);
|
|
957
981
|
--tone-border: rgba(45, 212, 191, 0.2);
|
|
958
982
|
--tone-border-strong: rgba(45, 212, 191, 0.35);
|
|
959
983
|
/* --tone-solid: #2dd4bf; */
|
|
@@ -973,6 +997,7 @@
|
|
|
973
997
|
--tone-soft: rgba(74, 222, 128, 0.15);
|
|
974
998
|
--tone-muted: rgba(74, 222, 128, 0.2);
|
|
975
999
|
--tone-wash: rgba(74, 222, 128, 0.05);
|
|
1000
|
+
--tone-bg: rgba(74, 222, 128, 0.01);
|
|
976
1001
|
--tone-border: rgba(74, 222, 128, 0.2);
|
|
977
1002
|
--tone-border-strong: rgba(74, 222, 128, 0.35);
|
|
978
1003
|
/* --tone-solid: #4ade80; */
|
|
@@ -992,6 +1017,7 @@
|
|
|
992
1017
|
--tone-soft: rgba(34, 211, 238, 0.15);
|
|
993
1018
|
--tone-muted: rgba(34, 211, 238, 0.2);
|
|
994
1019
|
--tone-wash: rgba(34, 211, 238, 0.05);
|
|
1020
|
+
--tone-bg: rgba(34, 211, 238, 0.01);
|
|
995
1021
|
--tone-border: rgba(34, 211, 238, 0.2);
|
|
996
1022
|
--tone-border-strong: rgba(34, 211, 238, 0.35);
|
|
997
1023
|
/* --tone-solid: #22d3ee; */
|
|
@@ -1011,6 +1037,7 @@
|
|
|
1011
1037
|
--tone-soft: rgba(163, 230, 53, 0.15);
|
|
1012
1038
|
--tone-muted: rgba(163, 230, 53, 0.2);
|
|
1013
1039
|
--tone-wash: rgba(163, 230, 53, 0.05);
|
|
1040
|
+
--tone-bg: rgba(163, 230, 53, 0.01);
|
|
1014
1041
|
--tone-border: rgba(163, 230, 53, 0.2);
|
|
1015
1042
|
--tone-border-strong: rgba(163, 230, 53, 0.35);
|
|
1016
1043
|
/* --tone-solid: #a3e635; */
|
|
@@ -1030,6 +1057,7 @@
|
|
|
1030
1057
|
--tone-soft: rgba(250, 204, 21, 0.15);
|
|
1031
1058
|
--tone-muted: rgba(250, 204, 21, 0.2);
|
|
1032
1059
|
--tone-wash: rgba(250, 204, 21, 0.05);
|
|
1060
|
+
--tone-bg: rgba(250, 204, 21, 0.01);
|
|
1033
1061
|
--tone-border: rgba(250, 204, 21, 0.2);
|
|
1034
1062
|
--tone-border-strong: rgba(250, 204, 21, 0.35);
|
|
1035
1063
|
/* --tone-solid: #facc15; */
|
|
@@ -1049,6 +1077,7 @@
|
|
|
1049
1077
|
--tone-soft: rgba(251, 146, 60, 0.15);
|
|
1050
1078
|
--tone-muted: rgba(251, 146, 60, 0.2);
|
|
1051
1079
|
--tone-wash: rgba(251, 146, 60, 0.05);
|
|
1080
|
+
--tone-bg: rgba(251, 146, 60, 0.01);
|
|
1052
1081
|
--tone-border: rgba(251, 146, 60, 0.2);
|
|
1053
1082
|
--tone-border-strong: rgba(251, 146, 60, 0.35);
|
|
1054
1083
|
/* --tone-solid: #fb923c; */
|
|
@@ -1068,6 +1097,7 @@
|
|
|
1068
1097
|
--tone-soft: rgba(217, 119, 6, 0.15);
|
|
1069
1098
|
--tone-muted: rgba(217, 119, 6, 0.2);
|
|
1070
1099
|
--tone-wash: rgba(217, 119, 6, 0.05);
|
|
1100
|
+
--tone-bg: rgba(217, 119, 6, 0.01);
|
|
1071
1101
|
--tone-border: rgba(217, 119, 6, 0.2);
|
|
1072
1102
|
--tone-border-strong: rgba(217, 119, 6, 0.35);
|
|
1073
1103
|
/* --tone-solid: #d97706; */
|
|
@@ -1295,4 +1325,4 @@
|
|
|
1295
1325
|
--el-height-2xl: 3.5rem;
|
|
1296
1326
|
--el-height-3xl: 3.75rem;
|
|
1297
1327
|
}
|
|
1298
|
-
}
|
|
1328
|
+
}
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
--ui-border-strong: rgba(0, 0, 0, 0.2);
|
|
104
104
|
--ui-outline: rgba(0, 0, 0, 0.15);
|
|
105
105
|
--ui-placeholder: #9ca3af;
|
|
106
|
-
--ui-disabled
|
|
107
|
-
--ui-disabled
|
|
106
|
+
--ui-bg-disabled: rgba(0, 0, 0, 0.04);
|
|
107
|
+
--ui-fg-disabled: #9ca3af;
|
|
108
108
|
--ui-overlay: rgba(0, 0, 0, 0.25);
|
|
109
109
|
--ui-overlay-muted: rgba(0, 0, 0, 0.0625);
|
|
110
110
|
--ui-popup-bg: rgba(0, 0, 0, 0.0625);
|
|
@@ -294,8 +294,8 @@
|
|
|
294
294
|
--ui-border-strong: rgba(148, 163, 184, 0.28);
|
|
295
295
|
--ui-outline: rgba(148, 163, 184, 0.2);
|
|
296
296
|
--ui-placeholder: #64748b;
|
|
297
|
-
--ui-disabled
|
|
298
|
-
--ui-disabled
|
|
297
|
+
--ui-bg-disabled: rgba(255, 255, 255, 0.04);
|
|
298
|
+
--ui-fg-disabled: #64748b;
|
|
299
299
|
--ui-overlay: rgba(2, 6, 23, 0.7);
|
|
300
300
|
--ui-overlay-muted: rgba(2, 6, 23, 0.45);
|
|
301
301
|
--ui-popup-bg: rgba(17, 24, 39, 0.45);
|
package/src/icons/index.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
const err =
|
|
2
|
+
'<path d="M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"></path>';
|
|
1
3
|
export default {
|
|
2
|
-
info: '<path d="M12
|
|
4
|
+
info: '<path d="M12 6C12.8284 6 13.5 5.32843 13.5 4.5C13.5 3.67157 12.8284 3 12 3C11.1716 3 10.5 3.67157 10.5 4.5C10.5 5.32843 11.1716 6 12 6ZM9 10H11V18H9V20H15V18H13V8H9V10Z"></path>',
|
|
3
5
|
success:
|
|
4
|
-
'<path d="
|
|
6
|
+
'<path d="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"></path>',
|
|
5
7
|
warning:
|
|
6
|
-
'<path d="
|
|
7
|
-
error:
|
|
8
|
-
'<path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 10.5858L14.8284 7.75736L16.2426 9.17157L13.4142 12L16.2426 14.8284L14.8284 16.2426L12 13.4142L9.17157 16.2426L7.75736 14.8284L10.5858 12L7.75736 9.17157L9.17157 7.75736L12 10.5858Z"></path>',
|
|
8
|
+
'<path d="M13 9H21L11 24V15H4L13 0V9ZM11 11V7.22063L7.53238 13H13V17.3944L17.263 11H11Z"></path>',
|
|
9
|
+
error: err,
|
|
9
10
|
'arrow-left':
|
|
10
11
|
'<path d="M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z"></path>',
|
|
11
12
|
'arrow-right':
|
|
@@ -15,8 +16,7 @@ export default {
|
|
|
15
16
|
'arrow-down':
|
|
16
17
|
'<path d="M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"></path>',
|
|
17
18
|
more: '<path d="M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"></path>',
|
|
18
|
-
close:
|
|
19
|
-
'<path d="M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"></path>',
|
|
19
|
+
close: err,
|
|
20
20
|
loader:
|
|
21
21
|
'<path d="M12 3C16.9706 3 21 7.02944 21 12H19C19 8.13401 15.866 5 12 5V3Z"></path>',
|
|
22
22
|
menu: '<path d="M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"></path>',
|
|
@@ -34,4 +34,6 @@ export default {
|
|
|
34
34
|
'<path d="M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z"></path>',
|
|
35
35
|
'thumb-down':
|
|
36
36
|
'<path d="M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z"></path>',
|
|
37
|
+
add: '<path d="M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z"></path>',
|
|
38
|
+
minus: '<path d="M5 11V13H19V11H5Z"></path>',
|
|
37
39
|
};
|
package/src/locales/index.ts
CHANGED
package/src/primitives/theme.ts
CHANGED
|
@@ -73,17 +73,17 @@ type ThemeStoredConfig = Partial<Record<ThemeConfigKey, string>> & {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
const DEFAULT_CLASS_NAMES: ThemeClassNames = {
|
|
76
|
-
panel: 'j-
|
|
77
|
-
title: 'theme-
|
|
78
|
-
container: '
|
|
79
|
-
item: '
|
|
76
|
+
panel: 'j-themes',
|
|
77
|
+
title: 'theme-title',
|
|
78
|
+
container: 'theme-container',
|
|
79
|
+
item: 'theme-item',
|
|
80
80
|
itemTitle: 'item-title',
|
|
81
81
|
items: 'items',
|
|
82
|
-
button: 'j-
|
|
82
|
+
button: 'j-btn is-default',
|
|
83
83
|
active: 'is-active',
|
|
84
84
|
prefix: 'el-prefix',
|
|
85
85
|
swatch: 'item-hex',
|
|
86
|
-
buttonText: '
|
|
86
|
+
buttonText: 'el-text',
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
const DEFAULT_OPTIONS: ThemeResolvedOptions = {
|
|
@@ -281,14 +281,11 @@ export function createTheme(options: ThemeOptions = {}): ThemeInstance {
|
|
|
281
281
|
const groups = panelConfig || defaultPanelConfig(translate);
|
|
282
282
|
const panel = jsx('div', {
|
|
283
283
|
className: containerClass || className.panel,
|
|
284
|
-
'data-
|
|
284
|
+
'data-themes': 'root',
|
|
285
285
|
children: [
|
|
286
286
|
jsx('h3', {
|
|
287
287
|
className: className.title,
|
|
288
288
|
'data-theme-title': '',
|
|
289
|
-
style: {
|
|
290
|
-
margin: '0 0 1rem',
|
|
291
|
-
},
|
|
292
289
|
children: translate('t'),
|
|
293
290
|
}),
|
|
294
291
|
jsx('div', {
|