@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.
Files changed (92) hide show
  1. package/CHANGELOG.md +14 -4
  2. package/dist/browser.esm.js +436 -439
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +444 -447
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Item.d.ts +6 -0
  7. package/lib/ActionList/Item.js +5 -1
  8. package/lib/Autocomplete/Autocomplete.d.ts +10 -10
  9. package/lib/Autocomplete/AutocompleteInput.d.ts +10 -10
  10. package/lib/Button/Button.d.ts +11 -11
  11. package/lib/Button/ButtonBase.d.ts +1 -1
  12. package/lib/Button/ButtonClose.d.ts +30 -30
  13. package/lib/Button/ButtonDanger.d.ts +11 -11
  14. package/lib/Button/ButtonInvisible.d.ts +11 -11
  15. package/lib/Button/ButtonOutline.d.ts +11 -11
  16. package/lib/Button/ButtonPrimary.d.ts +11 -11
  17. package/lib/Button/ButtonStyles.js +1 -1
  18. package/lib/CircleBadge.d.ts +2 -2
  19. package/lib/CircleOcticon.d.ts +34 -34
  20. package/lib/Dialog/Dialog.d.ts +5 -5
  21. package/lib/Dialog/Dialog.js +13 -22
  22. package/lib/Dialog.d.ts +36 -36
  23. package/lib/Dropdown.d.ts +114 -114
  24. package/lib/DropdownMenu/DropdownButton.d.ts +31 -31
  25. package/lib/FilterList.d.ts +27 -27
  26. package/lib/Label.d.ts +1 -1
  27. package/lib/NewButton/button.d.ts +24 -0
  28. package/lib/NewButton/button.js +292 -0
  29. package/lib/NewButton/counter.d.ts +6 -0
  30. package/lib/NewButton/counter.js +33 -0
  31. package/lib/NewButton/index.d.ts +4 -0
  32. package/lib/NewButton/index.js +21 -0
  33. package/lib/Position.d.ts +4 -4
  34. package/lib/ProgressBar.d.ts +1 -1
  35. package/lib/SelectMenu/SelectMenu.d.ts +154 -154
  36. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  37. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  38. package/lib/TextInputWithTokens.d.ts +10 -10
  39. package/lib/Timeline.d.ts +34 -34
  40. package/lib/Token/AvatarToken.d.ts +1 -1
  41. package/lib/Token/IssueLabelToken.d.ts +1 -1
  42. package/lib/Token/Token.d.ts +1 -1
  43. package/lib/_TextInputWrapper.d.ts +1 -1
  44. package/lib/constants.js +3 -1
  45. package/lib/sx.d.ts +2 -8
  46. package/lib/theme.d.ts +0 -4
  47. package/lib/theme.js +1 -96
  48. package/lib/utils/testing.d.ts +1 -1
  49. package/lib-esm/ActionList/Item.d.ts +6 -0
  50. package/lib-esm/ActionList/Item.js +5 -1
  51. package/lib-esm/Autocomplete/Autocomplete.d.ts +10 -10
  52. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +10 -10
  53. package/lib-esm/Button/Button.d.ts +11 -11
  54. package/lib-esm/Button/ButtonBase.d.ts +1 -1
  55. package/lib-esm/Button/ButtonClose.d.ts +30 -30
  56. package/lib-esm/Button/ButtonDanger.d.ts +11 -11
  57. package/lib-esm/Button/ButtonInvisible.d.ts +11 -11
  58. package/lib-esm/Button/ButtonOutline.d.ts +11 -11
  59. package/lib-esm/Button/ButtonPrimary.d.ts +11 -11
  60. package/lib-esm/Button/ButtonStyles.js +1 -1
  61. package/lib-esm/CircleBadge.d.ts +2 -2
  62. package/lib-esm/CircleOcticon.d.ts +34 -34
  63. package/lib-esm/Dialog/Dialog.d.ts +5 -5
  64. package/lib-esm/Dialog/Dialog.js +13 -21
  65. package/lib-esm/Dialog.d.ts +36 -36
  66. package/lib-esm/Dropdown.d.ts +114 -114
  67. package/lib-esm/DropdownMenu/DropdownButton.d.ts +31 -31
  68. package/lib-esm/FilterList.d.ts +27 -27
  69. package/lib-esm/Label.d.ts +1 -1
  70. package/lib-esm/NewButton/button.d.ts +24 -0
  71. package/lib-esm/NewButton/button.js +268 -0
  72. package/lib-esm/NewButton/counter.d.ts +6 -0
  73. package/lib-esm/NewButton/counter.js +21 -0
  74. package/lib-esm/NewButton/index.d.ts +4 -0
  75. package/lib-esm/NewButton/index.js +3 -0
  76. package/lib-esm/Position.d.ts +4 -4
  77. package/lib-esm/ProgressBar.d.ts +1 -1
  78. package/lib-esm/SelectMenu/SelectMenu.d.ts +154 -154
  79. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  80. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  81. package/lib-esm/TextInputWithTokens.d.ts +10 -10
  82. package/lib-esm/Timeline.d.ts +34 -34
  83. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  84. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  85. package/lib-esm/Token/Token.d.ts +1 -1
  86. package/lib-esm/_TextInputWrapper.d.ts +1 -1
  87. package/lib-esm/constants.js +3 -1
  88. package/lib-esm/sx.d.ts +2 -8
  89. package/lib-esm/theme.d.ts +0 -4
  90. package/lib-esm/theme.js +1 -95
  91. package/lib-esm/utils/testing.d.ts +1 -1
  92. 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; // typecheck our theme instance:
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<"light" | "light_protanopia" | "dark" | "dark_dimmed" | "dark_high_contrast" | "dark_protanopia", Record<"colors" | "shadows", Partial<{
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "0.0.0-202192701132",
3
+ "version": "0.0.0-202192723547",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",