@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
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
.charcoal-field-label-root {
|
|
27
27
|
display: inline-flex;
|
|
28
28
|
align-items: center;
|
|
29
|
-
}
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
30
|
+
& > .charcoal-field-label-required-text {
|
|
31
|
+
margin-left: 4px;
|
|
32
|
+
}
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
& > .charcoal-field-label-sub-label {
|
|
35
|
+
margin-left: auto;
|
|
36
|
+
}
|
|
37
37
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.charcoal-hint-text {
|
|
2
|
+
background-color: var(--charcoal-surface3);
|
|
3
|
+
border-radius: 8px;
|
|
4
|
+
padding: 12px 16px;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.charcoal-hint-text[data-context='page'] {
|
|
10
|
+
justify-content: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (min-width: 744px) {
|
|
14
|
+
|
|
15
|
+
.charcoal-hint-text[data-context='page'] {
|
|
16
|
+
padding: 20px 40px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.charcoal-hint-text-icon {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
color: var(--charcoal-text3);
|
|
24
|
+
height: 22px;
|
|
25
|
+
margin: 0 4px 0 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.charcoal-hint-text-message {
|
|
29
|
+
color: var(--charcoal-text2);
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
line-height: 22px;
|
|
32
|
+
display: flow-root;
|
|
33
|
+
margin: 0;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
overflow-wrap: break-word;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -4,15 +4,13 @@
|
|
|
4
4
|
padding: 12px 16px;
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: flex-start;
|
|
7
|
-
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
8
|
+
&[data-context='page'] {
|
|
9
|
+
justify-content: center;
|
|
12
10
|
|
|
13
|
-
@media (min-width: 744px) {
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
@media (min-width: 744px) {
|
|
12
|
+
padding: 20px 40px;
|
|
13
|
+
}
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
16
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.charcoal-icon-button {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
appearance: none;
|
|
4
|
+
background: transparent;
|
|
5
|
+
padding: 0;
|
|
6
|
+
border-style: none;
|
|
7
|
+
outline: none;
|
|
8
|
+
color: inherit;
|
|
9
|
+
text-rendering: inherit;
|
|
10
|
+
letter-spacing: inherit;
|
|
11
|
+
word-spacing: inherit;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
font: inherit;
|
|
14
|
+
margin: 0;
|
|
15
|
+
overflow: visible;
|
|
16
|
+
text-transform: none;
|
|
17
|
+
user-select: none;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
border-radius: 999999px;
|
|
22
|
+
transition: 0.2s background-color,
|
|
23
|
+
0.2s box-shadow;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.charcoal-icon-button:disabled, .charcoal-icon-button[aria-disabled]:not([aria-disabled='false']) {
|
|
27
|
+
cursor: default;
|
|
28
|
+
opacity: 0.32;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.charcoal-icon-button:focus {
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.charcoal-icon-button::-moz-focus-inner {
|
|
36
|
+
border-style: none;
|
|
37
|
+
padding: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.charcoal-icon-button[data-size='XS'] {
|
|
41
|
+
width: 20px;
|
|
42
|
+
height: 20px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.charcoal-icon-button[data-size='S'] {
|
|
46
|
+
width: 32px;
|
|
47
|
+
height: 32px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.charcoal-icon-button[data-size='M'] {
|
|
51
|
+
width: 40px;
|
|
52
|
+
height: 40px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.charcoal-icon-button[data-variant='Default'] {
|
|
56
|
+
color: var(--charcoal-text3);
|
|
57
|
+
background-color: var(--charcoal-transparent);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.charcoal-icon-button[data-variant='Default'][data-active='true']:not(:disabled):not([aria-disabled]), .charcoal-icon-button[data-variant='Default'][data-active='true'][aria-disabled='false'] {
|
|
61
|
+
color: var(--charcoal-text3-press);
|
|
62
|
+
background-color: var(--charcoal-transparent-press);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false']:not(:disabled):not([aria-disabled]):hover, .charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:hover {
|
|
66
|
+
color: var(--charcoal-text3-hover);
|
|
67
|
+
background-color: var(--charcoal-transparent-hover);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.charcoal-icon-button[data-variant='Default'][data-active='false']:not(:disabled):not([aria-disabled]):active, .charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:active {
|
|
71
|
+
color: var(--charcoal-text3-press);
|
|
72
|
+
background-color: var(--charcoal-transparent-press);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.charcoal-icon-button[data-variant='Overlay'] {
|
|
76
|
+
color: var(--charcoal-text5);
|
|
77
|
+
background-color: var(--charcoal-surface4);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='true']:not(:disabled):not([aria-disabled]), .charcoal-icon-button[data-variant='Overlay'][data-active='true'][aria-disabled='false'] {
|
|
81
|
+
color: var(--charcoal-text5-press);
|
|
82
|
+
background-color: var(--charcoal-surface4-press);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(:disabled):not([aria-disabled]):hover, .charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:hover {
|
|
86
|
+
color: var(--charcoal-text5-hover);
|
|
87
|
+
background-color: var(--charcoal-surface4-hover);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(:disabled):not([aria-disabled]):active, .charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:active {
|
|
91
|
+
color: var(--charcoal-text5-press);
|
|
92
|
+
background-color: var(--charcoal-surface4-press);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus, .charcoal-icon-button[aria-disabled='false']:focus {
|
|
96
|
+
outline: none;
|
|
97
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus-visible, .charcoal-icon-button[aria-disabled='false']:focus-visible {
|
|
101
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.charcoal-icon-button:not(:disabled):not([aria-disabled]):focus:not(:focus-visible), .charcoal-icon-button[aria-disabled='false']:focus:not(:focus-visible) {
|
|
105
|
+
box-shadow: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -23,98 +23,96 @@
|
|
|
23
23
|
transition:
|
|
24
24
|
0.2s background-color,
|
|
25
25
|
0.2s box-shadow;
|
|
26
|
-
}
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
.charcoal-icon-button:focus {
|
|
34
|
-
outline: none;
|
|
35
|
-
}
|
|
36
|
-
.charcoal-icon-button::-moz-focus-inner {
|
|
37
|
-
border-style: none;
|
|
38
|
-
padding: 0;
|
|
39
|
-
}
|
|
27
|
+
&:disabled,
|
|
28
|
+
&[aria-disabled]:not([aria-disabled='false']) {
|
|
29
|
+
cursor: default;
|
|
30
|
+
opacity: 0.32;
|
|
31
|
+
}
|
|
40
32
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
.charcoal-icon-button[data-size='S'] {
|
|
46
|
-
width: 32px;
|
|
47
|
-
height: 32px;
|
|
48
|
-
}
|
|
49
|
-
.charcoal-icon-button[data-size='M'] {
|
|
50
|
-
width: 40px;
|
|
51
|
-
height: 40px;
|
|
52
|
-
}
|
|
33
|
+
&:focus {
|
|
34
|
+
outline: none;
|
|
35
|
+
}
|
|
53
36
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
.charcoal-icon-button[data-variant='Default'][data-active='true']:not(
|
|
59
|
-
:disabled
|
|
60
|
-
):not([aria-disabled]),
|
|
61
|
-
.charcoal-icon-button[data-variant='Default'][data-active='true'][aria-disabled='false'] {
|
|
62
|
-
color: var(--charcoal-text3-press);
|
|
63
|
-
background-color: var(--charcoal-transparent-press);
|
|
64
|
-
}
|
|
65
|
-
.charcoal-icon-button[data-variant='Default'][data-active='false']:not(
|
|
66
|
-
:disabled
|
|
67
|
-
):not([aria-disabled]):hover,
|
|
68
|
-
.charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:hover {
|
|
69
|
-
color: var(--charcoal-text3-hover);
|
|
70
|
-
background-color: var(--charcoal-transparent-hover);
|
|
71
|
-
}
|
|
72
|
-
.charcoal-icon-button[data-variant='Default'][data-active='false']:not(
|
|
73
|
-
:disabled
|
|
74
|
-
):not([aria-disabled]):active,
|
|
75
|
-
.charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:active {
|
|
76
|
-
color: var(--charcoal-text3-press);
|
|
77
|
-
background-color: var(--charcoal-transparent-press);
|
|
78
|
-
}
|
|
37
|
+
&::-moz-focus-inner {
|
|
38
|
+
border-style: none;
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
79
41
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
.charcoal-icon-button[data-variant='Overlay'][data-active='true']:not(
|
|
85
|
-
:disabled
|
|
86
|
-
):not([aria-disabled]),
|
|
87
|
-
.charcoal-icon-button[data-variant='Overlay'][data-active='true'][aria-disabled='false'] {
|
|
88
|
-
color: var(--charcoal-text5-press);
|
|
89
|
-
background-color: var(--charcoal-surface4-press);
|
|
90
|
-
}
|
|
91
|
-
.charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(
|
|
92
|
-
:disabled
|
|
93
|
-
):not([aria-disabled]):hover,
|
|
94
|
-
.charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:hover {
|
|
95
|
-
color: var(--charcoal-text5-hover);
|
|
96
|
-
background-color: var(--charcoal-surface4-hover);
|
|
97
|
-
}
|
|
98
|
-
.charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(
|
|
99
|
-
:disabled
|
|
100
|
-
):not([aria-disabled]):active,
|
|
101
|
-
.charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:active {
|
|
102
|
-
color: var(--charcoal-text5-press);
|
|
103
|
-
background-color: var(--charcoal-surface4-press);
|
|
104
|
-
}
|
|
42
|
+
&[data-size='XS'] {
|
|
43
|
+
width: 20px;
|
|
44
|
+
height: 20px;
|
|
45
|
+
}
|
|
105
46
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
47
|
+
&[data-size='S'] {
|
|
48
|
+
width: 32px;
|
|
49
|
+
height: 32px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-size='M'] {
|
|
53
|
+
width: 40px;
|
|
54
|
+
height: 40px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-variant='Default'] {
|
|
58
|
+
color: var(--charcoal-text3);
|
|
59
|
+
background-color: var(--charcoal-transparent);
|
|
60
|
+
|
|
61
|
+
&[data-active='true']:not(:disabled):not([aria-disabled]),
|
|
62
|
+
&[data-active='true'][aria-disabled='false'] {
|
|
63
|
+
color: var(--charcoal-text3-press);
|
|
64
|
+
background-color: var(--charcoal-transparent-press);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&[data-active='false']:not(:disabled):not([aria-disabled]):hover,
|
|
68
|
+
&[data-active='false'][aria-disabled='false']:hover {
|
|
69
|
+
color: var(--charcoal-text3-hover);
|
|
70
|
+
background-color: var(--charcoal-transparent-hover);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&[data-active='false']:not(:disabled):not([aria-disabled]):active,
|
|
74
|
+
&[data-active='false'][aria-disabled='false']:active {
|
|
75
|
+
color: var(--charcoal-text3-press);
|
|
76
|
+
background-color: var(--charcoal-transparent-press);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[data-variant='Overlay'] {
|
|
81
|
+
color: var(--charcoal-text5);
|
|
82
|
+
background-color: var(--charcoal-surface4);
|
|
83
|
+
|
|
84
|
+
&[data-active='true']:not(:disabled):not([aria-disabled]),
|
|
85
|
+
&[data-active='true'][aria-disabled='false'] {
|
|
86
|
+
color: var(--charcoal-text5-press);
|
|
87
|
+
background-color: var(--charcoal-surface4-press);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&[data-active='false']:not(:disabled):not([aria-disabled]):hover,
|
|
91
|
+
&[data-active='false'][aria-disabled='false']:hover {
|
|
92
|
+
color: var(--charcoal-text5-hover);
|
|
93
|
+
background-color: var(--charcoal-surface4-hover);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&[data-active='false']:not(:disabled):not([aria-disabled]):active,
|
|
97
|
+
&[data-active='false'][aria-disabled='false']:active {
|
|
98
|
+
color: var(--charcoal-text5-press);
|
|
99
|
+
background-color: var(--charcoal-surface4-press);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:not(:disabled):not([aria-disabled]):focus,
|
|
104
|
+
&[aria-disabled='false']:focus {
|
|
105
|
+
outline: none;
|
|
106
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:not(:disabled):not([aria-disabled]):focus-visible,
|
|
110
|
+
&[aria-disabled='false']:focus-visible {
|
|
111
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
115
|
+
&[aria-disabled='false']:focus:not(:focus-visible) {
|
|
116
|
+
box-shadow: none;
|
|
117
|
+
}
|
|
120
118
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.charcoal-loading-spinner {
|
|
2
|
+
box-sizing: content-box;
|
|
3
|
+
margin: auto;
|
|
4
|
+
padding: var(--charcoal-loading-spinner-padding);
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
font-size: var(--charcoal-loading-spinner-size);
|
|
7
|
+
width: var(--charcoal-loading-spinner-size);
|
|
8
|
+
height: var(--charcoal-loading-spinner-size);
|
|
9
|
+
opacity: 0.84;
|
|
10
|
+
color: var(--charcoal-text4);
|
|
11
|
+
background-color: var(--charcoal-background1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.charcoal-loading-spinner[data-transparent='true'] {
|
|
15
|
+
background-color: var(--charcoal-transparent);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@keyframes charcoal-loading-spinner-icon-scale-out {
|
|
19
|
+
|
|
20
|
+
from {
|
|
21
|
+
transform: scale(0);
|
|
22
|
+
opacity: 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
to {
|
|
26
|
+
transform: scale(1);
|
|
27
|
+
opacity: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.charcoal-loading-spinner-icon {
|
|
32
|
+
width: 1em;
|
|
33
|
+
height: 1em;
|
|
34
|
+
border-radius: 1em;
|
|
35
|
+
background-color: currentColor;
|
|
36
|
+
animation: charcoal-loading-spinner-icon-scale-out 1s both ease-out;
|
|
37
|
+
animation-iteration-count: infinite;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.charcoal-loading-spinner-icon[data-reset-animation] {
|
|
41
|
+
animation: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.charcoal-loading-spinner-icon[data-once='true'] {
|
|
45
|
+
animation-iteration-count: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
opacity: 0.84;
|
|
10
10
|
color: var(--charcoal-text4);
|
|
11
11
|
background-color: var(--charcoal-background1);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
|
|
13
|
+
&[data-transparent='true'] {
|
|
14
|
+
background-color: var(--charcoal-transparent);
|
|
15
|
+
}
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
@keyframes charcoal-loading-spinner-icon-scale-out {
|
|
@@ -32,11 +33,12 @@
|
|
|
32
33
|
background-color: currentColor;
|
|
33
34
|
animation: charcoal-loading-spinner-icon-scale-out 1s both ease-out;
|
|
34
35
|
animation-iteration-count: infinite;
|
|
35
|
-
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
&[data-reset-animation] {
|
|
38
|
+
animation: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&[data-once='true'] {
|
|
42
|
+
animation-iteration-count: 1;
|
|
43
|
+
}
|
|
42
44
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.charcoal-modal-background {
|
|
2
|
+
overflow: auto;
|
|
3
|
+
display: flex;
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding: 40px 0;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
background-color: var(--charcoal-surface4);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (max-width: 743px) {
|
|
16
|
+
|
|
17
|
+
.charcoal-modal-background[data-bottom-sheet='true'], .charcoal-modal-background[data-bottom-sheet='full'] {
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.charcoal-modal-close-button {
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 8px;
|
|
25
|
+
right: 8px;
|
|
26
|
+
color: var(--charcoal-text3);
|
|
27
|
+
transition: 0.2s color;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.charcoal-modal-title {
|
|
31
|
+
margin: 0;
|
|
32
|
+
font-weight: inherit;
|
|
33
|
+
font-size: inherit;
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
|
|
13
13
|
background-color: var(--charcoal-surface4);
|
|
14
|
-
}
|
|
15
14
|
|
|
16
|
-
@media (max-width: 743px) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
@media (max-width: 743px) {
|
|
16
|
+
&[data-bottom-sheet='true'],
|
|
17
|
+
&[data-bottom-sheet='full'] {
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
.charcoal-multi-select {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: auto 1fr;
|
|
4
|
+
align-items: center;
|
|
5
|
+
position: relative;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
gap: 4px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.charcoal-multi-select:disabled, .charcoal-multi-select[aria-disabled]:not([aria-disabled='false']) {
|
|
11
|
+
opacity: 0.32;
|
|
12
|
+
cursor: default;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.charcoal-multi-select-label {
|
|
16
|
+
display: flow-root;
|
|
17
|
+
align-items: center;
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
line-height: 22px;
|
|
20
|
+
color: var(--charcoal-text2);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.charcoal-multi-select-label::before {
|
|
24
|
+
display: block;
|
|
25
|
+
width: 0;
|
|
26
|
+
height: 0;
|
|
27
|
+
content: '';
|
|
28
|
+
margin-top: -4px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.charcoal-multi-select-label::after {
|
|
32
|
+
display: block;
|
|
33
|
+
width: 0;
|
|
34
|
+
height: 0;
|
|
35
|
+
content: '';
|
|
36
|
+
margin-bottom: -4px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.charcoal-multi-select-input[type='checkbox'] {
|
|
40
|
+
appearance: none;
|
|
41
|
+
display: block;
|
|
42
|
+
width: 20px;
|
|
43
|
+
height: 20px;
|
|
44
|
+
margin: 0;
|
|
45
|
+
background-color: var(--charcoal-text3);
|
|
46
|
+
border-radius: 999999px;
|
|
47
|
+
transition: 0.2s background-color,
|
|
48
|
+
0.2s box-shadow;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.charcoal-multi-select-input[type='checkbox']:checked {
|
|
52
|
+
background-color: var(--charcoal-brand);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.charcoal-multi-select-input[type='checkbox']:focus {
|
|
56
|
+
outline: none;
|
|
57
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.charcoal-multi-select-input[type='checkbox']:focus-visible {
|
|
61
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.charcoal-multi-select-input[type='checkbox']:focus:not(:focus-visible) {
|
|
65
|
+
box-shadow: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.charcoal-multi-select-input[type='checkbox']:hover:not(:disabled):not([aria-disabled]), .charcoal-multi-select-input[type='checkbox']:hover[aria-disabled='false'] {
|
|
69
|
+
background-color: var(--charcoal-text3-hover);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.charcoal-multi-select-input[type='checkbox']:active:not(:disabled):not([aria-disabled]), .charcoal-multi-select-input[type='checkbox']:active[aria-disabled='false'] {
|
|
73
|
+
background-color: var(--charcoal-text3-press);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.charcoal-multi-select-input[type='checkbox']:checked:hover:not(:disabled):not([aria-disabled]), .charcoal-multi-select-input[type='checkbox']:checked:hover[aria-disabled='false'] {
|
|
77
|
+
background-color: var(--charcoal-brand-hover);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.charcoal-multi-select-input[type='checkbox']:checked:active:not(:disabled):not([aria-disabled]), .charcoal-multi-select-input[type='checkbox']:checked:active[aria-disabled='false'] {
|
|
81
|
+
background-color: var(--charcoal-brand-press);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.charcoal-multi-select-input[type='checkbox'][aria-invalid='true'][data-overlay='false']:not(:disabled):not([aria-disabled]) {
|
|
85
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.charcoal-multi-select-input[type='checkbox'][aria-invalid='true'][data-overlay='false'][aria-disabled='false'] {
|
|
89
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.charcoal-multi-select-input[type='checkbox'][data-overlay='true'] {
|
|
93
|
+
background-color: var(--charcoal-surface4);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.charcoal-multi-select-overlay {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: -2px;
|
|
99
|
+
left: -2px;
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
width: 24px;
|
|
105
|
+
height: 24px;
|
|
106
|
+
border-radius: 999999px;
|
|
107
|
+
color: var(--charcoal-text5);
|
|
108
|
+
transition: 0.2s box-shadow;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true']:not(:disabled):not([aria-disabled]) {
|
|
112
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
|
|
116
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.charcoal-multi-select-overlay[data-overlay='true'] {
|
|
120
|
+
border-color: var(--charcoal-text5);
|
|
121
|
+
border-width: 2px;
|
|
122
|
+
border-style: solid;
|
|
123
|
+
}
|
|
124
|
+
|