@1024pix/pix-ui 50.1.1 → 51.0.0
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.
|
@@ -4,10 +4,21 @@ const TYPE_INFO = 'info';
|
|
|
4
4
|
const TYPE_SUCCESS = 'success';
|
|
5
5
|
const TYPE_WARNING = 'warning';
|
|
6
6
|
const TYPE_ERROR = 'error';
|
|
7
|
+
const TYPE_COMMUNICATION = 'communication';
|
|
8
|
+
const TYPE_COMMUNICATION_ORGA = 'communication-orga';
|
|
9
|
+
const TYPE_COMMUNICATION_CERTIF = 'communication-certif';
|
|
7
10
|
|
|
8
11
|
export default class PixNotificationAlert extends Component {
|
|
9
12
|
get type() {
|
|
10
|
-
const correctTypes = [
|
|
13
|
+
const correctTypes = [
|
|
14
|
+
TYPE_INFO,
|
|
15
|
+
TYPE_SUCCESS,
|
|
16
|
+
TYPE_WARNING,
|
|
17
|
+
TYPE_ERROR,
|
|
18
|
+
TYPE_COMMUNICATION,
|
|
19
|
+
TYPE_COMMUNICATION_CERTIF,
|
|
20
|
+
TYPE_COMMUNICATION_ORGA,
|
|
21
|
+
];
|
|
11
22
|
|
|
12
23
|
return correctTypes.includes(this.args.type) ? this.args.type : 'info';
|
|
13
24
|
}
|
|
@@ -18,6 +29,9 @@ export default class PixNotificationAlert extends Component {
|
|
|
18
29
|
[TYPE_SUCCESS]: 'checkCircle',
|
|
19
30
|
[TYPE_WARNING]: 'warning',
|
|
20
31
|
[TYPE_ERROR]: 'error',
|
|
32
|
+
[TYPE_COMMUNICATION]: 'campaign',
|
|
33
|
+
[TYPE_COMMUNICATION_CERTIF]: 'campaign',
|
|
34
|
+
[TYPE_COMMUNICATION_ORGA]: 'campaign',
|
|
21
35
|
};
|
|
22
36
|
return classes[this.type];
|
|
23
37
|
}
|
|
@@ -87,50 +87,5 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
|
|
91
|
-
&--communication {
|
|
92
|
-
color: var(--pix-neutral-0);
|
|
93
|
-
background-color: var(--pix-primary-500);
|
|
94
|
-
|
|
95
|
-
.pix-icon-button {
|
|
96
|
-
color: currentcolor;
|
|
97
|
-
|
|
98
|
-
&:hover:enabled,
|
|
99
|
-
&:focus:enabled,
|
|
100
|
-
&:active:enabled {
|
|
101
|
-
background-color: var(--pix-primary-300);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&--communication-orga {
|
|
107
|
-
color: var(--pix-neutral-0);
|
|
108
|
-
background-color: var(--pix-orga-500);
|
|
109
|
-
|
|
110
|
-
.pix-icon-button {
|
|
111
|
-
color: currentcolor;
|
|
112
|
-
|
|
113
|
-
&:hover:enabled,
|
|
114
|
-
&:focus:enabled,
|
|
115
|
-
&:active:enabled {
|
|
116
|
-
background-color: var(--pix-communication-light);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&--communication-certif {
|
|
122
|
-
color: var(--pix-neutral-0);
|
|
123
|
-
background-color: var(--pix-certif-500);
|
|
124
|
-
|
|
125
|
-
.pix-icon-button {
|
|
126
|
-
color: currentcolor;
|
|
127
|
-
|
|
128
|
-
&:hover:enabled,
|
|
129
|
-
&:focus:enabled,
|
|
130
|
-
&:active:enabled {
|
|
131
|
-
background-color: var(--pix-content-light);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
90
|
+
}
|
|
136
91
|
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
border: 1px solid currentcolor;
|
|
11
11
|
border-radius: var(--pix-spacing-1x);
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
&--info {
|
|
14
14
|
color: var(--pix-info-700);
|
|
15
15
|
background-color: var(--pix-info-50);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
&--alert {
|
|
19
19
|
color: var(--pix-error-700);
|
|
20
20
|
background-color: var(--pix-error-50);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
&--error {
|
|
24
24
|
color: var(--pix-error-700);
|
|
25
25
|
background-color: var(--pix-error-50);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
&--success {
|
|
29
29
|
color: var(--pix-success-700);
|
|
30
30
|
background-color: var(--pix-success-50);
|
|
31
31
|
}
|
|
@@ -34,4 +34,52 @@
|
|
|
34
34
|
color: var(--pix-warning-700);
|
|
35
35
|
background-color: var(--pix-warning-50);
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
&--communication {
|
|
39
|
+
color: var(--pix-neutral-0);
|
|
40
|
+
background-color: var(--pix-primary-500);
|
|
41
|
+
border-color: var(--pix-primary-500);
|
|
42
|
+
|
|
43
|
+
.pix-icon-button {
|
|
44
|
+
color: currentcolor;
|
|
45
|
+
|
|
46
|
+
&:hover:enabled,
|
|
47
|
+
&:focus:enabled,
|
|
48
|
+
&:active:enabled {
|
|
49
|
+
background-color: var(--pix-primary-300);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&--communication-orga {
|
|
55
|
+
color: var(--pix-neutral-0);
|
|
56
|
+
background-color: var(--pix-orga-500);
|
|
57
|
+
border-color: var(--pix-orga-500);
|
|
58
|
+
|
|
59
|
+
.pix-icon-button {
|
|
60
|
+
color: currentcolor;
|
|
61
|
+
|
|
62
|
+
&:hover:enabled,
|
|
63
|
+
&:focus:enabled,
|
|
64
|
+
&:active:enabled {
|
|
65
|
+
background-color: var(--pix-communication-light);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&--communication-certif {
|
|
71
|
+
color: var(--pix-neutral-0);
|
|
72
|
+
background-color: var(--pix-certif-500);
|
|
73
|
+
border-color: var(--pix-certif-500);
|
|
74
|
+
|
|
75
|
+
.pix-icon-button {
|
|
76
|
+
color: currentcolor;
|
|
77
|
+
|
|
78
|
+
&:hover:enabled,
|
|
79
|
+
&:focus:enabled,
|
|
80
|
+
&:active:enabled {
|
|
81
|
+
background-color: var(--pix-content-light);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
37
85
|
}
|