@charcoal-ui/react 5.7.0 → 5.8.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 +1 -1
- package/dist/index.css +25 -25
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/layered.css +25 -25
- 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/Checkbox/__snapshots__/index.css.snap +22 -0
- package/src/components/Clickable/__snapshots__/index.css.snap +41 -0
- package/src/components/DropdownSelector/__snapshots__/index.css.snap +79 -0
- package/src/components/FieldLabel/__snapshots__/index.css.snap +37 -0
- package/src/components/HintText/__snapshots__/index.css.snap +37 -0
- package/src/components/IconButton/__snapshots__/index.css.snap +107 -0
- package/src/components/LoadingSpinner/__snapshots__/index.css.snap +47 -0
- package/src/components/Modal/__snapshots__/index.css.snap +35 -0
- package/src/components/MultiSelect/__snapshots__/index.css.snap +124 -0
- package/src/components/Pagination/__snapshots__/index.css.snap +109 -0
- package/src/components/Radio/__snapshots__/index.css.snap +18 -0
- package/src/components/SegmentedControl/__snapshots__/index.css.snap +61 -0
- package/src/components/Switch/__snapshots__/index.css.snap +23 -0
- package/src/components/TagItem/__snapshots__/index.css.snap +137 -0
- package/src/components/TextArea/__snapshots__/index.css.snap +78 -0
- package/src/components/TextEllipsis/__snapshots__/index.css.snap +20 -0
- package/src/components/TextField/__snapshots__/index.css.snap +86 -0
- package/src/index.ts +4 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
.charcoal-button {
|
|
2
|
+
appearance: none;
|
|
3
|
+
background: transparent;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0 24px;
|
|
6
|
+
border-style: none;
|
|
7
|
+
outline: none;
|
|
8
|
+
text-rendering: inherit;
|
|
9
|
+
letter-spacing: inherit;
|
|
10
|
+
word-spacing: inherit;
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
font: inherit;
|
|
13
|
+
margin: 0;
|
|
14
|
+
overflow: visible;
|
|
15
|
+
text-transform: none;
|
|
16
|
+
width: min-content;
|
|
17
|
+
display: inline-grid;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
user-select: none;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
border-radius: 999999px;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
line-height: 22px;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
color: var(--charcoal-text2);
|
|
28
|
+
background-color: var(--charcoal-surface3);
|
|
29
|
+
transition: 0.2s color,
|
|
30
|
+
0.2s background-color,
|
|
31
|
+
0.2s box-shadow;
|
|
32
|
+
height: 40px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.charcoal-button:disabled, .charcoal-button[aria-disabled]:not([aria-disabled='false']) {
|
|
36
|
+
cursor: default;
|
|
37
|
+
opacity: 0.32;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.charcoal-button:not(:disabled):not([aria-disabled]):focus-visible, .charcoal-button[aria-disabled='false']:focus-visible {
|
|
41
|
+
outline: none;
|
|
42
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.charcoal-button:not(:disabled):not([aria-disabled]):hover, .charcoal-button[aria-disabled='false']:hover {
|
|
46
|
+
color: var(--charcoal-text2-hover);
|
|
47
|
+
background-color: var(--charcoal-surface3-hover);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.charcoal-button:not(:disabled):not([aria-disabled]):active, .charcoal-button[aria-disabled='false']:active, .charcoal-button[data-active='true'] {
|
|
51
|
+
color: var(--charcoal-text2-press);
|
|
52
|
+
background-color: var(--charcoal-surface3-press);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.charcoal-button[data-variant='Primary'] {
|
|
56
|
+
color: var(--charcoal-text5);
|
|
57
|
+
background-color: var(--charcoal-brand);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.charcoal-button[data-variant='Primary']:hover:not(:disabled):not([aria-disabled]), .charcoal-button[data-variant='Primary']:hover[aria-disabled='false'] {
|
|
61
|
+
color: var(--charcoal-text5-hover);
|
|
62
|
+
background-color: var(--charcoal-brand-hover);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.charcoal-button[data-variant='Primary']:active:not(:disabled):not([aria-disabled]), .charcoal-button[data-variant='Primary']:active[aria-disabled='false'], .charcoal-button[data-variant='Primary'][data-active='true'] {
|
|
66
|
+
color: var(--charcoal-text5-press);
|
|
67
|
+
background-color: var(--charcoal-brand-press);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.charcoal-button[data-variant='Overlay'] {
|
|
71
|
+
color: var(--charcoal-text5);
|
|
72
|
+
background-color: var(--charcoal-surface4);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.charcoal-button[data-variant='Overlay']:hover:not(:disabled):not([aria-disabled]), .charcoal-button[data-variant='Overlay']:hover[aria-disabled='false'] {
|
|
76
|
+
color: var(--charcoal-text5-hover);
|
|
77
|
+
background-color: var(--charcoal-surface4-hover);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.charcoal-button[data-variant='Overlay']:active:not(:disabled):not([aria-disabled]), .charcoal-button[data-variant='Overlay']:active[aria-disabled='false'], .charcoal-button[data-variant='Overlay'][data-active='true'] {
|
|
81
|
+
color: var(--charcoal-text5-press);
|
|
82
|
+
background-color: var(--charcoal-surface4-press);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.charcoal-button[data-variant='Navigation'] {
|
|
86
|
+
color: var(--charcoal-text5);
|
|
87
|
+
background-color: var(--charcoal-surface6);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.charcoal-button[data-variant='Navigation']:hover:not(:disabled):not([aria-disabled]), .charcoal-button[data-variant='Navigation']:hover[aria-disabled='false'] {
|
|
91
|
+
color: var(--charcoal-text5-hover);
|
|
92
|
+
background-color: var(--charcoal-surface6-hover);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.charcoal-button[data-variant='Navigation']:active:not(:disabled):not([aria-disabled]), .charcoal-button[data-variant='Navigation']:active[aria-disabled='false'], .charcoal-button[data-variant='Navigation'][data-active='true'] {
|
|
96
|
+
color: var(--charcoal-text5-press);
|
|
97
|
+
background-color: var(--charcoal-surface6-press);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.charcoal-button[data-variant='Danger'] {
|
|
101
|
+
color: var(--charcoal-text5);
|
|
102
|
+
background-color: var(--charcoal-assertive);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.charcoal-button[data-variant='Danger']:hover:not(:disabled):not([aria-disabled]), .charcoal-button[data-variant='Danger']:hover[aria-disabled='false'] {
|
|
106
|
+
color: var(--charcoal-text5-hover);
|
|
107
|
+
background-color: var(--charcoal-assertive-hover);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.charcoal-button[data-variant='Danger']:active:not(:disabled):not([aria-disabled]), .charcoal-button[data-variant='Danger']:active[aria-disabled='false'], .charcoal-button[data-variant='Danger'][data-active='true'] {
|
|
111
|
+
color: var(--charcoal-text5-press);
|
|
112
|
+
background-color: var(--charcoal-assertive-press);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.charcoal-button[data-size='S'] {
|
|
116
|
+
padding: 0 16px;
|
|
117
|
+
height: 32px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.charcoal-button[data-full-width='true'] {
|
|
121
|
+
width: 100%;
|
|
122
|
+
}
|
|
123
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.charcoal-checkbox__label {
|
|
2
|
+
position: relative;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.charcoal-checkbox__label[aria-disabled='true'] {
|
|
9
|
+
cursor: default;
|
|
10
|
+
opacity: 0.32;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.charcoal-checkbox__label[aria-disabled='true'] > input {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.charcoal-checkbox__label_div {
|
|
18
|
+
flex: 1;
|
|
19
|
+
color: var(--charcoal-text2);
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
line-height: 20px;
|
|
22
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.charcoal-clickable {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
|
|
4
|
+
/* Reset button appearance */
|
|
5
|
+
appearance: none;
|
|
6
|
+
background: transparent;
|
|
7
|
+
padding: 0;
|
|
8
|
+
border-style: none;
|
|
9
|
+
outline: none;
|
|
10
|
+
color: inherit;
|
|
11
|
+
text-rendering: inherit;
|
|
12
|
+
letter-spacing: inherit;
|
|
13
|
+
word-spacing: inherit;
|
|
14
|
+
text-decoration: none;
|
|
15
|
+
|
|
16
|
+
/* Change the font styles in all browsers. */
|
|
17
|
+
font: inherit;
|
|
18
|
+
|
|
19
|
+
/* Remove the margin in Firefox and Safari. */
|
|
20
|
+
margin: 0;
|
|
21
|
+
|
|
22
|
+
/* Show the overflow in Edge. */
|
|
23
|
+
overflow: visible;
|
|
24
|
+
|
|
25
|
+
/* Remove the inheritance of text transform in Firefox. */
|
|
26
|
+
text-transform: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.charcoal-clickable:disabled, .charcoal-clickable[aria-disabled]:not([aria-disabled='false']) {
|
|
30
|
+
cursor: default;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.charcoal-clickable:focus {
|
|
34
|
+
outline: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.charcoal-clickable::-moz-focus-inner {
|
|
38
|
+
border-style: none;
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.charcoal-dropdown-selector-root {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: 1fr;
|
|
4
|
+
grid-gap: 4px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.charcoal-dropdown-selector-root[aria-disabled='true'] {
|
|
9
|
+
cursor: default;
|
|
10
|
+
opacity: 0.32;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.charcoal-dropdown-selector-button {
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-columns: 1fr auto;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
align-items: center;
|
|
18
|
+
height: 40px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
border: none;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
gap: 4px;
|
|
24
|
+
padding-right: 8px;
|
|
25
|
+
padding-left: 8px;
|
|
26
|
+
background-color: var(--charcoal-surface3);
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
transition: 0.2s box-shadow,
|
|
29
|
+
0.2s background-color;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.charcoal-dropdown-selector-button:disabled {
|
|
33
|
+
cursor: default;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.charcoal-dropdown-selector-button:not(:disabled):focus {
|
|
37
|
+
outline: none;
|
|
38
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.charcoal-dropdown-selector-button:not(:disabled):focus-visible {
|
|
42
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.charcoal-dropdown-selector-button:not(:disabled)[data-active='true'], .charcoal-dropdown-selector-button:not(:disabled):active {
|
|
46
|
+
background-color: var(--charcoal-surface3-press);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.charcoal-dropdown-selector-button:not(:disabled):hover {
|
|
50
|
+
background-color: var(--charcoal-surface3-hover);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.charcoal-dropdown-selector-button:not(:disabled):focus:not(:focus-visible) {
|
|
54
|
+
box-shadow: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.charcoal-dropdown-selector-button[aria-invalid='true'], .charcoal-dropdown-selector-button:not(:disabled)[aria-invalid='true']:focus:not(:focus-visible) {
|
|
58
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.charcoal-ui-dropdown-selector-text {
|
|
62
|
+
text-align: left;
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
line-height: 22px;
|
|
65
|
+
display: flow-root;
|
|
66
|
+
color: var(--charcoal-text2);
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
text-overflow: ellipsis;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.charcoal-ui-dropdown-selector-text[data-placeholder='true'] {
|
|
73
|
+
color: var(--charcoal-text3);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.charcoal-ui-dropdown-selector-icon {
|
|
77
|
+
color: var(--charcoal-text2);
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.charcoal-field-label {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
line-height: 22px;
|
|
4
|
+
font-weight: bold;
|
|
5
|
+
display: flow-root;
|
|
6
|
+
color: var(--charcoal-text1);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.charcoal-field-label-required-text {
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
line-height: 22px;
|
|
12
|
+
display: flow-root;
|
|
13
|
+
color: var(--charcoal-text2);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.charcoal-field-label-sub-label {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
line-height: 22px;
|
|
19
|
+
display: flow-root;
|
|
20
|
+
color: var(--charcoal-text3);
|
|
21
|
+
transition: 0.2s color,
|
|
22
|
+
0.2s box-shadow;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.charcoal-field-label-root {
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.charcoal-field-label-root > .charcoal-field-label-required-text {
|
|
31
|
+
margin-left: 4px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.charcoal-field-label-root > .charcoal-field-label-sub-label {
|
|
35
|
+
margin-left: auto;
|
|
36
|
+
}
|
|
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
|
+
|
|
@@ -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
|
+
|
|
@@ -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
|
+
|
|
@@ -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
|
+
|
|
@@ -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[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[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[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
|
+
|