@charcoal-ui/react 5.6.0 → 5.8.0-beta.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.
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +566 -586
- package/dist/index.css.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/layered.css +566 -586
- package/dist/layered.css.map +1 -1
- package/package.json +6 -5
- package/src/__tests__/css-output.test.ts +77 -0
- package/src/components/Button/__snapshots__/index.css.snap +123 -0
- package/src/components/Button/index.css +105 -120
- package/src/components/Checkbox/__snapshots__/index.css.snap +22 -0
- package/src/components/Checkbox/index.css +7 -7
- package/src/components/Clickable/__snapshots__/index.css.snap +41 -0
- package/src/components/Clickable/index.css +11 -11
- package/src/components/DropdownSelector/__snapshots__/index.css.snap +79 -0
- package/src/components/DropdownSelector/index.css +33 -33
- package/src/components/FieldLabel/__snapshots__/index.css.snap +37 -0
- package/src/components/FieldLabel/index.css +6 -6
- package/src/components/HintText/__snapshots__/index.css.snap +37 -0
- package/src/components/HintText/index.css +5 -7
- package/src/components/IconButton/__snapshots__/index.css.snap +107 -0
- package/src/components/IconButton/index.css +87 -89
- package/src/components/LoadingSpinner/__snapshots__/index.css.snap +47 -0
- package/src/components/LoadingSpinner/index.css +11 -9
- package/src/components/Modal/__snapshots__/index.css.snap +35 -0
- package/src/components/Modal/index.css +5 -5
- package/src/components/MultiSelect/__snapshots__/index.css.snap +124 -0
- package/src/components/MultiSelect/index.css +74 -82
- package/src/components/Pagination/__snapshots__/index.css.snap +114 -0
- package/src/components/Pagination/index.css +79 -80
- package/src/components/Radio/__snapshots__/index.css.snap +18 -0
- package/src/components/Radio/index.css +4 -4
- package/src/components/SegmentedControl/__snapshots__/index.css.snap +61 -0
- package/src/components/SegmentedControl/index.css +23 -25
- package/src/components/Switch/__snapshots__/index.css.snap +23 -0
- package/src/components/Switch/index.css +7 -7
- package/src/components/TagItem/__snapshots__/index.css.snap +139 -0
- package/src/components/TagItem/index.css +80 -71
- package/src/components/TextArea/__snapshots__/index.css.snap +78 -0
- package/src/components/TextArea/index.css +24 -23
- package/src/components/TextEllipsis/__snapshots__/index.css.snap +20 -0
- package/src/components/TextEllipsis/index.css +10 -10
- package/src/components/TextField/__snapshots__/index.css.snap +86 -0
- package/src/components/TextField/index.css +19 -21
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
gap: 4px;
|
|
8
|
-
}
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
&:disabled,
|
|
10
|
+
&[aria-disabled]:not([aria-disabled='false']) {
|
|
11
|
+
opacity: 0.32;
|
|
12
|
+
cursor: default;
|
|
13
|
+
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.charcoal-multi-select-label {
|
|
@@ -19,22 +19,22 @@
|
|
|
19
19
|
font-size: 14px;
|
|
20
20
|
line-height: 22px;
|
|
21
21
|
color: var(--charcoal-text2);
|
|
22
|
-
}
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
23
|
+
&::before {
|
|
24
|
+
display: block;
|
|
25
|
+
width: 0;
|
|
26
|
+
height: 0;
|
|
27
|
+
content: '';
|
|
28
|
+
margin-top: -4px;
|
|
29
|
+
}
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
&::after {
|
|
32
|
+
display: block;
|
|
33
|
+
width: 0;
|
|
34
|
+
height: 0;
|
|
35
|
+
content: '';
|
|
36
|
+
margin-bottom: -4px;
|
|
37
|
+
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.charcoal-multi-select-input[type='checkbox'] {
|
|
@@ -48,65 +48,57 @@
|
|
|
48
48
|
transition:
|
|
49
49
|
0.2s background-color,
|
|
50
50
|
0.2s box-shadow;
|
|
51
|
-
}
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
52
|
+
&:checked {
|
|
53
|
+
background-color: var(--charcoal-brand);
|
|
54
|
+
}
|
|
56
55
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
56
|
+
&:focus {
|
|
57
|
+
outline: none;
|
|
58
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
59
|
+
}
|
|
61
60
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
61
|
+
&:focus-visible {
|
|
62
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
63
|
+
}
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
65
|
+
&:focus:not(:focus-visible) {
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
69
68
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
background-color: var(--charcoal-text3-hover);
|
|
75
|
-
}
|
|
69
|
+
&:hover:not(:disabled):not([aria-disabled]),
|
|
70
|
+
&:hover[aria-disabled='false'] {
|
|
71
|
+
background-color: var(--charcoal-text3-hover);
|
|
72
|
+
}
|
|
76
73
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
background-color: var(--charcoal-text3-press);
|
|
82
|
-
}
|
|
74
|
+
&:active:not(:disabled):not([aria-disabled]),
|
|
75
|
+
&:active[aria-disabled='false'] {
|
|
76
|
+
background-color: var(--charcoal-text3-press);
|
|
77
|
+
}
|
|
83
78
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
background-color: var(--charcoal-brand-hover);
|
|
89
|
-
}
|
|
79
|
+
&:checked:hover:not(:disabled):not([aria-disabled]),
|
|
80
|
+
&:checked:hover[aria-disabled='false'] {
|
|
81
|
+
background-color: var(--charcoal-brand-hover);
|
|
82
|
+
}
|
|
90
83
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
background-color: var(--charcoal-brand-press);
|
|
96
|
-
}
|
|
84
|
+
&:checked:active:not(:disabled):not([aria-disabled]),
|
|
85
|
+
&:checked:active[aria-disabled='false'] {
|
|
86
|
+
background-color: var(--charcoal-brand-press);
|
|
87
|
+
}
|
|
97
88
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
89
|
+
&[aria-invalid='true'][data-overlay='false']:not(:disabled):not(
|
|
90
|
+
[aria-disabled]
|
|
91
|
+
) {
|
|
92
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
93
|
+
}
|
|
103
94
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
95
|
+
&[aria-invalid='true'][data-overlay='false'][aria-disabled='false'] {
|
|
96
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
97
|
+
}
|
|
107
98
|
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
&[data-overlay='true'] {
|
|
100
|
+
background-color: var(--charcoal-surface4);
|
|
101
|
+
}
|
|
110
102
|
}
|
|
111
103
|
|
|
112
104
|
.charcoal-multi-select-overlay {
|
|
@@ -122,20 +114,20 @@
|
|
|
122
114
|
border-radius: 999999px;
|
|
123
115
|
color: var(--charcoal-text5);
|
|
124
116
|
transition: 0.2s box-shadow;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true']:not(
|
|
128
|
-
:disabled
|
|
129
|
-
):not([aria-disabled]) {
|
|
130
|
-
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
|
|
134
|
-
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
135
|
-
}
|
|
136
117
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
118
|
+
&[aria-invalid='true'][data-overlay='true']:not(:disabled):not(
|
|
119
|
+
[aria-disabled]
|
|
120
|
+
) {
|
|
121
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
|
|
125
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&[data-overlay='true'] {
|
|
129
|
+
border-color: var(--charcoal-text5);
|
|
130
|
+
border-width: 2px;
|
|
131
|
+
border-style: solid;
|
|
132
|
+
}
|
|
141
133
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
.charcoal-pagination {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.charcoal-pagination[data-size='S'] .charcoal-pagination-button {
|
|
8
|
+
min-width: 32px;
|
|
9
|
+
min-height: 32px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.charcoal-pagination[data-size='M'] .charcoal-pagination-button {
|
|
13
|
+
min-width: 40px;
|
|
14
|
+
min-height: 40px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* stylelint-disable no-descending-specificity */
|
|
18
|
+
|
|
19
|
+
.charcoal-pagination-button {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
appearance: none;
|
|
22
|
+
padding: 0;
|
|
23
|
+
border-style: none;
|
|
24
|
+
outline: none;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
font: inherit;
|
|
27
|
+
margin: 0;
|
|
28
|
+
user-select: none;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
line-height: 22px;
|
|
35
|
+
|
|
36
|
+
/* HACK:
|
|
37
|
+
* Safari doesn't correctly repaint the elements when they're reordered in response to interaction.
|
|
38
|
+
* This forces it to repaint them. This doesn't work if put on the parents either, has to be here.
|
|
39
|
+
*/
|
|
40
|
+
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
41
|
+
-webkit-transform: translateZ(0);
|
|
42
|
+
color: var(--charcoal-text3);
|
|
43
|
+
background-color: var(--charcoal-transparent);
|
|
44
|
+
border-radius: 20px;
|
|
45
|
+
transition: 0.2s background-color,
|
|
46
|
+
0.2s box-shadow;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.charcoal-pagination-button:focus {
|
|
50
|
+
outline: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.charcoal-pagination-button::-moz-focus-inner {
|
|
54
|
+
border-style: none;
|
|
55
|
+
padding: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.charcoal-pagination-button[hidden] {
|
|
59
|
+
visibility: hidden;
|
|
60
|
+
display: block;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):hover, .charcoal-pagination-button[aria-disabled='false']:hover {
|
|
64
|
+
color: var(--charcoal-text3);
|
|
65
|
+
background-color: var(--charcoal-surface3);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):active, .charcoal-pagination-button[aria-disabled='false']:active {
|
|
69
|
+
color: var(--charcoal-text3);
|
|
70
|
+
background-color: var(--charcoal-surface10);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus, .charcoal-pagination-button[aria-disabled='false']:focus {
|
|
74
|
+
outline: none;
|
|
75
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus-visible, .charcoal-pagination-button[aria-disabled='false']:focus-visible {
|
|
79
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus:not(:focus-visible), .charcoal-pagination-button[aria-disabled='false']:focus:not(:focus-visible) {
|
|
83
|
+
box-shadow: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.charcoal-pagination-button[aria-current] {
|
|
87
|
+
cursor: default;
|
|
88
|
+
background-color: var(--charcoal-surface6);
|
|
89
|
+
color: var(--charcoal-text5);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.charcoal-pagination-button[aria-current]:not(:disabled):not([aria-disabled]):hover, .charcoal-pagination-button[aria-current]:not(:disabled):not([aria-disabled]):active {
|
|
93
|
+
background-color: var(--charcoal-surface6);
|
|
94
|
+
color: var(--charcoal-text5);
|
|
95
|
+
}
|
|
96
|
+
/* stylelint-enable no-descending-specificity */
|
|
97
|
+
|
|
98
|
+
/* Kept flat: different root class from .charcoal-pagination-button */
|
|
99
|
+
|
|
100
|
+
.charcoal-pagination-nav-button[hidden] {
|
|
101
|
+
visibility: hidden;
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.charcoal-pagination-spacer, .charcoal-pagination-spacer:hover, .charcoal-pagination-spacer:active {
|
|
106
|
+
cursor: default;
|
|
107
|
+
color: var(--charcoal-text3);
|
|
108
|
+
background: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.charcoal-pagination-spacer.charcoal-icon-button:disabled {
|
|
112
|
+
opacity: 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -2,8 +2,19 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
5
|
+
|
|
6
|
+
&[data-size='S'] .charcoal-pagination-button {
|
|
7
|
+
min-width: 32px;
|
|
8
|
+
min-height: 32px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&[data-size='M'] .charcoal-pagination-button {
|
|
12
|
+
min-width: 40px;
|
|
13
|
+
min-height: 40px;
|
|
14
|
+
}
|
|
5
15
|
}
|
|
6
16
|
|
|
17
|
+
/* stylelint-disable no-descending-specificity */
|
|
7
18
|
.charcoal-pagination-button {
|
|
8
19
|
cursor: pointer;
|
|
9
20
|
appearance: none;
|
|
@@ -35,91 +46,79 @@
|
|
|
35
46
|
transition:
|
|
36
47
|
0.2s background-color,
|
|
37
48
|
0.2s box-shadow;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.charcoal-pagination-button:focus {
|
|
41
|
-
outline: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.charcoal-pagination-button::-moz-focus-inner {
|
|
45
|
-
border-style: none;
|
|
46
|
-
padding: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.charcoal-pagination[data-size='S'] .charcoal-pagination-button {
|
|
50
|
-
min-width: 32px;
|
|
51
|
-
min-height: 32px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.charcoal-pagination[data-size='M'] .charcoal-pagination-button {
|
|
55
|
-
min-width: 40px;
|
|
56
|
-
min-height: 40px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.charcoal-pagination-button[hidden] {
|
|
60
|
-
visibility: hidden;
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):hover,
|
|
65
|
-
.charcoal-pagination-button[aria-disabled='false']:hover {
|
|
66
|
-
color: var(--charcoal-text3);
|
|
67
|
-
background-color: var(--charcoal-surface3);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):active,
|
|
71
|
-
.charcoal-pagination-button[aria-disabled='false']:active {
|
|
72
|
-
color: var(--charcoal-text3);
|
|
73
|
-
background-color: var(--charcoal-surface10);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus,
|
|
77
|
-
.charcoal-pagination-button[aria-disabled='false']:focus {
|
|
78
|
-
outline: none;
|
|
79
|
-
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus-visible,
|
|
83
|
-
.charcoal-pagination-button[aria-disabled='false']:focus-visible {
|
|
84
|
-
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus:not(
|
|
88
|
-
:focus-visible
|
|
89
|
-
),
|
|
90
|
-
.charcoal-pagination-button[aria-disabled='false']:focus:not(:focus-visible) {
|
|
91
|
-
box-shadow: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.charcoal-pagination-button[aria-current] {
|
|
95
|
-
cursor: default;
|
|
96
|
-
background-color: var(--charcoal-surface6);
|
|
97
|
-
color: var(--charcoal-text5);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.charcoal-pagination-button[aria-current]:not(:disabled):not(
|
|
101
|
-
[aria-disabled]
|
|
102
|
-
):hover,
|
|
103
|
-
.charcoal-pagination-button[aria-current]:not(:disabled):not(
|
|
104
|
-
[aria-disabled]
|
|
105
|
-
):active {
|
|
106
|
-
background-color: var(--charcoal-surface6);
|
|
107
|
-
color: var(--charcoal-text5);
|
|
108
|
-
}
|
|
109
49
|
|
|
50
|
+
&:focus {
|
|
51
|
+
outline: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&::-moz-focus-inner {
|
|
55
|
+
border-style: none;
|
|
56
|
+
padding: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&[hidden] {
|
|
60
|
+
visibility: hidden;
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:not(:disabled):not([aria-disabled]):hover,
|
|
65
|
+
&[aria-disabled='false']:hover {
|
|
66
|
+
color: var(--charcoal-text3);
|
|
67
|
+
background-color: var(--charcoal-surface3);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:not(:disabled):not([aria-disabled]):active,
|
|
71
|
+
&[aria-disabled='false']:active {
|
|
72
|
+
color: var(--charcoal-text3);
|
|
73
|
+
background-color: var(--charcoal-surface10);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:not(:disabled):not([aria-disabled]):focus,
|
|
77
|
+
&[aria-disabled='false']:focus {
|
|
78
|
+
outline: none;
|
|
79
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:not(:disabled):not([aria-disabled]):focus-visible,
|
|
83
|
+
&[aria-disabled='false']:focus-visible {
|
|
84
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
88
|
+
&[aria-disabled='false']:focus:not(:focus-visible) {
|
|
89
|
+
box-shadow: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&[aria-current] {
|
|
93
|
+
cursor: default;
|
|
94
|
+
background-color: var(--charcoal-surface6);
|
|
95
|
+
color: var(--charcoal-text5);
|
|
96
|
+
|
|
97
|
+
&:not(:disabled):not([aria-disabled]):hover,
|
|
98
|
+
&:not(:disabled):not([aria-disabled]):active {
|
|
99
|
+
background-color: var(--charcoal-surface6);
|
|
100
|
+
color: var(--charcoal-text5);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/* stylelint-enable no-descending-specificity */
|
|
105
|
+
|
|
106
|
+
/* Kept flat: different root class from .charcoal-pagination-button */
|
|
110
107
|
.charcoal-pagination-nav-button[hidden] {
|
|
111
108
|
visibility: hidden;
|
|
112
109
|
display: block;
|
|
113
110
|
}
|
|
114
111
|
|
|
115
|
-
.charcoal-pagination-spacer
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
112
|
+
.charcoal-pagination-spacer {
|
|
113
|
+
&,
|
|
114
|
+
&:hover,
|
|
115
|
+
&:active {
|
|
116
|
+
cursor: default;
|
|
117
|
+
color: var(--charcoal-text3);
|
|
118
|
+
background: none;
|
|
119
|
+
}
|
|
122
120
|
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
&.charcoal-icon-button:disabled {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
}
|
|
125
124
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.charcoal-radio__label {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: auto 1fr;
|
|
4
|
+
grid-gap: 4px;
|
|
5
|
+
align-items: center;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.charcoal-radio__label[aria-disabled]:not([aria-disabled='false']) {
|
|
10
|
+
opacity: 0.32;
|
|
11
|
+
cursor: default;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.charcoal-radio__label_div {
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
line-height: 22px;
|
|
17
|
+
color: var(--charcoal-text2);
|
|
18
|
+
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
grid-gap: 4px;
|
|
5
5
|
align-items: center;
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
&[aria-disabled]:not([aria-disabled='false']) {
|
|
9
|
+
opacity: 0.32;
|
|
10
|
+
cursor: default;
|
|
11
|
+
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.charcoal-radio__label_div {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.charcoal-segmented-control {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
background-color: var(--charcoal-surface3);
|
|
5
|
+
border-radius: 16px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.charcoal-segmented-control[data-uniform-segment-width='true'], .charcoal-segmented-control[data-full-width='true'] {
|
|
9
|
+
display: inline-grid;
|
|
10
|
+
grid-auto-columns: minmax(80px, 1fr);
|
|
11
|
+
grid-auto-rows: 32px;
|
|
12
|
+
grid-auto-flow: column;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.charcoal-segmented-control[data-full-width='true'] {
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.charcoal-segmented-control-radio__label {
|
|
20
|
+
position: relative;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
height: 32px;
|
|
26
|
+
padding-right: 16px;
|
|
27
|
+
padding-left: 16px;
|
|
28
|
+
border-radius: 16px;
|
|
29
|
+
color: var(--charcoal-text2);
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
line-height: 22px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.charcoal-segmented-control-radio__label[aria-disabled]:not([aria-disabled='false']) {
|
|
35
|
+
cursor: default;
|
|
36
|
+
opacity: 0.32;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.charcoal-segmented-control-radio__label[data-checked='true'] {
|
|
40
|
+
background-color: var(--charcoal-brand);
|
|
41
|
+
color: var(--charcoal-text5);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.charcoal-segmented-control-radio__label[data-uniform-segment-width='true'], .charcoal-segmented-control-radio__label[data-full-width='true'] {
|
|
45
|
+
justify-content: center;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.charcoal-segmented-control-radio__input {
|
|
50
|
+
position: absolute;
|
|
51
|
+
height: 0px;
|
|
52
|
+
width: 0px;
|
|
53
|
+
padding: 0;
|
|
54
|
+
margin: 0;
|
|
55
|
+
appearance: none;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
opacity: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
background-color: var(--charcoal-surface3);
|
|
6
6
|
border-radius: 16px;
|
|
7
|
-
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
8
|
+
&[data-uniform-segment-width='true'],
|
|
9
|
+
&[data-full-width='true'] {
|
|
10
|
+
display: inline-grid;
|
|
11
|
+
grid-auto-columns: minmax(80px, 1fr);
|
|
12
|
+
grid-auto-rows: 32px;
|
|
13
|
+
grid-auto-flow: column;
|
|
14
|
+
}
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
&[data-full-width='true'] {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.charcoal-segmented-control-radio__label {
|
|
@@ -33,24 +33,22 @@
|
|
|
33
33
|
|
|
34
34
|
font-size: 14px;
|
|
35
35
|
line-height: 22px;
|
|
36
|
-
}
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
opacity: 0.32;
|
|
43
|
-
}
|
|
37
|
+
&[aria-disabled]:not([aria-disabled='false']) {
|
|
38
|
+
cursor: default;
|
|
39
|
+
opacity: 0.32;
|
|
40
|
+
}
|
|
44
41
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
42
|
+
&[data-checked='true'] {
|
|
43
|
+
background-color: var(--charcoal-brand);
|
|
44
|
+
color: var(--charcoal-text5);
|
|
45
|
+
}
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
&[data-uniform-segment-width='true'],
|
|
48
|
+
&[data-full-width='true'] {
|
|
49
|
+
justify-content: center;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
.charcoal-segmented-control-radio__input {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.charcoal-switch__label {
|
|
2
|
+
display: inline-grid;
|
|
3
|
+
grid-template-columns: auto 1fr;
|
|
4
|
+
align-items: center;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
outline: 0;
|
|
7
|
+
gap: 4px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.charcoal-switch__label[aria-disabled='true'] {
|
|
11
|
+
opacity: 0.32;
|
|
12
|
+
cursor: default;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.charcoal-switch__label[aria-disabled='true'] > input {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.charcoal-switch__label_div {
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
line-height: 22px;
|
|
22
|
+
color: var(--charcoal-text2);
|
|
23
|
+
}
|