@primer/components 0.0.0-2021113205234 → 0.0.0-2021113205755

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 (215) hide show
  1. package/dist/browser.esm.js +2 -2227
  2. package/dist/browser.esm.js.map +1 -1
  3. package/dist/browser.umd.js +2 -2227
  4. package/dist/browser.umd.js.map +1 -1
  5. package/lib/ActionList/Header.js +1 -1
  6. package/lib/ActionList/Item.js +10 -10
  7. package/lib/ActionList/List.js +1 -1
  8. package/lib/ActionList2/Divider.d.ts +3 -2
  9. package/lib/ActionList2/Divider.js +10 -5
  10. package/lib/ActionList2/Item.js +22 -6
  11. package/lib/ActionList2/List.js +12 -2
  12. package/lib/ActionList2/MenuContext.d.ts +10 -0
  13. package/lib/{ChoiceFieldset/ChoiceFieldsetValidation.js → ActionList2/MenuContext.js} +4 -6
  14. package/lib/ActionList2/Selection.js +11 -0
  15. package/lib/ActionList2/index.d.ts +1 -2
  16. package/lib/ActionMenu2.d.ts +313 -0
  17. package/lib/ActionMenu2.js +91 -0
  18. package/lib/Autocomplete/Autocomplete.d.ts +2 -1
  19. package/lib/Autocomplete/AutocompleteInput.d.ts +2 -1
  20. package/lib/Avatar.d.ts +1 -2
  21. package/lib/Avatar.js +1 -1
  22. package/lib/BaseStyles.js +2 -20
  23. package/lib/BorderBox.js +1 -1
  24. package/lib/Box.js +1 -1
  25. package/lib/BranchName.d.ts +1 -2
  26. package/lib/BranchName.js +1 -1
  27. package/lib/Breadcrumbs.js +3 -3
  28. package/lib/Button/Button.d.ts +2 -2
  29. package/lib/Button/Button.js +1 -1
  30. package/lib/Button/ButtonClose.d.ts +2 -2
  31. package/lib/Button/ButtonDanger.d.ts +2 -2
  32. package/lib/Button/ButtonGroup.js +1 -1
  33. package/lib/Button/ButtonInvisible.d.ts +2 -2
  34. package/lib/Button/ButtonOutline.d.ts +2 -2
  35. package/lib/Button/ButtonPrimary.d.ts +2 -2
  36. package/lib/Checkbox.js +1 -1
  37. package/lib/CheckboxInputField.d.ts +2 -3
  38. package/lib/CircleOcticon.d.ts +35 -35
  39. package/lib/Details.d.ts +1 -2
  40. package/lib/Details.js +2 -4
  41. package/lib/Dialog.d.ts +37 -37
  42. package/lib/Dropdown.d.ts +8 -72
  43. package/lib/DropdownMenu/DropdownButton.d.ts +6 -3
  44. package/lib/FilterList.d.ts +1 -1
  45. package/lib/FilteredActionList/FilteredActionList.js +1 -1
  46. package/lib/Flex.js +1 -1
  47. package/lib/Heading.d.ts +1 -2
  48. package/lib/Heading.js +1 -6
  49. package/lib/LabelGroup.js +1 -1
  50. package/lib/Overlay.js +1 -1
  51. package/lib/Pagination/Pagination.js +2 -2
  52. package/lib/Position.d.ts +4 -4
  53. package/lib/Position.js +1 -1
  54. package/lib/ProgressBar.d.ts +16 -11
  55. package/lib/ProgressBar.js +6 -10
  56. package/lib/RadioInputField.d.ts +1 -2
  57. package/lib/SelectMenu/SelectMenu.d.ts +11 -10
  58. package/lib/SelectMenu/SelectMenu.js +1 -1
  59. package/lib/SelectMenu/SelectMenuFilter.js +1 -1
  60. package/lib/SelectMenu/SelectMenuFooter.js +1 -1
  61. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  62. package/lib/SelectMenu/SelectMenuItem.js +1 -1
  63. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  64. package/lib/SelectMenu/SelectMenuTab.js +1 -1
  65. package/lib/SelectMenu/SelectMenuTabPanel.js +1 -1
  66. package/lib/SelectMenu/SelectMenuTabs.js +1 -1
  67. package/lib/Spinner.d.ts +1 -2
  68. package/lib/Spinner.js +1 -3
  69. package/lib/StateLabel.js +1 -1
  70. package/lib/StyledOcticon.js +1 -1
  71. package/lib/SubNav.js +3 -3
  72. package/lib/TextInputField.d.ts +4 -2
  73. package/lib/TextInputWithTokens.d.ts +2 -1
  74. package/lib/ThemeProvider.d.ts +1 -0
  75. package/lib/ThemeProvider.js +17 -4
  76. package/lib/Timeline.js +4 -4
  77. package/lib/Token/AvatarToken.d.ts +1 -1
  78. package/lib/Token/AvatarToken.js +1 -1
  79. package/lib/Token/IssueLabelToken.d.ts +1 -1
  80. package/lib/Token/Token.d.ts +1 -1
  81. package/lib/Token/TokenBase.js +1 -1
  82. package/lib/Tooltip.js +1 -1
  83. package/lib/UnderlineNav.js +2 -2
  84. package/lib/_InputCaption.js +0 -1
  85. package/lib/_InputField/ToggleInputField.d.ts +2 -2
  86. package/lib/drafts.d.ts +1 -0
  87. package/lib/drafts.js +13 -0
  88. package/lib/index.d.ts +0 -1
  89. package/lib/index.js +0 -14
  90. package/lib-esm/ActionList/Header.js +1 -1
  91. package/lib-esm/ActionList/Item.js +10 -10
  92. package/lib-esm/ActionList/List.js +1 -1
  93. package/lib-esm/ActionList2/Divider.d.ts +3 -2
  94. package/lib-esm/ActionList2/Divider.js +8 -5
  95. package/lib-esm/ActionList2/Item.js +20 -6
  96. package/lib-esm/ActionList2/List.js +10 -2
  97. package/lib-esm/ActionList2/MenuContext.d.ts +10 -0
  98. package/lib-esm/ActionList2/MenuContext.js +3 -0
  99. package/lib-esm/ActionList2/Selection.js +9 -0
  100. package/lib-esm/ActionList2/index.d.ts +1 -2
  101. package/lib-esm/ActionMenu2.d.ts +313 -0
  102. package/lib-esm/ActionMenu2.js +67 -0
  103. package/lib-esm/Autocomplete/Autocomplete.d.ts +2 -1
  104. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +2 -1
  105. package/lib-esm/Avatar.d.ts +1 -2
  106. package/lib-esm/Avatar.js +2 -2
  107. package/lib-esm/BaseStyles.js +2 -20
  108. package/lib-esm/BorderBox.js +1 -1
  109. package/lib-esm/Box.js +1 -1
  110. package/lib-esm/BranchName.d.ts +1 -2
  111. package/lib-esm/BranchName.js +2 -2
  112. package/lib-esm/Breadcrumbs.js +3 -3
  113. package/lib-esm/Button/Button.d.ts +2 -2
  114. package/lib-esm/Button/Button.js +1 -1
  115. package/lib-esm/Button/ButtonClose.d.ts +2 -2
  116. package/lib-esm/Button/ButtonDanger.d.ts +2 -2
  117. package/lib-esm/Button/ButtonGroup.js +1 -1
  118. package/lib-esm/Button/ButtonInvisible.d.ts +2 -2
  119. package/lib-esm/Button/ButtonOutline.d.ts +2 -2
  120. package/lib-esm/Button/ButtonPrimary.d.ts +2 -2
  121. package/lib-esm/Checkbox.js +1 -1
  122. package/lib-esm/CheckboxInputField.d.ts +2 -3
  123. package/lib-esm/CircleOcticon.d.ts +35 -35
  124. package/lib-esm/Details.d.ts +1 -2
  125. package/lib-esm/Details.js +2 -3
  126. package/lib-esm/Dialog.d.ts +37 -37
  127. package/lib-esm/Dropdown.d.ts +8 -72
  128. package/lib-esm/DropdownMenu/DropdownButton.d.ts +6 -3
  129. package/lib-esm/FilterList.d.ts +1 -1
  130. package/lib-esm/FilteredActionList/FilteredActionList.js +1 -1
  131. package/lib-esm/Flex.js +1 -1
  132. package/lib-esm/Heading.d.ts +1 -2
  133. package/lib-esm/Heading.js +2 -6
  134. package/lib-esm/LabelGroup.js +1 -1
  135. package/lib-esm/Overlay.js +1 -1
  136. package/lib-esm/Pagination/Pagination.js +2 -2
  137. package/lib-esm/Position.d.ts +4 -4
  138. package/lib-esm/Position.js +1 -1
  139. package/lib-esm/ProgressBar.d.ts +16 -11
  140. package/lib-esm/ProgressBar.js +7 -11
  141. package/lib-esm/RadioInputField.d.ts +1 -2
  142. package/lib-esm/SelectMenu/SelectMenu.d.ts +11 -10
  143. package/lib-esm/SelectMenu/SelectMenu.js +1 -1
  144. package/lib-esm/SelectMenu/SelectMenuFilter.js +1 -1
  145. package/lib-esm/SelectMenu/SelectMenuFooter.js +1 -1
  146. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  147. package/lib-esm/SelectMenu/SelectMenuItem.js +1 -1
  148. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  149. package/lib-esm/SelectMenu/SelectMenuTab.js +1 -1
  150. package/lib-esm/SelectMenu/SelectMenuTabPanel.js +1 -1
  151. package/lib-esm/SelectMenu/SelectMenuTabs.js +1 -1
  152. package/lib-esm/Spinner.d.ts +1 -2
  153. package/lib-esm/Spinner.js +1 -2
  154. package/lib-esm/StateLabel.js +1 -1
  155. package/lib-esm/StyledOcticon.js +1 -1
  156. package/lib-esm/SubNav.js +3 -3
  157. package/lib-esm/TextInputField.d.ts +4 -2
  158. package/lib-esm/TextInputWithTokens.d.ts +2 -1
  159. package/lib-esm/ThemeProvider.d.ts +1 -0
  160. package/lib-esm/ThemeProvider.js +17 -4
  161. package/lib-esm/Timeline.js +4 -4
  162. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  163. package/lib-esm/Token/AvatarToken.js +1 -1
  164. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  165. package/lib-esm/Token/Token.d.ts +1 -1
  166. package/lib-esm/Token/TokenBase.js +1 -1
  167. package/lib-esm/Tooltip.js +1 -1
  168. package/lib-esm/UnderlineNav.js +2 -2
  169. package/lib-esm/_InputCaption.js +0 -1
  170. package/lib-esm/_InputField/ToggleInputField.d.ts +2 -2
  171. package/lib-esm/drafts.d.ts +1 -0
  172. package/lib-esm/drafts.js +2 -1
  173. package/lib-esm/index.d.ts +0 -1
  174. package/lib-esm/index.js +0 -1
  175. package/package.json +14 -8
  176. package/CHANGELOG.md +0 -988
  177. package/lib/ChoiceFieldset/ChoiceFieldCaption.d.ts +0 -3
  178. package/lib/ChoiceFieldset/ChoiceFieldCaption.js +0 -35
  179. package/lib/ChoiceFieldset/ChoiceFieldLabel.d.ts +0 -3
  180. package/lib/ChoiceFieldset/ChoiceFieldLabel.js +0 -35
  181. package/lib/ChoiceFieldset/ChoiceFieldset.d.ts +0 -65
  182. package/lib/ChoiceFieldset/ChoiceFieldset.js +0 -95
  183. package/lib/ChoiceFieldset/ChoiceFieldsetDescription.d.ts +0 -3
  184. package/lib/ChoiceFieldset/ChoiceFieldsetDescription.js +0 -29
  185. package/lib/ChoiceFieldset/ChoiceFieldsetLegend.d.ts +0 -9
  186. package/lib/ChoiceFieldset/ChoiceFieldsetLegend.js +0 -44
  187. package/lib/ChoiceFieldset/ChoiceFieldsetList.d.ts +0 -9
  188. package/lib/ChoiceFieldset/ChoiceFieldsetList.js +0 -80
  189. package/lib/ChoiceFieldset/ChoiceFieldsetListContext.d.ts +0 -19
  190. package/lib/ChoiceFieldset/ChoiceFieldsetListContext.js +0 -15
  191. package/lib/ChoiceFieldset/ChoiceFieldsetListItem.d.ts +0 -25
  192. package/lib/ChoiceFieldset/ChoiceFieldsetListItem.js +0 -75
  193. package/lib/ChoiceFieldset/ChoiceFieldsetValidation.d.ts +0 -6
  194. package/lib/ChoiceFieldset/index.d.ts +0 -3
  195. package/lib/ChoiceFieldset/index.js +0 -23
  196. package/lib-esm/ChoiceFieldset/ChoiceFieldCaption.d.ts +0 -3
  197. package/lib-esm/ChoiceFieldset/ChoiceFieldCaption.js +0 -20
  198. package/lib-esm/ChoiceFieldset/ChoiceFieldLabel.d.ts +0 -3
  199. package/lib-esm/ChoiceFieldset/ChoiceFieldLabel.js +0 -20
  200. package/lib-esm/ChoiceFieldset/ChoiceFieldset.d.ts +0 -65
  201. package/lib-esm/ChoiceFieldset/ChoiceFieldset.js +0 -72
  202. package/lib-esm/ChoiceFieldset/ChoiceFieldsetDescription.d.ts +0 -3
  203. package/lib-esm/ChoiceFieldset/ChoiceFieldsetDescription.js +0 -17
  204. package/lib-esm/ChoiceFieldset/ChoiceFieldsetLegend.d.ts +0 -9
  205. package/lib-esm/ChoiceFieldset/ChoiceFieldsetLegend.js +0 -31
  206. package/lib-esm/ChoiceFieldset/ChoiceFieldsetList.d.ts +0 -9
  207. package/lib-esm/ChoiceFieldset/ChoiceFieldsetList.js +0 -63
  208. package/lib-esm/ChoiceFieldset/ChoiceFieldsetListContext.d.ts +0 -19
  209. package/lib-esm/ChoiceFieldset/ChoiceFieldsetListContext.js +0 -5
  210. package/lib-esm/ChoiceFieldset/ChoiceFieldsetListItem.d.ts +0 -25
  211. package/lib-esm/ChoiceFieldset/ChoiceFieldsetListItem.js +0 -51
  212. package/lib-esm/ChoiceFieldset/ChoiceFieldsetValidation.d.ts +0 -6
  213. package/lib-esm/ChoiceFieldset/ChoiceFieldsetValidation.js +0 -7
  214. package/lib-esm/ChoiceFieldset/index.d.ts +0 -3
  215. package/lib-esm/ChoiceFieldset/index.js +0 -2
@@ -53,7 +53,10 @@ const ThemeProvider = ({
53
53
  const resolvedColorMode = resolveColorMode(colorMode, systemColorMode);
54
54
  const colorScheme = chooseColorScheme(resolvedColorMode, dayScheme, nightScheme);
55
55
 
56
- const resolvedTheme = _react.default.useMemo(() => applyColorScheme(theme, colorScheme), [theme, colorScheme]); // Update state if props change
56
+ const {
57
+ resolvedTheme,
58
+ resolvedColorScheme
59
+ } = _react.default.useMemo(() => applyColorScheme(theme, colorScheme), [theme, colorScheme]); // Update state if props change
57
60
 
58
61
 
59
62
  _react.default.useEffect(() => {
@@ -80,6 +83,7 @@ const ThemeProvider = ({
80
83
  colorScheme,
81
84
  colorMode,
82
85
  resolvedColorMode,
86
+ resolvedColorScheme,
83
87
  dayScheme,
84
88
  nightScheme,
85
89
  setColorMode,
@@ -175,7 +179,10 @@ function chooseColorScheme(colorMode, dayScheme, nightScheme) {
175
179
 
176
180
  function applyColorScheme(theme, colorScheme) {
177
181
  if (!theme.colorSchemes) {
178
- return theme;
182
+ return {
183
+ resolvedTheme: theme,
184
+ resolvedColorScheme: undefined
185
+ };
179
186
  }
180
187
 
181
188
  if (!theme.colorSchemes[colorScheme]) {
@@ -183,10 +190,16 @@ function applyColorScheme(theme, colorScheme) {
183
190
  console.error(`\`${colorScheme}\` scheme not defined in \`theme.colorSchemes\``); // Apply the first defined color scheme
184
191
 
185
192
  const defaultColorScheme = Object.keys(theme.colorSchemes)[0];
186
- return (0, _deepmerge.default)(theme, theme.colorSchemes[defaultColorScheme]);
193
+ return {
194
+ resolvedTheme: (0, _deepmerge.default)(theme, theme.colorSchemes[defaultColorScheme]),
195
+ resolvedColorScheme: defaultColorScheme
196
+ };
187
197
  }
188
198
 
189
- return (0, _deepmerge.default)(theme, theme.colorSchemes[colorScheme]);
199
+ return {
200
+ resolvedTheme: (0, _deepmerge.default)(theme, theme.colorSchemes[colorScheme]),
201
+ resolvedColorScheme: colorScheme
202
+ };
190
203
  }
191
204
 
192
205
  var _default = ThemeProvider;
package/lib/Timeline.js CHANGED
@@ -25,14 +25,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
25
25
 
26
26
  const Timeline = _styledComponents.default.div.withConfig({
27
27
  displayName: "Timeline",
28
- componentId: "c4dq2e-0"
28
+ componentId: "sc-c4dq2e-0"
29
29
  })(["display:flex;flex-direction:column;", " ", ";"], props => props.clipSidebar && (0, _styledComponents.css)([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"]), _sx.default);
30
30
 
31
31
  const TimelineItem = _styledComponents.default.div.attrs(props => ({
32
32
  className: (0, _classnames.default)('Timeline-Item', props.className)
33
33
  })).withConfig({
34
34
  displayName: "Timeline__TimelineItem",
35
- componentId: "c4dq2e-1"
35
+ componentId: "sc-c4dq2e-1"
36
36
  })(["display:flex;position:relative;padding:", " 0;margin-left:", ";&::before{position:absolute;top:0;bottom:0;left:0;display:block;width:2px;content:'';background-color:", ";}", " ", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('space.3'), (0, _constants.get)('colors.border.muted'), props => props.condensed && (0, _styledComponents.css)(["padding-top:", ";padding-bottom:0;&:last-child{padding-bottom:", ";}.TimelineItem-Badge{height:16px;margin-top:", ";margin-bottom:", ";color:", ";background-color:", ";border:0;}"], (0, _constants.get)('space.1'), (0, _constants.get)('space.3'), (0, _constants.get)('space.2'), (0, _constants.get)('space.2'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.canvas.default')), _sx.default);
37
37
 
38
38
  const TimelineBadge = props => {
@@ -64,12 +64,12 @@ TimelineBadge.displayName = "TimelineBadge";
64
64
 
65
65
  const TimelineBody = _styledComponents.default.div.withConfig({
66
66
  displayName: "Timeline__TimelineBody",
67
- componentId: "c4dq2e-2"
67
+ componentId: "sc-c4dq2e-2"
68
68
  })(["min-width:0;max-width:100%;margin-top:", ";color:", ";flex:auto;font-size:", ";", ";"], (0, _constants.get)('space.1'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('fontSizes.1'), _sx.default);
69
69
 
70
70
  const TimelineBreak = _styledComponents.default.div.withConfig({
71
71
  displayName: "Timeline__TimelineBreak",
72
- componentId: "c4dq2e-3"
72
+ componentId: "sc-c4dq2e-3"
73
73
  })(["position:relative z-index:1;height:24px;margin:0;margin-bottom:-", ";margin-left:0;background-color:", ";border:0;border-top:", " solid ", ";", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('colors.canvas.default'), (0, _constants.get)('space.1'), (0, _constants.get)('colors.border.default'), _sx.default);
74
74
 
75
75
  TimelineItem.displayName = 'Timeline.Item';
@@ -3,5 +3,5 @@ import { TokenBaseProps } from './TokenBase';
3
3
  export interface AvatarTokenProps extends TokenBaseProps {
4
4
  avatarSrc: string;
5
5
  }
6
- declare const AvatarToken: React.ForwardRefExoticComponent<Pick<AvatarTokenProps, "default" | "muted" | "sizes" | "color" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "start" | "size" | "wrap" | "open" | "list" | "multiple" | "role" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "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" | "as" | "step" | "disabled" | "selected" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "max" | "method" | "min" | "crossOrigin" | "classID" | "useMap" | "wmode" | "integrity" | "charSet" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "playsInline" | "preload" | "src" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "async" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "onRemove" | "isSelected" | "avatarSrc"> & React.RefAttributes<HTMLElement>>;
6
+ declare const AvatarToken: React.ForwardRefExoticComponent<Pick<AvatarTokenProps, "default" | "muted" | "sizes" | "color" | "property" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "start" | "size" | "wrap" | "open" | "list" | "multiple" | "role" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "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" | "disabled" | "as" | "step" | "selected" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "max" | "method" | "min" | "crossOrigin" | "classID" | "useMap" | "wmode" | "integrity" | "charSet" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "playsInline" | "preload" | "src" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "async" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "onRemove" | "isSelected" | "avatarSrc"> & React.RefAttributes<HTMLElement>>;
7
7
  export default AvatarToken;
@@ -27,7 +27,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
27
27
 
28
28
  const AvatarContainer = _styledComponents.default.span.withConfig({
29
29
  displayName: "AvatarToken__AvatarContainer",
30
- componentId: "ubyudc-0"
30
+ componentId: "sc-ubyudc-0"
31
31
  })(["--spacing:calc(", " * 2);display:block;height:", ";width:", ";"], (0, _constants.get)('space.1'), props => `calc(${_TokenBase.tokenSizes[props.avatarSize]} - var(--spacing))`, props => `calc(${_TokenBase.tokenSizes[props.avatarSize]} - var(--spacing))`);
32
32
 
33
33
  const AvatarToken = /*#__PURE__*/(0, _react.forwardRef)(({
@@ -10,5 +10,5 @@ export interface IssueLabelTokenProps extends TokenBaseProps {
10
10
  */
11
11
  hideRemoveButton?: boolean;
12
12
  }
13
- declare const IssueLabelToken: React.ForwardRefExoticComponent<Pick<IssueLabelTokenProps, "default" | "muted" | "sizes" | "color" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "start" | "size" | "wrap" | "open" | "list" | "multiple" | "role" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "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" | "as" | "step" | "disabled" | "selected" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "max" | "method" | "min" | "crossOrigin" | "classID" | "useMap" | "wmode" | "integrity" | "charSet" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "playsInline" | "preload" | "src" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "async" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "onRemove" | "isSelected" | "hideRemoveButton" | "fillColor"> & React.RefAttributes<HTMLElement>>;
13
+ declare const IssueLabelToken: React.ForwardRefExoticComponent<Pick<IssueLabelTokenProps, "default" | "muted" | "sizes" | "color" | "property" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "start" | "size" | "wrap" | "open" | "list" | "multiple" | "role" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "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" | "disabled" | "as" | "step" | "selected" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "max" | "method" | "min" | "crossOrigin" | "classID" | "useMap" | "wmode" | "integrity" | "charSet" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "playsInline" | "preload" | "src" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "async" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "onRemove" | "isSelected" | "hideRemoveButton" | "fillColor"> & React.RefAttributes<HTMLElement>>;
14
14
  export default IssueLabelToken;
@@ -11,5 +11,5 @@ export interface TokenProps extends TokenBaseProps {
11
11
  */
12
12
  hideRemoveButton?: boolean;
13
13
  }
14
- declare const Token: React.ForwardRefExoticComponent<Pick<TokenProps & SxProp, "default" | "muted" | "sizes" | "color" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "start" | "size" | "wrap" | "open" | "list" | "multiple" | "role" | "sx" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "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" | "as" | "step" | "disabled" | "selected" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "max" | "method" | "min" | "crossOrigin" | "classID" | "useMap" | "wmode" | "integrity" | "charSet" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "playsInline" | "preload" | "src" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "async" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "leadingVisual" | "onRemove" | "isSelected" | "hideRemoveButton"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
14
+ declare const Token: React.ForwardRefExoticComponent<Pick<TokenProps & SxProp, "default" | "muted" | "sizes" | "color" | "property" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "start" | "size" | "wrap" | "open" | "list" | "multiple" | "role" | "sx" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "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" | "disabled" | "as" | "step" | "selected" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "max" | "method" | "min" | "crossOrigin" | "classID" | "useMap" | "wmode" | "integrity" | "charSet" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "playsInline" | "preload" | "src" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "async" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "leadingVisual" | "onRemove" | "isSelected" | "hideRemoveButton"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
15
15
  export default Token;
@@ -93,7 +93,7 @@ const TokenBase = _styledComponents.default.span.attrs(({
93
93
  'aria-label': onRemove ? `${text}, press backspace or delete to remove` : undefined
94
94
  })).withConfig({
95
95
  displayName: "TokenBase",
96
- componentId: "opajvp-0"
96
+ componentId: "sc-opajvp-0"
97
97
  })(["align-items:center;border-radius:999px;cursor:", ";display:inline-flex;font-weight:", ";font-family:inherit;text-decoration:none;white-space:nowrap;", " ", ""], props => isTokenInteractive(props) ? 'pointer' : 'auto', (0, _constants.get)('fontWeights.bold'), variants, _sx.default);
98
98
 
99
99
  TokenBase.defaultProps = {
package/lib/Tooltip.js CHANGED
@@ -21,7 +21,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
21
21
 
22
22
  const TooltipBase = _styledComponents.default.span.withConfig({
23
23
  displayName: "Tooltip__TooltipBase",
24
- componentId: "kp39nc-0"
24
+ componentId: "sc-kp39nc-0"
25
25
  })(["position:relative;&::before{position:absolute;z-index:1000001;display:none;width:0px;height:0px;color:", ";pointer-events:none;content:'';border:6px solid transparent;opacity:0;}&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 ", ";-webkit-font-smoothing:subpixel-antialiased;color:", ";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:", ";border-radius:", ";opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:hover,&:active,&:focus{&::before,&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0.4s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus{&::before,&::after{animation-delay:0s;}}&.tooltipped-multiline:hover,&.tooltipped-multiline:active,&.tooltipped-multiline:focus{&::after{display:table-cell;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}&::before{top:auto;right:50%;bottom:-7px;margin-right:-6px;border-bottom-color:", ";}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-", ";}}&.tooltipped-sw::after{margin-right:-", ";}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}&::before{top:-7px;right:50%;bottom:auto;margin-right:-6px;border-top-color:", ";}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-", ";}}&.tooltipped-nw::after{margin-right:-", ";}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}&::before{top:50%;bottom:50%;left:-7px;margin-top:-6px;border-left-color:", ";}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}&::before{top:50%;right:-7px;bottom:50%;margin-top:-6px;border-right-color:", ";}}&.tooltipped-multiline{&::after{width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}&.tooltipped-s::after,&.tooltipped-n::after{right:auto;left:50%;transform:translateX(-50%);}&.tooltipped-w::after,&.tooltipped-e::after{right:100%;}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-right-2::before{right:15px;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}&.tooltipped-align-left-2::before{left:10px;}", ";"], (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('fonts.normal'), (0, _constants.get)('colors.fg.onEmphasis'), (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('radii.1'), (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('space.3'), (0, _constants.get)('space.3'), (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('space.3'), (0, _constants.get)('space.3'), (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('colors.neutral.emphasisPlus'), _sx.default);
26
26
 
27
27
  function Tooltip({
@@ -24,7 +24,7 @@ const SELECTED_CLASS = 'selected';
24
24
 
25
25
  const UnderlineNavBase = _styledComponents.default.nav.withConfig({
26
26
  displayName: "UnderlineNav__UnderlineNavBase",
27
- componentId: "zrnxqt-0"
27
+ componentId: "sc-zrnxqt-0"
28
28
  })(["display:flex;justify-content:space-between;border-bottom:1px solid ", ";&.UnderlineNav--right{justify-content:flex-end;.UnderlineNav-item{margin-right:0;margin-left:", ";}.UnderlineNav-actions{flex:1 1 auto;}}&.UnderlineNav--full{display:block;}.UnderlineNav-body{display:flex;margin-bottom:-1px;}.UnderlineNav-actions{align-self:center;}", ";"], (0, _constants.get)('colors.border.muted'), (0, _constants.get)('space.3'), _sx.default);
29
29
 
30
30
  function UnderlineNav({
@@ -56,7 +56,7 @@ const UnderlineNavLink = _styledComponents.default.a.attrs(props => ({
56
56
  className: (0, _classnames.default)(ITEM_CLASS, props.selected && SELECTED_CLASS, props.className)
57
57
  })).withConfig({
58
58
  displayName: "UnderlineNav__UnderlineNavLink",
59
- componentId: "zrnxqt-1"
59
+ componentId: "sc-zrnxqt-1"
60
60
  })(["padding:", " ", ";margin-right:", ";font-size:", ";line-height:", ";color:", ";text-align:center;border-bottom:2px solid transparent;text-decoration:none;&:hover,&:focus{color:", ";text-decoration:none;border-bottom-color:", ";transition:0.2s ease;.UnderlineNav-octicon{color:", ";}}&.selected{color:", ";border-bottom-color:", ";.UnderlineNav-octicon{color:", ";}}", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('space.2'), (0, _constants.get)('space.3'), (0, _constants.get)('fontSizes.1'), (0, _constants.get)('lineHeights.default'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.neutral.muted'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.primer.border.active'), (0, _constants.get)('colors.fg.default'), _sx.default);
61
61
 
62
62
  UnderlineNavLink.displayName = 'UnderlineNav.Link';
@@ -17,7 +17,6 @@ const InputCaption = ({
17
17
  id
18
18
  }) => /*#__PURE__*/_react.default.createElement(_.Text, {
19
19
  color: disabled ? 'fg.subtle' : 'fg.muted',
20
- display: "block",
21
20
  fontSize: 0,
22
21
  id: id
23
22
  }, children);
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { Props as InputFieldProps } from './InputField';
3
3
  import { FormValidationStatus } from '../utils/types/FormValidationStatus';
4
- export interface ToggleInputFieldProps extends Pick<InputFieldProps, 'disabled' | 'id'> {
4
+ export interface Props extends Pick<InputFieldProps, 'disabled' | 'id'> {
5
5
  /**
6
6
  * Styles the field to visually communicate the result of form validation
7
7
  */
8
8
  validationStatus?: FormValidationStatus;
9
9
  }
10
- declare const _default: React.FC<ToggleInputFieldProps> & {
10
+ declare const _default: React.FC<Props> & {
11
11
  LeadingVisual: React.FC<{}>;
12
12
  };
13
13
  export default _default;
package/lib/drafts.d.ts CHANGED
@@ -6,3 +6,4 @@
6
6
  */
7
7
  export * from './ActionList2';
8
8
  export * from './NewButton';
9
+ export * from './ActionMenu2';
package/lib/drafts.js CHANGED
@@ -28,4 +28,17 @@ Object.keys(_NewButton).forEach(function (key) {
28
28
  return _NewButton[key];
29
29
  }
30
30
  });
31
+ });
32
+
33
+ var _ActionMenu = require("./ActionMenu2");
34
+
35
+ Object.keys(_ActionMenu).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (key in exports && exports[key] === _ActionMenu[key]) return;
38
+ Object.defineProperty(exports, key, {
39
+ enumerable: true,
40
+ get: function () {
41
+ return _ActionMenu[key];
42
+ }
43
+ });
31
44
  });
package/lib/index.d.ts CHANGED
@@ -47,7 +47,6 @@ export type { CircleBadgeProps, CircleBadgeIconProps } from './CircleBadge';
47
47
  export { default as CircleOcticon } from './CircleOcticon';
48
48
  export type { CircleOcticonProps } from './CircleOcticon';
49
49
  export { default as CheckboxInputField } from './CheckboxInputField';
50
- export { default as ChoiceFieldset, Item } from './ChoiceFieldset';
51
50
  export { default as CounterLabel } from './CounterLabel';
52
51
  export type { CounterLabelProps } from './CounterLabel';
53
52
  export { default as Details } from './Details';
package/lib/index.js CHANGED
@@ -273,18 +273,6 @@ Object.defineProperty(exports, "CheckboxInputField", {
273
273
  return _CheckboxInputField.default;
274
274
  }
275
275
  });
276
- Object.defineProperty(exports, "ChoiceFieldset", {
277
- enumerable: true,
278
- get: function () {
279
- return _ChoiceFieldset.default;
280
- }
281
- });
282
- Object.defineProperty(exports, "Item", {
283
- enumerable: true,
284
- get: function () {
285
- return _ChoiceFieldset.Item;
286
- }
287
- });
288
276
  Object.defineProperty(exports, "CounterLabel", {
289
277
  enumerable: true,
290
278
  get: function () {
@@ -604,8 +592,6 @@ var _CircleOcticon = _interopRequireDefault(require("./CircleOcticon"));
604
592
 
605
593
  var _CheckboxInputField = _interopRequireDefault(require("./CheckboxInputField"));
606
594
 
607
- var _ChoiceFieldset = _interopRequireWildcard(require("./ChoiceFieldset"));
608
-
609
595
  var _CounterLabel = _interopRequireDefault(require("./CounterLabel"));
610
596
 
611
597
  var _Details = _interopRequireDefault(require("./Details"));
@@ -10,7 +10,7 @@ import sx from '../sx';
10
10
 
11
11
  export const StyledHeader = styled.div.withConfig({
12
12
  displayName: "Header__StyledHeader",
13
- componentId: "qmofje-0"
13
+ componentId: "sc-qmofje-0"
14
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
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);
@@ -48,15 +48,15 @@ const getItemVariant = (variant = 'default', disabled) => {
48
48
 
49
49
  const DividedContent = styled.div.withConfig({
50
50
  displayName: "Item__DividedContent",
51
- componentId: "jqpvy8-0"
51
+ componentId: "sc-jqpvy8-0"
52
52
  })(["display:flex;min-width:0;position:relative;flex-grow:1;"]);
53
53
  const MainContent = styled.div.withConfig({
54
54
  displayName: "Item__MainContent",
55
- componentId: "jqpvy8-1"
55
+ componentId: "sc-jqpvy8-1"
56
56
  })(["align-items:baseline;display:flex;min-width:0;flex-direction:var(--main-content-flex-direction);flex-grow:1;"]);
57
57
  const StyledItem = styled.div.withConfig({
58
58
  displayName: "Item__StyledItem",
59
- componentId: "jqpvy8-2"
59
+ componentId: "sc-jqpvy8-2"
60
60
  })(["padding:6px ", ";display:flex;border-radius:", ";color:", ";transition:background 33.333ms linear;text-decoration:none;@media (hover:hover) and (pointer:fine){:hover{background:var( --item-hover-bg-override,", " );color:", ";cursor:", ";}}:not(:first-of-type):not(", " + &):not(", " + &){margin-top:", ";", "::before{content:' ';display:block;position:absolute;width:100%;top:-7px;border:0 solid ", ";border-top-width:", ";}}&:hover ", "::before,:hover + * ", "::before{border-color:var(--item-hover-divider-border-color-override,transparent) !important;}&:focus ", "::before,:focus + * ", "::before,&[", "] ", "::before,[", "] + & ", "::before{border-color:transparent !important;}&[", "='", "']{background:", ";}&[", "='", "']{background:", ";}&:focus{background:", ";outline:none;}&:active{background:", ";}", ""], get('space.2'), get('radii.2'), ({
61
61
  variant,
62
62
  item
@@ -88,37 +88,37 @@ const StyledItem = styled.div.withConfig({
88
88
  }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).focusBg, sx);
89
89
  export const TextContainer = styled.span.withConfig({
90
90
  displayName: "Item__TextContainer",
91
- componentId: "jqpvy8-3"
91
+ componentId: "sc-jqpvy8-3"
92
92
  })([""]);
93
93
  const BaseVisualContainer = styled.div.withConfig({
94
94
  displayName: "Item__BaseVisualContainer",
95
- componentId: "jqpvy8-4"
95
+ componentId: "sc-jqpvy8-4"
96
96
  })(["height:20px;width:", ";margin-right:", ";display:flex;justify-content:center;align-items:center;flex-shrink:0;"], get('space.3'), get('space.2'));
97
97
  const ColoredVisualContainer = styled(BaseVisualContainer).withConfig({
98
98
  displayName: "Item__ColoredVisualContainer",
99
- componentId: "jqpvy8-5"
99
+ componentId: "sc-jqpvy8-5"
100
100
  })(["svg{fill:", ";font-size:", ";}"], ({
101
101
  variant,
102
102
  disabled
103
103
  }) => getItemVariant(variant, disabled).iconColor, get('fontSizes.0'));
104
104
  const LeadingVisualContainer = styled(ColoredVisualContainer).withConfig({
105
105
  displayName: "Item__LeadingVisualContainer",
106
- componentId: "jqpvy8-6"
106
+ componentId: "sc-jqpvy8-6"
107
107
  })(["display:flex;flex-direction:column;justify-content:center;"]);
108
108
  const TrailingContent = styled(ColoredVisualContainer).withConfig({
109
109
  displayName: "Item__TrailingContent",
110
- componentId: "jqpvy8-7"
110
+ componentId: "sc-jqpvy8-7"
111
111
  })(["color:", "};margin-left:", ";margin-right:0;width:auto;div:nth-child(2){margin-left:", ";}"], ({
112
112
  variant,
113
113
  disabled
114
114
  }) => getItemVariant(variant, disabled).annotationColor, get('space.2'), get('space.2'));
115
115
  const DescriptionContainer = styled.span.withConfig({
116
116
  displayName: "Item__DescriptionContainer",
117
- componentId: "jqpvy8-8"
117
+ componentId: "sc-jqpvy8-8"
118
118
  })(["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'));
119
119
  const MultiSelectIcon = styled.svg.withConfig({
120
120
  displayName: "Item__MultiSelectIcon",
121
- componentId: "jqpvy8-9"
121
+ componentId: "sc-jqpvy8-9"
122
122
  })(["rect{fill:", ";stroke:", ";shape-rendering:auto;}path{fill:", ";boxshadow:", ";opacity:", ";}"], ({
123
123
  selected
124
124
  }) => selected ? get('colors.accent.fg') : get('colors.canvas.default'), ({
@@ -22,7 +22,7 @@ function isGroupedListProps(props) {
22
22
 
23
23
  const StyledList = styled.div.withConfig({
24
24
  displayName: "List__StyledList",
25
- componentId: "yr2k7d-0"
25
+ componentId: "sc-yr2k7d-0"
26
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.
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
+ import { SxProp } from '../sx';
2
3
  /**
3
4
  * Visually separates `Item`s or `Group`s in an `ActionList`.
4
5
  */
5
- export declare function Divider(): JSX.Element;
6
+ export declare const Divider: React.FC<SxProp>;
@@ -1,23 +1,26 @@
1
1
  import React from 'react';
2
2
  import Box from '../Box';
3
3
  import { get } from '../constants';
4
-
4
+ import { merge } from '../sx';
5
5
  /**
6
6
  * Visually separates `Item`s or `Group`s in an `ActionList`.
7
7
  */
8
- export function Divider() {
8
+
9
+ export const Divider = ({
10
+ sx = {}
11
+ }) => {
9
12
  return /*#__PURE__*/React.createElement(Box, {
10
13
  as: "li",
11
14
  role: "separator",
12
- sx: {
15
+ sx: merge({
13
16
  height: 1,
14
17
  backgroundColor: 'actionListItem.inlineDivider',
15
18
  marginTop: theme => `calc(${get('space.2')(theme)} - 1px)`,
16
19
  marginBottom: 2,
17
20
  listStyle: 'none' // hide the ::marker inserted by browser's stylesheet
18
21
 
19
- },
22
+ }, sx),
20
23
  "data-component": "ActionList.Divider"
21
24
  });
22
- }
25
+ };
23
26
  Divider.displayName = "Divider";
@@ -8,6 +8,7 @@ import Box from '../Box';
8
8
  import sx, { merge } from '../sx';
9
9
  import createSlots from '../utils/create-slots';
10
10
  import { ListContext } from './List';
11
+ import { MenuContext } from './MenuContext';
11
12
  import { Selection } from './Selection';
12
13
  export const getVariantStyles = (variant, disabled) => {
13
14
  if (disabled) {
@@ -43,7 +44,7 @@ const {
43
44
  export { Slot };
44
45
  const LiBox = styled.li.withConfig({
45
46
  displayName: "Item__LiBox",
46
- componentId: "c3scat-0"
47
+ componentId: "sc-c3scat-0"
47
48
  })(sx);
48
49
  export const TEXT_ROW_HEIGHT = '20px'; // custom value off the scale
49
50
 
@@ -54,6 +55,7 @@ export const Item = /*#__PURE__*/React.forwardRef(({
54
55
  onSelect,
55
56
  sx: sxProp = {},
56
57
  id,
58
+ role,
57
59
  _PrivateItemWrapper,
58
60
  ...props
59
61
  }, forwardedRef) => {
@@ -61,6 +63,10 @@ export const Item = /*#__PURE__*/React.forwardRef(({
61
63
  variant: listVariant,
62
64
  showDividers
63
65
  } = React.useContext(ListContext);
66
+ const {
67
+ itemRole,
68
+ afterSelect
69
+ } = React.useContext(MenuContext);
64
70
  const {
65
71
  theme
66
72
  } = useTheme();
@@ -135,16 +141,23 @@ export const Item = /*#__PURE__*/React.forwardRef(({
135
141
  const clickHandler = React.useCallback(event => {
136
142
  if (typeof onSelect !== 'function') return;
137
143
  if (disabled) return;
138
- if (!event.defaultPrevented) onSelect(event);
139
- }, [onSelect, disabled]);
144
+
145
+ if (!event.defaultPrevented) {
146
+ onSelect(event); // if this Item is inside a Menu, close the Menu
147
+
148
+ if (typeof afterSelect === 'function') afterSelect();
149
+ }
150
+ }, [onSelect, disabled, afterSelect]);
140
151
  const keyPressHandler = React.useCallback(event => {
141
152
  if (typeof onSelect !== 'function') return;
142
153
  if (disabled) return;
143
154
 
144
155
  if (!event.defaultPrevented && [' ', 'Enter'].includes(event.key)) {
145
- onSelect(event);
156
+ onSelect(event); // if this Item is inside a Menu, close the Menu
157
+
158
+ if (typeof afterSelect === 'function') afterSelect();
146
159
  }
147
- }, [onSelect, disabled]); // use props.id if provided, otherwise generate one.
160
+ }, [onSelect, disabled, afterSelect]); // use props.id if provided, otherwise generate one.
148
161
 
149
162
  const labelId = useSSRSafeId(id);
150
163
  const inlineDescriptionId = useSSRSafeId(id && `${id}--inline-description`);
@@ -166,7 +179,8 @@ export const Item = /*#__PURE__*/React.forwardRef(({
166
179
  "aria-disabled": disabled ? true : undefined,
167
180
  tabIndex: disabled || _PrivateItemWrapper ? undefined : 0,
168
181
  "aria-labelledby": `${labelId} ${slots.InlineDescription ? inlineDescriptionId : ''}`,
169
- "aria-describedby": slots.BlockDescription ? blockDescriptionId : undefined
182
+ "aria-describedby": slots.BlockDescription ? blockDescriptionId : undefined,
183
+ role: role || itemRole
170
184
  }, props), /*#__PURE__*/React.createElement(ItemWrapper, null, /*#__PURE__*/React.createElement(Selection, {
171
185
  selected: selected
172
186
  }), slots.LeadingVisual, /*#__PURE__*/React.createElement(Box, {
@@ -3,15 +3,17 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  import React from 'react';
4
4
  import styled from 'styled-components';
5
5
  import sx, { merge } from '../sx';
6
+ import { MenuContext } from './MenuContext';
6
7
  export const ListContext = /*#__PURE__*/React.createContext({});
7
8
  const ListBox = styled.ul.withConfig({
8
9
  displayName: "List__ListBox",
9
- componentId: "cvbq60-0"
10
+ componentId: "sc-cvbq60-0"
10
11
  })(sx);
11
12
  export const List = /*#__PURE__*/React.forwardRef(({
12
13
  variant = 'inset',
13
14
  selectionVariant,
14
15
  showDividers = false,
16
+ role,
15
17
  sx: sxProp = {},
16
18
  ...props
17
19
  }, forwardedRef) => {
@@ -21,8 +23,14 @@ export const List = /*#__PURE__*/React.forwardRef(({
21
23
  // reset ul styles
22
24
  paddingY: variant === 'inset' ? 2 : 0
23
25
  };
26
+ /** if list is inside a Menu, it will get a role from the Menu */
27
+
28
+ const {
29
+ listRole
30
+ } = React.useContext(MenuContext);
24
31
  return /*#__PURE__*/React.createElement(ListBox, _extends({
25
- sx: merge(styles, sxProp)
32
+ sx: merge(styles, sxProp),
33
+ role: role || listRole
26
34
  }, props, {
27
35
  ref: forwardedRef
28
36
  }), /*#__PURE__*/React.createElement(ListContext.Provider, {