1
1
export class Theme {
2
2
static readonly dark = "dark-theme" ;
3
3
static readonly light = "light-theme" ;
4
- static readonly light2 = "light-theme-2" ;
5
4
6
- static className ( params : { type ?: "dark" | "light" | "light2" } ) {
5
+ static className ( params : { type ?: "dark" | "light" } ) {
7
6
switch ( params . type ) {
8
7
case "light" :
9
8
return Theme . light ;
10
- case "light2" :
11
- return Theme . light2 ;
12
9
}
13
10
return Theme . dark ;
14
11
}
@@ -29,31 +26,52 @@ export class Box {
29
26
/**
30
27
* Read more at @link https://github.com/ncpa0/ADWaveCSS/blob/master/docs/components/box.md#ClassNames
31
28
*/
32
- static readonly bg2 = "bg-level-2 " ;
29
+ static readonly bg1 = "bg-1 " ;
33
30
/**
34
31
* Read more at @link https://github.com/ncpa0/ADWaveCSS/blob/master/docs/components/box.md#ClassNames
35
32
*/
36
- static readonly bg3 = "bg-level-3 " ;
33
+ static readonly bg2 = "bg-2 " ;
37
34
/**
38
35
* Read more at @link https://github.com/ncpa0/ADWaveCSS/blob/master/docs/components/box.md#ClassNames
39
36
*/
40
- static readonly bg4 = "bg-level-4" ;
37
+ static readonly bg3 = "bg-3" ;
38
+ /**
39
+ * Read more at @link https://github.com/ncpa0/ADWaveCSS/blob/master/docs/components/box.md#ClassNames
40
+ */
41
+ static readonly bg4 = "bg-4" ;
42
+ /**
43
+ * Read more at @link https://github.com/ncpa0/ADWaveCSS/blob/master/docs/components/box.md#ClassNames
44
+ */
45
+ static readonly bg5 = "bg-5" ;
46
+ /**
47
+ * Read more at @link https://github.com/ncpa0/ADWaveCSS/blob/master/docs/components/box.md#ClassNames
48
+ */
49
+ static readonly bg6 = "bg-6" ;
41
50
42
- static className ( params : { rounded ?: boolean ; bg ?: 1 | 2 | 3 | 4 } ) {
51
+ static className ( params : { rounded ?: boolean ; bg ?: 1 | 2 | 3 | 4 | 5 | 6 } ) {
43
52
let className = Box . box ;
44
53
if ( params . rounded ) {
45
54
className += ` ${ Box . rounded } ` ;
46
55
}
47
56
if ( params . bg ) {
48
57
switch ( params . bg ) {
49
- case 4 :
50
- className += ` ${ Box . bg4 } ` ;
58
+ case 1 :
59
+ className += ` ${ Box . bg1 } ` ;
60
+ break ;
61
+ case 2 :
62
+ className += ` ${ Box . bg2 } ` ;
51
63
break ;
52
64
case 3 :
53
65
className += ` ${ Box . bg3 } ` ;
54
66
break ;
55
- case 2 :
56
- className += ` ${ Box . bg2 } ` ;
67
+ case 4 :
68
+ className += ` ${ Box . bg4 } ` ;
69
+ break ;
70
+ case 5 :
71
+ className += ` ${ Box . bg5 } ` ;
72
+ break ;
73
+ case 6 :
74
+ className += ` ${ Box . bg6 } ` ;
57
75
break ;
58
76
}
59
77
}
@@ -661,7 +679,9 @@ export class Alert {
661
679
static readonly warning = "warning" ;
662
680
static readonly error = "error" ;
663
681
664
- static className ( params : { type ?: "info" | "success" | "warning" | "error" } ) {
682
+ static className ( params : {
683
+ type ?: "info" | "success" | "warning" | "error" ;
684
+ } ) {
665
685
switch ( params . type ) {
666
686
case "info" :
667
687
return `${ Alert . alert } ${ Alert . info } ` ;
0 commit comments