@primer/components 0.0.0-2021828205225 → 0.0.0-20218282148

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 (244) hide show
  1. package/CHANGELOG.md +46 -2
  2. package/dist/browser.esm.js +738 -694
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +759 -715
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Divider.js +1 -1
  7. package/lib/ActionList/Header.js +2 -2
  8. package/lib/ActionList/Item.js +14 -14
  9. package/lib/ActionList/List.js +1 -1
  10. package/lib/AnchoredOverlay/AnchoredOverlay.js +2 -2
  11. package/lib/Avatar.d.ts +4 -0
  12. package/lib/AvatarPair.js +1 -1
  13. package/lib/AvatarStack.js +1 -1
  14. package/lib/BranchName.js +1 -1
  15. package/lib/Breadcrumbs.d.ts +40 -0
  16. package/lib/{Breadcrumb.js → Breadcrumbs.js} +33 -23
  17. package/lib/Button/Button.d.ts +0 -1
  18. package/lib/Button/Button.js +1 -1
  19. package/lib/Button/ButtonClose.d.ts +1 -2
  20. package/lib/Button/ButtonClose.js +1 -1
  21. package/lib/Button/ButtonDanger.d.ts +0 -1
  22. package/lib/Button/ButtonInvisible.d.ts +0 -1
  23. package/lib/Button/ButtonInvisible.js +1 -1
  24. package/lib/Button/ButtonOutline.d.ts +0 -1
  25. package/lib/Button/ButtonPrimary.d.ts +0 -1
  26. package/lib/Button/ButtonTableList.js +1 -1
  27. package/lib/CircleBadge.js +1 -1
  28. package/lib/CircleOcticon.d.ts +0 -1
  29. package/lib/CircleOcticon.js +1 -1
  30. package/lib/CounterLabel.js +2 -2
  31. package/lib/Dialog/ConfirmationDialog.js +1 -1
  32. package/lib/Dialog/Dialog.js +9 -9
  33. package/lib/Dialog.d.ts +2 -3
  34. package/lib/Dialog.js +4 -4
  35. package/lib/Dropdown.d.ts +0 -4
  36. package/lib/Dropdown.js +2 -2
  37. package/lib/DropdownMenu/DropdownButton.d.ts +1 -2
  38. package/lib/DropdownStyles.js +6 -6
  39. package/lib/FilterList.d.ts +0 -1
  40. package/lib/FilterList.js +1 -1
  41. package/lib/FilteredActionList/FilteredActionList.js +34 -8
  42. package/lib/Flash.js +1 -1
  43. package/lib/Label.js +2 -2
  44. package/lib/Link.js +1 -1
  45. package/lib/Overlay.d.ts +1 -2
  46. package/lib/Overlay.js +6 -11
  47. package/lib/Pagehead.js +1 -1
  48. package/lib/Pagination/Pagination.js +1 -1
  49. package/lib/Popover.js +1 -1
  50. package/lib/Position.d.ts +4 -4
  51. package/lib/ProgressBar.js +1 -1
  52. package/lib/SelectMenu/SelectMenu.d.ts +15 -344
  53. package/lib/SelectMenu/SelectMenuDivider.js +1 -1
  54. package/lib/SelectMenu/SelectMenuFilter.d.ts +1 -1
  55. package/lib/SelectMenu/SelectMenuFilter.js +1 -1
  56. package/lib/SelectMenu/SelectMenuFooter.js +1 -1
  57. package/lib/SelectMenu/SelectMenuHeader.js +2 -2
  58. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  59. package/lib/SelectMenu/SelectMenuItem.js +1 -1
  60. package/lib/SelectMenu/SelectMenuList.js +1 -1
  61. package/lib/SelectMenu/SelectMenuLoadingAnimation.js +1 -1
  62. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  63. package/lib/SelectMenu/SelectMenuModal.js +2 -2
  64. package/lib/SelectMenu/SelectMenuTab.js +1 -1
  65. package/lib/SelectMenu/SelectMenuTabPanel.js +1 -1
  66. package/lib/SelectPanel/SelectPanel.js +3 -2
  67. package/lib/SideNav.js +5 -5
  68. package/lib/StateLabel.js +1 -1
  69. package/lib/SubNav.js +1 -1
  70. package/lib/TabNav.js +2 -2
  71. package/lib/TextInput.d.ts +7 -10
  72. package/lib/TextInput.js +29 -24
  73. package/lib/Timeline.d.ts +0 -1
  74. package/lib/Timeline.js +16 -19
  75. package/lib/Tooltip.js +1 -1
  76. package/lib/UnderlineNav.js +2 -2
  77. package/lib/hooks/useOverlay.d.ts +1 -2
  78. package/lib/hooks/useOverlay.js +6 -11
  79. package/lib/index.d.ts +3 -2
  80. package/lib/index.js +22 -2
  81. package/lib/theme-preval.d.ts +4 -52
  82. package/lib/theme-preval.js +4003 -1180
  83. package/lib/utils/ssr.d.ts +1 -0
  84. package/lib/utils/ssr.js +19 -0
  85. package/lib/utils/testing.d.ts +889 -5527
  86. package/lib/utils/types.d.ts +0 -3
  87. package/lib/utils/uniqueId.js +1 -0
  88. package/lib-esm/ActionList/Divider.js +1 -1
  89. package/lib-esm/ActionList/Header.js +2 -2
  90. package/lib-esm/ActionList/Item.js +15 -15
  91. package/lib-esm/ActionList/List.js +1 -1
  92. package/lib-esm/AnchoredOverlay/AnchoredOverlay.js +3 -3
  93. package/lib-esm/Avatar.d.ts +4 -0
  94. package/lib-esm/AvatarPair.js +1 -1
  95. package/lib-esm/AvatarStack.js +1 -1
  96. package/lib-esm/BranchName.js +1 -1
  97. package/lib-esm/Breadcrumbs.d.ts +40 -0
  98. package/lib-esm/{Breadcrumb.js → Breadcrumbs.js} +30 -21
  99. package/lib-esm/Button/Button.d.ts +0 -1
  100. package/lib-esm/Button/Button.js +1 -1
  101. package/lib-esm/Button/ButtonClose.d.ts +1 -2
  102. package/lib-esm/Button/ButtonClose.js +1 -1
  103. package/lib-esm/Button/ButtonDanger.d.ts +0 -1
  104. package/lib-esm/Button/ButtonInvisible.d.ts +0 -1
  105. package/lib-esm/Button/ButtonInvisible.js +1 -1
  106. package/lib-esm/Button/ButtonOutline.d.ts +0 -1
  107. package/lib-esm/Button/ButtonPrimary.d.ts +0 -1
  108. package/lib-esm/Button/ButtonTableList.js +1 -1
  109. package/lib-esm/CircleBadge.js +1 -1
  110. package/lib-esm/CircleOcticon.d.ts +0 -1
  111. package/lib-esm/CircleOcticon.js +1 -1
  112. package/lib-esm/CounterLabel.js +2 -2
  113. package/lib-esm/Dialog/ConfirmationDialog.js +1 -1
  114. package/lib-esm/Dialog/Dialog.js +8 -8
  115. package/lib-esm/Dialog.d.ts +2 -3
  116. package/lib-esm/Dialog.js +4 -4
  117. package/lib-esm/Dropdown.d.ts +0 -4
  118. package/lib-esm/Dropdown.js +2 -2
  119. package/lib-esm/DropdownMenu/DropdownButton.d.ts +1 -2
  120. package/lib-esm/DropdownStyles.js +6 -6
  121. package/lib-esm/FilterList.d.ts +0 -1
  122. package/lib-esm/FilterList.js +1 -1
  123. package/lib-esm/FilteredActionList/FilteredActionList.js +34 -6
  124. package/lib-esm/Flash.js +1 -1
  125. package/lib-esm/Label.js +2 -2
  126. package/lib-esm/Link.js +1 -1
  127. package/lib-esm/Overlay.d.ts +1 -2
  128. package/lib-esm/Overlay.js +6 -9
  129. package/lib-esm/Pagehead.js +1 -1
  130. package/lib-esm/Pagination/Pagination.js +1 -1
  131. package/lib-esm/Popover.js +1 -1
  132. package/lib-esm/Position.d.ts +4 -4
  133. package/lib-esm/ProgressBar.js +1 -1
  134. package/lib-esm/SelectMenu/SelectMenu.d.ts +15 -344
  135. package/lib-esm/SelectMenu/SelectMenuDivider.js +1 -1
  136. package/lib-esm/SelectMenu/SelectMenuFilter.d.ts +1 -1
  137. package/lib-esm/SelectMenu/SelectMenuFilter.js +1 -1
  138. package/lib-esm/SelectMenu/SelectMenuFooter.js +1 -1
  139. package/lib-esm/SelectMenu/SelectMenuHeader.js +2 -2
  140. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  141. package/lib-esm/SelectMenu/SelectMenuItem.js +1 -1
  142. package/lib-esm/SelectMenu/SelectMenuList.js +1 -1
  143. package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.js +1 -1
  144. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  145. package/lib-esm/SelectMenu/SelectMenuModal.js +2 -2
  146. package/lib-esm/SelectMenu/SelectMenuTab.js +1 -1
  147. package/lib-esm/SelectMenu/SelectMenuTabPanel.js +1 -1
  148. package/lib-esm/SelectPanel/SelectPanel.js +3 -2
  149. package/lib-esm/SideNav.js +5 -5
  150. package/lib-esm/StateLabel.js +1 -1
  151. package/lib-esm/SubNav.js +1 -1
  152. package/lib-esm/TabNav.js +2 -2
  153. package/lib-esm/TextInput.d.ts +7 -10
  154. package/lib-esm/TextInput.js +29 -23
  155. package/lib-esm/Timeline.d.ts +0 -1
  156. package/lib-esm/Timeline.js +12 -17
  157. package/lib-esm/Tooltip.js +1 -1
  158. package/lib-esm/UnderlineNav.js +2 -2
  159. package/lib-esm/hooks/useOverlay.d.ts +1 -2
  160. package/lib-esm/hooks/useOverlay.js +6 -11
  161. package/lib-esm/index.d.ts +3 -2
  162. package/lib-esm/index.js +3 -2
  163. package/lib-esm/theme-preval.d.ts +4 -52
  164. package/lib-esm/theme-preval.js +4003 -1180
  165. package/lib-esm/utils/ssr.d.ts +1 -0
  166. package/lib-esm/utils/ssr.js +1 -0
  167. package/lib-esm/utils/testing.d.ts +889 -5527
  168. package/lib-esm/utils/types.d.ts +0 -3
  169. package/lib-esm/utils/uniqueId.js +1 -0
  170. package/package.json +15 -15
  171. package/lib/Autocomplete/Autocomplete.d.ts +0 -26
  172. package/lib/Autocomplete/Autocomplete.js +0 -55
  173. package/lib/Autocomplete/AutocompleteContext.d.ts +0 -13
  174. package/lib/Autocomplete/AutocompleteContext.js +0 -11
  175. package/lib/Autocomplete/AutocompleteInput.d.ts +0 -9
  176. package/lib/Autocomplete/AutocompleteInput.js +0 -134
  177. package/lib/Autocomplete/AutocompleteMenu.d.ts +0 -70
  178. package/lib/Autocomplete/AutocompleteMenu.js +0 -244
  179. package/lib/Autocomplete/index.d.ts +0 -2
  180. package/lib/Autocomplete/index.js +0 -15
  181. package/lib/Badge/Badge.d.ts +0 -8
  182. package/lib/Badge/Badge.js +0 -59
  183. package/lib/Badge/BadgeState.d.ts +0 -13
  184. package/lib/Badge/BadgeState.js +0 -51
  185. package/lib/Badge/_badgeStyleUtils.d.ts +0 -3
  186. package/lib/Badge/_badgeStyleUtils.js +0 -39
  187. package/lib/Breadcrumb.d.ts +0 -23
  188. package/lib/TextInputTokens.d.ts +0 -43
  189. package/lib/TextInputTokens.js +0 -231
  190. package/lib/TextInputWithTokens.d.ts +0 -41
  191. package/lib/TextInputWithTokens.js +0 -396
  192. package/lib/Token/Token.d.ts +0 -10
  193. package/lib/Token/Token.js +0 -63
  194. package/lib/Token/TokenBase.d.ts +0 -16
  195. package/lib/Token/TokenBase.js +0 -76
  196. package/lib/Token/TokenLabel.d.ts +0 -10
  197. package/lib/Token/TokenLabel.js +0 -121
  198. package/lib/Token/TokenProfile.d.ts +0 -7
  199. package/lib/Token/TokenProfile.js +0 -50
  200. package/lib/Token/_RemoveTokenButton.d.ts +0 -3
  201. package/lib/Token/_RemoveTokenButton.js +0 -43
  202. package/lib/Token/_tokenButtonUtils.d.ts +0 -9
  203. package/lib/Token/_tokenButtonUtils.js +0 -42
  204. package/lib/_UnstyledTextInput.d.ts +0 -2
  205. package/lib/_UnstyledTextInput.js +0 -20
  206. package/lib/utils/scrollIntoViewingArea.d.ts +0 -1
  207. package/lib/utils/scrollIntoViewingArea.js +0 -39
  208. package/lib-esm/Autocomplete/Autocomplete.d.ts +0 -26
  209. package/lib-esm/Autocomplete/Autocomplete.js +0 -36
  210. package/lib-esm/Autocomplete/AutocompleteContext.d.ts +0 -13
  211. package/lib-esm/Autocomplete/AutocompleteContext.js +0 -2
  212. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +0 -9
  213. package/lib-esm/Autocomplete/AutocompleteInput.js +0 -115
  214. package/lib-esm/Autocomplete/AutocompleteMenu.d.ts +0 -70
  215. package/lib-esm/Autocomplete/AutocompleteMenu.js +0 -218
  216. package/lib-esm/Autocomplete/index.d.ts +0 -2
  217. package/lib-esm/Autocomplete/index.js +0 -1
  218. package/lib-esm/Badge/Badge.d.ts +0 -8
  219. package/lib-esm/Badge/Badge.js +0 -44
  220. package/lib-esm/Badge/BadgeState.d.ts +0 -13
  221. package/lib-esm/Badge/BadgeState.js +0 -40
  222. package/lib-esm/Badge/_badgeStyleUtils.d.ts +0 -3
  223. package/lib-esm/Badge/_badgeStyleUtils.js +0 -29
  224. package/lib-esm/Breadcrumb.d.ts +0 -23
  225. package/lib-esm/TextInputTokens.d.ts +0 -43
  226. package/lib-esm/TextInputTokens.js +0 -204
  227. package/lib-esm/TextInputWithTokens.d.ts +0 -41
  228. package/lib-esm/TextInputWithTokens.js +0 -361
  229. package/lib-esm/Token/Token.d.ts +0 -10
  230. package/lib-esm/Token/Token.js +0 -44
  231. package/lib-esm/Token/TokenBase.d.ts +0 -16
  232. package/lib-esm/Token/TokenBase.js +0 -56
  233. package/lib-esm/Token/TokenLabel.d.ts +0 -10
  234. package/lib-esm/Token/TokenLabel.js +0 -101
  235. package/lib-esm/Token/TokenProfile.d.ts +0 -7
  236. package/lib-esm/Token/TokenProfile.js +0 -29
  237. package/lib-esm/Token/_RemoveTokenButton.d.ts +0 -3
  238. package/lib-esm/Token/_RemoveTokenButton.js +0 -28
  239. package/lib-esm/Token/_tokenButtonUtils.d.ts +0 -9
  240. package/lib-esm/Token/_tokenButtonUtils.js +0 -26
  241. package/lib-esm/_UnstyledTextInput.d.ts +0 -2
  242. package/lib-esm/_UnstyledTextInput.js +0 -7
  243. package/lib-esm/utils/scrollIntoViewingArea.d.ts +0 -1
  244. package/lib-esm/utils/scrollIntoViewingArea.js +0 -30
@@ -12,6 +12,3 @@ export declare type ComponentProps<T> = T extends React.ComponentType<infer Prop
12
12
  */
13
13
  export declare type Flatten<T extends unknown> = T extends (infer U)[] ? U : never;
14
14
  export declare type AriaRole = 'alert' | 'alertdialog' | 'application' | 'article' | 'banner' | 'button' | 'cell' | 'checkbox' | 'columnheader' | 'combobox' | 'complementary' | 'contentinfo' | 'definition' | 'dialog' | 'directory' | 'document' | 'feed' | 'figure' | 'form' | 'grid' | 'gridcell' | 'group' | 'heading' | 'img' | 'link' | 'list' | 'listbox' | 'listitem' | 'log' | 'main' | 'marquee' | 'math' | 'menu' | 'menubar' | 'menuitem' | 'menuitemcheckbox ' | 'menuitemradio' | 'navigation' | 'none' | 'note' | 'option' | 'presentation' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'scrollbar' | 'search' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'switch' | 'tab' | 'table' | 'tablist' | 'tabpanel' | 'term' | 'textbox' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'treegrid' | 'treeitem';
15
- export declare type MandateProps<T extends {}, K extends keyof T> = Omit<T, K> & {
16
- [MK in K]-?: NonNullable<T[MK]>;
17
- };
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.uniqueId = uniqueId;
7
+ // Note: uniqueId may be unsafe in SSR contexts if it is used create DOM IDs or otherwise cause a hydration warning. Use useSSRSafeId instead.
7
8
  let idSeed = 10000;
8
9
 
9
10
  function uniqueId() {
@@ -4,7 +4,7 @@ import { get } from '../constants';
4
4
  export const StyledDivider = styled.div.withConfig({
5
5
  displayName: "Divider__StyledDivider",
6
6
  componentId: "sc-42656i-0"
7
- })(["height:1px;background:", ";margin-top:calc(", " - 1px);margin-bottom:", ";"], get('colors.selectMenu.borderSecondary'), get('space.2'), get('space.2'));
7
+ })(["height:1px;background:", ";margin-top:calc(", " - 1px);margin-bottom:", ";"], get('colors.border.muted'), get('space.2'), get('space.2'));
8
8
  /**
9
9
  * Visually separates `Item`s or `Group`s in an `ActionList`.
10
10
  */
@@ -11,9 +11,9 @@ import sx from '../sx';
11
11
  export const StyledHeader = styled.div.withConfig({
12
12
  displayName: "Header__StyledHeader",
13
13
  componentId: "qmofje-0"
14
- })(["{}padding:6px ", ";font-size:", ";font-weight:", ";color:", ";", " ", ""], get('space.3'), get('fontSizes.0'), get('fontWeights.bold'), get('colors.text.secondary'), ({
14
+ })(["{}padding:6px ", ";font-size:", ";font-weight:", ";color:", ";", " ", ""], get('space.3'), get('fontSizes.0'), get('fontWeights.bold'), get('colors.fg.muted'), ({
15
15
  variant
16
- }) => variant === 'filled' && css(["background:", ";margin:", " 0;border-top:1px solid ", ";border-bottom:1px solid ", ";&:first-child{margin-top:0;}"], get('colors.bg.tertiary'), get('space.2'), get('colors.border.tertiary'), get('colors.border.tertiary')), sx);
16
+ }) => variant === 'filled' && css(["background:", ";margin:", " 0;border-top:1px solid ", ";border-bottom:1px solid ", ";&:first-child{margin-top:0;}"], get('colors.canvas.subtle'), get('space.2'), get('colors.neutral.muted'), get('colors.neutral.muted')), sx);
17
17
  /**
18
18
  * Displays the name and description of a `Group`.
19
19
  */
@@ -1,7 +1,7 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import { CheckIcon } from '@primer/octicons-react';
4
- import React, { useCallback, useMemo } from 'react';
4
+ import React, { useCallback } from 'react';
5
5
  import { get } from '../constants';
6
6
  import sx from '../sx';
7
7
  import Truncate from '../Truncate';
@@ -10,7 +10,7 @@ import { StyledHeader } from './Header';
10
10
  import { StyledDivider } from './Divider';
11
11
  import { useColorSchemeVar, useTheme } from '../ThemeProvider';
12
12
  import { activeDescendantActivatedDirectly, activeDescendantActivatedIndirectly, isActiveDescendantAttribute } from '../behaviors/focusZone';
13
- import { uniqueId } from '../utils/uniqueId';
13
+ import { useSSRSafeId } from '@react-aria/ssr';
14
14
  /**
15
15
  * These colors are not yet in our default theme. Need to remove this once they are added.
16
16
  */
@@ -48,9 +48,9 @@ const customItemThemes = {
48
48
  const getItemVariant = (variant = 'default', disabled) => {
49
49
  if (disabled) {
50
50
  return {
51
- color: get('colors.text.disabled'),
52
- iconColor: get('colors.text.disabled'),
53
- annotationColor: get('colors.text.disabled'),
51
+ color: get('colors.fg.muted'),
52
+ iconColor: get('colors.fg.muted'),
53
+ annotationColor: get('colors.fg.muted'),
54
54
  hoverCursor: 'default'
55
55
  };
56
56
  }
@@ -58,17 +58,17 @@ const getItemVariant = (variant = 'default', disabled) => {
58
58
  switch (variant) {
59
59
  case 'danger':
60
60
  return {
61
- color: get('colors.text.danger'),
62
- iconColor: get('colors.icon.danger'),
63
- annotationColor: get('colors.text.disabled'),
61
+ color: get('colors.danger.fg'),
62
+ iconColor: get('colors.danger.fg'),
63
+ annotationColor: get('colors.fg.muted'),
64
64
  hoverCursor: 'pointer'
65
65
  };
66
66
 
67
67
  default:
68
68
  return {
69
- color: 'inherit',
70
- iconColor: get('colors.text.secondary'),
71
- annotationColor: get('colors.text.secondary'),
69
+ color: get('colors.fg.default'),
70
+ iconColor: get('colors.fg.muted'),
71
+ annotationColor: get('colors.fg.muted'),
72
72
  hoverCursor: 'pointer'
73
73
  };
74
74
  }
@@ -95,7 +95,7 @@ const StyledItem = styled.div.withConfig({
95
95
  item
96
96
  }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).hoverCursor, StyledDivider, StyledHeader, ({
97
97
  showDivider
98
- }) => showDivider ? `1px` : '0', DividedContent, get('colors.selectMenu.borderSecondary'), ({
98
+ }) => showDivider ? `1px` : '0', DividedContent, get('colors.border.muted'), ({
99
99
  showDivider
100
100
  }) => showDivider ? `1px` : '0', DividedContent, DividedContent, DividedContent, DividedContent, isActiveDescendantAttribute, DividedContent, isActiveDescendantAttribute, DividedContent, isActiveDescendantAttribute, activeDescendantActivatedDirectly, ({
101
101
  focusBackground
@@ -135,7 +135,7 @@ const TrailingContent = styled(ColoredVisualContainer).withConfig({
135
135
  const DescriptionContainer = styled.span.withConfig({
136
136
  displayName: "Item__DescriptionContainer",
137
137
  componentId: "jqpvy8-8"
138
- })(["color:", ";font-size:", ";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"], get('colors.text.secondary'), get('fontSizes.0'));
138
+ })(["color:", ";font-size:", ";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"], get('colors.fg.muted'), get('fontSizes.0'));
139
139
  const MultiSelectInput = styled.input.withConfig({
140
140
  displayName: "Item__MultiSelectInput",
141
141
  componentId: "jqpvy8-9"
@@ -164,8 +164,8 @@ export function Item(itemProps) {
164
164
  id,
165
165
  ...props
166
166
  } = itemProps;
167
- const labelId = useMemo(() => uniqueId(), []);
168
- const descriptionId = useMemo(() => uniqueId(), []);
167
+ const labelId = useSSRSafeId();
168
+ const descriptionId = useSSRSafeId();
169
169
  const keyPressHandler = useCallback(event => {
170
170
  if (disabled) {
171
171
  return;
@@ -23,7 +23,7 @@ function isGroupedListProps(props) {
23
23
  const StyledList = styled.div.withConfig({
24
24
  displayName: "List__StyledList",
25
25
  componentId: "yr2k7d-0"
26
- })(["font-size:", ";line-height:20px;&[", "],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:", ";}"], get('fontSizes.1'), hasActiveDescendantAttribute, get('colors.selectMenu.borderSecondary'));
26
+ })(["font-size:", ";line-height:20px;&[", "],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:", ";}"], get('fontSizes.1'), hasActiveDescendantAttribute, get('colors.border.muted'));
27
27
  /**
28
28
  * Returns `sx` prop values for `List` children matching the given `List` style variation.
29
29
  * @param variant `List` style variation.
@@ -1,11 +1,11 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
- import React, { useCallback, useEffect, useMemo } from 'react';
3
+ import React, { useCallback, useEffect } from 'react';
4
4
  import Overlay from '../Overlay';
5
5
  import { useFocusTrap } from '../hooks/useFocusTrap';
6
6
  import { useFocusZone } from '../hooks/useFocusZone';
7
7
  import { useAnchoredPosition, useProvidedRefOrCreate, useRenderForcingRef } from '../hooks';
8
- import { uniqueId } from '../utils/uniqueId';
8
+ import { useSSRSafeId } from '@react-aria/ssr';
9
9
 
10
10
  /**
11
11
  * An `AnchoredOverlay` provides an anchor that will open a floating overlay positioned relative to the anchor.
@@ -26,7 +26,7 @@ export const AnchoredOverlay = ({
26
26
  }) => {
27
27
  const anchorRef = useProvidedRefOrCreate(externalAnchorRef);
28
28
  const [overlayRef, updateOverlayRef] = useRenderForcingRef();
29
- const anchorId = useMemo(uniqueId, []);
29
+ const anchorId = useSSRSafeId();
30
30
  const onClickOutside = useCallback(() => onClose === null || onClose === void 0 ? void 0 : onClose('click-outside'), [onClose]);
31
31
  const onEscape = useCallback(() => onClose === null || onClose === void 0 ? void 0 : onClose('escape'), [onClose]);
32
32
  const onAnchorKeyDown = useCallback(event => {
@@ -6,6 +6,10 @@ declare const Avatar: import("styled-components").StyledComponent<"img", any, {
6
6
  size?: number | undefined;
7
7
  /** Sets the shape of the avatar to a square if true. If false, the avatar will be circular. */
8
8
  square?: boolean | undefined;
9
+ /** URL of the avatar image. */
10
+ src: string;
11
+ /** Provide alt text when the Avatar is used without the user's name next to it. */
12
+ alt?: string | undefined;
9
13
  } & SystemCommonProps & SxProp, never>;
10
14
  export declare type AvatarProps = ComponentProps<typeof Avatar>;
11
15
  export default Avatar;
@@ -19,7 +19,7 @@ const AvatarPair = ({
19
19
  return i === 0 ? /*#__PURE__*/React.cloneElement(child, {
20
20
  size: 40
21
21
  }) : /*#__PURE__*/React.createElement(ChildAvatar, _extends({
22
- bg: "bg.canvas"
22
+ bg: "canvas.default"
23
23
  }, child.props, {
24
24
  size: 20
25
25
  }));
@@ -9,7 +9,7 @@ import sx from './sx';
9
9
  const AvatarStackWrapper = styled.span.withConfig({
10
10
  displayName: "AvatarStack__AvatarStackWrapper",
11
11
  componentId: "sc-1qgzd2v-0"
12
- })(["display:flex;position:relative;height:20px;min-width:", ";.pc-AvatarItem{flex-shrink:0;height:20px;width:20px;box-shadow:0 0 0 1px ", ";margin-left:-11px;position:relative;overflow:hidden;transition:margin 0.2s ease-in-out,opacity 0.2s ease-in-out,visibility 0.2s ease-in-out,box-shadow 0.1s ease-in-out;&:first-child{margin-left:0;}&:nth-child(n + 4){display:none;}}&.pc-AvatarStack--two{min-width:30px;.pc-AvatarItem{&:nth-child(n + 3){display:none;}}}&.pc-AvatarStack--three-plus{min-width:38px;.pc-AvatarItem{&:nth-child(3){opacity:", "%;margin-left:-17px;}&:nth-child(4){opacity:", "%;margin-left:-17px;}&:nth-child(5){opacity:", "%;margin-left:-17px;}&:nth-child(n + 4){display:block;}&:nth-child(n + 6){opacity:0;visibility:hidden;}}}&.pc-AvatarStack--right{justify-content:flex-end;.pc-AvatarItem{margin-left:0 !important;margin-right:-11px;&:first-child{margin-right:0;}}.pc-AvatarStackBody{flex-direction:row-reverse;&:hover{.pc-AvatarItem{margin-right:", "!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}&.pc-AvatarStack--three-plus.pc-AvatarStack--right{.pc-AvatarItem{&:nth-child(3){margin-right:-17px;}&:nth-child(4){margin-right:-17px;}&:nth-child(5){margin-right:-17px;}}}.pc-AvatarStackBody:hover{width:auto;.pc-AvatarItem{margin-left:", ";opacity:100%;visibility:visible;box-shadow:0 0 0 4px ", ";&:first-child{margin-left:0;}}}", " ", ";"], props => props.count === 1 ? '20px' : props.count === 2 ? '30px' : '38px', get('colors.bg.canvas'), 100 - 3 * 15, 100 - 4 * 15, 100 - 5 * 15, get('space.1'), get('space.1'), get('colors.bg.canvas'), COMMON, sx);
12
+ })(["display:flex;position:relative;height:20px;min-width:", ";.pc-AvatarItem{flex-shrink:0;height:20px;width:20px;box-shadow:0 0 0 1px ", ";margin-left:-11px;position:relative;overflow:hidden;transition:margin 0.2s ease-in-out,opacity 0.2s ease-in-out,visibility 0.2s ease-in-out,box-shadow 0.1s ease-in-out;&:first-child{margin-left:0;}&:nth-child(n + 4){display:none;}}&.pc-AvatarStack--two{min-width:30px;.pc-AvatarItem{&:nth-child(n + 3){display:none;}}}&.pc-AvatarStack--three-plus{min-width:38px;.pc-AvatarItem{&:nth-child(3){opacity:", "%;margin-left:-17px;}&:nth-child(4){opacity:", "%;margin-left:-17px;}&:nth-child(5){opacity:", "%;margin-left:-17px;}&:nth-child(n + 4){display:block;}&:nth-child(n + 6){opacity:0;visibility:hidden;}}}&.pc-AvatarStack--right{justify-content:flex-end;.pc-AvatarItem{margin-left:0 !important;margin-right:-11px;&:first-child{margin-right:0;}}.pc-AvatarStackBody{flex-direction:row-reverse;&:hover{.pc-AvatarItem{margin-right:", "!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}&.pc-AvatarStack--three-plus.pc-AvatarStack--right{.pc-AvatarItem{&:nth-child(3){margin-right:-17px;}&:nth-child(4){margin-right:-17px;}&:nth-child(5){margin-right:-17px;}}}.pc-AvatarStackBody:hover{width:auto;.pc-AvatarItem{margin-left:", ";opacity:100%;visibility:visible;box-shadow:0 0 0 4px ", ";&:first-child{margin-left:0;}}}", " ", ";"], props => props.count === 1 ? '20px' : props.count === 2 ? '30px' : '38px', get('colors.canvas.default'), 100 - 3 * 15, 100 - 4 * 15, 100 - 5 * 15, get('space.1'), get('space.1'), get('colors.canvas.default'), COMMON, sx);
13
13
 
14
14
  const transformChildren = children => {
15
15
  return React.Children.map(children, (child, index) => {
@@ -4,5 +4,5 @@ import sx from './sx';
4
4
  const BranchName = styled.a.withConfig({
5
5
  displayName: "BranchName",
6
6
  componentId: "sc-167ouzm-0"
7
- })(["display:inline-block;padding:2px 6px;font-size:", ";font-family:", ";color:", ";background-color:", ";border-radius:", ";", ";", ";"], get('fontSizes.0'), get('fonts.mono'), get('colors.branchName.text'), get('colors.branchName.bg'), get('radii.2'), COMMON, sx);
7
+ })(["display:inline-block;padding:2px 6px;font-size:", ";font-family:", ";color:", ";background-color:", ";border-radius:", ";", ";", ";"], get('fontSizes.0'), get('fonts.mono'), get('colors.fg.muted'), get('colors.accent.subtle'), get('radii.2'), COMMON, sx);
8
8
  export default BranchName;
@@ -0,0 +1,40 @@
1
+ import * as History from 'history';
2
+ import React from 'react';
3
+ import { SystemCommonProps, SystemFlexProps } from './constants';
4
+ import { SxProp } from './sx';
5
+ import { ComponentProps } from './utils/types';
6
+ declare const BreadcrumbsBase: import("styled-components").StyledComponent<"nav", any, SystemFlexProps & SystemCommonProps & SxProp, never>;
7
+ export declare type BreadcrumbsProps = ComponentProps<typeof BreadcrumbsBase>;
8
+ declare function Breadcrumbs({ className, children, theme, ...rest }: React.PropsWithChildren<BreadcrumbsProps>): JSX.Element;
9
+ declare namespace Breadcrumbs {
10
+ var displayName: string;
11
+ }
12
+ declare const BreadcrumbsItem: import("styled-components").StyledComponent<"a", any, {
13
+ to?: History.LocationDescriptor<unknown> | undefined;
14
+ selected?: boolean | undefined;
15
+ } & SystemCommonProps & SxProp, never>;
16
+ export declare type BreadcrumbsItemProps = ComponentProps<typeof BreadcrumbsItem>;
17
+ declare const _default: typeof Breadcrumbs & {
18
+ Item: import("styled-components").StyledComponent<"a", any, {
19
+ to?: History.LocationDescriptor<unknown> | undefined;
20
+ selected?: boolean | undefined;
21
+ } & SystemCommonProps & SxProp, never>;
22
+ };
23
+ export default _default;
24
+ /**
25
+ * @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
26
+ */
27
+ export declare const Breadcrumb: typeof Breadcrumbs & {
28
+ Item: import("styled-components").StyledComponent<"a", any, {
29
+ to?: History.LocationDescriptor<unknown> | undefined;
30
+ selected?: boolean | undefined;
31
+ } & SystemCommonProps & SxProp, never>;
32
+ };
33
+ /**
34
+ * @deprecated Use the `BreadcrumbsProps` type instead
35
+ */
36
+ export declare type BreadcrumbProps = ComponentProps<typeof BreadcrumbsBase>;
37
+ /**
38
+ * @deprecated Use the `BreadcrumbsItemProps` type instead
39
+ */
40
+ export declare type BreadcrumbItemProps = ComponentProps<typeof BreadcrumbsItem>;
@@ -9,27 +9,26 @@ import { COMMON, FLEX, get } from './constants';
9
9
  import sx from './sx';
10
10
  const SELECTED_CLASS = 'selected';
11
11
  const Wrapper = styled.li.withConfig({
12
- displayName: "Breadcrumb__Wrapper",
13
- componentId: "c1r3ff-0"
14
- })(["display:inline-block;white-space:nowrap;list-style:none;&::after{padding-right:0.5em;padding-left:0.5em;color:", ";font-size:", ";content:'/';}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"], get('colors.text.disabled'), get('fontSizes.1'));
15
- const BreadcrumbBase = styled.nav.withConfig({
16
- displayName: "Breadcrumb__BreadcrumbBase",
17
- componentId: "c1r3ff-1"
12
+ displayName: "Breadcrumbs__Wrapper",
13
+ componentId: "hwwoo0-0"
14
+ })(["display:inline-block;white-space:nowrap;list-style:none;&::after{padding-right:0.5em;padding-left:0.5em;color:", ";font-size:", ";content:'/';}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"], get('colors.fg.muted'), get('fontSizes.1'));
15
+ const BreadcrumbsBase = styled.nav.withConfig({
16
+ displayName: "Breadcrumbs__BreadcrumbsBase",
17
+ componentId: "hwwoo0-1"
18
18
  })(["display:flex;justify-content:space-between;", ";", ";", ";"], COMMON, FLEX, sx);
19
19
 
20
- function Breadcrumb({
20
+ function Breadcrumbs({
21
21
  className,
22
22
  children,
23
23
  theme,
24
24
  ...rest
25
25
  }) {
26
- const classes = classnames(className, 'Breadcrumb');
27
26
  const wrappedChildren = React.Children.map(children, child => /*#__PURE__*/React.createElement(Wrapper, {
28
27
  theme: theme
29
28
  }, child));
30
- return /*#__PURE__*/React.createElement(BreadcrumbBase, _extends({
31
- className: classes,
32
- "aria-label": "breadcrumb",
29
+ return /*#__PURE__*/React.createElement(BreadcrumbsBase, _extends({
30
+ className: className,
31
+ "aria-label": "Breadcrumbs",
33
32
  theme: theme
34
33
  }, rest), /*#__PURE__*/React.createElement(Box, {
35
34
  as: "ol",
@@ -38,17 +37,27 @@ function Breadcrumb({
38
37
  }, wrappedChildren));
39
38
  }
40
39
 
41
- Breadcrumb.displayName = "Breadcrumb";
42
- const BreadcrumbItem = styled.a.attrs(props => ({
40
+ Breadcrumbs.displayName = "Breadcrumbs";
41
+ const BreadcrumbsItem = styled.a.attrs(props => ({
43
42
  activeClassName: typeof props.to === 'string' ? 'selected' : '',
44
43
  className: classnames(props.selected && SELECTED_CLASS, props.className),
45
44
  'aria-current': props.selected ? 'page' : null
46
45
  })).withConfig({
47
- displayName: "Breadcrumb__BreadcrumbItem",
48
- componentId: "c1r3ff-2"
49
- })(["color:", ";display:inline-block;font-size:", ";text-decoration:none;&:hover{text-decoration:underline;}&.selected{color:", ";pointer-events:none;}", " ", ";"], get('colors.text.link'), get('fontSizes.1'), get('colors.text.primary'), COMMON, sx);
50
- Breadcrumb.displayName = 'Breadcrumb';
51
- BreadcrumbItem.displayName = 'Breadcrumb.Item';
52
- export default Object.assign(Breadcrumb, {
53
- Item: BreadcrumbItem
54
- });
46
+ displayName: "Breadcrumbs__BreadcrumbsItem",
47
+ componentId: "hwwoo0-2"
48
+ })(["color:", ";display:inline-block;font-size:", ";text-decoration:none;&:hover{text-decoration:underline;}&.selected{color:", ";pointer-events:none;}", " ", ";"], get('colors.accent.fg'), get('fontSizes.1'), get('colors.fg.default'), COMMON, sx);
49
+ Breadcrumbs.displayName = 'Breadcrumbs';
50
+ BreadcrumbsItem.displayName = 'Breadcrumbs.Item';
51
+ export default Object.assign(Breadcrumbs, {
52
+ Item: BreadcrumbsItem
53
+ });
54
+ /**
55
+ * @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
56
+ */
57
+
58
+ export const Breadcrumb = Object.assign(Breadcrumbs, {
59
+ Item: BreadcrumbsItem
60
+ });
61
+ /**
62
+ * @deprecated Use the `BreadcrumbsProps` type instead
63
+ */
@@ -268,7 +268,6 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
268
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
- css?: import("@emotion/core").InterpolationWithTheme<any>;
272
271
  autoFocus?: boolean | undefined;
273
272
  disabled?: boolean | undefined;
274
273
  formAction?: string | undefined;
@@ -5,5 +5,5 @@ import ButtonBase, { buttonSystemProps } from './ButtonBase';
5
5
  const Button = styled(ButtonBase).withConfig({
6
6
  displayName: "Button",
7
7
  componentId: "xjtz72-0"
8
- })(["color:", ";background-color:", ";border:1px solid ", ";box-shadow:", ",", "};&:hover{background-color:", ";border-color:", ";}&:focus{border-color:", ";box-shadow:", ";}&:active{background-color:", ";box-shadow:", ";}&:disabled{color:", ";background-color:", ";border-color:", ";}", ";", ";"], get('colors.btn.text'), get('colors.btn.bg'), get('colors.btn.border'), get('shadows.btn.shadow'), get('shadows.btn.insetShadow'), get('colors.btn.hoverBg'), get('colors.btn.hoverBorder'), get('colors.btn.focusBorder'), get('shadows.btn.focusShadow'), get('colors.btn.selectedBg'), get('shadows.btn.shadowActive'), get('colors.text.disabled'), get('colors.btn.bg'), get('colors.btn.border'), buttonSystemProps, sx);
8
+ })(["color:", ";background-color:", ";border:1px solid ", ";box-shadow:", ",", "};&:hover{background-color:", ";border-color:", ";}&:focus{border-color:", ";box-shadow:", ";}&:active{background-color:", ";box-shadow:", ";}&:disabled{color:", ";background-color:", ";border-color:", ";}", ";", ";"], get('colors.btn.text'), get('colors.btn.bg'), get('colors.btn.border'), get('shadows.btn.shadow'), get('shadows.btn.insetShadow'), get('colors.btn.hoverBg'), get('colors.btn.hoverBorder'), get('colors.btn.focusBorder'), get('shadows.btn.focusShadow'), get('colors.btn.selectedBg'), get('shadows.btn.shadowActive'), get('colors.fg.muted'), get('colors.btn.bg'), get('colors.btn.border'), buttonSystemProps, sx);
9
9
  export default Button;
@@ -287,7 +287,6 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
287
287
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
288
288
  onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
289
289
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
290
- css?: import("@emotion/core").InterpolationWithTheme<any>;
291
290
  bg?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
292
291
  m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
293
292
  mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -317,6 +316,6 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
317
316
  formTarget?: string | undefined;
318
317
  } & {
319
318
  theme?: any;
320
- }, "backgroundColor" | "color" | "display" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "hidden" | "children" | "theme" | "value" | "form" | "p" | "slot" | "style" | "title" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "sx" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
319
+ }, "backgroundColor" | "color" | "display" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "verticalAlign" | "width" | "margin" | "overflow" | "padding" | "hidden" | "children" | "theme" | "value" | "form" | "p" | "slot" | "style" | "title" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "sx" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
321
320
  export declare type ButtonCloseProps = ComponentProps<typeof ButtonClose>;
322
321
  export default ButtonClose;
@@ -8,7 +8,7 @@ import sx from '../sx';
8
8
  const StyledButton = styled.button.withConfig({
9
9
  displayName: "ButtonClose__StyledButton",
10
10
  componentId: "sc-13mzqph-0"
11
- })(["border:none;padding:0;background:transparent;outline:none;cursor:pointer;border-radius:", ";color:", ";&:focus{box-shadow:", ";}&:hover{color:", ";}", ";", ";", ";"], get('radii.2'), get('colors.text.secondary'), get('shadows.btn.focusShadow'), get('colors.text.link'), COMMON, LAYOUT, sx);
11
+ })(["border:none;padding:0;background:transparent;outline:none;cursor:pointer;border-radius:", ";color:", ";&:focus{box-shadow:", ";}&:hover{color:", ";}", ";", ";", ";"], get('radii.2'), get('colors.fg.muted'), get('shadows.btn.focusShadow'), get('colors.accent.fg'), COMMON, LAYOUT, sx);
12
12
  const ButtonClose = /*#__PURE__*/forwardRef((props, ref) => {
13
13
  return /*#__PURE__*/React.createElement(StyledButton, _extends({
14
14
  ref: ref,
@@ -268,7 +268,6 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
268
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
- css?: import("@emotion/core").InterpolationWithTheme<any>;
272
271
  autoFocus?: boolean | undefined;
273
272
  disabled?: boolean | undefined;
274
273
  formAction?: string | undefined;
@@ -268,7 +268,6 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
268
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
- css?: import("@emotion/core").InterpolationWithTheme<any>;
272
271
  autoFocus?: boolean | undefined;
273
272
  disabled?: boolean | undefined;
274
273
  formAction?: string | undefined;
@@ -5,5 +5,5 @@ import ButtonBase, { buttonSystemProps } from './ButtonBase';
5
5
  const ButtonInvisible = styled(ButtonBase).withConfig({
6
6
  displayName: "ButtonInvisible",
7
7
  componentId: "sc-1195tpn-0"
8
- })(["color:", ";background-color:transparent;border:0;border-radius:", ";box-shadow:none;&:disabled{color:", ";}&:focus{box-shadow:", ";}", ";", ""], get('colors.text.link'), get('radii.2'), get('colors.text.disabled'), get('shadows.btn.focusShadow'), buttonSystemProps, sx);
8
+ })(["color:", ";background-color:transparent;border:0;border-radius:", ";box-shadow:none;&:disabled{color:", ";}&:focus{box-shadow:", ";}", ";", ""], get('colors.accent.fg'), get('radii.2'), get('colors.fg.muted'), get('shadows.btn.focusShadow'), buttonSystemProps, sx);
9
9
  export default ButtonInvisible;
@@ -268,7 +268,6 @@ declare const ButtonOutline: import("styled-components").StyledComponent<"button
268
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
- css?: import("@emotion/core").InterpolationWithTheme<any>;
272
271
  autoFocus?: boolean | undefined;
273
272
  disabled?: boolean | undefined;
274
273
  formAction?: string | undefined;
@@ -268,7 +268,6 @@ export declare const ButtonPrimary: import("styled-components").StyledComponent<
268
268
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
- css?: import("@emotion/core").InterpolationWithTheme<any>;
272
271
  autoFocus?: boolean | undefined;
273
272
  disabled?: boolean | undefined;
274
273
  formAction?: string | undefined;
@@ -4,5 +4,5 @@ import sx from '../sx';
4
4
  const ButtonTableList = styled.summary.withConfig({
5
5
  displayName: "ButtonTableList",
6
6
  componentId: "sc-1m4q8ia-0"
7
- })(["display:inline-block;padding:0;font-size:", ";color:", ";text-decoration:none;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;&:hover{text-decoration:underline;}&:disabled{&,&:hover{color:rgba(", ",0.5);cursor:default;}}&:after{display:inline-block;margin-left:", ";width:0;height:0;vertical-align:-2px;content:'';border:4px solid transparent;border-top-color:currentcolor;}", " ", " ", " ", ";"], get('fontSizes.1'), get('colors.text.secondary'), get('colors.text.secondary'), get('space.1'), COMMON, TYPOGRAPHY, LAYOUT, sx);
7
+ })(["display:inline-block;padding:0;font-size:", ";color:", ";text-decoration:none;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;&:hover{text-decoration:underline;}&:disabled{&,&:hover{color:rgba(", ",0.5);cursor:default;}}&:after{display:inline-block;margin-left:", ";width:0;height:0;vertical-align:-2px;content:'';border:4px solid transparent;border-top-color:currentcolor;}", " ", " ", " ", ";"], get('fontSizes.1'), get('colors.fg.muted'), get('colors.fg.muted'), get('space.1'), COMMON, TYPOGRAPHY, LAYOUT, sx);
8
8
  export default ButtonTableList;
@@ -23,7 +23,7 @@ const sizeStyles = ({
23
23
  const CircleBadge = styled.div.withConfig({
24
24
  displayName: "CircleBadge",
25
25
  componentId: "sc-1lho816-0"
26
- })(["display:", ";align-items:center;justify-content:center;background-color:", ";border-radius:50%;box-shadow:", ";", ";", ";", ";"], props => props.inline ? 'inline-flex' : 'flex', get('colors.bg.canvas'), get('shadows.shadow.medium'), COMMON, sizeStyles, sx);
26
+ })(["display:", ";align-items:center;justify-content:center;background-color:", ";border-radius:50%;box-shadow:", ";", ";", ";", ";"], props => props.inline ? 'inline-flex' : 'flex', get('colors.canvas.default'), get('shadows.shadow.medium'), COMMON, sizeStyles, sx);
27
27
  const CircleBadgeIcon = styled(StyledOcticon).withConfig({
28
28
  displayName: "CircleBadge__CircleBadgeIcon",
29
29
  componentId: "sc-1lho816-1"
@@ -364,7 +364,6 @@ declare namespace CircleOcticon {
364
364
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
365
365
  onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
366
366
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
367
- css?: import("@emotion/core").InterpolationWithTheme<any>;
368
367
  bg?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
369
368
  m?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
370
369
  mt?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -21,7 +21,7 @@ function CircleOcticon(props) {
21
21
  size: size,
22
22
  borderRadius: "50%",
23
23
  borderStyle: "solid",
24
- borderColor: "border.primary"
24
+ borderColor: "border.default"
25
25
  }, /*#__PURE__*/React.createElement(Box, _extends({
26
26
  display: "flex"
27
27
  }, rest, {
@@ -7,7 +7,7 @@ const colorStyles = ({
7
7
  ...props
8
8
  }) => {
9
9
  return {
10
- color: scheme === 'secondary' ? get('colors.counter.text')(props) : scheme === 'primary' ? get('colors.counter.primary.text')(props) : get('colors.counter.text')(props)
10
+ color: scheme === 'secondary' ? get('colors.fg.default')(props) : scheme === 'primary' ? get('colors.fg.onEmphasis')(props) : get('colors.fg.default')(props)
11
11
  };
12
12
  };
13
13
 
@@ -16,7 +16,7 @@ const bgStyles = ({
16
16
  ...props
17
17
  }) => {
18
18
  return {
19
- backgroundColor: scheme === 'secondary' ? get('colors.counter.bg')(props) : scheme === 'primary' ? get('colors.counter.primary.bg')(props) : get('colors.counter.bg')(props)
19
+ backgroundColor: scheme === 'secondary' ? get('colors.neutral.muted')(props) : scheme === 'primary' ? get('colors.neutral.emphasis')(props) : get('colors.neutral.muted')(props)
20
20
  };
21
21
  };
22
22
 
@@ -41,7 +41,7 @@ ConfirmationHeader.displayName = "ConfirmationHeader";
41
41
  const StyledConfirmationBody = styled(Box).withConfig({
42
42
  displayName: "ConfirmationDialog__StyledConfirmationBody",
43
43
  componentId: "sc-1ub32x2-2"
44
- })(["font-size:", ";padding:0 ", " ", " ", ";color:", ";flex-grow:1;"], get('fontSizes.1'), get('space.3'), get('space.3'), get('space.3'), get('colors.text.tertiary'));
44
+ })(["font-size:", ";padding:0 ", " ", " ", ";color:", ";flex-grow:1;"], get('fontSizes.1'), get('space.3'), get('space.3'), get('space.3'), get('colors.fg.muted'));
45
45
 
46
46
  const ConfirmationBody = ({
47
47
  children
@@ -13,8 +13,8 @@ import { XIcon } from '@primer/octicons-react';
13
13
  import { useFocusZone } from '../hooks/useFocusZone';
14
14
  import { FocusKeys } from '../behaviors/focusZone';
15
15
  import Portal from '../Portal';
16
- import { uniqueId } from '../utils/uniqueId';
17
16
  import { useCombinedRefs } from '../hooks/useCombinedRefs';
17
+ import { useSSRSafeId } from '@react-aria/ssr';
18
18
  const ANIMATION_DURATION = '200ms';
19
19
  /**
20
20
  * Props that characterize a button to be rendered into the footer of
@@ -39,7 +39,7 @@ const widthMap = {
39
39
  const StyledDialog = styled.div.withConfig({
40
40
  displayName: "Dialog__StyledDialog",
41
41
  componentId: "sc-11pkgky-1"
42
- })(["display:flex;flex-direction:column;background-color:", ";box-shadow:", ";min-width:296px;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);width:", ";height:", ";border-radius:12px;opacity:1;animation:overlay--dialog-appear ", " ", ";@keyframes overlay--dialog-appear{0%{opacity:0;transform:scale(0.5);}100%{opacity:1;transform:scale(1);}}", ";", ";", ";"], get('colors.bg.overlay'), get('shadows.overlay.shadow'), props => {
42
+ })(["display:flex;flex-direction:column;background-color:", ";box-shadow:", ";min-width:296px;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);width:", ";height:", ";border-radius:12px;opacity:1;animation:overlay--dialog-appear ", " ", ";@keyframes overlay--dialog-appear{0%{opacity:0;transform:scale(0.5);}100%{opacity:1;transform:scale(1);}}", ";", ";", ";"], get('colors.canvas.overlay'), get('shadows.overlay.shadow'), props => {
43
43
  var _props$width;
44
44
 
45
45
  return widthMap[(_props$width = props.width) !== null && _props$width !== void 0 ? _props$width : 'xlarge'];
@@ -114,8 +114,8 @@ const _Dialog = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
114
114
  width = 'xlarge',
115
115
  height = 'auto'
116
116
  } = props;
117
- const dialogLabelId = uniqueId();
118
- const dialogDescriptionId = uniqueId();
117
+ const dialogLabelId = useSSRSafeId();
118
+ const dialogDescriptionId = useSSRSafeId();
119
119
  const defaultedProps = { ...props,
120
120
  title,
121
121
  subtitle,
@@ -155,7 +155,7 @@ const Header = styled(Box).attrs({
155
155
  }).withConfig({
156
156
  displayName: "Dialog__Header",
157
157
  componentId: "sc-11pkgky-2"
158
- })(["box-shadow:0 1px 0 ", ";padding:", ";z-index:1;flex-shrink:0;"], get('colors.border.overlay'), get('space.2'));
158
+ })(["box-shadow:0 1px 0 ", ";padding:", ";z-index:1;flex-shrink:0;"], get('colors.border.default'), get('space.2'));
159
159
  const Title = styled(Box).withConfig({
160
160
  displayName: "Dialog__Title",
161
161
  componentId: "sc-11pkgky-3"
@@ -163,7 +163,7 @@ const Title = styled(Box).withConfig({
163
163
  const Subtitle = styled(Box).withConfig({
164
164
  displayName: "Dialog__Subtitle",
165
165
  componentId: "sc-11pkgky-4"
166
- })(["font-size:", ";margin-top:", ";color:", ";"], get('fontSizes.0'), get('space.1'), get('colors.text.tertiary'));
166
+ })(["font-size:", ";margin-top:", ";color:", ";"], get('fontSizes.0'), get('space.1'), get('colors.fg.muted'));
167
167
  const Body = styled(Box).withConfig({
168
168
  displayName: "Dialog__Body",
169
169
  componentId: "sc-11pkgky-5"
@@ -173,7 +173,7 @@ const Footer = styled(Box).attrs({
173
173
  }).withConfig({
174
174
  displayName: "Dialog__Footer",
175
175
  componentId: "sc-11pkgky-6"
176
- })(["box-shadow:0 -1px 0 ", ";padding:", ";display:flex;flex-flow:wrap;justify-content:flex-end;z-index:1;flex-shrink:0;button{margin-left:", ";&:first-child{margin-left:0;}}"], get('colors.border.overlay'), get('space.3'), get('space.1'));
176
+ })(["box-shadow:0 -1px 0 ", ";padding:", ";display:flex;flex-flow:wrap;justify-content:flex-end;z-index:1;flex-shrink:0;button{margin-left:", ";&:first-child{margin-left:0;}}"], get('colors.border.default'), get('space.3'), get('space.1'));
177
177
  const buttonTypes = {
178
178
  normal: Button,
179
179
  primary: ButtonPrimary,
@@ -215,7 +215,7 @@ const Buttons = ({
215
215
  const DialogCloseButton = styled(Button).withConfig({
216
216
  displayName: "Dialog__DialogCloseButton",
217
217
  componentId: "sc-11pkgky-7"
218
- })(["border-radius:4px;background:transparent;border:0;vertical-align:middle;color:", ";padding:", ";align-self:flex-start;line-height:normal;box-shadow:none;"], get('colors.text.secondary'), get('space.2'));
218
+ })(["border-radius:4px;background:transparent;border:0;vertical-align:middle;color:", ";padding:", ";align-self:flex-start;line-height:normal;box-shadow:none;"], get('colors.fg.muted'), get('space.2'));
219
219
 
220
220
  const CloseButton = ({
221
221
  onClose