@indico-data/design-system 2.60.4 → 2.60.6
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/lib/index.css +112 -72
- package/lib/index.esm.css +112 -72
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/badge/styles/Badge.scss +1 -1
- package/src/components/forms/checkbox/styles/Checkbox.scss +74 -76
- package/src/components/forms/date/datePicker/styles/DatePicker.scss +0 -4
- package/src/components/forms/form/Form.tsx +1 -0
- package/src/components/forms/form/styles/Form.scss +10 -0
- package/src/components/forms/input/styles/Input.scss +19 -25
- package/src/components/forms/numberInput/styles/NumberInput.scss +22 -24
- package/src/components/forms/passwordInput/styles/PasswordInput.scss +27 -32
- package/src/components/forms/radio/styles/Radio.scss +75 -76
- package/src/components/forms/textarea/styles/Textarea.scss +13 -18
- package/src/components/forms/toggle/styles/Toggle.scss +1 -0
- package/src/components/pagination/styles/Pagination.scss +0 -6
- package/src/styles/_utilities.scss +15 -0
- package/src/styles/index.scss +1 -0
- package/src/styles/variables/_typography.scss +1 -0
- package/src/stylesAndAnimations/utilityClasses/UtilityClassesData.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Light Theme Specific Variables
|
|
2
2
|
:root [data-theme='light'] {
|
|
3
|
-
--pf-badge-background-color: var(--pf-
|
|
3
|
+
--pf-badge-background-color: var(--pf-white-color);
|
|
4
4
|
--pf-badge-border-color: var(--pf-border-color);
|
|
5
5
|
--pf-badge-font-color: var(--pf-font-color);
|
|
6
6
|
--pf-badge-rounded: var(--pf-rounded);
|
|
@@ -10,83 +10,81 @@
|
|
|
10
10
|
--pf-checkbox-check-color: var(--pf-white-color);
|
|
11
11
|
--pf-checkbox-disabled-color: var(--pf-gray-color-300);
|
|
12
12
|
}
|
|
13
|
-
.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
13
|
+
.checkbox-wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
margin-bottom: var(--pf-margin-2);
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
.checkbox-input {
|
|
19
|
+
margin: 0;
|
|
20
|
+
margin-right: var(--pf-margin-2);
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
.checkbox-input-label {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
.checkbox-input:checked,
|
|
27
|
+
.checkbox-input:not(:checked) {
|
|
28
|
+
position: absolute;
|
|
29
|
+
left: -9999px;
|
|
30
|
+
}
|
|
31
|
+
.checkbox-input:checked + label,
|
|
32
|
+
.checkbox-input:not(:checked) + label {
|
|
33
|
+
position: relative;
|
|
34
|
+
padding-left: var(--pf-padding-7);
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
line-height: 20px;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
}
|
|
39
|
+
.checkbox-input:checked + label:before,
|
|
40
|
+
.checkbox-input:not(:checked) + label:before {
|
|
41
|
+
content: '';
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 0;
|
|
44
|
+
top: 0;
|
|
45
|
+
width: 18px;
|
|
46
|
+
height: 18px;
|
|
47
|
+
border: 1px solid var(--pf-form-input-border-color);
|
|
48
|
+
border-radius: var(--pf-rounded);
|
|
49
|
+
background: var(--pf-form-input-background-color);
|
|
50
|
+
}
|
|
51
|
+
.checkbox-input:checked + label:after,
|
|
52
|
+
.checkbox-input:not(:checked) + label:after {
|
|
53
|
+
content: '';
|
|
54
|
+
width: 12px;
|
|
55
|
+
height: 12px;
|
|
56
|
+
background: var(--pf-checkbox-check-color);
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 4px;
|
|
59
|
+
left: 4px;
|
|
60
|
+
border-radius: var(--pf-rounded);
|
|
61
|
+
-webkit-transition: all 0.2s ease;
|
|
62
|
+
transition: all 0.2s ease;
|
|
63
|
+
}
|
|
64
|
+
.checkbox-input:not(:checked) + label:after {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
-webkit-transform: scale(0);
|
|
67
|
+
transform: scale(0);
|
|
68
|
+
}
|
|
69
|
+
.checkbox-input:checked + label:after {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
-webkit-transform: scale(1);
|
|
72
|
+
transform: scale(1);
|
|
73
|
+
}
|
|
74
|
+
.checkbox-input:disabled,
|
|
75
|
+
.checkbox-input:disabled + label {
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
.checkbox-input:disabled + label {
|
|
80
|
+
color: var(--pf-checkbox-disabled-color);
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
}
|
|
84
83
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
.checkbox-input:disabled + label:before {
|
|
85
|
+
border-color: var(--pf-checkbox-disabled-color);
|
|
86
|
+
}
|
|
88
87
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
88
|
+
.checkbox-input:disabled + label:after {
|
|
89
|
+
background: var(--pf-form-input-disabled-background-color);
|
|
92
90
|
}
|
|
@@ -6,31 +6,25 @@
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.
|
|
10
|
-
margin-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
position:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
left: var(--pf-margin-2);
|
|
23
|
-
color: var(--pf-form-input-color);
|
|
24
|
-
}
|
|
25
|
-
.clearable-icon {
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: var(--pf-margin-3);
|
|
28
|
-
right: var(--pf-margin-2);
|
|
29
|
-
color: var(--pf-form-input-color);
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
9
|
+
.help-text {
|
|
10
|
+
margin-top: var(--pf-margin-2);
|
|
11
|
+
margin-bottom: var(--pf-margin-2);
|
|
12
|
+
color: var(--pf-form-input-help-color);
|
|
13
|
+
font-size: var(--pf-font-size-subtitle2);
|
|
14
|
+
}
|
|
15
|
+
.input-wrapper {
|
|
16
|
+
position: relative;
|
|
17
|
+
.embedded-icon {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 10px;
|
|
20
|
+
left: var(--pf-margin-2);
|
|
21
|
+
color: var(--pf-form-input-color);
|
|
32
22
|
}
|
|
33
|
-
.
|
|
34
|
-
|
|
23
|
+
.clearable-icon {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: var(--pf-margin-3);
|
|
26
|
+
right: var(--pf-margin-2);
|
|
27
|
+
color: var(--pf-form-input-color);
|
|
28
|
+
cursor: pointer;
|
|
35
29
|
}
|
|
36
30
|
}
|
|
@@ -15,31 +15,29 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
.help-text {
|
|
19
|
+
margin-top: var(--pf-margin-2);
|
|
20
|
+
margin-bottom: var(--pf-margin-2);
|
|
21
|
+
color: var(--pf-form-input-help-color);
|
|
22
|
+
font-size: var(--pf-font-size-subtitle2);
|
|
23
|
+
}
|
|
24
|
+
.number-input-wrapper {
|
|
25
|
+
position: relative;
|
|
26
|
+
.embedded-icon {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 10px;
|
|
29
|
+
left: var(--pf-margin-2);
|
|
30
|
+
color: var(--pf-form-input-color);
|
|
24
31
|
}
|
|
25
|
-
.number-input-wrapper {
|
|
26
|
-
position: relative;
|
|
27
|
-
.embedded-icon {
|
|
28
|
-
position: absolute;
|
|
29
|
-
top: 10px;
|
|
30
|
-
left: var(--pf-margin-2);
|
|
31
|
-
color: var(--pf-form-input-color);
|
|
32
|
-
}
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
.form-label {
|
|
43
|
-
margin-bottom: var(--pf-margin-2);
|
|
33
|
+
.clearable-icon {
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: var(--pf-margin-3);
|
|
36
|
+
right: var(--pf-margin-2);
|
|
37
|
+
color: var(--pf-form-input-color);
|
|
38
|
+
cursor: pointer;
|
|
44
39
|
}
|
|
45
40
|
}
|
|
41
|
+
.form-label {
|
|
42
|
+
margin-bottom: var(--pf-margin-2);
|
|
43
|
+
}
|
|
@@ -6,38 +6,33 @@
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
color: var(--pf-form-input-color);
|
|
31
|
-
}
|
|
32
|
-
.toggle-show-password-icon {
|
|
33
|
-
position: absolute;
|
|
34
|
-
top: var(--pf-margin-3);
|
|
35
|
-
right: var(--pf-margin-2);
|
|
36
|
-
color: var(--pf-form-input-color);
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
9
|
+
.error-list {
|
|
10
|
+
list-style: none;
|
|
11
|
+
padding: 0;
|
|
12
|
+
margin: 0;
|
|
13
|
+
margin-top: var(--pf-margin-2);
|
|
14
|
+
margin-bottom: var(--pf-margin-2);
|
|
15
|
+
color: var(--pf-error-color);
|
|
16
|
+
}
|
|
17
|
+
.help-text {
|
|
18
|
+
margin-top: var(--pf-margin-2);
|
|
19
|
+
margin-bottom: var(--pf-margin-2);
|
|
20
|
+
color: var(--pf-form-input-help-color);
|
|
21
|
+
font-size: var(--pf-font-size-subtitle2);
|
|
22
|
+
}
|
|
23
|
+
.password-input-wrapper {
|
|
24
|
+
position: relative;
|
|
25
|
+
.embedded-icon {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 10px;
|
|
28
|
+
left: var(--pf-margin-2);
|
|
29
|
+
color: var(--pf-form-input-color);
|
|
39
30
|
}
|
|
40
|
-
.
|
|
41
|
-
|
|
31
|
+
.toggle-show-password-icon {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: var(--pf-margin-3);
|
|
34
|
+
right: var(--pf-margin-2);
|
|
35
|
+
color: var(--pf-form-input-color);
|
|
36
|
+
cursor: pointer;
|
|
42
37
|
}
|
|
43
38
|
}
|
|
@@ -12,83 +12,82 @@
|
|
|
12
12
|
--pf-radio-disabled-color: var(--pf-gray-color-300);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
15
|
+
.radio-wrapper {
|
|
16
|
+
display: flex;
|
|
17
|
+
margin-bottom: var(--pf-margin-2);
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
.radio-input {
|
|
21
|
+
margin: 0;
|
|
22
|
+
margin-right: var(--pf-margin-2);
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
.radio-input-label {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
font-size: var(--pf-font-size-form-label);
|
|
28
|
+
}
|
|
29
|
+
[type='radio']:checked,
|
|
30
|
+
[type='radio']:not(:checked) {
|
|
31
|
+
position: absolute;
|
|
32
|
+
left: -9999px;
|
|
33
|
+
}
|
|
34
|
+
[type='radio']:checked + label,
|
|
35
|
+
[type='radio']:not(:checked) + label {
|
|
36
|
+
position: relative;
|
|
37
|
+
padding-left: var(--pf-padding-7);
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
line-height: 20px;
|
|
40
|
+
display: inline-block;
|
|
41
|
+
}
|
|
42
|
+
[type='radio']:checked + label:before,
|
|
43
|
+
[type='radio']:not(:checked) + label:before {
|
|
44
|
+
content: '';
|
|
45
|
+
position: absolute;
|
|
46
|
+
left: 0;
|
|
47
|
+
top: 0;
|
|
48
|
+
width: 18px;
|
|
49
|
+
height: 18px;
|
|
50
|
+
border: 1px solid var(--pf-form-input-border-color);
|
|
51
|
+
border-radius: 100%;
|
|
52
|
+
background: var(--pf-form-input-background-color);
|
|
53
|
+
}
|
|
54
|
+
[type='radio']:checked + label:after,
|
|
55
|
+
[type='radio']:not(:checked) + label:after {
|
|
56
|
+
content: '';
|
|
57
|
+
width: 12px;
|
|
58
|
+
height: 12px;
|
|
59
|
+
background: var(--pf-radio-check-color);
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 4px;
|
|
62
|
+
left: 4px;
|
|
63
|
+
border-radius: 100%;
|
|
64
|
+
-webkit-transition: all 0.2s ease;
|
|
65
|
+
transition: all 0.2s ease;
|
|
66
|
+
}
|
|
67
|
+
[type='radio']:not(:checked) + label:after {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
-webkit-transform: scale(0);
|
|
70
|
+
transform: scale(0);
|
|
71
|
+
}
|
|
72
|
+
[type='radio']:checked + label:after {
|
|
73
|
+
opacity: 1;
|
|
74
|
+
-webkit-transform: scale(1);
|
|
75
|
+
transform: scale(1);
|
|
76
|
+
}
|
|
77
|
+
[type='radio']:disabled,
|
|
78
|
+
[type='radio']:disabled + label {
|
|
79
|
+
cursor: not-allowed;
|
|
80
|
+
}
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
[type='radio']:disabled + label {
|
|
83
|
+
color: var(--pf-radio-disabled-color);
|
|
84
|
+
opacity: 0.5;
|
|
85
|
+
}
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
[type='radio']:disabled + label:before {
|
|
88
|
+
border-color: var(--pf-radio-disabled-color);
|
|
89
|
+
}
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
91
|
+
[type='radio']:disabled + label:after {
|
|
92
|
+
background: var(--pf-radio-disabled-color);
|
|
94
93
|
}
|
|
@@ -21,22 +21,17 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.form-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
font-size: var(--pf-font-size-subtitle2);
|
|
38
|
-
}
|
|
39
|
-
.form-label {
|
|
40
|
-
margin-bottom: var(--pf-margin-2);
|
|
41
|
-
}
|
|
24
|
+
.form-errors {
|
|
25
|
+
list-style: none;
|
|
26
|
+
padding: 0;
|
|
27
|
+
margin: 0;
|
|
28
|
+
margin-top: var(--pf-margin-2);
|
|
29
|
+
margin-bottom: var(--pf-margin-2);
|
|
30
|
+
color: var(--pf-error-color);
|
|
31
|
+
}
|
|
32
|
+
.help-text {
|
|
33
|
+
margin-top: var(--pf-margin-2);
|
|
34
|
+
margin-bottom: var(--pf-margin-2);
|
|
35
|
+
color: var(--pf-form-input-help-color);
|
|
36
|
+
font-size: var(--pf-font-size-subtitle2);
|
|
42
37
|
}
|
package/src/styles/index.scss
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
@import '../components/truncate/styles/Truncate.scss';
|
|
33
33
|
@import '../components/toast/styles/Toast.scss';
|
|
34
34
|
@import '../components/stepper/styles/Stepper.scss';
|
|
35
|
+
@import 'utilities';
|
|
35
36
|
@import 'sheets'; // Port to an sheets component when we build it
|
|
36
37
|
@import 'typography';
|
|
37
38
|
@import 'colors';
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
--pf-font-size-subtitle2: calc(0.875 * var(--pf-font-size-base));
|
|
17
17
|
--pf-font-size-button: var(--pf-font-size-base);
|
|
18
18
|
--pf-font-size-overline: calc(0.75 * var(--pf-font-size-base));
|
|
19
|
+
--pf-font-size-form-label: var(--pf-font-size-body);
|
|
19
20
|
|
|
20
21
|
// Weights
|
|
21
22
|
--pf-font-weight-thin: 100;
|
|
@@ -227,4 +227,10 @@ export const utilityClassesData: UtilityClassData[] = [
|
|
|
227
227
|
|
|
228
228
|
// Drop Shadows
|
|
229
229
|
{ className: 'dropshadow', css: 'box-shadow: var(--pf-dropshadow);', category: 'Effect' },
|
|
230
|
+
|
|
231
|
+
// Cursor Utilities
|
|
232
|
+
{ className: 'cursor--pointer', css: 'cursor: pointer;', category: 'Cursor' },
|
|
233
|
+
{ className: 'cursor--not-allowed', css: 'cursor: not-allowed;', category: 'Cursor' },
|
|
234
|
+
{ className: 'cursor--default', css: 'cursor: default;', category: 'Cursor' },
|
|
235
|
+
{ className: 'cursor--grab', css: 'cursor: grab;', category: 'Cursor' },
|
|
230
236
|
];
|