@primer/components 0.0.0-202111136954 → 0.0.0-20211115171641

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 (174) hide show
  1. package/CHANGELOG.md +996 -0
  2. package/dist/browser.esm.js +2209 -2
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +2209 -2
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Header.js +1 -1
  7. package/lib/ActionList/Item.js +10 -10
  8. package/lib/ActionList/List.js +1 -1
  9. package/lib/ActionList2/Item.js +7 -5
  10. package/lib/ActionList2/List.js +3 -3
  11. package/lib/ActionList2/{ActionListContainerContext.d.ts → MenuContext.d.ts} +3 -3
  12. package/lib/ActionList2/{ActionListContainerContext.js → MenuContext.js} +3 -3
  13. package/lib/ActionList2/Selection.js +4 -4
  14. package/lib/ActionMenu2.d.ts +12 -19
  15. package/lib/ActionMenu2.js +29 -63
  16. package/lib/Autocomplete/Autocomplete.d.ts +1 -2
  17. package/lib/Autocomplete/AutocompleteInput.d.ts +1 -2
  18. package/lib/BaseStyles.js +20 -2
  19. package/lib/BorderBox.js +1 -1
  20. package/lib/Box.js +1 -1
  21. package/lib/BranchName.js +1 -1
  22. package/lib/Breadcrumbs.js +3 -3
  23. package/lib/Button/Button.d.ts +2 -2
  24. package/lib/Button/Button.js +1 -1
  25. package/lib/Button/ButtonClose.d.ts +2 -2
  26. package/lib/Button/ButtonDanger.d.ts +2 -2
  27. package/lib/Button/ButtonGroup.js +1 -1
  28. package/lib/Button/ButtonInvisible.d.ts +2 -2
  29. package/lib/Button/ButtonOutline.d.ts +2 -2
  30. package/lib/Button/ButtonPrimary.d.ts +2 -2
  31. package/lib/Checkbox.d.ts +1 -1
  32. package/lib/Checkbox.js +1 -1
  33. package/lib/CircleOcticon.d.ts +35 -35
  34. package/lib/Details.js +1 -1
  35. package/lib/Dialog.d.ts +37 -37
  36. package/lib/Dropdown.d.ts +6 -6
  37. package/lib/DropdownMenu/DropdownButton.d.ts +3 -6
  38. package/lib/FilterList.d.ts +1 -1
  39. package/lib/FilteredActionList/FilteredActionList.js +1 -1
  40. package/lib/Flex.js +1 -1
  41. package/lib/LabelGroup.js +1 -1
  42. package/lib/NewButton/button.d.ts +11 -2
  43. package/lib/NewButton/button.js +283 -6
  44. package/lib/NewButton/index.d.ts +11 -6
  45. package/lib/NewButton/index.js +0 -18
  46. package/lib/NewButton/types.d.ts +8 -28
  47. package/lib/NewButton/types.js +1 -19
  48. package/lib/Overlay.js +1 -1
  49. package/lib/Pagination/Pagination.js +2 -2
  50. package/lib/Position.d.ts +4 -4
  51. package/lib/Position.js +1 -1
  52. package/lib/SelectMenu/SelectMenu.d.ts +10 -11
  53. package/lib/SelectMenu/SelectMenu.js +1 -1
  54. package/lib/SelectMenu/SelectMenuFilter.js +1 -1
  55. package/lib/SelectMenu/SelectMenuFooter.js +1 -1
  56. package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
  57. package/lib/SelectMenu/SelectMenuItem.js +1 -1
  58. package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
  59. package/lib/SelectMenu/SelectMenuTab.js +1 -1
  60. package/lib/SelectMenu/SelectMenuTabPanel.js +1 -1
  61. package/lib/SelectMenu/SelectMenuTabs.js +1 -1
  62. package/lib/StateLabel.js +1 -1
  63. package/lib/StyledOcticon.js +1 -1
  64. package/lib/SubNav.js +3 -3
  65. package/lib/TextInputWithTokens.d.ts +1 -2
  66. package/lib/ThemeProvider.d.ts +0 -1
  67. package/lib/ThemeProvider.js +4 -17
  68. package/lib/Timeline.js +4 -4
  69. package/lib/Token/AvatarToken.d.ts +1 -1
  70. package/lib/Token/AvatarToken.js +1 -1
  71. package/lib/Token/IssueLabelToken.d.ts +1 -1
  72. package/lib/Token/Token.d.ts +1 -1
  73. package/lib/Token/TokenBase.js +1 -1
  74. package/lib/Tooltip.js +1 -1
  75. package/lib/UnderlineNav.js +2 -2
  76. package/lib/hooks/index.d.ts +0 -1
  77. package/lib/hooks/index.js +1 -9
  78. package/lib/index.d.ts +0 -2
  79. package/lib/index.js +0 -8
  80. package/lib-esm/ActionList/Header.js +1 -1
  81. package/lib-esm/ActionList/Item.js +10 -10
  82. package/lib-esm/ActionList/List.js +1 -1
  83. package/lib-esm/ActionList2/Item.js +7 -5
  84. package/lib-esm/ActionList2/List.js +3 -3
  85. package/lib-esm/ActionList2/{ActionListContainerContext.d.ts → MenuContext.d.ts} +3 -3
  86. package/lib-esm/ActionList2/{ActionListContainerContext.js → MenuContext.js} +1 -1
  87. package/lib-esm/ActionList2/Selection.js +4 -4
  88. package/lib-esm/ActionMenu2.d.ts +12 -19
  89. package/lib-esm/ActionMenu2.js +27 -60
  90. package/lib-esm/Autocomplete/Autocomplete.d.ts +1 -2
  91. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +1 -2
  92. package/lib-esm/BaseStyles.js +20 -2
  93. package/lib-esm/BorderBox.js +1 -1
  94. package/lib-esm/Box.js +1 -1
  95. package/lib-esm/BranchName.js +1 -1
  96. package/lib-esm/Breadcrumbs.js +3 -3
  97. package/lib-esm/Button/Button.d.ts +2 -2
  98. package/lib-esm/Button/Button.js +1 -1
  99. package/lib-esm/Button/ButtonClose.d.ts +2 -2
  100. package/lib-esm/Button/ButtonDanger.d.ts +2 -2
  101. package/lib-esm/Button/ButtonGroup.js +1 -1
  102. package/lib-esm/Button/ButtonInvisible.d.ts +2 -2
  103. package/lib-esm/Button/ButtonOutline.d.ts +2 -2
  104. package/lib-esm/Button/ButtonPrimary.d.ts +2 -2
  105. package/lib-esm/Checkbox.d.ts +1 -1
  106. package/lib-esm/Checkbox.js +1 -1
  107. package/lib-esm/CircleOcticon.d.ts +35 -35
  108. package/lib-esm/Details.js +1 -1
  109. package/lib-esm/Dialog.d.ts +37 -37
  110. package/lib-esm/Dropdown.d.ts +6 -6
  111. package/lib-esm/DropdownMenu/DropdownButton.d.ts +3 -6
  112. package/lib-esm/FilterList.d.ts +1 -1
  113. package/lib-esm/FilteredActionList/FilteredActionList.js +1 -1
  114. package/lib-esm/Flex.js +1 -1
  115. package/lib-esm/LabelGroup.js +1 -1
  116. package/lib-esm/NewButton/button.d.ts +11 -2
  117. package/lib-esm/NewButton/button.js +275 -4
  118. package/lib-esm/NewButton/index.d.ts +11 -6
  119. package/lib-esm/NewButton/index.js +1 -4
  120. package/lib-esm/NewButton/types.d.ts +8 -28
  121. package/lib-esm/NewButton/types.js +1 -6
  122. package/lib-esm/Overlay.js +1 -1
  123. package/lib-esm/Pagination/Pagination.js +2 -2
  124. package/lib-esm/Position.d.ts +4 -4
  125. package/lib-esm/Position.js +1 -1
  126. package/lib-esm/SelectMenu/SelectMenu.d.ts +10 -11
  127. package/lib-esm/SelectMenu/SelectMenu.js +1 -1
  128. package/lib-esm/SelectMenu/SelectMenuFilter.js +1 -1
  129. package/lib-esm/SelectMenu/SelectMenuFooter.js +1 -1
  130. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
  131. package/lib-esm/SelectMenu/SelectMenuItem.js +1 -1
  132. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
  133. package/lib-esm/SelectMenu/SelectMenuTab.js +1 -1
  134. package/lib-esm/SelectMenu/SelectMenuTabPanel.js +1 -1
  135. package/lib-esm/SelectMenu/SelectMenuTabs.js +1 -1
  136. package/lib-esm/StateLabel.js +1 -1
  137. package/lib-esm/StyledOcticon.js +1 -1
  138. package/lib-esm/SubNav.js +3 -3
  139. package/lib-esm/TextInputWithTokens.d.ts +1 -2
  140. package/lib-esm/ThemeProvider.d.ts +0 -1
  141. package/lib-esm/ThemeProvider.js +4 -17
  142. package/lib-esm/Timeline.js +4 -4
  143. package/lib-esm/Token/AvatarToken.d.ts +1 -1
  144. package/lib-esm/Token/AvatarToken.js +1 -1
  145. package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
  146. package/lib-esm/Token/Token.d.ts +1 -1
  147. package/lib-esm/Token/TokenBase.js +1 -1
  148. package/lib-esm/Tooltip.js +1 -1
  149. package/lib-esm/UnderlineNav.js +2 -2
  150. package/lib-esm/hooks/index.d.ts +0 -1
  151. package/lib-esm/hooks/index.js +1 -2
  152. package/lib-esm/index.d.ts +0 -2
  153. package/lib-esm/index.js +0 -1
  154. package/package.json +8 -14
  155. package/lib/NewButton/button-base.d.ts +0 -6
  156. package/lib/NewButton/button-base.js +0 -69
  157. package/lib/NewButton/button-link.d.ts +0 -27
  158. package/lib/NewButton/button-link.js +0 -31
  159. package/lib/NewButton/icon-button.d.ts +0 -4
  160. package/lib/NewButton/icon-button.js +0 -62
  161. package/lib/NewButton/styles.d.ts +0 -202
  162. package/lib/NewButton/styles.js +0 -248
  163. package/lib/Radio.d.ts +0 -38
  164. package/lib/Radio.js +0 -55
  165. package/lib-esm/NewButton/button-base.d.ts +0 -6
  166. package/lib-esm/NewButton/button-base.js +0 -47
  167. package/lib-esm/NewButton/button-link.d.ts +0 -27
  168. package/lib-esm/NewButton/button-link.js +0 -15
  169. package/lib-esm/NewButton/icon-button.d.ts +0 -4
  170. package/lib-esm/NewButton/icon-button.js +0 -39
  171. package/lib-esm/NewButton/styles.d.ts +0 -202
  172. package/lib-esm/NewButton/styles.js +0 -229
  173. package/lib-esm/Radio.d.ts +0 -38
  174. package/lib-esm/Radio.js +0 -40
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { CheckIcon } from '@primer/octicons-react';
3
3
  import { ListContext } from './List';
4
4
  import { GroupContext } from './Group';
5
- import { ActionListContainerContext } from './ActionListContainerContext';
5
+ import { MenuContext } from './MenuContext';
6
6
  import { LeadingVisualContainer } from './Visuals';
7
7
  export const Selection = ({
8
8
  selected
@@ -14,8 +14,8 @@ export const Selection = ({
14
14
  selectionVariant: groupSelectionVariant
15
15
  } = React.useContext(GroupContext);
16
16
  const {
17
- container
18
- } = React.useContext(ActionListContainerContext);
17
+ parent
18
+ } = React.useContext(MenuContext);
19
19
  /** selectionVariant in Group can override the selectionVariant in List root */
20
20
 
21
21
  const selectionVariant = typeof groupSelectionVariant !== 'undefined' ? groupSelectionVariant : listSelectionVariant; // if selectionVariant is not set on List, don't show selection
@@ -26,7 +26,7 @@ export const Selection = ({
26
26
  return null;
27
27
  }
28
28
 
29
- if (container === 'ActionMenu') {
29
+ if (parent === 'ActionMenu') {
30
30
  throw new Error('ActionList cannot have a selectionVariant inside ActionMenu, please use DropdownMenu or SelectPanel instead. More information: https://primer.style/design/components/action-list#application');
31
31
  return null;
32
32
  }
@@ -1,12 +1,10 @@
1
1
  import { ButtonProps } from './Button';
2
2
  import React from 'react';
3
- import { AnchoredOverlayProps } from './AnchoredOverlay';
4
3
  import { OverlayProps } from './Overlay';
5
- declare type MenuContextProps = Pick<AnchoredOverlayProps, 'anchorRef' | 'renderAnchor' | 'open' | 'onOpen' | 'onClose'>;
6
- export declare const MenuContext: React.Context<MenuContextProps>;
7
- export declare type ActionMenuProps = {
4
+ import { AnchoredOverlayWrapperAnchorProps } from './AnchoredOverlay/AnchoredOverlay';
5
+ declare type ActionMenuBaseProps = {
8
6
  /**
9
- * Recommended: `ActionMenu.Button` or `ActionMenu.Anchor` with `ActionMenu.Overlay`
7
+ * Recommended: `ActionMenu.Button` or `ActionMenu.Anchor` with ActionList`
10
8
  */
11
9
  children: React.ReactElement[] | React.ReactElement;
12
10
  /**
@@ -17,22 +15,20 @@ export declare type ActionMenuProps = {
17
15
  * If defined, will control the open/closed state of the overlay. Must be used in conjuction with `open`.
18
16
  */
19
17
  onOpenChange?: (s: boolean) => void;
20
- } & Pick<AnchoredOverlayProps, 'anchorRef'>;
18
+ /**
19
+ * Props to be spread on the internal `Overlay` component.
20
+ */
21
+ overlayProps?: Partial<OverlayProps>;
22
+ };
23
+ export declare type ActionMenuProps = ActionMenuBaseProps & AnchoredOverlayWrapperAnchorProps;
21
24
  export declare type MenuAnchorProps = {
22
25
  children: React.ReactElement;
23
26
  };
24
27
  /** this component is syntactical sugar 🍭 */
25
28
  export declare type MenuButtonProps = ButtonProps;
26
- declare type MenuOverlayProps = Partial<OverlayProps> & {
27
- /**
28
- * Recommended: `ActionList`
29
- */
30
- children: React.ReactElement[] | React.ReactElement;
31
- };
32
29
  export declare const ActionMenu: React.FC<ActionMenuProps> & {
33
30
  Button: React.ForwardRefExoticComponent<Pick<{
34
31
  color?: string | undefined;
35
- property?: string | undefined;
36
32
  translate?: "yes" | "no" | undefined;
37
33
  hidden?: boolean | undefined;
38
34
  children?: React.ReactNode;
@@ -68,6 +64,7 @@ export declare const ActionMenu: React.FC<ActionMenuProps> & {
68
64
  datatype?: string | undefined;
69
65
  inlist?: any;
70
66
  prefix?: string | undefined;
67
+ property?: string | undefined;
71
68
  resource?: string | undefined;
72
69
  typeof?: string | undefined;
73
70
  vocab?: string | undefined;
@@ -296,8 +293,8 @@ export declare const ActionMenu: React.FC<ActionMenuProps> & {
296
293
  onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
297
294
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
298
295
  css?: import("@emotion/core").InterpolationWithTheme<any>;
299
- disabled?: boolean | undefined;
300
296
  as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
297
+ disabled?: boolean | undefined;
301
298
  autoFocus?: boolean | undefined;
302
299
  formAction?: string | undefined;
303
300
  formEncType?: string | undefined;
@@ -306,12 +303,8 @@ export declare const ActionMenu: React.FC<ActionMenuProps> & {
306
303
  formTarget?: string | undefined;
307
304
  } & {
308
305
  theme?: any;
309
- }, "theme" | "sx" | "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement> | keyof {
310
- as?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
311
- variant?: "small" | "medium" | "large" | undefined;
312
- }> & React.RefAttributes<React.RefObject<HTMLElement> | undefined>>;
306
+ }, "color" | "translate" | "hidden" | "children" | "theme" | "value" | "form" | "slot" | "style" | "title" | "variant" | "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" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<React.RefObject<HTMLElement> | undefined>>;
313
307
  Anchor: React.ForwardRefExoticComponent<MenuAnchorProps & React.RefAttributes<React.RefObject<HTMLElement> | undefined>>;
314
- Overlay: React.FC<MenuOverlayProps>;
315
308
  Divider: React.FC<import("./sx").SxProp>;
316
309
  };
317
310
  export {};
@@ -1,49 +1,49 @@
1
1
  import Button from './Button';
2
2
  import React from 'react';
3
3
  import { AnchoredOverlay } from './AnchoredOverlay';
4
- import { useProvidedRefOrCreate, useProvidedStateOrCreate } from './hooks';
4
+ import { useProvidedStateOrCreate } from './hooks/useProvidedStateOrCreate';
5
+ import { useProvidedRefOrCreate } from './hooks';
5
6
  import { Divider } from './ActionList2/Divider';
6
- import { ActionListContainerContext } from './ActionList2/ActionListContainerContext';
7
- export const MenuContext = /*#__PURE__*/React.createContext({
8
- renderAnchor: null,
9
- open: false
10
- });
7
+ import { MenuContext as ActionListMenuContext } from './ActionList2/MenuContext';
11
8
 
12
- const Menu = ({
9
+ const ActionMenuBase = ({
13
10
  anchorRef: externalAnchorRef,
14
11
  open,
15
12
  onOpenChange,
13
+ overlayProps,
16
14
  children
17
15
  }) => {
18
16
  const [combinedOpenState, setCombinedOpenState] = useProvidedStateOrCreate(open, onOpenChange, false);
17
+ const anchorRef = useProvidedRefOrCreate(externalAnchorRef);
19
18
  const onOpen = React.useCallback(() => setCombinedOpenState(true), [setCombinedOpenState]);
20
19
  const onClose = React.useCallback(() => setCombinedOpenState(false), [setCombinedOpenState]);
21
- const anchorRef = useProvidedRefOrCreate(externalAnchorRef);
22
- let renderAnchor = null; // 🚨 Hack for good API!
23
- // we strip out Anchor from children and pass it to AnchoredOverlay to render
24
- // with additional props for accessibility
25
-
26
- const contents = React.Children.map(children, child => {
20
+ let renderAnchor = null;
21
+ const contents = [];
22
+ React.Children.map(children, child => {
27
23
  if (child.type === MenuButton || child.type === Anchor) {
28
24
  renderAnchor = anchorProps => /*#__PURE__*/React.cloneElement(child, anchorProps);
29
-
30
- return null;
25
+ } else {
26
+ contents.push(child);
31
27
  }
32
-
33
- return child;
34
28
  });
35
- return /*#__PURE__*/React.createElement(MenuContext.Provider, {
29
+ return /*#__PURE__*/React.createElement(AnchoredOverlay, {
30
+ renderAnchor: renderAnchor,
31
+ anchorRef: anchorRef,
32
+ open: combinedOpenState,
33
+ onOpen: onOpen,
34
+ onClose: onClose,
35
+ overlayProps: overlayProps
36
+ }, /*#__PURE__*/React.createElement(ActionListMenuContext.Provider, {
36
37
  value: {
37
- anchorRef,
38
- renderAnchor,
39
- open: combinedOpenState,
40
- onOpen,
41
- onClose
38
+ parent: 'ActionMenu',
39
+ listRole: 'menu',
40
+ itemRole: 'menuitem',
41
+ afterSelect: onClose
42
42
  }
43
- }, contents);
43
+ }, contents));
44
44
  };
45
45
 
46
- Menu.displayName = "Menu";
46
+ ActionMenuBase.displayName = "ActionMenuBase";
47
47
  const Anchor = /*#__PURE__*/React.forwardRef(({
48
48
  children,
49
49
  ...anchorProps
@@ -59,42 +59,9 @@ const MenuButton = /*#__PURE__*/React.forwardRef((props, anchorRef) => {
59
59
  ref: anchorRef
60
60
  }, /*#__PURE__*/React.createElement(Button, props));
61
61
  });
62
-
63
- const Overlay = ({
64
- children,
65
- ...overlayProps
66
- }) => {
67
- // we typecast anchorRef as required instead of optional
68
- // because we know that we're setting it in context in Menu
69
- const {
70
- anchorRef,
71
- renderAnchor,
72
- open,
73
- onOpen,
74
- onClose
75
- } = React.useContext(MenuContext);
76
- return /*#__PURE__*/React.createElement(AnchoredOverlay, {
77
- anchorRef: anchorRef,
78
- renderAnchor: renderAnchor,
79
- open: open,
80
- onOpen: onOpen,
81
- onClose: onClose,
82
- overlayProps: overlayProps
83
- }, /*#__PURE__*/React.createElement(ActionListContainerContext.Provider, {
84
- value: {
85
- container: 'ActionMenu',
86
- listRole: 'menu',
87
- itemRole: 'menuitem',
88
- afterSelect: onClose
89
- }
90
- }, children));
91
- };
92
-
93
- Overlay.displayName = "Overlay";
94
- Menu.displayName = 'ActionMenu';
95
- export const ActionMenu = Object.assign(Menu, {
62
+ ActionMenuBase.displayName = 'ActionMenu';
63
+ export const ActionMenu = Object.assign(ActionMenuBase, {
96
64
  Button: MenuButton,
97
65
  Anchor,
98
- Overlay,
99
66
  Divider
100
67
  });
@@ -15,7 +15,6 @@ declare const _default: React.FC<{
15
15
  Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
16
16
  [x: string]: any;
17
17
  [x: number]: any;
18
- [x: symbol]: any;
19
18
  } & {
20
19
  theme?: any;
21
20
  } & {
@@ -28,7 +27,6 @@ declare const _default: React.FC<{
28
27
  }> | undefined;
29
28
  } & Pick<{
30
29
  color?: string | undefined;
31
- property?: string | undefined;
32
30
  maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
33
31
  minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
34
32
  translate?: "yes" | "no" | undefined;
@@ -64,6 +62,7 @@ declare const _default: React.FC<{
64
62
  datatype?: string | undefined;
65
63
  inlist?: any;
66
64
  prefix?: string | undefined;
65
+ property?: string | undefined;
67
66
  resource?: string | undefined;
68
67
  typeof?: string | undefined;
69
68
  vocab?: string | undefined;
@@ -7,7 +7,6 @@ declare type InternalAutocompleteInputProps = {
7
7
  declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
8
8
  [x: string]: any;
9
9
  [x: number]: any;
10
- [x: symbol]: any;
11
10
  } & {
12
11
  theme?: any;
13
12
  } & {
@@ -20,7 +19,6 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
20
19
  }> | undefined;
21
20
  } & Pick<{
22
21
  color?: string | undefined;
23
- property?: string | undefined;
24
22
  maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
25
23
  minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
26
24
  translate?: "yes" | "no" | undefined;
@@ -56,6 +54,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
56
54
  datatype?: string | undefined;
57
55
  inlist?: any;
58
56
  prefix?: string | undefined;
57
+ property?: string | undefined;
59
58
  resource?: string | undefined;
60
59
  typeof?: string | undefined;
61
60
  vocab?: string | undefined;
@@ -3,10 +3,28 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  import React from 'react';
4
4
  import styled, { createGlobalStyle } from 'styled-components';
5
5
  import { COMMON, TYPOGRAPHY } from './constants';
6
- const GlobalStyle = createGlobalStyle(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}[role=\"button\"]:focus:not(:focus-visible):not(.focus-visible),[role=\"tabpanel\"][tabindex=\"0\"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex=\"0\"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}"]);
6
+ const GlobalStyle = createGlobalStyle`
7
+ * { box-sizing: border-box; }
8
+ body { margin: 0; }
9
+ table { border-collapse: collapse; }
10
+
11
+ [role="button"]:focus:not(:focus-visible):not(.focus-visible),
12
+ [role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),
13
+ button:focus:not(:focus-visible):not(.focus-visible),
14
+ summary:focus:not(:focus-visible):not(.focus-visible),
15
+ a:focus:not(:focus-visible):not(.focus-visible) {
16
+ outline: none;
17
+ box-shadow: none;
18
+ }
19
+
20
+ [tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),
21
+ details-dialog:focus:not(:focus-visible):not(.focus-visible) {
22
+ outline: none;
23
+ }
24
+ `;
7
25
  const Base = styled.div.withConfig({
8
26
  displayName: "BaseStyles__Base",
9
- componentId: "sc-qvuaww-0"
27
+ componentId: "qvuaww-0"
10
28
  })(["", ";", ";"], TYPOGRAPHY, COMMON);
11
29
 
12
30
  function BaseStyles(props) {
@@ -6,7 +6,7 @@ import Box from './Box';
6
6
  */
7
7
  const BorderBox = styled(Box).withConfig({
8
8
  displayName: "BorderBox",
9
- componentId: "sc-oreju5-0"
9
+ componentId: "oreju5-0"
10
10
  })([""]);
11
11
  BorderBox.defaultProps = {
12
12
  borderWidth: '1px',
package/lib-esm/Box.js CHANGED
@@ -3,6 +3,6 @@ import { background, border, color, flexbox, grid, layout, position, shadow, spa
3
3
  import sx from './sx';
4
4
  const Box = styled.div.withConfig({
5
5
  displayName: "Box",
6
- componentId: "sc-nv15kw-0"
6
+ componentId: "nv15kw-0"
7
7
  })(space, color, typography, layout, flexbox, grid, background, border, position, shadow, sx);
8
8
  export default Box;
@@ -4,5 +4,5 @@ import sx from './sx';
4
4
  const BranchName = styled.a.withConfig({
5
5
  displayName: "BranchName",
6
6
  componentId: "sc-167ouzm-0"
7
- })(["display:inline-block;padding:2px 6px;font-size:", ";font-family:", ";color:", ";background-color:", ";border-radius:", ";text-decoration:none;", ";"], get('fontSizes.0'), get('fonts.mono'), get('colors.accent.fg'), get('colors.accent.subtle'), get('radii.2'), sx);
7
+ })(["display:inline-block;padding:2px 6px;font-size:", ";font-family:", ";color:", ";background-color:", ";border-radius:", ";", ";"], get('fontSizes.0'), get('fonts.mono'), get('colors.fg.muted'), get('colors.accent.subtle'), get('radii.2'), sx);
8
8
  export default BranchName;
@@ -8,11 +8,11 @@ import sx from './sx';
8
8
  const SELECTED_CLASS = 'selected';
9
9
  const Wrapper = styled.li.withConfig({
10
10
  displayName: "Breadcrumbs__Wrapper",
11
- componentId: "sc-hwwoo0-0"
11
+ componentId: "hwwoo0-0"
12
12
  })(["display:inline-block;white-space:nowrap;list-style:none;&::after{padding-right:0.5em;padding-left:0.5em;color:", ";font-size:", ";content:'/';}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"], get('colors.fg.muted'), get('fontSizes.1'));
13
13
  const BreadcrumbsBase = styled.nav.withConfig({
14
14
  displayName: "Breadcrumbs__BreadcrumbsBase",
15
- componentId: "sc-hwwoo0-1"
15
+ componentId: "hwwoo0-1"
16
16
  })(["display:flex;justify-content:space-between;", ";"], sx);
17
17
 
18
18
  function Breadcrumbs({
@@ -39,7 +39,7 @@ const BreadcrumbsItem = styled.a.attrs(props => ({
39
39
  'aria-current': props.selected ? 'page' : null
40
40
  })).withConfig({
41
41
  displayName: "Breadcrumbs__BreadcrumbsItem",
42
- componentId: "sc-hwwoo0-2"
42
+ componentId: "hwwoo0-2"
43
43
  })(["color:", ";display:inline-block;font-size:", ";text-decoration:none;&:hover{text-decoration:underline;}&.selected{color:", ";pointer-events:none;}", ";"], get('colors.accent.fg'), get('fontSizes.1'), get('colors.fg.default'), sx);
44
44
  Breadcrumbs.displayName = 'Breadcrumbs';
45
45
  BreadcrumbsItem.displayName = 'Breadcrumbs.Item';
@@ -6,7 +6,6 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
6
6
  variant?: "small" | "medium" | "large" | undefined;
7
7
  } & {
8
8
  color?: string | undefined;
9
- property?: string | undefined;
10
9
  translate?: "yes" | "no" | undefined;
11
10
  hidden?: boolean | undefined;
12
11
  children?: import("react").ReactNode;
@@ -41,6 +40,7 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
41
40
  datatype?: string | undefined;
42
41
  inlist?: any;
43
42
  prefix?: string | undefined;
43
+ property?: string | undefined;
44
44
  resource?: string | undefined;
45
45
  typeof?: string | undefined;
46
46
  vocab?: string | undefined;
@@ -269,8 +269,8 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
271
  css?: import("@emotion/core").InterpolationWithTheme<any>;
272
- disabled?: boolean | undefined;
273
272
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
273
+ disabled?: boolean | undefined;
274
274
  autoFocus?: boolean | undefined;
275
275
  formAction?: string | undefined;
276
276
  formEncType?: string | undefined;
@@ -4,6 +4,6 @@ import sx from '../sx';
4
4
  import ButtonBase from './ButtonBase';
5
5
  const Button = styled(ButtonBase).withConfig({
6
6
  displayName: "Button",
7
- componentId: "sc-xjtz72-0"
7
+ componentId: "xjtz72-0"
8
8
  })(["color:", ";background-color:", ";border:1px solid ", ";box-shadow:", ",", "};&:hover{background-color:", ";border-color:", ";}&:focus{border-color:", ";box-shadow:", ";}&:active{background-color:", ";box-shadow:", ";}&:disabled{color:", ";background-color:", ";border-color:", ";}", ";"], get('colors.btn.text'), get('colors.btn.bg'), get('colors.btn.border'), get('shadows.btn.shadow'), get('shadows.btn.insetShadow'), get('colors.btn.hoverBg'), get('colors.btn.hoverBorder'), get('colors.btn.focusBorder'), get('shadows.btn.focusShadow'), get('colors.btn.selectedBg'), get('shadows.btn.shadowActive'), get('colors.primer.fg.disabled'), get('colors.btn.bg'), get('colors.btn.border'), sx);
9
9
  export default Button;
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { ComponentProps } from '../utils/types';
3
3
  declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
4
4
  color?: string | undefined;
5
- property?: string | undefined;
6
5
  translate?: "yes" | "no" | undefined;
7
6
  hidden?: boolean | undefined;
8
7
  children?: React.ReactNode;
@@ -37,6 +36,7 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
37
36
  datatype?: string | undefined;
38
37
  inlist?: any;
39
38
  prefix?: string | undefined;
39
+ property?: string | undefined;
40
40
  resource?: string | undefined;
41
41
  typeof?: string | undefined;
42
42
  vocab?: string | undefined;
@@ -274,6 +274,6 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
274
274
  formTarget?: string | undefined;
275
275
  } & {
276
276
  theme?: any;
277
- }, "theme" | "sx" | "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & React.RefAttributes<HTMLButtonElement>>;
277
+ }, "color" | "translate" | "hidden" | "children" | "theme" | "value" | "form" | "slot" | "style" | "title" | "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" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
278
278
  export declare type ButtonCloseProps = ComponentProps<typeof ButtonClose>;
279
279
  export default ButtonClose;
@@ -6,7 +6,6 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
6
6
  variant?: "small" | "medium" | "large" | undefined;
7
7
  } & {
8
8
  color?: string | undefined;
9
- property?: string | undefined;
10
9
  translate?: "yes" | "no" | undefined;
11
10
  hidden?: boolean | undefined;
12
11
  children?: import("react").ReactNode;
@@ -41,6 +40,7 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
41
40
  datatype?: string | undefined;
42
41
  inlist?: any;
43
42
  prefix?: string | undefined;
43
+ property?: string | undefined;
44
44
  resource?: string | undefined;
45
45
  typeof?: string | undefined;
46
46
  vocab?: string | undefined;
@@ -269,8 +269,8 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
271
  css?: import("@emotion/core").InterpolationWithTheme<any>;
272
- disabled?: boolean | undefined;
273
272
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
273
+ disabled?: boolean | undefined;
274
274
  autoFocus?: boolean | undefined;
275
275
  formAction?: string | undefined;
276
276
  formEncType?: string | undefined;
@@ -4,7 +4,7 @@ import { get } from '../constants';
4
4
  import sx from '../sx';
5
5
  const ButtonGroup = styled(Box).withConfig({
6
6
  displayName: "ButtonGroup",
7
- componentId: "sc-peei04-0"
7
+ componentId: "peei04-0"
8
8
  })(["vertical-align:middle;&& > *{position:relative;border-right-width:0;border-radius:0;:first-child{border-top-left-radius:", ";border-bottom-left-radius:", ";margin-right:0;}:not(:first-child){margin-left:0;margin-right:0;}:last-child{border-right-width:1px;border-top-right-radius:", ";border-bottom-right-radius:", ";}:focus,:active,:hover{border-right-width:1px;+ *{border-left-width:0;}}:focus,:active{z-index:1;}}", ";"], get('radii.2'), get('radii.2'), get('radii.2'), get('radii.2'), sx);
9
9
  ButtonGroup.defaultProps = {
10
10
  display: 'inline-block'
@@ -6,7 +6,6 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
6
6
  variant?: "small" | "medium" | "large" | undefined;
7
7
  } & {
8
8
  color?: string | undefined;
9
- property?: string | undefined;
10
9
  translate?: "yes" | "no" | undefined;
11
10
  hidden?: boolean | undefined;
12
11
  children?: import("react").ReactNode;
@@ -41,6 +40,7 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
41
40
  datatype?: string | undefined;
42
41
  inlist?: any;
43
42
  prefix?: string | undefined;
43
+ property?: string | undefined;
44
44
  resource?: string | undefined;
45
45
  typeof?: string | undefined;
46
46
  vocab?: string | undefined;
@@ -269,8 +269,8 @@ declare const ButtonInvisible: import("styled-components").StyledComponent<"butt
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
271
  css?: import("@emotion/core").InterpolationWithTheme<any>;
272
- disabled?: boolean | undefined;
273
272
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
273
+ disabled?: boolean | undefined;
274
274
  autoFocus?: boolean | undefined;
275
275
  formAction?: string | undefined;
276
276
  formEncType?: string | undefined;
@@ -6,7 +6,6 @@ declare const ButtonOutline: import("styled-components").StyledComponent<"button
6
6
  variant?: "small" | "medium" | "large" | undefined;
7
7
  } & {
8
8
  color?: string | undefined;
9
- property?: string | undefined;
10
9
  translate?: "yes" | "no" | undefined;
11
10
  hidden?: boolean | undefined;
12
11
  children?: import("react").ReactNode;
@@ -41,6 +40,7 @@ declare const ButtonOutline: import("styled-components").StyledComponent<"button
41
40
  datatype?: string | undefined;
42
41
  inlist?: any;
43
42
  prefix?: string | undefined;
43
+ property?: string | undefined;
44
44
  resource?: string | undefined;
45
45
  typeof?: string | undefined;
46
46
  vocab?: string | undefined;
@@ -269,8 +269,8 @@ declare const ButtonOutline: import("styled-components").StyledComponent<"button
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
271
  css?: import("@emotion/core").InterpolationWithTheme<any>;
272
- disabled?: boolean | undefined;
273
272
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
273
+ disabled?: boolean | undefined;
274
274
  autoFocus?: boolean | undefined;
275
275
  formAction?: string | undefined;
276
276
  formEncType?: string | undefined;
@@ -6,7 +6,6 @@ export declare const ButtonPrimary: import("styled-components").StyledComponent<
6
6
  variant?: "small" | "medium" | "large" | undefined;
7
7
  } & {
8
8
  color?: string | undefined;
9
- property?: string | undefined;
10
9
  translate?: "yes" | "no" | undefined;
11
10
  hidden?: boolean | undefined;
12
11
  children?: import("react").ReactNode;
@@ -41,6 +40,7 @@ export declare const ButtonPrimary: import("styled-components").StyledComponent<
41
40
  datatype?: string | undefined;
42
41
  inlist?: any;
43
42
  prefix?: string | undefined;
43
+ property?: string | undefined;
44
44
  resource?: string | undefined;
45
45
  typeof?: string | undefined;
46
46
  vocab?: string | undefined;
@@ -269,8 +269,8 @@ export declare const ButtonPrimary: import("styled-components").StyledComponent<
269
269
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
270
270
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
271
271
  css?: import("@emotion/core").InterpolationWithTheme<any>;
272
- disabled?: boolean | undefined;
273
272
  as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
273
+ disabled?: boolean | undefined;
274
274
  autoFocus?: boolean | undefined;
275
275
  formAction?: string | undefined;
276
276
  formEncType?: string | undefined;
@@ -25,5 +25,5 @@ export declare type CheckboxProps = {
25
25
  /**
26
26
  * An accessible, native checkbox component
27
27
  */
28
- declare const Checkbox: React.ForwardRefExoticComponent<Pick<CheckboxProps, "sx" | keyof React.InputHTMLAttributes<HTMLInputElement> | "validationStatus" | "indeterminate"> & React.RefAttributes<HTMLInputElement>>;
28
+ declare const Checkbox: React.ForwardRefExoticComponent<Pick<CheckboxProps, "sx" | keyof React.InputHTMLAttributes<HTMLInputElement> | "indeterminate" | "validationStatus"> & React.RefAttributes<HTMLInputElement>>;
29
29
  export default Checkbox;
@@ -6,7 +6,7 @@ import React, { useLayoutEffect } from 'react';
6
6
  import sx from './sx';
7
7
  const StyledCheckbox = styled.input.withConfig({
8
8
  displayName: "Checkbox__StyledCheckbox",
9
- componentId: "sc-i51804-0"
9
+ componentId: "i51804-0"
10
10
  })(["cursor:pointer;", " ", ""], props => props.disabled && `cursor: not-allowed;`, sx);
11
11
  /**
12
12
  * An accessible, native checkbox component