@1024pix/pix-ui 41.0.2 → 41.1.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.
|
@@ -125,6 +125,12 @@ export default class PixInputCode extends Component {
|
|
|
125
125
|
this.focusElement(index);
|
|
126
126
|
this.triggerAction();
|
|
127
127
|
}
|
|
128
|
+
|
|
129
|
+
@action
|
|
130
|
+
handleFocus(index) {
|
|
131
|
+
const element = document.getElementById(`code-input-${index}`);
|
|
132
|
+
element && element.select();
|
|
133
|
+
}
|
|
128
134
|
}
|
|
129
135
|
|
|
130
136
|
function _extractValidCharacters(pastedText) {
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-weight: 700;
|
|
3
|
+
font-family: 'Nunito';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
src: url('../@1024pix/pix-ui/fonts/Nunito/Nunito-Bold.ttf');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* @deprecated - use Nunito */
|
|
1
9
|
@font-face {
|
|
2
10
|
font-weight: 500;
|
|
3
11
|
font-family: 'Open Sans';
|
|
@@ -26,8 +34,15 @@
|
|
|
26
34
|
src: url('../@1024pix/pix-ui/fonts/Roboto/Roboto-Bold.ttf');
|
|
27
35
|
}
|
|
28
36
|
|
|
37
|
+
/* @deprecated - use Design Tokens */
|
|
29
38
|
$font-open-sans: 'Open Sans', Arial, sans-serif;
|
|
30
39
|
$font-roboto: 'Roboto', Arial, sans-serif;
|
|
31
40
|
$font-normal: 400;
|
|
32
41
|
$font-medium: 500;
|
|
33
42
|
$font-bold: 700;
|
|
43
|
+
|
|
44
|
+
:root {
|
|
45
|
+
--pix-font-normal: 400;
|
|
46
|
+
--pix-font-medium: 500;
|
|
47
|
+
--pix-font-bold: 700;
|
|
48
|
+
}
|
|
@@ -2,24 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
// Placeholder pour permettre l'utilisation dans une classe css si jamais le tag html a trop de classe
|
|
4
4
|
%-pix-title {
|
|
5
|
-
font-weight:
|
|
6
|
-
font-family:
|
|
5
|
+
font-weight: 700;
|
|
6
|
+
font-family: 'Nunito', 'Arial', sans-serif;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
%pix-title-l,
|
|
10
10
|
.pix-title-l {
|
|
11
11
|
@extend %-pix-title;
|
|
12
12
|
|
|
13
|
-
font-size: 2rem;
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
--font-size-title: 2rem;
|
|
14
|
+
|
|
15
|
+
font-size: var(--font-size-title);
|
|
16
|
+
line-height: 1.3;
|
|
17
|
+
letter-spacing: calc(-0.02 * var(--font-size-title));
|
|
16
18
|
|
|
17
19
|
@include device-is('tablet') {
|
|
18
|
-
font-size: 2.5rem;
|
|
20
|
+
--font-size-title: 2.5rem;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
@include device-is('desktop') {
|
|
22
|
-
font-size: 3rem;
|
|
24
|
+
--font-size-title: 3rem;
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
|
|
@@ -27,18 +29,20 @@
|
|
|
27
29
|
.pix-title-m {
|
|
28
30
|
@extend %-pix-title;
|
|
29
31
|
|
|
30
|
-
font-size: 1.625rem;
|
|
32
|
+
--font-size-title: 1.625rem;
|
|
33
|
+
--letter-spacing-title: -0.02;
|
|
34
|
+
|
|
35
|
+
font-size: var(--font-size-title);
|
|
31
36
|
line-height: 1.3;
|
|
32
|
-
letter-spacing: -
|
|
37
|
+
letter-spacing: calc(var(--letter-spacing-title) * var(--font-size-title));
|
|
33
38
|
|
|
34
39
|
@include device-is('tablet') {
|
|
35
|
-
font-size: 2rem;
|
|
36
|
-
line-height: 1.25;
|
|
37
|
-
letter-spacing: -0.04em;
|
|
40
|
+
--font-size-title: 2rem;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
@include device-is('desktop') {
|
|
41
|
-
font-size: 2.25rem;
|
|
44
|
+
--font-size-title: 2.25rem;
|
|
45
|
+
--letter-spacing-title: -0.01;
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
|
|
@@ -46,16 +50,18 @@
|
|
|
46
50
|
.pix-title-s {
|
|
47
51
|
@extend %-pix-title;
|
|
48
52
|
|
|
49
|
-
font-size: 1.375rem;
|
|
53
|
+
--font-size-title: 1.375rem;
|
|
54
|
+
|
|
55
|
+
font-size: var(--font-size-title);
|
|
50
56
|
line-height: 1.3;
|
|
51
|
-
letter-spacing: -0.
|
|
57
|
+
letter-spacing: calc(-0.01 * var(--font-size-title));
|
|
52
58
|
|
|
53
59
|
@include device-is('tablet') {
|
|
54
|
-
font-size: 1.5rem;
|
|
60
|
+
--font-size-title: 1.5rem;
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
@include device-is('desktop') {
|
|
58
|
-
font-size: 1.75rem;
|
|
64
|
+
--font-size-title: 1.75rem;
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
67
|
|
|
@@ -63,14 +69,16 @@
|
|
|
63
69
|
.pix-title-xs {
|
|
64
70
|
@extend %-pix-title;
|
|
65
71
|
|
|
66
|
-
font-size: 1.25rem;
|
|
72
|
+
--font-size-title: 1.25rem;
|
|
73
|
+
|
|
74
|
+
font-size: var(--font-size-title);
|
|
67
75
|
line-height: 1.4;
|
|
68
|
-
letter-spacing: -0.
|
|
76
|
+
letter-spacing: calc(-0.01 * var(--font-size-title));
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
%-pix-body {
|
|
72
80
|
font-weight: 400;
|
|
73
|
-
font-family:
|
|
81
|
+
font-family: 'Roboto', 'Arial', sans-serif;
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
%pix-body-l,
|
|
@@ -115,9 +123,9 @@
|
|
|
115
123
|
}
|
|
116
124
|
|
|
117
125
|
.pix-body-weight-medium {
|
|
118
|
-
font-weight:
|
|
126
|
+
font-weight: var(--pix-font-medium);
|
|
119
127
|
}
|
|
120
128
|
|
|
121
129
|
.pix-body-weight-bold {
|
|
122
|
-
font-weight:
|
|
130
|
+
font-weight: var(--pix-font-bold);
|
|
123
131
|
}
|
package/package.json
CHANGED
|
Binary file
|