@charcoal-ui/react 5.8.0-beta.0 → 5.8.1
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/components/DropdownSelector/DropdownMenuItem/index.d.ts +1 -0
- package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +613 -589
- 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/index.js.map +1 -1
- package/dist/layered.css +613 -589
- package/dist/layered.css.map +1 -1
- package/package.json +5 -5
- package/src/components/Button/index.css +120 -105
- package/src/components/Checkbox/index.css +7 -7
- package/src/components/Clickable/index.css +11 -11
- package/src/components/DropdownSelector/DropdownMenuItem/index.css +4 -0
- package/src/components/DropdownSelector/DropdownMenuItem/index.tsx +12 -3
- package/src/components/DropdownSelector/index.css +33 -33
- package/src/components/FieldLabel/index.css +6 -6
- package/src/components/HintText/index.css +7 -5
- package/src/components/IconButton/index.css +89 -87
- package/src/components/LoadingSpinner/index.css +9 -11
- package/src/components/Modal/index.css +5 -5
- package/src/components/MultiSelect/__snapshots__/index.css.snap +3 -3
- package/src/components/MultiSelect/index.css +82 -74
- package/src/components/Pagination/__snapshots__/index.css.snap +10 -15
- package/src/components/Pagination/index.css +80 -79
- package/src/components/Radio/index.css +4 -4
- package/src/components/SegmentedControl/index.css +25 -23
- package/src/components/Switch/index.css +7 -7
- package/src/components/TagItem/__snapshots__/index.css.snap +0 -2
- package/src/components/TagItem/index.css +71 -80
- package/src/components/TextArea/index.css +23 -24
- package/src/components/TextEllipsis/index.css +10 -10
- package/src/components/TextField/index.css +21 -19
- package/src/index.ts +4 -0
|
@@ -30,76 +30,72 @@
|
|
|
30
30
|
border-radius: 4px;
|
|
31
31
|
|
|
32
32
|
transition: 0.2s box-shadow;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.charcoal-tag-item[data-size='M'] {
|
|
36
|
+
--charcoal-tag-item-size: 40px;
|
|
37
|
+
--charcoal-tag-item-padding-left: 24px;
|
|
38
|
+
--charcoal-tag-item-padding-right: 24px;
|
|
39
|
+
}
|
|
40
|
+
.charcoal-tag-item[data-size='S'] {
|
|
41
|
+
--charcoal-tag-item-size: 32px;
|
|
42
|
+
--charcoal-tag-item-padding-left: 16px;
|
|
43
|
+
--charcoal-tag-item-padding-right: 16px;
|
|
44
|
+
}
|
|
45
|
+
.charcoal-tag-item[data-state='inactive'] {
|
|
46
|
+
--charcoal-tag-item-color: var(--charcoal-text2);
|
|
47
|
+
}
|
|
48
|
+
.charcoal-tag-item[data-state='active'] {
|
|
49
|
+
--charcoal-tag-item-padding-left: 16px;
|
|
50
|
+
--charcoal-tag-item-padding-right: 8px;
|
|
51
|
+
}
|
|
33
52
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
&:disabled,
|
|
56
|
-
&[aria-disabled]:not([aria-disabled='false']) {
|
|
57
|
-
opacity: 0.32;
|
|
58
|
-
cursor: default;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:not(:disabled):not([aria-disabled]):focus-visible,
|
|
62
|
-
&[aria-disabled='false']:focus-visible {
|
|
63
|
-
outline: none;
|
|
64
|
-
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:not(:disabled):not([aria-disabled]):focus,
|
|
68
|
-
&[aria-disabled='false']:focus {
|
|
69
|
-
outline: none;
|
|
70
|
-
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
74
|
-
&[aria-disabled='false']:focus:not(:focus-visible) {
|
|
75
|
-
box-shadow: none;
|
|
76
|
-
}
|
|
53
|
+
.charcoal-tag-item:disabled,
|
|
54
|
+
.charcoal-tag-item[aria-disabled]:not([aria-disabled='false']) {
|
|
55
|
+
opacity: 0.32;
|
|
56
|
+
cursor: default;
|
|
57
|
+
}
|
|
58
|
+
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus-visible,
|
|
59
|
+
.charcoal-tag-item[aria-disabled='false']:focus-visible {
|
|
60
|
+
outline: none;
|
|
61
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
62
|
+
}
|
|
63
|
+
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus,
|
|
64
|
+
.charcoal-tag-item[aria-disabled='false']:focus {
|
|
65
|
+
outline: none;
|
|
66
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
67
|
+
}
|
|
68
|
+
.charcoal-tag-item:not(:disabled):not([aria-disabled]):focus:not(
|
|
69
|
+
:focus-visible
|
|
70
|
+
),
|
|
71
|
+
.charcoal-tag-item[aria-disabled='false']:focus:not(:focus-visible) {
|
|
72
|
+
box-shadow: none;
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
.charcoal-tag-item__bg {
|
|
80
76
|
background-color: var(--charcoal-tag-item-bg);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.charcoal-tag-item__bg[data-bg-variant='image'] {
|
|
80
|
+
background-color: var(--charcoal-surface4);
|
|
81
|
+
}
|
|
81
82
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&[data-state='inactive'] {
|
|
101
|
-
background-color: var(--charcoal-surface3);
|
|
102
|
-
}
|
|
83
|
+
.charcoal-tag-item__bg[data-bg-variant='image']::before {
|
|
84
|
+
content: '';
|
|
85
|
+
position: absolute;
|
|
86
|
+
z-index: 1;
|
|
87
|
+
top: 0;
|
|
88
|
+
left: 0;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 100%;
|
|
91
|
+
background-position: center;
|
|
92
|
+
background-size: cover;
|
|
93
|
+
background-image: var(--charcoal-tag-item-bg);
|
|
94
|
+
mix-blend-mode: overlay;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.charcoal-tag-item__bg[data-state='inactive'] {
|
|
98
|
+
background-color: var(--charcoal-surface3);
|
|
103
99
|
}
|
|
104
100
|
|
|
105
101
|
.charcoal-tag-item__label {
|
|
@@ -108,20 +104,18 @@
|
|
|
108
104
|
flex-direction: column;
|
|
109
105
|
align-items: center;
|
|
110
106
|
justify-content: center;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
107
|
+
}
|
|
108
|
+
.charcoal-tag-item__label[data-has-translate='true'] {
|
|
109
|
+
justify-content: space-between;
|
|
115
110
|
}
|
|
116
111
|
|
|
117
112
|
.charcoal-tag-item__label__translated {
|
|
118
113
|
--charcoal-tag-item-text-font-size: 12px;
|
|
119
114
|
--charcoal-tag-item-text-line-height: 20px;
|
|
120
115
|
font-weight: bold;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
116
|
+
}
|
|
117
|
+
.charcoal-tag-item__label__translated::before {
|
|
118
|
+
display: none;
|
|
125
119
|
}
|
|
126
120
|
|
|
127
121
|
.charcoal-tag-item__label__text {
|
|
@@ -135,15 +129,12 @@
|
|
|
135
129
|
color: inherit;
|
|
136
130
|
white-space: nowrap;
|
|
137
131
|
text-overflow: ellipsis;
|
|
138
|
-
|
|
139
|
-
&[data-has-translate='true'] {
|
|
140
|
-
--charcoal-tag-item-text-font-size: 10px;
|
|
141
|
-
--charcoal-tag-item-text-line-height: 14px;
|
|
142
|
-
font-weight: normal;
|
|
143
|
-
}
|
|
144
132
|
}
|
|
145
|
-
|
|
146
|
-
|
|
133
|
+
.charcoal-tag-item__label__text[data-has-translate='true'] {
|
|
134
|
+
--charcoal-tag-item-text-font-size: 10px;
|
|
135
|
+
--charcoal-tag-item-text-line-height: 14px;
|
|
136
|
+
font-weight: normal;
|
|
137
|
+
}
|
|
147
138
|
.charcoal-tag-item__labe__text[data-has-translate='true']::after {
|
|
148
139
|
display: none;
|
|
149
140
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: 1fr;
|
|
4
4
|
grid-gap: 4px;
|
|
5
|
+
}
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
7
|
+
.charcoal-text-area-root[aria-disabled='true'] {
|
|
8
|
+
opacity: 0.32;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.charcoal-text-area-container {
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
0.2s background-color,
|
|
20
20
|
0.2s box-shadow;
|
|
21
21
|
height: calc(22px * var(--charcoal-text-area-rows) + 18px);
|
|
22
|
+
}
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
.charcoal-text-area-container[aria-invalid='true'] {
|
|
25
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
26
|
+
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
.charcoal-text-area-container:focus-within {
|
|
29
|
+
outline: none;
|
|
30
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
31
|
+
}
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
.charcoal-text-area-container:not([aria-disabled='true']):hover {
|
|
34
|
+
background-color: var(--charcoal-surface3-hover);
|
|
35
|
+
}
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
37
|
+
.charcoal-text-area-container[aria-invalid='true']:focus-within {
|
|
38
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.charcoal-text-area-textarea {
|
|
@@ -59,15 +59,14 @@
|
|
|
59
59
|
appearance: none;
|
|
60
60
|
|
|
61
61
|
background: none;
|
|
62
|
+
}
|
|
63
|
+
.charcoal-text-area-textarea[data-no-bottom-padding='true'] {
|
|
64
|
+
padding: calc(9px / 0.875) calc(8px / 0.875) 0;
|
|
65
|
+
height: calc(22px / 0.875 * (var(--charcoal-text-area-rows) - 1) + 9px);
|
|
66
|
+
}
|
|
62
67
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
height: calc(22px / 0.875 * (var(--charcoal-text-area-rows) - 1) + 9px);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&::placeholder {
|
|
69
|
-
color: var(--charcoal-text3);
|
|
70
|
-
}
|
|
68
|
+
.charcoal-text-area-textarea::placeholder {
|
|
69
|
+
color: var(--charcoal-text3);
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
.charcoal-text-area-counter {
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
display: -webkit-box;
|
|
5
5
|
-webkit-box-orient: vertical;
|
|
6
6
|
-webkit-line-clamp: var(--charcoal-text-ellipsis-line-limit);
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
.charcoal-text-ellipsis[data-has-line-height='true'] {
|
|
10
|
+
line-height: var(--charcoal-text-ellipsis-line-height);
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
.charcoal-text-ellipsis[data-has-line-height='false'] {
|
|
14
|
+
line-height: inherit;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
17
|
+
.charcoal-text-ellipsis[data-line-limit='1'][data-use-nowrap='true'] {
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
white-space: nowrap;
|
|
20
20
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: 1fr;
|
|
4
4
|
grid-gap: 4px;
|
|
5
|
+
}
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
7
|
+
.charcoal-text-field-root[aria-disabled='true'] {
|
|
8
|
+
opacity: 0.32;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.charcoal-text-field-container {
|
|
@@ -20,23 +20,25 @@
|
|
|
20
20
|
padding: 0 8px;
|
|
21
21
|
line-height: 22px;
|
|
22
22
|
font-size: 14px;
|
|
23
|
+
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
.charcoal-text-field-container[data-invalid='true'] {
|
|
26
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
.charcoal-text-field-container:not([aria-disabled='true']):hover {
|
|
30
|
+
background-color: var(--charcoal-surface3-hover);
|
|
31
|
+
}
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
.charcoal-text-field-container:not([aria-disabled='true']):focus-within {
|
|
34
|
+
outline: none;
|
|
35
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
36
|
+
}
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
.charcoal-text-field-container:not(
|
|
39
|
+
[aria-disabled='true']
|
|
40
|
+
)[data-invalid='true']:focus-within {
|
|
41
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.charcoal-text-field-prefix {
|
|
@@ -74,10 +76,10 @@
|
|
|
74
76
|
background: transparent;
|
|
75
77
|
|
|
76
78
|
color: var(--charcoal-text2);
|
|
79
|
+
}
|
|
77
80
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
+
.charcoal-text-field-input::placeholder {
|
|
82
|
+
color: var(--charcoal-text3);
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.charcoal-text-field-line-counter {
|
package/src/index.ts
CHANGED
|
@@ -60,6 +60,10 @@ export {
|
|
|
60
60
|
default as DropdownSelector,
|
|
61
61
|
type DropdownSelectorProps,
|
|
62
62
|
} from './components/DropdownSelector'
|
|
63
|
+
export {
|
|
64
|
+
default as MenuItem,
|
|
65
|
+
type MenuItemProps,
|
|
66
|
+
} from './components/DropdownSelector/MenuItem'
|
|
63
67
|
export {
|
|
64
68
|
default as DropdownMenuItem,
|
|
65
69
|
type DropdownMenuItemProps,
|