@primer/components 31.2.1-rc.18690e3f → 31.2.1-rc.32ed6e21

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 (75) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dist/browser.esm.js +194 -190
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +204 -200
  5. package/dist/browser.umd.js.map +1 -1
  6. package/docs/content/ActionList2.mdx +8 -7
  7. package/docs/content/{Box.md → Box.mdx} +22 -0
  8. package/docs/src/component-checklist.js +81 -0
  9. package/lib/ActionList/Item.js +27 -52
  10. package/lib/ActionList/Item.jsx +17 -40
  11. package/lib/ActionList2/Description.js +8 -4
  12. package/lib/ActionList2/Description.jsx +2 -3
  13. package/lib/ActionList2/Group.d.ts +28 -2
  14. package/lib/ActionList2/Group.js +55 -6
  15. package/lib/ActionList2/Group.jsx +33 -4
  16. package/lib/ActionList2/Item.js +6 -7
  17. package/lib/ActionList2/Item.jsx +5 -5
  18. package/lib/ActionList2/List.d.ts +1 -1
  19. package/lib/Autocomplete/Autocomplete.d.ts +3 -3
  20. package/lib/Autocomplete/AutocompleteInput.d.ts +3 -3
  21. package/lib/Button/ButtonClose.d.ts +2 -2
  22. package/lib/CircleOcticon.d.ts +1 -1
  23. package/lib/Dialog.d.ts +3 -3
  24. package/lib/Dropdown.d.ts +4 -4
  25. package/lib/DropdownMenu/DropdownButton.d.ts +2 -2
  26. package/lib/FilterList.d.ts +1 -1
  27. package/lib/NewButton/button.js +34 -42
  28. package/lib/NewButton/button.jsx +24 -23
  29. package/lib/Position.d.ts +4 -4
  30. package/lib/SelectMenu/SelectMenu.d.ts +11 -11
  31. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  32. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  33. package/lib/TextInputWithTokens.d.ts +3 -3
  34. package/lib/Timeline.d.ts +1 -1
  35. package/lib/Token/Token.d.ts +1 -1
  36. package/lib/stories/ActionList2.stories.js +4 -3
  37. package/lib/utils/testing.d.ts +6 -60
  38. package/lib-esm/ActionList/Item.js +28 -53
  39. package/lib-esm/ActionList2/Description.js +8 -4
  40. package/lib-esm/ActionList2/Group.d.ts +28 -2
  41. package/lib-esm/ActionList2/Group.js +52 -5
  42. package/lib-esm/ActionList2/Item.js +6 -7
  43. package/lib-esm/ActionList2/List.d.ts +1 -1
  44. package/lib-esm/Autocomplete/Autocomplete.d.ts +3 -3
  45. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +3 -3
  46. package/lib-esm/Button/ButtonClose.d.ts +2 -2
  47. package/lib-esm/CircleOcticon.d.ts +1 -1
  48. package/lib-esm/Dialog.d.ts +3 -3
  49. package/lib-esm/Dropdown.d.ts +4 -4
  50. package/lib-esm/DropdownMenu/DropdownButton.d.ts +2 -2
  51. package/lib-esm/FilterList.d.ts +1 -1
  52. package/lib-esm/NewButton/button.js +31 -42
  53. package/lib-esm/Position.d.ts +4 -4
  54. package/lib-esm/SelectMenu/SelectMenu.d.ts +11 -11
  55. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  56. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  57. package/lib-esm/TextInputWithTokens.d.ts +3 -3
  58. package/lib-esm/Timeline.d.ts +1 -1
  59. package/lib-esm/Token/Token.d.ts +1 -1
  60. package/lib-esm/stories/ActionList2.stories.js +4 -3
  61. package/lib-esm/theme-preval.js +66 -366
  62. package/lib-esm/utils/testing.d.ts +6 -60
  63. package/package-lock.json +7 -7
  64. package/package.json +2 -2
  65. package/src/ActionList/Item.tsx +17 -46
  66. package/src/ActionList2/Description.tsx +7 -4
  67. package/src/ActionList2/Group.tsx +76 -7
  68. package/src/ActionList2/Item.tsx +6 -5
  69. package/src/ActionList2/List.tsx +1 -1
  70. package/src/NewButton/button.tsx +82 -78
  71. package/src/__tests__/__snapshots__/ActionList.test.tsx.snap +5 -5
  72. package/src/__tests__/__snapshots__/Autocomplete.test.tsx.snap +25 -25
  73. package/src/__tests__/__snapshots__/NewButton.test.tsx.snap +5 -0
  74. package/src/stories/ActionList2.stories.tsx +3 -3
  75. package/stats.html +1 -1
@@ -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" | "sx" | "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" | "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" | "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" | "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>>;
15
15
  export default Token;
@@ -277,11 +277,11 @@ function GroupsStory() {
277
277
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h1", null, "Groups"), /*#__PURE__*/_react.default.createElement(ErsatzOverlay, null, /*#__PURE__*/_react.default.createElement(ActionList, {
278
278
  selectionVariant: "multiple",
279
279
  showDividers: true,
280
- role: "listbox",
281
280
  "aria-label": "Select reviewers"
282
281
  }, /*#__PURE__*/_react.default.createElement(ActionList.Group, {
283
282
  title: "Suggestions",
284
- variant: "filled"
283
+ variant: "filled",
284
+ role: "listbox"
285
285
  }, users.slice(0, 2).map(user => /*#__PURE__*/_react.default.createElement(ActionList.Item, {
286
286
  key: user.login,
287
287
  role: "option",
@@ -293,7 +293,8 @@ function GroupsStory() {
293
293
  variant: "block"
294
294
  }, "Recently edited these files")))), /*#__PURE__*/_react.default.createElement(ActionList.Group, {
295
295
  title: "Everyone",
296
- variant: "filled"
296
+ variant: "filled",
297
+ role: "listbox"
297
298
  }, users.slice(2).map(user => /*#__PURE__*/_react.default.createElement(ActionList.Item, {
298
299
  role: "option",
299
300
  key: user.login,
@@ -231,67 +231,13 @@ export declare function render(component: React.ReactElement, theme?: {
231
231
  gradientOut: string;
232
232
  };
233
233
  mktg: {
234
- success: string;
235
- info: string;
236
- bgShadeGradient: {
237
- top: string;
238
- bottom: string;
239
- };
240
234
  btn: {
241
- bg: {
242
- top: string;
243
- bottom: string;
244
- };
245
- bgOverlay: {
246
- top: string;
247
- bottom: string;
248
- };
249
- text: string;
250
- primary: {
251
- bg: {
252
- top: string;
253
- bottom: string;
254
- };
255
- bgOverlay: {
256
- top: string;
257
- bottom: string;
258
- };
259
- text: string;
260
- };
261
- enterprise: {
262
- bg: {
263
- top: string;
264
- bottom: string;
265
- };
266
- bgOverlay: {
267
- top: string;
268
- bottom: string;
269
- };
270
- text: string;
271
- };
272
- outline: {
273
- text: string;
274
- border: string;
275
- hover: {
276
- text: string;
277
- border: string;
278
- };
279
- focus: {
280
- border: string;
281
- borderInset: string;
282
- };
283
- };
284
- dark: {
285
- text: string;
286
- border: string;
287
- hover: {
288
- text: string;
289
- border: string;
290
- };
291
- focus: {
292
- border: string;
293
- borderInset: string;
294
- };
235
+ bg: string;
236
+ shadow: {
237
+ outline: string;
238
+ focus: string;
239
+ hover: string;
240
+ hoverMuted: string;
295
241
  };
296
242
  };
297
243
  };
@@ -8,43 +8,10 @@ import Truncate from '../Truncate';
8
8
  import styled from 'styled-components';
9
9
  import { StyledHeader } from './Header';
10
10
  import { StyledDivider } from './Divider';
11
- import { useColorSchemeVar, useTheme } from '../ThemeProvider';
11
+ import { useTheme } from '../ThemeProvider';
12
12
  import { activeDescendantActivatedDirectly, activeDescendantActivatedIndirectly, isActiveDescendantAttribute } from '../behaviors/focusZone';
13
13
  import { useSSRSafeId } from '@react-aria/ssr';
14
14
 
15
- /**
16
- * These colors are not yet in our default theme. Need to remove this once they are added.
17
- */
18
- const customItemThemes = {
19
- default: {
20
- hover: {
21
- light: 'rgba(46, 77, 108, 0.06)',
22
- dark: 'rgba(201, 206, 212, 0.12)',
23
- dark_dimmed: 'rgba(201, 206, 212, 0.12)'
24
- },
25
- focus: {
26
- light: 'rgba(54, 77, 100, 0.16)',
27
- dark: 'rgba(201, 206, 212, 0.24)',
28
- dark_dimmed: 'rgba(201, 206, 212, 0.24)'
29
- }
30
- },
31
- danger: {
32
- hover: {
33
- light: 'rgba(234, 74, 90, 0.08)',
34
- dark: 'rgba(248, 81, 73, 0.16)',
35
- dark_dimmed: 'rgba(248, 81, 73, 0.16)'
36
- },
37
- focus: {
38
- light: 'rgba(234, 74, 90, 0.14)',
39
- dark: 'rgba(248, 81, 73, 0.24)',
40
- dark_dimmed: 'rgba(248, 81, 73, 0.24)'
41
- }
42
- }
43
- };
44
- /**
45
- * Contract for props passed to the `Item` component.
46
- */
47
-
48
15
  const getItemVariant = (variant = 'default', disabled) => {
49
16
  if (disabled) {
50
17
  return {
@@ -61,7 +28,10 @@ const getItemVariant = (variant = 'default', disabled) => {
61
28
  color: get('colors.danger.fg'),
62
29
  iconColor: get('colors.danger.fg'),
63
30
  annotationColor: get('colors.fg.muted'),
64
- hoverCursor: 'pointer'
31
+ hoverCursor: 'pointer',
32
+ hoverBg: get('colors.actionListItem.danger.hoverBg'),
33
+ focusBg: get('colors.actionListItem.danger.activeBg'),
34
+ hoverText: get('colors.actionListItem.danger.hoverText')
65
35
  };
66
36
 
67
37
  default:
@@ -69,7 +39,9 @@ const getItemVariant = (variant = 'default', disabled) => {
69
39
  color: get('colors.fg.default'),
70
40
  iconColor: get('colors.fg.muted'),
71
41
  annotationColor: get('colors.fg.muted'),
72
- hoverCursor: 'pointer'
42
+ hoverCursor: 'pointer',
43
+ hoverBg: get('colors.actionListItem.default.hoverBg'),
44
+ focusBg: get('colors.actionListItem.default.activeBg')
73
45
  };
74
46
  }
75
47
  };
@@ -85,12 +57,16 @@ const MainContent = styled.div.withConfig({
85
57
  const StyledItem = styled.div.withConfig({
86
58
  displayName: "Item__StyledItem",
87
59
  componentId: "jqpvy8-2"
88
- })(["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,", ");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'), ({
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'), ({
89
61
  variant,
90
62
  item
91
63
  }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).color, ({
92
- hoverBackground
93
- }) => hoverBackground, ({
64
+ variant,
65
+ item
66
+ }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).hoverBg, ({
67
+ variant,
68
+ item
69
+ }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).hoverText, ({
94
70
  variant,
95
71
  item
96
72
  }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).hoverCursor, StyledDivider, StyledHeader, ({
@@ -98,14 +74,18 @@ const StyledItem = styled.div.withConfig({
98
74
  }) => showDivider ? `1px` : '0', DividedContent, get('colors.border.muted'), ({
99
75
  showDivider
100
76
  }) => showDivider ? `1px` : '0', DividedContent, DividedContent, DividedContent, DividedContent, isActiveDescendantAttribute, DividedContent, isActiveDescendantAttribute, DividedContent, isActiveDescendantAttribute, activeDescendantActivatedDirectly, ({
101
- focusBackground
102
- }) => focusBackground, isActiveDescendantAttribute, activeDescendantActivatedIndirectly, ({
103
- hoverBackground
104
- }) => hoverBackground, ({
105
- focusBackground
106
- }) => focusBackground, ({
107
- focusBackground
108
- }) => focusBackground, sx);
77
+ variant,
78
+ item
79
+ }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).focusBg, isActiveDescendantAttribute, activeDescendantActivatedIndirectly, ({
80
+ variant,
81
+ item
82
+ }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).hoverBg, ({
83
+ variant,
84
+ item
85
+ }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).focusBg, ({
86
+ variant,
87
+ item
88
+ }) => getItemVariant(variant, item === null || item === void 0 ? void 0 : item.disabled).focusBg, sx);
109
89
  export const TextContainer = styled.span.withConfig({
110
90
  displayName: "Item__TextContainer",
111
91
  componentId: "jqpvy8-3"
@@ -196,9 +176,6 @@ export const Item = /*#__PURE__*/React.forwardRef((itemProps, ref) => {
196
176
  onAction === null || onAction === void 0 ? void 0 : onAction(itemProps, event);
197
177
  }
198
178
  }, [onAction, disabled, itemProps, onClick]);
199
- const customItemTheme = customItemThemes[variant];
200
- const hoverBackground = useColorSchemeVar(customItemTheme.hover, 'inherit');
201
- const focusBackground = useColorSchemeVar(customItemTheme.focus, 'inherit');
202
179
  const {
203
180
  theme
204
181
  } = useTheme();
@@ -214,9 +191,7 @@ export const Item = /*#__PURE__*/React.forwardRef((itemProps, ref) => {
214
191
  }, props, {
215
192
  "data-id": id,
216
193
  onKeyPress: keyPressHandler,
217
- onClick: clickHandler,
218
- hoverBackground: disabled ? 'inherit' : hoverBackground,
219
- focusBackground: disabled ? 'inherit' : focusBackground
194
+ onClick: clickHandler
220
195
  }), !!selected === selected && /*#__PURE__*/React.createElement(BaseVisualContainer, null, selectionVariant === 'multiple' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MultiSelectIcon, {
221
196
  selected: selected,
222
197
  width: "16",
@@ -9,7 +9,6 @@ export const Description = ({
9
9
  ...props
10
10
  }) => {
11
11
  const styles = {
12
- color: 'fg.muted',
13
12
  fontSize: 0,
14
13
  lineHeight: '16px',
15
14
  flexGrow: 1,
@@ -21,14 +20,19 @@ export const Description = ({
21
20
  name: variant === 'block' ? 'BlockDescription' : 'InlineDescription'
22
21
  }, ({
23
22
  blockDescriptionId,
24
- inlineDescriptionId
23
+ inlineDescriptionId,
24
+ disabled
25
25
  }) => variant === 'block' ? /*#__PURE__*/React.createElement(Box, {
26
26
  as: "span",
27
- sx: merge(styles, sx),
27
+ sx: merge({ ...styles,
28
+ color: disabled ? 'fg.disabled' : 'fg.muted'
29
+ }, sx),
28
30
  id: blockDescriptionId
29
31
  }, props.children) : /*#__PURE__*/React.createElement(Truncate, {
30
32
  id: inlineDescriptionId,
31
- sx: merge(styles, sx),
33
+ sx: merge({ ...styles,
34
+ color: disabled ? 'fg.disabled' : 'fg.muted'
35
+ }, sx),
32
36
  title: props.children,
33
37
  inline: true,
34
38
  maxWidth: "100%"
@@ -1,11 +1,37 @@
1
1
  import React from 'react';
2
2
  import { SxProp } from '../sx';
3
- import { HeaderProps } from './Header';
4
3
  import { ListProps } from './List';
5
- export declare type GroupProps = HeaderProps & SxProp & {
4
+ import { AriaRole } from '../utils/types';
5
+ export declare type GroupProps = {
6
+ /**
7
+ * Style variations. Usage is discretionary.
8
+ *
9
+ * - `"filled"` - Superimposed on a background, offset from nearby content
10
+ * - `"subtle"` - Relatively less offset from nearby content
11
+ */
12
+ variant?: 'subtle' | 'filled';
13
+ /**
14
+ * Primary text which names a `Group`.
15
+ */
16
+ title?: string;
17
+ /**
18
+ * Secondary text which provides additional information about a `Group`.
19
+ */
20
+ auxiliaryText?: string;
21
+ /**
22
+ * The ARIA role describing the function of the list inside `Group` component. `listbox` or `menu` are a common values.
23
+ */
24
+ role?: AriaRole;
25
+ } & SxProp & {
26
+ /**
27
+ * Whether multiple Items or a single Item can be selected in the Group. Overrides value on ActionList root.
28
+ */
6
29
  selectionVariant?: ListProps['selectionVariant'] | false;
7
30
  };
8
31
  declare type ContextProps = Pick<GroupProps, 'selectionVariant'>;
9
32
  export declare const GroupContext: React.Context<ContextProps>;
10
33
  export declare const Group: React.FC<GroupProps>;
34
+ export declare type HeaderProps = Pick<GroupProps, 'variant' | 'title' | 'auxiliaryText'> & {
35
+ labelId: string;
36
+ };
11
37
  export {};
@@ -1,17 +1,20 @@
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 React from 'react';
4
+ import { useSSRSafeId } from '@react-aria/ssr';
4
5
  import Box from '../Box';
5
- import { Header } from './Header';
6
+ import { ListContext } from './List';
6
7
  export const GroupContext = /*#__PURE__*/React.createContext({});
7
8
  export const Group = ({
8
9
  title,
9
- variant,
10
+ variant = 'subtle',
10
11
  auxiliaryText,
11
12
  selectionVariant,
13
+ role,
12
14
  sx = {},
13
15
  ...props
14
16
  }) => {
17
+ const labelId = useSSRSafeId();
15
18
  return /*#__PURE__*/React.createElement(Box, _extends({
16
19
  as: "li",
17
20
  sx: {
@@ -25,7 +28,8 @@ export const Group = ({
25
28
  }, props), title && /*#__PURE__*/React.createElement(Header, {
26
29
  title: title,
27
30
  variant: variant,
28
- auxiliaryText: auxiliaryText
31
+ auxiliaryText: auxiliaryText,
32
+ labelId: labelId
29
33
  }), /*#__PURE__*/React.createElement(GroupContext.Provider, {
30
34
  value: {
31
35
  selectionVariant
@@ -34,7 +38,50 @@ export const Group = ({
34
38
  as: "ul",
35
39
  sx: {
36
40
  paddingInlineStart: 0
37
- }
41
+ },
42
+ "aria-labelledby": title ? labelId : undefined,
43
+ role: role
38
44
  }, props.children)));
39
45
  };
40
- Group.displayName = "Group";
46
+ Group.displayName = "Group";
47
+
48
+ /**
49
+ * Displays the name and description of a `Group`.
50
+ *
51
+ * For visual presentation only. It's hidden from screen readers.
52
+ */
53
+ const Header = ({
54
+ variant,
55
+ title,
56
+ auxiliaryText,
57
+ labelId,
58
+ ...props
59
+ }) => {
60
+ const {
61
+ variant: listVariant
62
+ } = React.useContext(ListContext);
63
+ const styles = {
64
+ paddingY: '6px',
65
+ paddingX: listVariant === 'full' ? 2 : 3,
66
+ fontSize: 0,
67
+ fontWeight: 'bold',
68
+ color: 'fg.muted',
69
+ ...(variant === 'filled' && {
70
+ backgroundColor: 'canvas.subtle',
71
+ marginX: 0,
72
+ marginBottom: 2,
73
+ borderTop: '1px solid',
74
+ borderBottom: '1px solid',
75
+ borderColor: 'neutral.muted'
76
+ })
77
+ };
78
+ return /*#__PURE__*/React.createElement(Box, _extends({
79
+ sx: styles,
80
+ role: "presentation",
81
+ "aria-hidden": "true"
82
+ }, props), /*#__PURE__*/React.createElement("span", {
83
+ id: labelId
84
+ }, title), auxiliaryText && /*#__PURE__*/React.createElement("span", null, auxiliaryText));
85
+ };
86
+
87
+ Header.displayName = "Header";
@@ -12,9 +12,9 @@ import { Selection } from './Selection';
12
12
  export const getVariantStyles = (variant, disabled) => {
13
13
  if (disabled) {
14
14
  return {
15
- color: 'fg.muted',
16
- iconColor: 'fg.muted',
17
- annotationColor: 'fg.muted'
15
+ color: 'primer.fg.disabled',
16
+ iconColor: 'primer.fg.disabled',
17
+ annotationColor: 'primer.fg.disabled'
18
18
  };
19
19
  }
20
20
 
@@ -76,10 +76,9 @@ export const Item = /*#__PURE__*/React.forwardRef(({
76
76
  borderRadius: listVariant === 'inset' ? 2 : 0,
77
77
  transition: 'background 33.333ms linear',
78
78
  color: getVariantStyles(variant, disabled).color,
79
- textDecoration: 'none',
80
- // for as="a"
81
- ':not([aria-disabled])': {
82
- cursor: 'pointer'
79
+ cursor: 'pointer',
80
+ '&[aria-disabled]': {
81
+ cursor: 'not-allowed'
83
82
  },
84
83
  '@media (hover: hover) and (pointer: fine)': {
85
84
  ':hover:not([aria-disabled])': {
@@ -20,7 +20,7 @@ export declare type ListProps = {
20
20
  */
21
21
  role?: AriaRole;
22
22
  } & SxProp;
23
- declare type ContextProps = Omit<ListProps, 'sx'>;
23
+ declare type ContextProps = Pick<ListProps, 'variant' | 'selectionVariant' | 'showDividers'>;
24
24
  export declare const ListContext: React.Context<ContextProps>;
25
25
  export declare const List: PolymorphicForwardRefComponent<"ul", ListProps>;
26
26
  export {};
@@ -20,7 +20,7 @@ declare const _default: React.FC<{
20
20
  } & {
21
21
  as?: string | React.ComponentType<any> | undefined;
22
22
  forwardedAs?: string | React.ComponentType<any> | undefined;
23
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "sx" | "variant" | "className" | "disabled" | "contrast"> & {
23
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "variant" | "sx" | "className" | "disabled" | "contrast"> & {
24
24
  className?: string | undefined;
25
25
  icon?: React.ComponentType<{
26
26
  className?: string | undefined;
@@ -38,9 +38,9 @@ declare const _default: React.FC<{
38
38
  style?: React.CSSProperties | undefined;
39
39
  title?: string | undefined;
40
40
  block?: boolean | undefined;
41
- sx?: import("../sx").BetterSystemStyleObject | undefined;
42
41
  variant?: "small" | "large" | undefined;
43
42
  role?: React.AriaRole | undefined;
43
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
44
44
  key?: React.Key | null | undefined;
45
45
  defaultChecked?: boolean | undefined;
46
46
  defaultValue?: string | number | readonly string[] | undefined;
@@ -295,7 +295,7 @@ declare const _default: React.FC<{
295
295
  contrast?: boolean | undefined;
296
296
  } & {
297
297
  theme?: any;
298
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
298
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "variant" | "sx" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, {
299
299
  as?: React.ComponentType<any> | undefined;
300
300
  }>;
301
301
  Menu: typeof AutocompleteMenu;
@@ -12,7 +12,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
12
12
  } & {
13
13
  as?: string | React.ComponentType<any> | undefined;
14
14
  forwardedAs?: string | React.ComponentType<any> | undefined;
15
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "sx" | "variant" | "className" | "disabled" | "contrast"> & {
15
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "icon" | "variant" | "sx" | "className" | "disabled" | "contrast"> & {
16
16
  className?: string | undefined;
17
17
  icon?: React.ComponentType<{
18
18
  className?: string | undefined;
@@ -30,9 +30,9 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
30
30
  style?: React.CSSProperties | undefined;
31
31
  title?: string | undefined;
32
32
  block?: boolean | undefined;
33
- sx?: import("../sx").BetterSystemStyleObject | undefined;
34
33
  variant?: "small" | "large" | undefined;
35
34
  role?: React.AriaRole | undefined;
35
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
36
36
  key?: React.Key | null | undefined;
37
37
  defaultChecked?: boolean | undefined;
38
38
  defaultValue?: string | number | readonly string[] | undefined;
@@ -287,6 +287,6 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
287
287
  contrast?: boolean | undefined;
288
288
  } & {
289
289
  theme?: any;
290
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "variant" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
290
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "variant" | "sx" | "disabled" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>>, InternalAutocompleteInputProps>;
291
291
  export declare type AutocompleteInputProps = ComponentProps<typeof AutocompleteInput>;
292
292
  export default AutocompleteInput;
@@ -54,8 +54,8 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
54
54
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
55
55
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
56
56
  size?: import("styled-system").ResponsiveValue<import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
57
- sx?: import("../sx").BetterSystemStyleObject | undefined;
58
57
  role?: React.AriaRole | undefined;
58
+ sx?: import("../sx").BetterSystemStyleObject | undefined;
59
59
  type?: "button" | "reset" | "submit" | undefined;
60
60
  name?: string | undefined;
61
61
  key?: React.Key | null | undefined;
@@ -316,6 +316,6 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
316
316
  formTarget?: string | undefined;
317
317
  } & {
318
318
  theme?: any;
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" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "sx" | "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" | "disabled" | "autoFocus" | "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" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "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" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
320
320
  export declare type ButtonCloseProps = ComponentProps<typeof ButtonClose>;
321
321
  export default ButtonClose;
@@ -132,8 +132,8 @@ declare namespace CircleOcticon {
132
132
  paddingX?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
133
133
  py?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
134
134
  paddingY?: import("styled-system").ResponsiveValue<string | number | symbol, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
135
- sx?: import("./sx").BetterSystemStyleObject | undefined;
136
135
  role?: React.AriaRole | undefined;
136
+ sx?: import("./sx").BetterSystemStyleObject | undefined;
137
137
  key?: React.Key | null | undefined;
138
138
  defaultChecked?: boolean | undefined;
139
139
  defaultValue?: string | number | readonly string[] | undefined;