@primer/components 0.0.0-202192701132 → 0.0.0-202192723547
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 -4
- package/dist/browser.esm.js +436 -439
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +444 -447
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList/Item.d.ts +6 -0
- package/lib/ActionList/Item.js +5 -1
- package/lib/Autocomplete/Autocomplete.d.ts +10 -10
- package/lib/Autocomplete/AutocompleteInput.d.ts +10 -10
- package/lib/Button/Button.d.ts +11 -11
- package/lib/Button/ButtonBase.d.ts +1 -1
- package/lib/Button/ButtonClose.d.ts +30 -30
- package/lib/Button/ButtonDanger.d.ts +11 -11
- package/lib/Button/ButtonInvisible.d.ts +11 -11
- package/lib/Button/ButtonOutline.d.ts +11 -11
- package/lib/Button/ButtonPrimary.d.ts +11 -11
- package/lib/Button/ButtonStyles.js +1 -1
- package/lib/CircleBadge.d.ts +2 -2
- package/lib/CircleOcticon.d.ts +34 -34
- package/lib/Dialog/Dialog.d.ts +5 -5
- package/lib/Dialog/Dialog.js +13 -22
- package/lib/Dialog.d.ts +36 -36
- package/lib/Dropdown.d.ts +114 -114
- package/lib/DropdownMenu/DropdownButton.d.ts +31 -31
- package/lib/FilterList.d.ts +27 -27
- package/lib/Label.d.ts +1 -1
- package/lib/NewButton/button.d.ts +24 -0
- package/lib/NewButton/button.js +292 -0
- package/lib/NewButton/counter.d.ts +6 -0
- package/lib/NewButton/counter.js +33 -0
- package/lib/NewButton/index.d.ts +4 -0
- package/lib/NewButton/index.js +21 -0
- package/lib/Position.d.ts +4 -4
- package/lib/ProgressBar.d.ts +1 -1
- package/lib/SelectMenu/SelectMenu.d.ts +154 -154
- package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib/TextInputWithTokens.d.ts +10 -10
- package/lib/Timeline.d.ts +34 -34
- package/lib/Token/AvatarToken.d.ts +1 -1
- package/lib/Token/IssueLabelToken.d.ts +1 -1
- package/lib/Token/Token.d.ts +1 -1
- package/lib/_TextInputWrapper.d.ts +1 -1
- package/lib/constants.js +3 -1
- package/lib/sx.d.ts +2 -8
- package/lib/theme.d.ts +0 -4
- package/lib/theme.js +1 -96
- package/lib/utils/testing.d.ts +1 -1
- package/lib-esm/ActionList/Item.d.ts +6 -0
- package/lib-esm/ActionList/Item.js +5 -1
- package/lib-esm/Autocomplete/Autocomplete.d.ts +10 -10
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +10 -10
- package/lib-esm/Button/Button.d.ts +11 -11
- package/lib-esm/Button/ButtonBase.d.ts +1 -1
- package/lib-esm/Button/ButtonClose.d.ts +30 -30
- package/lib-esm/Button/ButtonDanger.d.ts +11 -11
- package/lib-esm/Button/ButtonInvisible.d.ts +11 -11
- package/lib-esm/Button/ButtonOutline.d.ts +11 -11
- package/lib-esm/Button/ButtonPrimary.d.ts +11 -11
- package/lib-esm/Button/ButtonStyles.js +1 -1
- package/lib-esm/CircleBadge.d.ts +2 -2
- package/lib-esm/CircleOcticon.d.ts +34 -34
- package/lib-esm/Dialog/Dialog.d.ts +5 -5
- package/lib-esm/Dialog/Dialog.js +13 -21
- package/lib-esm/Dialog.d.ts +36 -36
- package/lib-esm/Dropdown.d.ts +114 -114
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +31 -31
- package/lib-esm/FilterList.d.ts +27 -27
- package/lib-esm/Label.d.ts +1 -1
- package/lib-esm/NewButton/button.d.ts +24 -0
- package/lib-esm/NewButton/button.js +268 -0
- package/lib-esm/NewButton/counter.d.ts +6 -0
- package/lib-esm/NewButton/counter.js +21 -0
- package/lib-esm/NewButton/index.d.ts +4 -0
- package/lib-esm/NewButton/index.js +3 -0
- package/lib-esm/Position.d.ts +4 -4
- package/lib-esm/ProgressBar.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenu.d.ts +154 -154
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib-esm/TextInputWithTokens.d.ts +10 -10
- package/lib-esm/Timeline.d.ts +34 -34
- package/lib-esm/Token/AvatarToken.d.ts +1 -1
- package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
- package/lib-esm/Token/Token.d.ts +1 -1
- package/lib-esm/_TextInputWrapper.d.ts +1 -1
- package/lib-esm/constants.js +3 -1
- package/lib-esm/sx.d.ts +2 -8
- package/lib-esm/theme.d.ts +0 -4
- package/lib-esm/theme.js +1 -95
- package/lib-esm/utils/testing.d.ts +1 -1
- package/package.json +1 -1
package/lib-esm/theme.js
CHANGED
@@ -1,96 +1,2 @@
|
|
1
1
|
import { theme } from './theme-preval';
|
2
|
-
export default theme;
|
3
|
-
// theme as Theme
|
4
|
-
// type ThemeColors = {
|
5
|
-
// fg: {
|
6
|
-
// default: 'XXXXXXXXXXX',
|
7
|
-
// muted: 'XXXXXXXXXXX',
|
8
|
-
// subtle: 'XXXXXXXXXXX',
|
9
|
-
// onEmphasis: 'XXXXXXXXXXX'
|
10
|
-
// },
|
11
|
-
// canvas: {
|
12
|
-
// default: 'XXXXXXXXXXX',
|
13
|
-
// overlay: 'XXXXXXXXXXX',
|
14
|
-
// inset: 'XXXXXXXXXXX',
|
15
|
-
// subtle: 'XXXXXXXXXXX'
|
16
|
-
// },
|
17
|
-
// border: {
|
18
|
-
// default: 'XXXXXXXXXXX',
|
19
|
-
// muted: 'XXXXXXXXXXX',
|
20
|
-
// subtle: 'XXXXXXXXXXX'
|
21
|
-
// },
|
22
|
-
// shadow: {
|
23
|
-
// small: 'XXXXXXXXXXX',
|
24
|
-
// medium: 'XXXXXXXXXXX',
|
25
|
-
// large: 'XXXXXXXXXXX',
|
26
|
-
// extraLarge: 'XXXXXXXXXXX'
|
27
|
-
// },
|
28
|
-
// // Roles
|
29
|
-
// neutral: {
|
30
|
-
// emphasisPlus: string,
|
31
|
-
// emphasis: string,
|
32
|
-
// muted: string,
|
33
|
-
// subtle: string
|
34
|
-
// },
|
35
|
-
// accent: {
|
36
|
-
// fg: string,
|
37
|
-
// emphasis: string,
|
38
|
-
// muted: string,
|
39
|
-
// subtle: string
|
40
|
-
// },
|
41
|
-
// success: {
|
42
|
-
// fg: string,
|
43
|
-
// emphasis: string,
|
44
|
-
// muted: string,
|
45
|
-
// subtle: string
|
46
|
-
// },
|
47
|
-
// attention: {
|
48
|
-
// fg: string,
|
49
|
-
// emphasis: string,
|
50
|
-
// muted: string,
|
51
|
-
// subtle: string
|
52
|
-
// },
|
53
|
-
// severe: {
|
54
|
-
// fg: string,
|
55
|
-
// emphasis: string,
|
56
|
-
// muted: string,
|
57
|
-
// subtle: string
|
58
|
-
// },
|
59
|
-
// danger: {
|
60
|
-
// fg: string,
|
61
|
-
// emphasis: string,
|
62
|
-
// muted: string,
|
63
|
-
// subtle: string
|
64
|
-
// },
|
65
|
-
// done: {
|
66
|
-
// fg: string,
|
67
|
-
// emphasis: string,
|
68
|
-
// muted: string,
|
69
|
-
// subtle: string
|
70
|
-
// },
|
71
|
-
// sponsors: {
|
72
|
-
// fg: string,
|
73
|
-
// emphasis: string,
|
74
|
-
// muted: string,
|
75
|
-
// subtle: string
|
76
|
-
// },
|
77
|
-
// // Only meant for Primer components
|
78
|
-
// primer: {
|
79
|
-
// fg: {
|
80
|
-
// disabled: string
|
81
|
-
// },
|
82
|
-
// canvas: {
|
83
|
-
// backdrop: string,
|
84
|
-
// sticky: string
|
85
|
-
// },
|
86
|
-
// border: {
|
87
|
-
// active: string,
|
88
|
-
// contrast: string
|
89
|
-
// },
|
90
|
-
// shadow: {
|
91
|
-
// highlight: string,
|
92
|
-
// inset: string,
|
93
|
-
// focus: string
|
94
|
-
// }
|
95
|
-
// }
|
96
|
-
// }
|
2
|
+
export default theme;
|
@@ -53,7 +53,7 @@ export declare function render(component: React.ReactElement, theme?: {
|
|
53
53
|
xlarge: string;
|
54
54
|
};
|
55
55
|
space: string[];
|
56
|
-
colorSchemes: Record<"
|
56
|
+
colorSchemes: Record<"dark" | "light" | "light_protanopia" | "dark_dimmed" | "dark_high_contrast" | "dark_protanopia", Record<"colors" | "shadows", Partial<{
|
57
57
|
canvasDefaultTransparent: string;
|
58
58
|
marketingIcon: {
|
59
59
|
primary: string;
|