@primer/components 0.0.0-202192021539 → 0.0.0-2021921142939
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/CHANGELOG.md +1 -1
- package/dist/browser.esm.js +6 -8
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +6 -8
- package/dist/browser.umd.js.map +1 -1
- package/lib/TextInputWithTokens.js +10 -17
- package/lib/Token/IssueLabelToken.js +12 -4
- package/lib/Token/Token.js +2 -13
- package/lib/Token/TokenBase.js +4 -4
- package/lib/Token/_RemoveTokenButton.js +1 -1
- package/lib/theme-preval.js +30 -0
- package/lib/utils/testing.d.ts +5 -0
- package/lib-esm/TextInputWithTokens.js +10 -17
- package/lib-esm/Token/IssueLabelToken.js +12 -4
- package/lib-esm/Token/Token.js +2 -13
- package/lib-esm/Token/TokenBase.js +4 -4
- package/lib-esm/Token/_RemoveTokenButton.js +1 -1
- package/lib-esm/theme-preval.js +30 -0
- package/lib-esm/utils/testing.d.ts +5 -0
- package/package.json +2 -2
@@ -175,7 +175,15 @@ function TextInputWithTokensInnerComponent({
|
|
175
175
|
minWidth: minWidthProp,
|
176
176
|
maxWidth: maxWidthProp,
|
177
177
|
variant: variantProp,
|
178
|
-
|
178
|
+
ref: containerRef,
|
179
|
+
sx: {
|
180
|
+
alignItems: 'center',
|
181
|
+
flexWrap: preventTokenWrapping ? 'nowrap' : 'wrap',
|
182
|
+
gap: '0.25rem',
|
183
|
+
'> *': {
|
184
|
+
flexShrink: 0
|
185
|
+
},
|
186
|
+
...(block ? {
|
179
187
|
display: 'flex',
|
180
188
|
width: '100%'
|
181
189
|
} : {}),
|
@@ -188,21 +196,6 @@ function TextInputWithTokensInnerComponent({
|
|
188
196
|
} : {}),
|
189
197
|
...sxProp
|
190
198
|
}
|
191
|
-
}, /*#__PURE__*/_react.default.createElement(_Box.default, {
|
192
|
-
ref: containerRef,
|
193
|
-
display: "flex",
|
194
|
-
sx: {
|
195
|
-
alignItems: 'center',
|
196
|
-
flexWrap: preventTokenWrapping ? 'nowrap' : 'wrap',
|
197
|
-
marginLeft: '-0.25rem',
|
198
|
-
marginBottom: '-0.25rem',
|
199
|
-
flexGrow: 1,
|
200
|
-
'> *': {
|
201
|
-
flexShrink: 0,
|
202
|
-
marginLeft: '0.25rem',
|
203
|
-
marginBottom: '0.25rem'
|
204
|
-
}
|
205
|
-
}
|
206
199
|
}, /*#__PURE__*/_react.default.createElement(_Box.default, {
|
207
200
|
sx: {
|
208
201
|
order: 1,
|
@@ -234,7 +227,7 @@ function TextInputWithTokensInnerComponent({
|
|
234
227
|
hideRemoveButton: hideTokenRemoveButtons,
|
235
228
|
size: size,
|
236
229
|
tabIndex: 0
|
237
|
-
}, tokenRest))) : null)
|
230
|
+
}, tokenRest))) : null);
|
238
231
|
}
|
239
232
|
|
240
233
|
TextInputWithTokensInnerComponent.displayName = "TextInputWithTokensInnerComponent";
|
@@ -129,10 +129,18 @@ const IssueLabelToken = /*#__PURE__*/(0, _react.forwardRef)((props, forwardedRef
|
|
129
129
|
size: size,
|
130
130
|
"aria-hidden": hasMultipleActionTargets ? 'true' : 'false',
|
131
131
|
isParentInteractive: (0, _TokenBase.isTokenInteractive)(props),
|
132
|
-
sx:
|
133
|
-
|
134
|
-
|
135
|
-
|
132
|
+
sx: {
|
133
|
+
'&:hover, &:focus': {
|
134
|
+
backgroundColor: 'hsla(0, 0%, calc(var(--lightness-switch) * 100%), 0.1)'
|
135
|
+
},
|
136
|
+
'&:active': {
|
137
|
+
backgroundColor: 'hsla(0, 0%, calc(var(--lightness-switch) * 100%), 0.2)'
|
138
|
+
},
|
139
|
+
...(hasMultipleActionTargets ? {
|
140
|
+
position: 'relative',
|
141
|
+
zIndex: '1'
|
142
|
+
} : {})
|
143
|
+
}
|
136
144
|
}) : null);
|
137
145
|
});
|
138
146
|
IssueLabelToken.defaultProps = {
|
package/lib/Token/Token.js
CHANGED
@@ -39,16 +39,7 @@ const DefaultTokenStyled = (0, _styledComponents.default)(_TokenBase.default).wi
|
|
39
39
|
const LeadingVisualContainer = (0, _styledComponents.default)('span').withConfig({
|
40
40
|
displayName: "Token__LeadingVisualContainer",
|
41
41
|
componentId: "sc-1dg52pw-1"
|
42
|
-
})(["flex-shrink:0;line-height:0;"
|
43
|
-
switch (props.size) {
|
44
|
-
case 'large':
|
45
|
-
case 'extralarge':
|
46
|
-
return (0, _styledComponents.css)(["padding-right:", ";"], (0, _constants.get)('space.2'));
|
47
|
-
|
48
|
-
default:
|
49
|
-
return (0, _styledComponents.css)(["padding-right:", ";"], (0, _constants.get)('space.1'));
|
50
|
-
}
|
51
|
-
});
|
42
|
+
})(["flex-shrink:0;line-height:0;"]);
|
52
43
|
const Token = /*#__PURE__*/(0, _react.forwardRef)((props, forwardedRef) => {
|
53
44
|
const {
|
54
45
|
as,
|
@@ -83,9 +74,7 @@ const Token = /*#__PURE__*/(0, _react.forwardRef)((props, forwardedRef) => {
|
|
83
74
|
isTokenInteractive: (0, _TokenBase.isTokenInteractive)(props)
|
84
75
|
}, !hasMultipleActionTargets ? interactiveTokenProps : {}, rest, {
|
85
76
|
ref: forwardedRef
|
86
|
-
}), LeadingVisual ? /*#__PURE__*/_react.default.createElement(LeadingVisualContainer, {
|
87
|
-
size: size
|
88
|
-
}, /*#__PURE__*/_react.default.createElement(LeadingVisual, null)) : null, /*#__PURE__*/_react.default.createElement(_TokenTextContainer.default, hasMultipleActionTargets ? interactiveTokenProps : {}, text), !hideRemoveButton && onRemove ? /*#__PURE__*/_react.default.createElement(_RemoveTokenButton.default, {
|
77
|
+
}), LeadingVisual ? /*#__PURE__*/_react.default.createElement(LeadingVisualContainer, null, /*#__PURE__*/_react.default.createElement(LeadingVisual, null)) : null, /*#__PURE__*/_react.default.createElement(_TokenTextContainer.default, hasMultipleActionTargets ? interactiveTokenProps : {}, text), !hideRemoveButton && onRemove ? /*#__PURE__*/_react.default.createElement(_RemoveTokenButton.default, {
|
89
78
|
borderOffset: tokenBorderWidthPx,
|
90
79
|
onClick: onRemoveClick,
|
91
80
|
size: size,
|
package/lib/Token/TokenBase.js
CHANGED
@@ -38,7 +38,7 @@ const variants = (0, _styledSystem.variant)({
|
|
38
38
|
variants: {
|
39
39
|
small: {
|
40
40
|
fontSize: 0,
|
41
|
-
|
41
|
+
gap: 1,
|
42
42
|
height: tokenSizes.small,
|
43
43
|
// without setting lineHeight to match height, the "x" appears vertically mis-aligned
|
44
44
|
lineHeight: tokenSizes.small,
|
@@ -51,7 +51,7 @@ const variants = (0, _styledSystem.variant)({
|
|
51
51
|
},
|
52
52
|
medium: {
|
53
53
|
fontSize: 0,
|
54
|
-
|
54
|
+
gap: 1,
|
55
55
|
height: tokenSizes.medium,
|
56
56
|
lineHeight: tokenSizes.medium,
|
57
57
|
paddingLeft: 2,
|
@@ -61,7 +61,7 @@ const variants = (0, _styledSystem.variant)({
|
|
61
61
|
},
|
62
62
|
large: {
|
63
63
|
fontSize: 0,
|
64
|
-
|
64
|
+
gap: 2,
|
65
65
|
height: tokenSizes.large,
|
66
66
|
lineHeight: tokenSizes.large,
|
67
67
|
paddingLeft: 2,
|
@@ -71,7 +71,7 @@ const variants = (0, _styledSystem.variant)({
|
|
71
71
|
},
|
72
72
|
extralarge: {
|
73
73
|
fontSize: 1,
|
74
|
-
|
74
|
+
gap: 2,
|
75
75
|
height: tokenSizes.extralarge,
|
76
76
|
lineHeight: tokenSizes.extralarge,
|
77
77
|
paddingLeft: 3,
|
@@ -50,7 +50,7 @@ const getTokenButtonIconSize = size => parseInt(_TokenBase.tokenSizes[size || _T
|
|
50
50
|
const StyledTokenButton = _styledComponents.default.span.withConfig({
|
51
51
|
displayName: "_RemoveTokenButton__StyledTokenButton",
|
52
52
|
componentId: "sc-14lvcw1-0"
|
53
|
-
})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:", ";align-self:baseline;border:0;border-radius:999px;&:hover,&:focus{background-color:", ";}&:active{background-color:", ";}", " ", ""], props => `translate(${props.borderOffset}px, -${props.borderOffset}px)`, (0, _constants.get)('colors.neutral.muted'), (0, _constants.get)('colors.neutral.subtle'), variants, _sx.default);
|
53
|
+
})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:", ";align-self:baseline;border:0;border-radius:999px;&:hover,&:focus{background-color:", ";background-color:", ";}&:active{background-color:", ";background-color:", ";}", " ", ""], props => `translate(${props.borderOffset}px, -${props.borderOffset}px)`, (0, _constants.get)('colors.neutral.muted'), (0, _constants.get)('colors.shade.muted'), (0, _constants.get)('colors.neutral.subtle'), (0, _constants.get)('colors.shade.default'), variants, _sx.default);
|
54
54
|
|
55
55
|
const RemoveTokenButton = ({
|
56
56
|
'aria-label': ariaLabel,
|
package/lib/theme-preval.js
CHANGED
@@ -406,6 +406,11 @@ module.exports = {
|
|
406
406
|
"muted": "hsla(210,18%,87%,1)",
|
407
407
|
"subtle": "rgba(27,31,36,0.15)"
|
408
408
|
},
|
409
|
+
"shade": {
|
410
|
+
"default": "rgba(208,215,222,0.48)",
|
411
|
+
"muted": "rgba(208,215,222,0.32)",
|
412
|
+
"subtle": "rgba(208,215,222,0.24)"
|
413
|
+
},
|
409
414
|
"neutral": {
|
410
415
|
"emphasisPlus": "#24292f",
|
411
416
|
"emphasis": "#6e7781",
|
@@ -889,6 +894,11 @@ module.exports = {
|
|
889
894
|
"muted": "hsla(210,18%,87%,1)",
|
890
895
|
"subtle": "rgba(27,31,36,0.15)"
|
891
896
|
},
|
897
|
+
"shade": {
|
898
|
+
"default": "rgba(208,215,222,0.48)",
|
899
|
+
"muted": "rgba(208,215,222,0.32)",
|
900
|
+
"subtle": "rgba(208,215,222,0.24)"
|
901
|
+
},
|
892
902
|
"neutral": {
|
893
903
|
"emphasisPlus": "#24292f",
|
894
904
|
"emphasis": "#6e7781",
|
@@ -1372,6 +1382,11 @@ module.exports = {
|
|
1372
1382
|
"muted": "#21262d",
|
1373
1383
|
"subtle": "rgba(240,246,252,0.1)"
|
1374
1384
|
},
|
1385
|
+
"shade": {
|
1386
|
+
"default": "rgba(177,186,196,0.2)",
|
1387
|
+
"muted": "rgba(177,186,196,0.12)",
|
1388
|
+
"subtle": "rgba(177,186,196,0.08)"
|
1389
|
+
},
|
1375
1390
|
"neutral": {
|
1376
1391
|
"emphasisPlus": "#6e7681",
|
1377
1392
|
"emphasis": "#6e7681",
|
@@ -1858,6 +1873,11 @@ module.exports = {
|
|
1858
1873
|
"muted": "#373e47",
|
1859
1874
|
"subtle": "rgba(205,217,229,0.1)"
|
1860
1875
|
},
|
1876
|
+
"shade": {
|
1877
|
+
"default": "rgba(144,157,171,0.2)",
|
1878
|
+
"muted": "rgba(144,157,171,0.12)",
|
1879
|
+
"subtle": "rgba(144,157,171,0.08)"
|
1880
|
+
},
|
1861
1881
|
"neutral": {
|
1862
1882
|
"emphasisPlus": "#636e7b",
|
1863
1883
|
"emphasis": "#636e7b",
|
@@ -2344,6 +2364,11 @@ module.exports = {
|
|
2344
2364
|
"muted": "#7a828e",
|
2345
2365
|
"subtle": "#7a828e"
|
2346
2366
|
},
|
2367
|
+
"shade": {
|
2368
|
+
"default": "rgba(217,222,227,0.2)",
|
2369
|
+
"muted": "rgba(217,222,227,0.12)",
|
2370
|
+
"subtle": "rgba(217,222,227,0.08)"
|
2371
|
+
},
|
2347
2372
|
"neutral": {
|
2348
2373
|
"emphasisPlus": "#ffffff",
|
2349
2374
|
"emphasis": "#9ea7b3",
|
@@ -2830,6 +2855,11 @@ module.exports = {
|
|
2830
2855
|
"muted": "#21262d",
|
2831
2856
|
"subtle": "rgba(240,246,252,0.1)"
|
2832
2857
|
},
|
2858
|
+
"shade": {
|
2859
|
+
"default": "rgba(177,186,196,0.2)",
|
2860
|
+
"muted": "rgba(177,186,196,0.12)",
|
2861
|
+
"subtle": "rgba(177,186,196,0.08)"
|
2862
|
+
},
|
2833
2863
|
"neutral": {
|
2834
2864
|
"emphasisPlus": "#6e7681",
|
2835
2865
|
"emphasis": "#6e7681",
|
package/lib/utils/testing.d.ts
CHANGED
@@ -451,6 +451,11 @@ export declare function render(component: React.ReactElement, theme?: {
|
|
451
451
|
muted: string;
|
452
452
|
subtle: string;
|
453
453
|
};
|
454
|
+
shade: {
|
455
|
+
default: string;
|
456
|
+
muted: string;
|
457
|
+
subtle: string;
|
458
|
+
};
|
454
459
|
shadow: {
|
455
460
|
small: string;
|
456
461
|
medium: string;
|
@@ -153,7 +153,15 @@ function TextInputWithTokensInnerComponent({
|
|
153
153
|
minWidth: minWidthProp,
|
154
154
|
maxWidth: maxWidthProp,
|
155
155
|
variant: variantProp,
|
156
|
-
|
156
|
+
ref: containerRef,
|
157
|
+
sx: {
|
158
|
+
alignItems: 'center',
|
159
|
+
flexWrap: preventTokenWrapping ? 'nowrap' : 'wrap',
|
160
|
+
gap: '0.25rem',
|
161
|
+
'> *': {
|
162
|
+
flexShrink: 0
|
163
|
+
},
|
164
|
+
...(block ? {
|
157
165
|
display: 'flex',
|
158
166
|
width: '100%'
|
159
167
|
} : {}),
|
@@ -166,21 +174,6 @@ function TextInputWithTokensInnerComponent({
|
|
166
174
|
} : {}),
|
167
175
|
...sxProp
|
168
176
|
}
|
169
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
170
|
-
ref: containerRef,
|
171
|
-
display: "flex",
|
172
|
-
sx: {
|
173
|
-
alignItems: 'center',
|
174
|
-
flexWrap: preventTokenWrapping ? 'nowrap' : 'wrap',
|
175
|
-
marginLeft: '-0.25rem',
|
176
|
-
marginBottom: '-0.25rem',
|
177
|
-
flexGrow: 1,
|
178
|
-
'> *': {
|
179
|
-
flexShrink: 0,
|
180
|
-
marginLeft: '0.25rem',
|
181
|
-
marginBottom: '0.25rem'
|
182
|
-
}
|
183
|
-
}
|
184
177
|
}, /*#__PURE__*/React.createElement(Box, {
|
185
178
|
sx: {
|
186
179
|
order: 1,
|
@@ -212,7 +205,7 @@ function TextInputWithTokensInnerComponent({
|
|
212
205
|
hideRemoveButton: hideTokenRemoveButtons,
|
213
206
|
size: size,
|
214
207
|
tabIndex: 0
|
215
|
-
}, tokenRest))) : null)
|
208
|
+
}, tokenRest))) : null);
|
216
209
|
}
|
217
210
|
|
218
211
|
TextInputWithTokensInnerComponent.displayName = "TextInputWithTokensInnerComponent";
|
@@ -110,10 +110,18 @@ const IssueLabelToken = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
110
110
|
size: size,
|
111
111
|
"aria-hidden": hasMultipleActionTargets ? 'true' : 'false',
|
112
112
|
isParentInteractive: isTokenInteractive(props),
|
113
|
-
sx:
|
114
|
-
|
115
|
-
|
116
|
-
|
113
|
+
sx: {
|
114
|
+
'&:hover, &:focus': {
|
115
|
+
backgroundColor: 'hsla(0, 0%, calc(var(--lightness-switch) * 100%), 0.1)'
|
116
|
+
},
|
117
|
+
'&:active': {
|
118
|
+
backgroundColor: 'hsla(0, 0%, calc(var(--lightness-switch) * 100%), 0.2)'
|
119
|
+
},
|
120
|
+
...(hasMultipleActionTargets ? {
|
121
|
+
position: 'relative',
|
122
|
+
zIndex: '1'
|
123
|
+
} : {})
|
124
|
+
}
|
117
125
|
}) : null);
|
118
126
|
});
|
119
127
|
IssueLabelToken.defaultProps = {
|
package/lib-esm/Token/Token.js
CHANGED
@@ -19,16 +19,7 @@ const DefaultTokenStyled = styled(TokenBase).withConfig({
|
|
19
19
|
const LeadingVisualContainer = styled('span').withConfig({
|
20
20
|
displayName: "Token__LeadingVisualContainer",
|
21
21
|
componentId: "sc-1dg52pw-1"
|
22
|
-
})(["flex-shrink:0;line-height:0;"
|
23
|
-
switch (props.size) {
|
24
|
-
case 'large':
|
25
|
-
case 'extralarge':
|
26
|
-
return css(["padding-right:", ";"], get('space.2'));
|
27
|
-
|
28
|
-
default:
|
29
|
-
return css(["padding-right:", ";"], get('space.1'));
|
30
|
-
}
|
31
|
-
});
|
22
|
+
})(["flex-shrink:0;line-height:0;"]);
|
32
23
|
const Token = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
33
24
|
const {
|
34
25
|
as,
|
@@ -63,9 +54,7 @@ const Token = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
63
54
|
isTokenInteractive: isTokenInteractive(props)
|
64
55
|
}, !hasMultipleActionTargets ? interactiveTokenProps : {}, rest, {
|
65
56
|
ref: forwardedRef
|
66
|
-
}), LeadingVisual ? /*#__PURE__*/React.createElement(LeadingVisualContainer, {
|
67
|
-
size: size
|
68
|
-
}, /*#__PURE__*/React.createElement(LeadingVisual, null)) : null, /*#__PURE__*/React.createElement(TokenTextContainer, hasMultipleActionTargets ? interactiveTokenProps : {}, text), !hideRemoveButton && onRemove ? /*#__PURE__*/React.createElement(RemoveTokenButton, {
|
57
|
+
}), LeadingVisual ? /*#__PURE__*/React.createElement(LeadingVisualContainer, null, /*#__PURE__*/React.createElement(LeadingVisual, null)) : null, /*#__PURE__*/React.createElement(TokenTextContainer, hasMultipleActionTargets ? interactiveTokenProps : {}, text), !hideRemoveButton && onRemove ? /*#__PURE__*/React.createElement(RemoveTokenButton, {
|
69
58
|
borderOffset: tokenBorderWidthPx,
|
70
59
|
onClick: onRemoveClick,
|
71
60
|
size: size,
|
@@ -20,7 +20,7 @@ const variants = variant({
|
|
20
20
|
variants: {
|
21
21
|
small: {
|
22
22
|
fontSize: 0,
|
23
|
-
|
23
|
+
gap: 1,
|
24
24
|
height: tokenSizes.small,
|
25
25
|
// without setting lineHeight to match height, the "x" appears vertically mis-aligned
|
26
26
|
lineHeight: tokenSizes.small,
|
@@ -33,7 +33,7 @@ const variants = variant({
|
|
33
33
|
},
|
34
34
|
medium: {
|
35
35
|
fontSize: 0,
|
36
|
-
|
36
|
+
gap: 1,
|
37
37
|
height: tokenSizes.medium,
|
38
38
|
lineHeight: tokenSizes.medium,
|
39
39
|
paddingLeft: 2,
|
@@ -43,7 +43,7 @@ const variants = variant({
|
|
43
43
|
},
|
44
44
|
large: {
|
45
45
|
fontSize: 0,
|
46
|
-
|
46
|
+
gap: 2,
|
47
47
|
height: tokenSizes.large,
|
48
48
|
lineHeight: tokenSizes.large,
|
49
49
|
paddingLeft: 2,
|
@@ -53,7 +53,7 @@ const variants = variant({
|
|
53
53
|
},
|
54
54
|
extralarge: {
|
55
55
|
fontSize: 1,
|
56
|
-
|
56
|
+
gap: 2,
|
57
57
|
height: tokenSizes.extralarge,
|
58
58
|
lineHeight: tokenSizes.extralarge,
|
59
59
|
paddingLeft: 3,
|
@@ -34,7 +34,7 @@ const getTokenButtonIconSize = size => parseInt(tokenSizes[size || defaultTokenS
|
|
34
34
|
const StyledTokenButton = styled.span.withConfig({
|
35
35
|
displayName: "_RemoveTokenButton__StyledTokenButton",
|
36
36
|
componentId: "sc-14lvcw1-0"
|
37
|
-
})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:", ";align-self:baseline;border:0;border-radius:999px;&:hover,&:focus{background-color:", ";}&:active{background-color:", ";}", " ", ""], props => `translate(${props.borderOffset}px, -${props.borderOffset}px)`, get('colors.neutral.muted'), get('colors.neutral.subtle'), variants, sx);
|
37
|
+
})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:", ";align-self:baseline;border:0;border-radius:999px;&:hover,&:focus{background-color:", ";background-color:", ";}&:active{background-color:", ";background-color:", ";}", " ", ""], props => `translate(${props.borderOffset}px, -${props.borderOffset}px)`, get('colors.neutral.muted'), get('colors.shade.muted'), get('colors.neutral.subtle'), get('colors.shade.default'), variants, sx);
|
38
38
|
|
39
39
|
const RemoveTokenButton = ({
|
40
40
|
'aria-label': ariaLabel,
|
package/lib-esm/theme-preval.js
CHANGED
@@ -406,6 +406,11 @@ module.exports = {
|
|
406
406
|
"muted": "hsla(210,18%,87%,1)",
|
407
407
|
"subtle": "rgba(27,31,36,0.15)"
|
408
408
|
},
|
409
|
+
"shade": {
|
410
|
+
"default": "rgba(208,215,222,0.48)",
|
411
|
+
"muted": "rgba(208,215,222,0.32)",
|
412
|
+
"subtle": "rgba(208,215,222,0.24)"
|
413
|
+
},
|
409
414
|
"neutral": {
|
410
415
|
"emphasisPlus": "#24292f",
|
411
416
|
"emphasis": "#6e7781",
|
@@ -889,6 +894,11 @@ module.exports = {
|
|
889
894
|
"muted": "hsla(210,18%,87%,1)",
|
890
895
|
"subtle": "rgba(27,31,36,0.15)"
|
891
896
|
},
|
897
|
+
"shade": {
|
898
|
+
"default": "rgba(208,215,222,0.48)",
|
899
|
+
"muted": "rgba(208,215,222,0.32)",
|
900
|
+
"subtle": "rgba(208,215,222,0.24)"
|
901
|
+
},
|
892
902
|
"neutral": {
|
893
903
|
"emphasisPlus": "#24292f",
|
894
904
|
"emphasis": "#6e7781",
|
@@ -1372,6 +1382,11 @@ module.exports = {
|
|
1372
1382
|
"muted": "#21262d",
|
1373
1383
|
"subtle": "rgba(240,246,252,0.1)"
|
1374
1384
|
},
|
1385
|
+
"shade": {
|
1386
|
+
"default": "rgba(177,186,196,0.2)",
|
1387
|
+
"muted": "rgba(177,186,196,0.12)",
|
1388
|
+
"subtle": "rgba(177,186,196,0.08)"
|
1389
|
+
},
|
1375
1390
|
"neutral": {
|
1376
1391
|
"emphasisPlus": "#6e7681",
|
1377
1392
|
"emphasis": "#6e7681",
|
@@ -1858,6 +1873,11 @@ module.exports = {
|
|
1858
1873
|
"muted": "#373e47",
|
1859
1874
|
"subtle": "rgba(205,217,229,0.1)"
|
1860
1875
|
},
|
1876
|
+
"shade": {
|
1877
|
+
"default": "rgba(144,157,171,0.2)",
|
1878
|
+
"muted": "rgba(144,157,171,0.12)",
|
1879
|
+
"subtle": "rgba(144,157,171,0.08)"
|
1880
|
+
},
|
1861
1881
|
"neutral": {
|
1862
1882
|
"emphasisPlus": "#636e7b",
|
1863
1883
|
"emphasis": "#636e7b",
|
@@ -2344,6 +2364,11 @@ module.exports = {
|
|
2344
2364
|
"muted": "#7a828e",
|
2345
2365
|
"subtle": "#7a828e"
|
2346
2366
|
},
|
2367
|
+
"shade": {
|
2368
|
+
"default": "rgba(217,222,227,0.2)",
|
2369
|
+
"muted": "rgba(217,222,227,0.12)",
|
2370
|
+
"subtle": "rgba(217,222,227,0.08)"
|
2371
|
+
},
|
2347
2372
|
"neutral": {
|
2348
2373
|
"emphasisPlus": "#ffffff",
|
2349
2374
|
"emphasis": "#9ea7b3",
|
@@ -2830,6 +2855,11 @@ module.exports = {
|
|
2830
2855
|
"muted": "#21262d",
|
2831
2856
|
"subtle": "rgba(240,246,252,0.1)"
|
2832
2857
|
},
|
2858
|
+
"shade": {
|
2859
|
+
"default": "rgba(177,186,196,0.2)",
|
2860
|
+
"muted": "rgba(177,186,196,0.12)",
|
2861
|
+
"subtle": "rgba(177,186,196,0.08)"
|
2862
|
+
},
|
2833
2863
|
"neutral": {
|
2834
2864
|
"emphasisPlus": "#6e7681",
|
2835
2865
|
"emphasis": "#6e7681",
|
@@ -451,6 +451,11 @@ export declare function render(component: React.ReactElement, theme?: {
|
|
451
451
|
muted: string;
|
452
452
|
subtle: string;
|
453
453
|
};
|
454
|
+
shade: {
|
455
|
+
default: string;
|
456
|
+
muted: string;
|
457
|
+
subtle: string;
|
458
|
+
};
|
454
459
|
shadow: {
|
455
460
|
small: string;
|
456
461
|
medium: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/components",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-2021921142939",
|
4
4
|
"description": "Primer react components",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"module": "lib-esm/index.js",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"license": "MIT",
|
45
45
|
"dependencies": {
|
46
46
|
"@primer/octicons-react": "^13.0.0",
|
47
|
-
"@primer/primitives": "
|
47
|
+
"@primer/primitives": "0.0.0-2021921131312",
|
48
48
|
"@radix-ui/react-polymorphic": "0.0.14",
|
49
49
|
"@react-aria/ssr": "3.1.0",
|
50
50
|
"@styled-system/css": "5.1.5",
|