@primer/primitives 6.0.0 → 7.0.0-next.0-rc.41d503c
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 +14 -0
- package/dist/js/colors/dark.d.ts +19 -60
- package/dist/js/colors/dark.js +19 -60
- package/dist/js/colors/dark_colorblind.d.ts +19 -60
- package/dist/js/colors/dark_colorblind.js +19 -60
- package/dist/js/colors/dark_dimmed.d.ts +19 -60
- package/dist/js/colors/dark_dimmed.js +19 -60
- package/dist/js/colors/dark_high_contrast.d.ts +19 -60
- package/dist/js/colors/dark_high_contrast.js +19 -60
- package/dist/js/colors/index.d.ts +114 -360
- package/dist/js/colors/light.d.ts +19 -60
- package/dist/js/colors/light.js +19 -60
- package/dist/js/colors/light_colorblind.d.ts +19 -60
- package/dist/js/colors/light_colorblind.js +19 -60
- package/dist/js/index.d.ts +114 -360
- package/dist/json/colors/dark.json +19 -60
- package/dist/json/colors/dark_colorblind.json +19 -60
- package/dist/json/colors/dark_dimmed.json +19 -60
- package/dist/json/colors/dark_high_contrast.json +19 -60
- package/dist/json/colors/light.json +19 -60
- package/dist/json/colors/light_colorblind.json +19 -60
- package/dist/scss/colors/_dark.scss +12 -31
- package/dist/scss/colors/_dark_colorblind.scss +12 -31
- package/dist/scss/colors/_dark_dimmed.scss +12 -31
- package/dist/scss/colors/_dark_high_contrast.scss +12 -31
- package/dist/scss/colors/_light.scss +12 -31
- package/dist/scss/colors/_light_colorblind.scss +12 -31
- package/dist/ts/colors/dark.ts +19 -60
- package/dist/ts/colors/dark_colorblind.ts +19 -60
- package/dist/ts/colors/dark_dimmed.ts +19 -60
- package/dist/ts/colors/dark_high_contrast.ts +19 -60
- package/dist/ts/colors/light.ts +19 -60
- package/dist/ts/colors/light_colorblind.ts +19 -60
- package/package.json +4 -2
|
@@ -176,67 +176,13 @@ declare const _default: {
|
|
|
176
176
|
gradientOut: string;
|
|
177
177
|
};
|
|
178
178
|
mktg: {
|
|
179
|
-
success: string;
|
|
180
|
-
info: string;
|
|
181
|
-
bgShadeGradient: {
|
|
182
|
-
top: string;
|
|
183
|
-
bottom: string;
|
|
184
|
-
};
|
|
185
179
|
btn: {
|
|
186
|
-
bg:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
bottom: string;
|
|
193
|
-
};
|
|
194
|
-
text: string;
|
|
195
|
-
primary: {
|
|
196
|
-
bg: {
|
|
197
|
-
top: string;
|
|
198
|
-
bottom: string;
|
|
199
|
-
};
|
|
200
|
-
bgOverlay: {
|
|
201
|
-
top: string;
|
|
202
|
-
bottom: string;
|
|
203
|
-
};
|
|
204
|
-
text: string;
|
|
205
|
-
};
|
|
206
|
-
enterprise: {
|
|
207
|
-
bg: {
|
|
208
|
-
top: string;
|
|
209
|
-
bottom: string;
|
|
210
|
-
};
|
|
211
|
-
bgOverlay: {
|
|
212
|
-
top: string;
|
|
213
|
-
bottom: string;
|
|
214
|
-
};
|
|
215
|
-
text: string;
|
|
216
|
-
};
|
|
217
|
-
outline: {
|
|
218
|
-
text: string;
|
|
219
|
-
border: string;
|
|
220
|
-
hover: {
|
|
221
|
-
text: string;
|
|
222
|
-
border: string;
|
|
223
|
-
};
|
|
224
|
-
focus: {
|
|
225
|
-
border: string;
|
|
226
|
-
borderInset: string;
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
dark: {
|
|
230
|
-
text: string;
|
|
231
|
-
border: string;
|
|
232
|
-
hover: {
|
|
233
|
-
text: string;
|
|
234
|
-
border: string;
|
|
235
|
-
};
|
|
236
|
-
focus: {
|
|
237
|
-
border: string;
|
|
238
|
-
borderInset: string;
|
|
239
|
-
};
|
|
180
|
+
bg: string;
|
|
181
|
+
shadow: {
|
|
182
|
+
outline: string;
|
|
183
|
+
focus: string;
|
|
184
|
+
hover: string;
|
|
185
|
+
hoverMuted: string;
|
|
240
186
|
};
|
|
241
187
|
};
|
|
242
188
|
};
|
|
@@ -379,6 +325,19 @@ declare const _default: {
|
|
|
379
325
|
icon: string;
|
|
380
326
|
borderHover: string;
|
|
381
327
|
};
|
|
328
|
+
actionListItem: {
|
|
329
|
+
inlineDivider: string;
|
|
330
|
+
default: {
|
|
331
|
+
hoverBg: string;
|
|
332
|
+
activeBg: string;
|
|
333
|
+
selectedBg: string;
|
|
334
|
+
};
|
|
335
|
+
danger: {
|
|
336
|
+
hoverBg: string;
|
|
337
|
+
activeBg: string;
|
|
338
|
+
hoverText: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
382
341
|
fg: {
|
|
383
342
|
default: string;
|
|
384
343
|
muted: string;
|
package/dist/js/colors/light.js
CHANGED
|
@@ -178,67 +178,13 @@ exports.default = {
|
|
|
178
178
|
"gradientOut": "rgba(255,255,255,0)"
|
|
179
179
|
},
|
|
180
180
|
"mktg": {
|
|
181
|
-
"success": "rgba(36,146,67,1)",
|
|
182
|
-
"info": "rgba(19,119,234,1)",
|
|
183
|
-
"bgShadeGradient": {
|
|
184
|
-
"top": "rgba(27,31,36,0.065)",
|
|
185
|
-
"bottom": "rgba(27,31,36,0)"
|
|
186
|
-
},
|
|
187
181
|
"btn": {
|
|
188
|
-
"bg":
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
"
|
|
194
|
-
"bottom": "#3355e0"
|
|
195
|
-
},
|
|
196
|
-
"text": "#ffffff",
|
|
197
|
-
"primary": {
|
|
198
|
-
"bg": {
|
|
199
|
-
"top": "hsla(137,56%,46%,1)",
|
|
200
|
-
"bottom": "#2ea44f"
|
|
201
|
-
},
|
|
202
|
-
"bgOverlay": {
|
|
203
|
-
"top": "hsla(134,60%,38%,1)",
|
|
204
|
-
"bottom": "#22863a"
|
|
205
|
-
},
|
|
206
|
-
"text": "#ffffff"
|
|
207
|
-
},
|
|
208
|
-
"enterprise": {
|
|
209
|
-
"bg": {
|
|
210
|
-
"top": "hsla(249,100%,72%,1)",
|
|
211
|
-
"bottom": "#6f57ff"
|
|
212
|
-
},
|
|
213
|
-
"bgOverlay": {
|
|
214
|
-
"top": "hsla(248,65%,63%,1)",
|
|
215
|
-
"bottom": "#614eda"
|
|
216
|
-
},
|
|
217
|
-
"text": "#ffffff"
|
|
218
|
-
},
|
|
219
|
-
"outline": {
|
|
220
|
-
"text": "#4969ed",
|
|
221
|
-
"border": "rgba(73,105,237,0.3)",
|
|
222
|
-
"hover": {
|
|
223
|
-
"text": "#3355e0",
|
|
224
|
-
"border": "rgba(51,85,224,0.5)"
|
|
225
|
-
},
|
|
226
|
-
"focus": {
|
|
227
|
-
"border": "#4969ed",
|
|
228
|
-
"borderInset": "rgba(73,105,237,0.5)"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
"dark": {
|
|
232
|
-
"text": "#ffffff",
|
|
233
|
-
"border": "rgba(255,255,255,0.3)",
|
|
234
|
-
"hover": {
|
|
235
|
-
"text": "#ffffff",
|
|
236
|
-
"border": "rgba(255,255,255,0.5)"
|
|
237
|
-
},
|
|
238
|
-
"focus": {
|
|
239
|
-
"border": "#ffffff",
|
|
240
|
-
"borderInset": "rgba(255,255,255,0.5)"
|
|
241
|
-
}
|
|
182
|
+
"bg": "#1b1f23",
|
|
183
|
+
"shadow": {
|
|
184
|
+
"outline": "rgb(0 0 0 / 15%) 0 0 0 1px inset",
|
|
185
|
+
"focus": "rgb(0 0 0 / 15%) 0 0 0 4px",
|
|
186
|
+
"hover": "0 3px 2px rgba(0, 0, 0, 0.07), 0 7px 5px rgba(0, 0, 0, 0.04), 0 12px 10px rgba(0, 0, 0, 0.03), 0 22px 18px rgba(0, 0, 0, 0.03), 0 42px 33px rgba(0, 0, 0, 0.02), 0 100px 80px rgba(0, 0, 0, 0.02)",
|
|
187
|
+
"hoverMuted": "rgb(0 0 0 / 70%) 0 0 0 2px inset"
|
|
242
188
|
}
|
|
243
189
|
}
|
|
244
190
|
},
|
|
@@ -381,6 +327,19 @@ exports.default = {
|
|
|
381
327
|
"icon": "#6e7781",
|
|
382
328
|
"borderHover": "rgba(175,184,193,0.2)"
|
|
383
329
|
},
|
|
330
|
+
"actionListItem": {
|
|
331
|
+
"inlineDivider": "rgba(208,215,222,0.48)",
|
|
332
|
+
"default": {
|
|
333
|
+
"hoverBg": "rgba(208,215,222,0.32)",
|
|
334
|
+
"activeBg": "rgba(208,215,222,0.48)",
|
|
335
|
+
"selectedBg": "rgba(208,215,222,0.24)"
|
|
336
|
+
},
|
|
337
|
+
"danger": {
|
|
338
|
+
"hoverBg": "rgba(255,235,233,0.64)",
|
|
339
|
+
"activeBg": "#FFEBE9",
|
|
340
|
+
"hoverText": "#cf222e"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
384
343
|
"fg": {
|
|
385
344
|
"default": "#24292f",
|
|
386
345
|
"muted": "#57606a",
|
|
@@ -176,67 +176,13 @@ declare const _default: {
|
|
|
176
176
|
gradientOut: string;
|
|
177
177
|
};
|
|
178
178
|
mktg: {
|
|
179
|
-
success: string;
|
|
180
|
-
info: string;
|
|
181
|
-
bgShadeGradient: {
|
|
182
|
-
top: string;
|
|
183
|
-
bottom: string;
|
|
184
|
-
};
|
|
185
179
|
btn: {
|
|
186
|
-
bg:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
bottom: string;
|
|
193
|
-
};
|
|
194
|
-
text: string;
|
|
195
|
-
primary: {
|
|
196
|
-
bg: {
|
|
197
|
-
top: string;
|
|
198
|
-
bottom: string;
|
|
199
|
-
};
|
|
200
|
-
bgOverlay: {
|
|
201
|
-
top: string;
|
|
202
|
-
bottom: string;
|
|
203
|
-
};
|
|
204
|
-
text: string;
|
|
205
|
-
};
|
|
206
|
-
enterprise: {
|
|
207
|
-
bg: {
|
|
208
|
-
top: string;
|
|
209
|
-
bottom: string;
|
|
210
|
-
};
|
|
211
|
-
bgOverlay: {
|
|
212
|
-
top: string;
|
|
213
|
-
bottom: string;
|
|
214
|
-
};
|
|
215
|
-
text: string;
|
|
216
|
-
};
|
|
217
|
-
outline: {
|
|
218
|
-
text: string;
|
|
219
|
-
border: string;
|
|
220
|
-
hover: {
|
|
221
|
-
text: string;
|
|
222
|
-
border: string;
|
|
223
|
-
};
|
|
224
|
-
focus: {
|
|
225
|
-
border: string;
|
|
226
|
-
borderInset: string;
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
dark: {
|
|
230
|
-
text: string;
|
|
231
|
-
border: string;
|
|
232
|
-
hover: {
|
|
233
|
-
text: string;
|
|
234
|
-
border: string;
|
|
235
|
-
};
|
|
236
|
-
focus: {
|
|
237
|
-
border: string;
|
|
238
|
-
borderInset: string;
|
|
239
|
-
};
|
|
180
|
+
bg: string;
|
|
181
|
+
shadow: {
|
|
182
|
+
outline: string;
|
|
183
|
+
focus: string;
|
|
184
|
+
hover: string;
|
|
185
|
+
hoverMuted: string;
|
|
240
186
|
};
|
|
241
187
|
};
|
|
242
188
|
};
|
|
@@ -379,6 +325,19 @@ declare const _default: {
|
|
|
379
325
|
icon: string;
|
|
380
326
|
borderHover: string;
|
|
381
327
|
};
|
|
328
|
+
actionListItem: {
|
|
329
|
+
inlineDivider: string;
|
|
330
|
+
default: {
|
|
331
|
+
hoverBg: string;
|
|
332
|
+
activeBg: string;
|
|
333
|
+
selectedBg: string;
|
|
334
|
+
};
|
|
335
|
+
danger: {
|
|
336
|
+
hoverBg: string;
|
|
337
|
+
activeBg: string;
|
|
338
|
+
hoverText: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
382
341
|
fg: {
|
|
383
342
|
default: string;
|
|
384
343
|
muted: string;
|
|
@@ -178,67 +178,13 @@ exports.default = {
|
|
|
178
178
|
"gradientOut": "rgba(255,255,255,0)"
|
|
179
179
|
},
|
|
180
180
|
"mktg": {
|
|
181
|
-
"success": "rgba(3,119,234,1)",
|
|
182
|
-
"info": "rgba(19,119,234,1)",
|
|
183
|
-
"bgShadeGradient": {
|
|
184
|
-
"top": "rgba(27,31,36,0.065)",
|
|
185
|
-
"bottom": "rgba(27,31,36,0)"
|
|
186
|
-
},
|
|
187
181
|
"btn": {
|
|
188
|
-
"bg":
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
"
|
|
194
|
-
"bottom": "#3355e0"
|
|
195
|
-
},
|
|
196
|
-
"text": "#ffffff",
|
|
197
|
-
"primary": {
|
|
198
|
-
"bg": {
|
|
199
|
-
"top": "hsla(137,56%,46%,1)",
|
|
200
|
-
"bottom": "#2ea44f"
|
|
201
|
-
},
|
|
202
|
-
"bgOverlay": {
|
|
203
|
-
"top": "hsla(134,60%,38%,1)",
|
|
204
|
-
"bottom": "#22863a"
|
|
205
|
-
},
|
|
206
|
-
"text": "#ffffff"
|
|
207
|
-
},
|
|
208
|
-
"enterprise": {
|
|
209
|
-
"bg": {
|
|
210
|
-
"top": "hsla(249,100%,72%,1)",
|
|
211
|
-
"bottom": "#6f57ff"
|
|
212
|
-
},
|
|
213
|
-
"bgOverlay": {
|
|
214
|
-
"top": "hsla(248,65%,63%,1)",
|
|
215
|
-
"bottom": "#614eda"
|
|
216
|
-
},
|
|
217
|
-
"text": "#ffffff"
|
|
218
|
-
},
|
|
219
|
-
"outline": {
|
|
220
|
-
"text": "#4969ed",
|
|
221
|
-
"border": "rgba(73,105,237,0.3)",
|
|
222
|
-
"hover": {
|
|
223
|
-
"text": "#3355e0",
|
|
224
|
-
"border": "rgba(51,85,224,0.5)"
|
|
225
|
-
},
|
|
226
|
-
"focus": {
|
|
227
|
-
"border": "#4969ed",
|
|
228
|
-
"borderInset": "rgba(73,105,237,0.5)"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
"dark": {
|
|
232
|
-
"text": "#ffffff",
|
|
233
|
-
"border": "rgba(255,255,255,0.3)",
|
|
234
|
-
"hover": {
|
|
235
|
-
"text": "#ffffff",
|
|
236
|
-
"border": "rgba(255,255,255,0.5)"
|
|
237
|
-
},
|
|
238
|
-
"focus": {
|
|
239
|
-
"border": "#ffffff",
|
|
240
|
-
"borderInset": "rgba(255,255,255,0.5)"
|
|
241
|
-
}
|
|
182
|
+
"bg": "#1b1f23",
|
|
183
|
+
"shadow": {
|
|
184
|
+
"outline": "rgb(0 0 0 / 15%) 0 0 0 1px inset",
|
|
185
|
+
"focus": "rgb(0 0 0 / 15%) 0 0 0 4px",
|
|
186
|
+
"hover": "0 3px 2px rgba(0, 0, 0, 0.07), 0 7px 5px rgba(0, 0, 0, 0.04), 0 12px 10px rgba(0, 0, 0, 0.03), 0 22px 18px rgba(0, 0, 0, 0.03), 0 42px 33px rgba(0, 0, 0, 0.02), 0 100px 80px rgba(0, 0, 0, 0.02)",
|
|
187
|
+
"hoverMuted": "rgb(0 0 0 / 70%) 0 0 0 2px inset"
|
|
242
188
|
}
|
|
243
189
|
}
|
|
244
190
|
},
|
|
@@ -381,6 +327,19 @@ exports.default = {
|
|
|
381
327
|
"icon": "#6e7781",
|
|
382
328
|
"borderHover": "rgba(175,184,193,0.2)"
|
|
383
329
|
},
|
|
330
|
+
"actionListItem": {
|
|
331
|
+
"inlineDivider": "rgba(208,215,222,0.48)",
|
|
332
|
+
"default": {
|
|
333
|
+
"hoverBg": "rgba(208,215,222,0.32)",
|
|
334
|
+
"activeBg": "rgba(208,215,222,0.48)",
|
|
335
|
+
"selectedBg": "rgba(208,215,222,0.24)"
|
|
336
|
+
},
|
|
337
|
+
"danger": {
|
|
338
|
+
"hoverBg": "rgba(254,254,72,0.64)",
|
|
339
|
+
"activeBg": "#fefe48",
|
|
340
|
+
"hoverText": "#ac5e00"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
384
343
|
"fg": {
|
|
385
344
|
"default": "#24292f",
|
|
386
345
|
"muted": "#57606a",
|