@primer/components 0.0.0-202110320949 → 0.0.0-2021103215725

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 (56) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/browser.esm.js +24 -33
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +4 -13
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/Dropdown.d.ts +5 -4
  7. package/lib/Dropdown.js +3 -3
  8. package/lib/SelectMenu/SelectMenu.d.ts +14 -182
  9. package/lib/SelectMenu/SelectMenu.js +1 -3
  10. package/lib/SelectMenu/SelectMenuDivider.d.ts +1 -2
  11. package/lib/SelectMenu/SelectMenuDivider.js +1 -1
  12. package/lib/SelectMenu/SelectMenuFilter.js +1 -1
  13. package/lib/SelectMenu/SelectMenuFooter.d.ts +1 -2
  14. package/lib/SelectMenu/SelectMenuFooter.js +1 -1
  15. package/lib/SelectMenu/SelectMenuHeader.d.ts +1 -2
  16. package/lib/SelectMenu/SelectMenuHeader.js +1 -1
  17. package/lib/SelectMenu/SelectMenuItem.d.ts +2 -3
  18. package/lib/SelectMenu/SelectMenuItem.js +1 -1
  19. package/lib/SelectMenu/SelectMenuList.d.ts +1 -2
  20. package/lib/SelectMenu/SelectMenuList.js +1 -1
  21. package/lib/SelectMenu/SelectMenuLoadingAnimation.d.ts +2 -2
  22. package/lib/SelectMenu/SelectMenuLoadingAnimation.js +3 -1
  23. package/lib/SelectMenu/SelectMenuModal.d.ts +2 -3
  24. package/lib/SelectMenu/SelectMenuModal.js +1 -1
  25. package/lib/SelectMenu/SelectMenuTab.d.ts +1 -2
  26. package/lib/SelectMenu/SelectMenuTab.js +1 -1
  27. package/lib/SelectMenu/SelectMenuTabPanel.d.ts +1 -2
  28. package/lib/SelectMenu/SelectMenuTabPanel.js +1 -1
  29. package/lib/SelectMenu/SelectMenuTabs.d.ts +1 -2
  30. package/lib/SelectMenu/SelectMenuTabs.js +1 -1
  31. package/lib-esm/Dropdown.d.ts +5 -4
  32. package/lib-esm/Dropdown.js +4 -4
  33. package/lib-esm/SelectMenu/SelectMenu.d.ts +14 -182
  34. package/lib-esm/SelectMenu/SelectMenu.js +1 -2
  35. package/lib-esm/SelectMenu/SelectMenuDivider.d.ts +1 -2
  36. package/lib-esm/SelectMenu/SelectMenuDivider.js +2 -2
  37. package/lib-esm/SelectMenu/SelectMenuFilter.js +2 -2
  38. package/lib-esm/SelectMenu/SelectMenuFooter.d.ts +1 -2
  39. package/lib-esm/SelectMenu/SelectMenuFooter.js +2 -2
  40. package/lib-esm/SelectMenu/SelectMenuHeader.d.ts +1 -2
  41. package/lib-esm/SelectMenu/SelectMenuHeader.js +2 -2
  42. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +2 -3
  43. package/lib-esm/SelectMenu/SelectMenuItem.js +2 -2
  44. package/lib-esm/SelectMenu/SelectMenuList.d.ts +1 -2
  45. package/lib-esm/SelectMenu/SelectMenuList.js +2 -2
  46. package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.d.ts +2 -2
  47. package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.js +3 -2
  48. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +2 -3
  49. package/lib-esm/SelectMenu/SelectMenuModal.js +2 -2
  50. package/lib-esm/SelectMenu/SelectMenuTab.d.ts +1 -2
  51. package/lib-esm/SelectMenu/SelectMenuTab.js +2 -2
  52. package/lib-esm/SelectMenu/SelectMenuTabPanel.d.ts +1 -2
  53. package/lib-esm/SelectMenu/SelectMenuTabPanel.js +2 -2
  54. package/lib-esm/SelectMenu/SelectMenuTabs.d.ts +1 -2
  55. package/lib-esm/SelectMenu/SelectMenuTabs.js +2 -2
  56. package/package.json +1 -1
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React from 'react';
4
4
  import styled from 'styled-components';
5
- import { COMMON, get, TYPOGRAPHY } from '../constants';
5
+ import { get } from '../constants';
6
6
  import sx from '../sx';
7
7
  // SelectMenu.Header is intentionally not exported, it's an internal component used in
8
8
  // SelectMenu.Modal
@@ -13,7 +13,7 @@ const SelectMenuTitle = styled.h3.withConfig({
13
13
  const StyledHeader = styled.header.withConfig({
14
14
  displayName: "SelectMenuHeader__StyledHeader",
15
15
  componentId: "sc-1pwppzc-1"
16
- })(["display:flex;flex:none;padding:", ";border-bottom:", " solid ", ";", " ", " @media (min-width:", "){padding-top:", ";padding-bottom:", ";}", ";"], get('space.3'), get('borderWidths'), get('colors.border.muted'), COMMON, TYPOGRAPHY, get('breakpoints.0'), get('space.2'), get('space.2'), sx);
16
+ })(["display:flex;flex:none;padding:", ";border-bottom:", " solid ", ";@media (min-width:", "){padding-top:", ";padding-bottom:", ";}", ";"], get('space.3'), get('borderWidths'), get('colors.border.muted'), get('breakpoints.0'), get('space.2'), get('space.2'), sx);
17
17
 
18
18
  const SelectMenuHeader = ({
19
19
  children,
@@ -1,15 +1,14 @@
1
1
  import React from 'react';
2
- import { SystemCommonProps } from '../constants';
3
2
  import { SxProp } from '../sx';
4
3
  import { ComponentProps } from '../utils/types';
5
4
  export declare const listItemStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
6
5
  declare const StyledItem: import("styled-components").StyledComponent<"a", any, {
7
6
  role: "menuitemcheckbox";
8
- } & SystemCommonProps & SxProp, "role">;
7
+ } & SxProp, "role">;
9
8
  declare type SelectMenuItemInteralProps = {
10
9
  as?: React.ElementType;
11
10
  selected?: boolean;
12
11
  } & ComponentProps<typeof StyledItem>;
13
- declare const SelectMenuItem: React.ForwardRefExoticComponent<Pick<SelectMenuItemInteralProps, "translate" | "hidden" | "children" | "theme" | "slot" | "style" | "title" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof SystemCommonProps | "sx" | "media" | "target" | "href" | "as" | "hrefLang" | "referrerPolicy" | "rel" | "download" | "ping" | "selected"> & React.RefAttributes<HTMLAnchorElement>>;
12
+ declare const SelectMenuItem: React.ForwardRefExoticComponent<Pick<SelectMenuItemInteralProps, "color" | "translate" | "hidden" | "children" | "theme" | "slot" | "style" | "title" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "media" | "target" | "href" | "as" | "hrefLang" | "referrerPolicy" | "rel" | "download" | "ping" | "selected"> & React.RefAttributes<HTMLAnchorElement>>;
14
13
  export declare type SelectMenuItemProps = ComponentProps<typeof SelectMenuItem>;
15
14
  export default SelectMenuItem;
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  import { CheckIcon } from '@primer/octicons-react';
4
4
  import React, { forwardRef, useContext, useRef } from 'react';
5
5
  import styled, { css } from 'styled-components';
6
- import { COMMON, get } from '../constants';
6
+ import { get } from '../constants';
7
7
  import StyledOcticon from '../StyledOcticon';
8
8
  import sx from '../sx';
9
9
  import { MenuContext } from './SelectMenuContext';
@@ -13,7 +13,7 @@ const StyledItem = styled.a.attrs(() => ({
13
13
  })).withConfig({
14
14
  displayName: "SelectMenuItem__StyledItem",
15
15
  componentId: "gjymba-0"
16
- })(["", " ", " ", ";"], listItemStyles, COMMON, sx);
16
+ })(["", " ", ";"], listItemStyles, sx);
17
17
  const SelectMenuItem = /*#__PURE__*/forwardRef(({
18
18
  children,
19
19
  selected,
@@ -1,6 +1,5 @@
1
- import { SystemCommonProps } from '../constants';
2
1
  import { SxProp } from '../sx';
3
2
  import { ComponentProps } from '../utils/types';
4
- declare const SelectMenuList: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
3
+ declare const SelectMenuList: import("styled-components").StyledComponent<"div", any, SxProp, never>;
5
4
  export declare type SelectMenuListProps = ComponentProps<typeof SelectMenuList>;
6
5
  export default SelectMenuList;
@@ -1,10 +1,10 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { COMMON, get } from '../constants';
2
+ import { get } from '../constants';
3
3
  import sx from '../sx';
4
4
  const listStyles = css(["position:relative;padding:0;margin:0;flex:auto;overflow-x:hidden;overflow-y:auto;background-color:", ";-webkit-overflow-scrolling:touch;@media (hover:hover){.SelectMenuTab:focus{background-color:", ";}.SelectMenuTab:not([aria-checked='true']):hover{color:", ";background-color:", ";}.SelectMenuTab:not([aria-checked='true']):active{color:", ";background-color:", ";}}"], get('colors.canvas.overlay'), get('colors.selectMenu.tapFocusBg'), get('colors.fg.default'), get('colors.canvas.subtle'), get('colors.fg.default'), get('colors.canvas.subtle'));
5
5
  const SelectMenuList = styled.div.withConfig({
6
6
  displayName: "SelectMenuList",
7
7
  componentId: "sc-1opbpf6-0"
8
- })(["", " ", " ", ";"], listStyles, COMMON, sx);
8
+ })(["", " ", ";"], listStyles, sx);
9
9
  SelectMenuList.displayName = 'SelectMenu.List';
10
10
  export default SelectMenuList;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { SystemCommonProps } from '../constants';
2
+ import { SxProp } from '../sx';
3
3
  import { ComponentProps } from '../utils/types';
4
- declare const Animation: import("styled-components").StyledComponent<"div", any, SystemCommonProps, never>;
4
+ declare const Animation: import("styled-components").StyledComponent<"div", any, SxProp, never>;
5
5
  export declare type SelectMenuLoadingAnimationProps = ComponentProps<typeof Animation>;
6
6
  declare const SelectMenuLoadingAnimation: (props: SelectMenuLoadingAnimationProps) => JSX.Element;
7
7
  export default SelectMenuLoadingAnimation;
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { COMMON, get } from '../constants';
3
+ import { get } from '../constants';
4
4
  import Spinner from '../Spinner';
5
+ import sx from '../sx';
5
6
  const Animation = styled.div.withConfig({
6
7
  displayName: "SelectMenuLoadingAnimation__Animation",
7
8
  componentId: "sc-17k54td-0"
8
- })(["padding:", " ", ";text-align:center;background-color:", ";", ""], get('space.6'), get('space.4'), get('colors.canvas.overlay'), COMMON);
9
+ })(["padding:", " ", ";text-align:center;background-color:", ";", ""], get('space.6'), get('space.4'), get('colors.canvas.overlay'), sx);
9
10
 
10
11
  const SelectMenuLoadingAnimation = props => {
11
12
  return /*#__PURE__*/React.createElement(Animation, props, /*#__PURE__*/React.createElement(Spinner, null));
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { WidthProps } from 'styled-system';
3
- import { SystemCommonProps } from '../constants';
4
3
  import { SxProp } from '../sx';
5
4
  import { ComponentProps } from '../utils/types';
6
5
  declare type StyledModalProps = {
@@ -8,8 +7,8 @@ declare type StyledModalProps = {
8
7
  } & WidthProps;
9
8
  declare const ModalWrapper: import("styled-components").StyledComponent<"div", any, {
10
9
  align?: "left" | "right" | undefined;
11
- } & SystemCommonProps & SxProp, never>;
10
+ } & SxProp, never>;
12
11
  declare type SelectMenuModalInternalProps = Pick<StyledModalProps, 'width'> & ComponentProps<typeof ModalWrapper>;
13
- declare const SelectMenuModal: React.ForwardRefExoticComponent<Pick<SelectMenuModalInternalProps, "backgroundColor" | "color" | "display" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "padding" | "hidden" | "children" | "theme" | "p" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "sx" | "align"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectMenuModal: React.ForwardRefExoticComponent<Pick<SelectMenuModalInternalProps, "color" | "translate" | "width" | "hidden" | "children" | "theme" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "align"> & React.RefAttributes<HTMLDivElement>>;
14
13
  export declare type SelectMenuModalProps = ComponentProps<typeof SelectMenuModal>;
15
14
  export default SelectMenuModal;
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  import React from 'react';
4
4
  import styled, { css, keyframes } from 'styled-components';
5
5
  import { width } from 'styled-system';
6
- import { COMMON, get } from '../constants';
6
+ import { get } from '../constants';
7
7
  import sx from '../sx';
8
8
  const animateModal = keyframes(["0%{opacity:0;transform:scale(0.9);}"]);
9
9
  const modalStyles = css(["position:relative;z-index:99;display:flex;", ";max-height:", ";margin:auto 0;", ";overflow:hidden;pointer-events:auto;flex-direction:column;background-color:", ";border-radius:", ";box-shadow:", ";animation:", " 0.12s cubic-bezier(0,0.1,0.1,1) backwards;@media (min-width:", "){height:auto;max-height:350px;margin:", " 0 ", " 0;font-size:", ";border:", " solid ", ";border-radius:", ";box-shadow:", ";}"], props => props.filter ? 'height: 80%' : '', props => props.filter ? 'none' : '66%', props => props.filter ? 'margin-top: 0' : '', get('colors.canvas.overlay'), get('radii.2'), get('shadows.shadow.small'), animateModal, get('breakpoints.0'), get('space.1'), get('space.3'), get('fontSizes.0'), get('borderWidths.1'), get('colors.border.default'), get('radii.2'), get('shadows.shadow.small'));
@@ -15,7 +15,7 @@ const Modal = styled.div.withConfig({
15
15
  const ModalWrapper = styled.div.withConfig({
16
16
  displayName: "SelectMenuModal__ModalWrapper",
17
17
  componentId: "sc-1m5qo55-1"
18
- })(["", " ", " ", ";"], modalWrapperStyles, COMMON, sx);
18
+ })(["", " ", ";"], modalWrapperStyles, sx);
19
19
  const SelectMenuModal = /*#__PURE__*/React.forwardRef(({
20
20
  children,
21
21
  theme,
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { SystemCommonProps } from '../constants';
3
2
  import { SxProp } from '../sx';
4
3
  import { ComponentProps } from '../utils/types';
5
- declare const StyledTab: import("styled-components").StyledComponent<"button", any, SystemCommonProps & SxProp, never>;
4
+ declare const StyledTab: import("styled-components").StyledComponent<"button", any, SxProp, never>;
6
5
  export declare type SelectMenuTabProps = {
7
6
  tabName?: string;
8
7
  index?: number;
@@ -3,14 +3,14 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  import classnames from 'classnames';
4
4
  import React, { useContext, useEffect } from 'react';
5
5
  import styled, { css } from 'styled-components';
6
- import { COMMON, get } from '../constants';
6
+ import { get } from '../constants';
7
7
  import sx from '../sx';
8
8
  import { MenuContext } from './SelectMenuContext';
9
9
  const tabStyles = css(["flex:1;padding:", " ", ";font-size:", ";font-weight:500;color:", ";text-align:center;background-color:transparent;border:0;box-shadow:inset 0 -1px 0 ", ";@media (min-width:", "){flex:none;padding:", " ", ";border:", " solid transparent;border-bottom-width:0;border-top-left-radius:", ";border-top-right-radius:", ";}&[aria-selected='true']{z-index:1;color:", ";background-color:", ";box-shadow:0 0 0 1px ", ";@media (min-width:", "){border-color:", ";box-shadow:none;}}&:focus{background-color:", ";}"], get('space.2'), get('space.3'), get('fontSizes.0'), get('colors.fg.muted'), get('colors.border.muted'), get('breakpoints.0'), get('space.1'), get('space.3'), get('borderWidths.1'), get('radii.2'), get('radii.2'), get('colors.text-primary'), get('colors.canvas.overlay'), get('colors.border.muted'), get('breakpoints.0'), get('colors.border.muted'), get('colors.neutral.subtle'));
10
10
  const StyledTab = styled.button.withConfig({
11
11
  displayName: "SelectMenuTab__StyledTab",
12
12
  componentId: "ga32sz-0"
13
- })(["", " ", " ", ";"], tabStyles, COMMON, sx);
13
+ })(["", " ", ";"], tabStyles, sx);
14
14
 
15
15
  const SelectMenuTab = ({
16
16
  tabName = '',
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { SystemCommonProps } from '../constants';
3
2
  import { SxProp } from '../sx';
4
3
  import { ComponentProps } from '../utils/types';
5
- declare const TabPanelBase: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
4
+ declare const TabPanelBase: import("styled-components").StyledComponent<"div", any, SxProp, never>;
6
5
  export declare type SelectMenuTabPanelProps = {
7
6
  tabName?: string;
8
7
  } & ComponentProps<typeof TabPanelBase>;
@@ -2,14 +2,14 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React, { useContext } from 'react';
4
4
  import styled from 'styled-components';
5
- import { COMMON, get } from '../constants';
5
+ import { get } from '../constants';
6
6
  import sx from '../sx';
7
7
  import { MenuContext } from './SelectMenuContext';
8
8
  import SelectMenuList from './SelectMenuList';
9
9
  const TabPanelBase = styled.div.withConfig({
10
10
  displayName: "SelectMenuTabPanel__TabPanelBase",
11
11
  componentId: "ck0ipe-0"
12
- })(["border-top:", " solid ", ";", " ", ";"], get('borderWidths.1'), get('colors.border.muted'), COMMON, sx);
12
+ })(["border-top:", " solid ", ";", ";"], get('borderWidths.1'), get('colors.border.muted'), sx);
13
13
 
14
14
  const TabPanel = ({
15
15
  tabName,
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { SystemCommonProps } from '../constants';
3
2
  import { SxProp } from '../sx';
4
3
  import { ComponentProps } from '../utils/types';
5
- declare const SelectMenuTabsBase: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
4
+ declare const SelectMenuTabsBase: import("styled-components").StyledComponent<"div", any, SxProp, never>;
6
5
  export declare type SelectMenuTabsProps = ComponentProps<typeof SelectMenuTabsBase>;
7
6
  declare const SelectMenuTabs: {
8
7
  ({ children, ...rest }: SelectMenuTabsProps): JSX.Element;
@@ -2,13 +2,13 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React from 'react';
4
4
  import styled, { css } from 'styled-components';
5
- import { COMMON, get } from '../constants';
5
+ import { get } from '../constants';
6
6
  import sx from '../sx';
7
7
  const tabWrapperStyles = css(["display:flex;flex-shrink:0;margin-bottom:-1px;-webkit-overflow-scrolling:touch;overflow-x:auto;overflow-y:hidden;&::-webkit-scrollbar{display:none;}@media (min-width:", "){padding:0 ", ";margin-top:", ";}"], get('breakpoints.0'), get('space.2'), get('space.3'));
8
8
  const SelectMenuTabsBase = styled.div.withConfig({
9
9
  displayName: "SelectMenuTabs__SelectMenuTabsBase",
10
10
  componentId: "kgg21o-0"
11
- })(["", " ", " ", ";"], tabWrapperStyles, COMMON, sx);
11
+ })(["", " ", ";"], tabWrapperStyles, sx);
12
12
 
13
13
  const SelectMenuTabs = ({
14
14
  children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "0.0.0-202110320949",
3
+ "version": "0.0.0-2021103215725",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",