@primer/components 0.0.0-20219815255 → 0.0.0-202198182351

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.
@@ -32,9 +32,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
32
32
  Divider: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
33
33
  Filter: React.ForwardRefExoticComponent<Pick<{
34
34
  value?: string | undefined;
35
- } & Omit<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
36
- ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
37
- }, string | number | symbol> & Omit<Pick<{
35
+ } & Pick<Omit<Pick<{
38
36
  [x: string]: any;
39
37
  [x: number]: any;
40
38
  } & {
@@ -42,12 +40,11 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
42
40
  } & {
43
41
  as?: string | React.ComponentType<any> | undefined;
44
42
  forwardedAs?: string | React.ComponentType<any> | undefined;
45
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast" | "wrapperRef"> & {
43
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
46
44
  className?: string | undefined;
47
45
  icon?: React.ComponentType<{
48
46
  className?: string | undefined;
49
47
  }> | undefined;
50
- wrapperRef?: React.RefObject<HTMLSpanElement> | undefined;
51
48
  } & Pick<{
52
49
  color?: string | undefined;
53
50
  maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -318,9 +315,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
318
315
  contrast?: boolean | undefined;
319
316
  } & {
320
317
  theme?: any;
321
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast"> & {
322
- as?: "input" | undefined;
323
- }, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
318
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
324
319
  Footer: import("styled-components").StyledComponent<"footer", any, SystemCommonProps & SxProp, never>;
325
320
  Item: React.ForwardRefExoticComponent<Pick<{
326
321
  as?: React.ElementType<any> | undefined;
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import { MaxWidthProps, MinWidthProps, WidthProps } from 'styled-system';
3
- import { ForwardRefComponent as PolymorphicForwardRefComponent } from '@radix-ui/react-polymorphic';
4
3
  import { SxProp } from './sx';
5
4
  import { ComponentProps, Merge } from './utils/types';
6
- import UnstyledTextInput from './_UnstyledTextInput';
5
+ declare const Input: import("styled-components").StyledComponent<"input", any, {}, never>;
7
6
  declare const Wrapper: import("styled-components").StyledComponent<"span", any, {
8
7
  disabled?: boolean | undefined;
9
8
  hasIcon?: boolean | undefined;
@@ -16,9 +15,8 @@ declare type NonPassthroughProps = {
16
15
  icon?: React.ComponentType<{
17
16
  className?: string;
18
17
  }>;
19
- wrapperRef?: React.RefObject<HTMLSpanElement>;
20
18
  } & Pick<ComponentProps<typeof Wrapper>, 'block' | 'contrast' | 'disabled' | 'sx' | 'theme' | 'width' | 'maxWidth' | 'minWidth' | 'variant'>;
21
- declare type TextInputInternalProps = Merge<React.ComponentPropsWithoutRef<typeof UnstyledTextInput>, NonPassthroughProps>;
22
- declare const TextInput: PolymorphicForwardRefComponent<"input", TextInputInternalProps>;
19
+ declare type TextInputInternalProps = Merge<React.ComponentPropsWithoutRef<typeof Input>, NonPassthroughProps>;
20
+ declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputInternalProps, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
23
21
  export declare type TextInputProps = ComponentProps<typeof TextInput>;
24
22
  export default TextInput;
package/lib/TextInput.js CHANGED
@@ -17,8 +17,6 @@ var _constants = require("./constants");
17
17
 
18
18
  var _sx = _interopRequireDefault(require("./sx"));
19
19
 
20
- var _UnstyledTextInput = _interopRequireDefault(require("./_UnstyledTextInput"));
21
-
22
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
21
 
24
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -44,16 +42,22 @@ const sizeVariants = (0, _styledSystem.variant)({
44
42
  }
45
43
  });
46
44
 
45
+ const Input = _styledComponents.default.input.withConfig({
46
+ displayName: "TextInput__Input",
47
+ componentId: "sc-1apmpmt-0"
48
+ })(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;&:focus{outline:0;}"]);
49
+
47
50
  const Wrapper = _styledComponents.default.span.withConfig({
48
51
  displayName: "TextInput__Wrapper",
49
- componentId: "sc-1apmpmt-0"
52
+ componentId: "sc-1apmpmt-1"
50
53
  })(["display:inline-flex;align-items:stretch;min-height:34px;font-size:", ";line-height:20px;color:", ";vertical-align:middle;background-repeat:no-repeat;background-position:right 8px center;border:1px solid ", ";border-radius:", ";outline:none;box-shadow:", ";", " .TextInput-icon{align-self:center;color:", ";margin:0 ", ";flex-shrink:0;}&:focus-within{border-color:", ";box-shadow:", ";}", " ", " ", " @media (min-width:", "){font-size:", ";}", " ", " ", " ", " ", ";"], (0, _constants.get)('fontSizes.1'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('radii.2'), (0, _constants.get)('shadows.primer.shadow.inset'), props => {
51
54
  if (props.hasIcon) {
52
55
  return (0, _styledComponents.css)(["padding:0;"]);
53
56
  } else {
54
57
  return (0, _styledComponents.css)(["padding:6px 12px;"]);
55
58
  }
56
- }, (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('space.2'), (0, _constants.get)('colors.accent.emphasis'), (0, _constants.get)('shadows.primer.shadow.focus'), props => props.contrast && (0, _styledComponents.css)(["background-color:", ";"], (0, _constants.get)('colors.canvas.inset')), props => props.disabled && (0, _styledComponents.css)(["color:", ";background-color:", ";border-color:", ";"], (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.input.disabledBg'), (0, _constants.get)('colors.border.default')), props => props.block && (0, _styledComponents.css)(["display:block;width:100%;"]), (0, _constants.get)('breakpoints.1'), (0, _constants.get)('fontSizes.1'), _styledSystem.width, _styledSystem.minWidth, _styledSystem.maxWidth, sizeVariants, _sx.default);
59
+ }, (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('space.2'), (0, _constants.get)('colors.accent.emphasis'), (0, _constants.get)('shadows.primer.shadow.focus'), props => props.contrast && (0, _styledComponents.css)(["background-color:", ";"], (0, _constants.get)('colors.canvas.inset')), props => props.disabled && (0, _styledComponents.css)(["color:", ";background-color:", ";border-color:", ";"], (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.input.disabledBg'), (0, _constants.get)('colors.border.default')), props => props.block && (0, _styledComponents.css)(["display:block;width:100%;"]), (0, _constants.get)('breakpoints.1'), (0, _constants.get)('fontSizes.1'), _styledSystem.width, _styledSystem.minWidth, _styledSystem.maxWidth, sizeVariants, _sx.default); // Props that are not passed through to Input:
60
+
57
61
 
58
62
  // using forwardRef is important so that other components (ex. SelectMenu) can autofocus the input
59
63
  const TextInput = /*#__PURE__*/_react.default.forwardRef(({
@@ -68,7 +72,6 @@ const TextInput = /*#__PURE__*/_react.default.forwardRef(({
68
72
  minWidth: minWidthProp,
69
73
  maxWidth: maxWidthProp,
70
74
  variant: variantProp,
71
- wrapperRef,
72
75
  ...inputProps
73
76
  }, ref) => {
74
77
  // this class is necessary to style FilterSearch, plz no touchy!
@@ -84,11 +87,10 @@ const TextInput = /*#__PURE__*/_react.default.forwardRef(({
84
87
  width: widthProp,
85
88
  minWidth: minWidthProp,
86
89
  maxWidth: maxWidthProp,
87
- variant: variantProp,
88
- ref: wrapperRef
90
+ variant: variantProp
89
91
  }, IconComponent && /*#__PURE__*/_react.default.createElement(IconComponent, {
90
92
  className: "TextInput-icon"
91
- }), /*#__PURE__*/_react.default.createElement(_UnstyledTextInput.default, _extends({
93
+ }), /*#__PURE__*/_react.default.createElement(Input, _extends({
92
94
  ref: ref,
93
95
  disabled: disabled
94
96
  }, inputProps)));
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { TokenBaseProps } from './TokenBase';
3
+ export interface AvatarTokenProps extends TokenBaseProps {
4
+ avatarSrc: string;
5
+ }
6
+ declare const AvatarToken: React.ForwardRefExoticComponent<Pick<AvatarTokenProps, "sizes" | "color" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "list" | "default" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "start" | "step" | "size" | "wrap" | "open" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "classID" | "useMap" | "wmode" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "onRemove" | "isSelected" | "avatarSrc"> & React.RefAttributes<HTMLElement>>;
7
+ export default AvatarToken;
@@ -25,7 +25,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
25
25
 
26
26
  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); }
27
27
 
28
- const ProfileToken = /*#__PURE__*/(0, _react.forwardRef)(({
28
+ const AvatarToken = /*#__PURE__*/(0, _react.forwardRef)(({
29
29
  avatarSrc,
30
30
  id,
31
31
  size,
@@ -45,9 +45,9 @@ const ProfileToken = /*#__PURE__*/(0, _react.forwardRef)(({
45
45
  ref: forwardedRef
46
46
  }));
47
47
  });
48
- ProfileToken.defaultProps = {
48
+ AvatarToken.defaultProps = {
49
49
  size: _TokenBase.defaultTokenSize
50
50
  };
51
- ProfileToken.displayName = 'ProfileToken';
52
- var _default = ProfileToken;
51
+ AvatarToken.displayName = 'AvatarToken';
52
+ var _default = AvatarToken;
53
53
  exports.default = _default;
@@ -5,24 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
8
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
10
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
-
12
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
11
 
14
12
  const TokenTextContainer = (0, _styledComponents.default)('span').withConfig({
15
13
  displayName: "_TokenTextContainer__TokenTextContainer",
16
14
  componentId: "sc-4t2bev-0"
17
- })(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}", ""], props => {
18
- if (props.as === 'a') {
19
- return (0, _styledComponents.css)(["color:currentColor;text-decoration:none;"]);
20
- }
21
-
22
- if (props.as === 'button') {
23
- // reset button styles, make the cursor a pointer, and add line-height
24
- return (0, _styledComponents.css)(["background:transparent;border:none;color:inherit;font:inherit;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;line-height:1;"]);
25
- }
26
- });
15
+ })(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:none;color:inherit;font:inherit;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;line-height:1;color:currentColor;text-decoration:none;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}"]);
27
16
  var _default = TokenTextContainer;
28
17
  exports.default = _default;
@@ -1,3 +1,3 @@
1
1
  export { default } from './Token';
2
2
  export { default as IssueLabelToken } from './IssueLabelToken';
3
- export { default as ProfileToken } from './ProfileToken';
3
+ export { default as AvatarToken } from './AvatarToken';
@@ -15,10 +15,10 @@ Object.defineProperty(exports, "IssueLabelToken", {
15
15
  return _IssueLabelToken.default;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "ProfileToken", {
18
+ Object.defineProperty(exports, "AvatarToken", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _ProfileToken.default;
21
+ return _AvatarToken.default;
22
22
  }
23
23
  });
24
24
 
@@ -26,6 +26,6 @@ var _Token = _interopRequireDefault(require("./Token"));
26
26
 
27
27
  var _IssueLabelToken = _interopRequireDefault(require("./IssueLabelToken"));
28
28
 
29
- var _ProfileToken = _interopRequireDefault(require("./ProfileToken"));
29
+ var _AvatarToken = _interopRequireDefault(require("./AvatarToken"));
30
30
 
31
31
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
package/lib/index.d.ts CHANGED
@@ -98,12 +98,11 @@ export { default as TabNav } from './TabNav';
98
98
  export type { TabNavProps, TabNavLinkProps } from './TabNav';
99
99
  export { default as TextInput } from './TextInput';
100
100
  export type { TextInputProps } from './TextInput';
101
- export { default as TextInputWithTokens } from './TextInputWithTokens';
102
101
  export { default as Text } from './Text';
103
102
  export type { TextProps } from './Text';
104
103
  export { default as Timeline } from './Timeline';
105
104
  export type { TimelineProps, TimelineBadgeProps, TimelineBodyProps, TimelineBreakProps, TimelineItemsProps } from './Timeline';
106
- export { default as Token, IssueLabelToken, ProfileToken } from './Token';
105
+ export { default as Token, IssueLabelToken, AvatarToken } from './Token';
107
106
  export { default as Tooltip } from './Tooltip';
108
107
  export type { TooltipProps } from './Tooltip';
109
108
  export { default as Truncate } from './Truncate';
package/lib/index.js CHANGED
@@ -429,12 +429,6 @@ Object.defineProperty(exports, "TextInput", {
429
429
  return _TextInput.default;
430
430
  }
431
431
  });
432
- Object.defineProperty(exports, "TextInputWithTokens", {
433
- enumerable: true,
434
- get: function () {
435
- return _TextInputWithTokens.default;
436
- }
437
- });
438
432
  Object.defineProperty(exports, "Text", {
439
433
  enumerable: true,
440
434
  get: function () {
@@ -459,10 +453,10 @@ Object.defineProperty(exports, "IssueLabelToken", {
459
453
  return _Token.IssueLabelToken;
460
454
  }
461
455
  });
462
- Object.defineProperty(exports, "ProfileToken", {
456
+ Object.defineProperty(exports, "AvatarToken", {
463
457
  enumerable: true,
464
458
  get: function () {
465
- return _Token.ProfileToken;
459
+ return _Token.AvatarToken;
466
460
  }
467
461
  });
468
462
  Object.defineProperty(exports, "Tooltip", {
@@ -606,8 +600,6 @@ var _TabNav = _interopRequireDefault(require("./TabNav"));
606
600
 
607
601
  var _TextInput = _interopRequireDefault(require("./TextInput"));
608
602
 
609
- var _TextInputWithTokens = _interopRequireDefault(require("./TextInputWithTokens"));
610
-
611
603
  var _Text = _interopRequireDefault(require("./Text"));
612
604
 
613
605
  var _Timeline = _interopRequireDefault(require("./Timeline"));
@@ -32,9 +32,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
32
32
  Divider: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
33
33
  Filter: React.ForwardRefExoticComponent<Pick<{
34
34
  value?: string | undefined;
35
- } & Omit<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
36
- ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
37
- }, string | number | symbol> & Omit<Pick<{
35
+ } & Pick<Omit<Pick<{
38
36
  [x: string]: any;
39
37
  [x: number]: any;
40
38
  } & {
@@ -42,12 +40,11 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
42
40
  } & {
43
41
  as?: string | React.ComponentType<any> | undefined;
44
42
  forwardedAs?: string | React.ComponentType<any> | undefined;
45
- }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast" | "wrapperRef"> & {
43
+ }, string | number | symbol>, "maxWidth" | "minWidth" | "width" | "theme" | "className" | "block" | "icon" | "sx" | "disabled" | "variant" | "contrast"> & {
46
44
  className?: string | undefined;
47
45
  icon?: React.ComponentType<{
48
46
  className?: string | undefined;
49
47
  }> | undefined;
50
- wrapperRef?: React.RefObject<HTMLSpanElement> | undefined;
51
48
  } & Pick<{
52
49
  color?: string | undefined;
53
50
  maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
@@ -318,9 +315,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
318
315
  contrast?: boolean | undefined;
319
316
  } & {
320
317
  theme?: any;
321
- }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast"> & {
322
- as?: "input" | undefined;
323
- }, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
318
+ }, "maxWidth" | "minWidth" | "width" | "theme" | "block" | "sx" | "disabled" | "variant" | "contrast">, string | number | symbol> & React.RefAttributes<HTMLInputElement>, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
324
319
  Footer: import("styled-components").StyledComponent<"footer", any, SystemCommonProps & SxProp, never>;
325
320
  Item: React.ForwardRefExoticComponent<Pick<{
326
321
  as?: React.ElementType<any> | undefined;
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import { MaxWidthProps, MinWidthProps, WidthProps } from 'styled-system';
3
- import { ForwardRefComponent as PolymorphicForwardRefComponent } from '@radix-ui/react-polymorphic';
4
3
  import { SxProp } from './sx';
5
4
  import { ComponentProps, Merge } from './utils/types';
6
- import UnstyledTextInput from './_UnstyledTextInput';
5
+ declare const Input: import("styled-components").StyledComponent<"input", any, {}, never>;
7
6
  declare const Wrapper: import("styled-components").StyledComponent<"span", any, {
8
7
  disabled?: boolean | undefined;
9
8
  hasIcon?: boolean | undefined;
@@ -16,9 +15,8 @@ declare type NonPassthroughProps = {
16
15
  icon?: React.ComponentType<{
17
16
  className?: string;
18
17
  }>;
19
- wrapperRef?: React.RefObject<HTMLSpanElement>;
20
18
  } & Pick<ComponentProps<typeof Wrapper>, 'block' | 'contrast' | 'disabled' | 'sx' | 'theme' | 'width' | 'maxWidth' | 'minWidth' | 'variant'>;
21
- declare type TextInputInternalProps = Merge<React.ComponentPropsWithoutRef<typeof UnstyledTextInput>, NonPassthroughProps>;
22
- declare const TextInput: PolymorphicForwardRefComponent<"input", TextInputInternalProps>;
19
+ declare type TextInputInternalProps = Merge<React.ComponentPropsWithoutRef<typeof Input>, NonPassthroughProps>;
20
+ declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputInternalProps, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
23
21
  export declare type TextInputProps = ComponentProps<typeof TextInput>;
24
22
  export default TextInput;
@@ -6,7 +6,6 @@ import styled, { css } from 'styled-components';
6
6
  import { maxWidth, minWidth, variant, width } from 'styled-system';
7
7
  import { get } from './constants';
8
8
  import sx from './sx';
9
- import UnstyledTextInput from './_UnstyledTextInput';
10
9
  const sizeVariants = variant({
11
10
  variants: {
12
11
  small: {
@@ -23,16 +22,21 @@ const sizeVariants = variant({
23
22
  }
24
23
  }
25
24
  });
25
+ const Input = styled.input.withConfig({
26
+ displayName: "TextInput__Input",
27
+ componentId: "sc-1apmpmt-0"
28
+ })(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;&:focus{outline:0;}"]);
26
29
  const Wrapper = styled.span.withConfig({
27
30
  displayName: "TextInput__Wrapper",
28
- componentId: "sc-1apmpmt-0"
31
+ componentId: "sc-1apmpmt-1"
29
32
  })(["display:inline-flex;align-items:stretch;min-height:34px;font-size:", ";line-height:20px;color:", ";vertical-align:middle;background-repeat:no-repeat;background-position:right 8px center;border:1px solid ", ";border-radius:", ";outline:none;box-shadow:", ";", " .TextInput-icon{align-self:center;color:", ";margin:0 ", ";flex-shrink:0;}&:focus-within{border-color:", ";box-shadow:", ";}", " ", " ", " @media (min-width:", "){font-size:", ";}", " ", " ", " ", " ", ";"], get('fontSizes.1'), get('colors.fg.default'), get('colors.border.default'), get('radii.2'), get('shadows.primer.shadow.inset'), props => {
30
33
  if (props.hasIcon) {
31
34
  return css(["padding:0;"]);
32
35
  } else {
33
36
  return css(["padding:6px 12px;"]);
34
37
  }
35
- }, get('colors.fg.muted'), get('space.2'), get('colors.accent.emphasis'), get('shadows.primer.shadow.focus'), props => props.contrast && css(["background-color:", ";"], get('colors.canvas.inset')), props => props.disabled && css(["color:", ";background-color:", ";border-color:", ";"], get('colors.fg.muted'), get('colors.input.disabledBg'), get('colors.border.default')), props => props.block && css(["display:block;width:100%;"]), get('breakpoints.1'), get('fontSizes.1'), width, minWidth, maxWidth, sizeVariants, sx);
38
+ }, get('colors.fg.muted'), get('space.2'), get('colors.accent.emphasis'), get('shadows.primer.shadow.focus'), props => props.contrast && css(["background-color:", ";"], get('colors.canvas.inset')), props => props.disabled && css(["color:", ";background-color:", ";border-color:", ";"], get('colors.fg.muted'), get('colors.input.disabledBg'), get('colors.border.default')), props => props.block && css(["display:block;width:100%;"]), get('breakpoints.1'), get('fontSizes.1'), width, minWidth, maxWidth, sizeVariants, sx); // Props that are not passed through to Input:
39
+
36
40
  // using forwardRef is important so that other components (ex. SelectMenu) can autofocus the input
37
41
  const TextInput = /*#__PURE__*/React.forwardRef(({
38
42
  icon: IconComponent,
@@ -46,7 +50,6 @@ const TextInput = /*#__PURE__*/React.forwardRef(({
46
50
  minWidth: minWidthProp,
47
51
  maxWidth: maxWidthProp,
48
52
  variant: variantProp,
49
- wrapperRef,
50
53
  ...inputProps
51
54
  }, ref) => {
52
55
  // this class is necessary to style FilterSearch, plz no touchy!
@@ -62,11 +65,10 @@ const TextInput = /*#__PURE__*/React.forwardRef(({
62
65
  width: widthProp,
63
66
  minWidth: minWidthProp,
64
67
  maxWidth: maxWidthProp,
65
- variant: variantProp,
66
- ref: wrapperRef
68
+ variant: variantProp
67
69
  }, IconComponent && /*#__PURE__*/React.createElement(IconComponent, {
68
70
  className: "TextInput-icon"
69
- }), /*#__PURE__*/React.createElement(UnstyledTextInput, _extends({
71
+ }), /*#__PURE__*/React.createElement(Input, _extends({
70
72
  ref: ref,
71
73
  disabled: disabled
72
74
  }, inputProps)));
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { TokenBaseProps } from './TokenBase';
3
+ export interface AvatarTokenProps extends TokenBaseProps {
4
+ avatarSrc: string;
5
+ }
6
+ declare const AvatarToken: React.ForwardRefExoticComponent<Pick<AvatarTokenProps, "sizes" | "color" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "list" | "default" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "start" | "step" | "size" | "wrap" | "open" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "classID" | "useMap" | "wmode" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "onRemove" | "isSelected" | "avatarSrc"> & React.RefAttributes<HTMLElement>>;
7
+ export default AvatarToken;
@@ -6,7 +6,7 @@ import { get } from '../constants';
6
6
  import { defaultTokenSize, tokenSizes } from './TokenBase';
7
7
  import Token from './Token';
8
8
  import { Avatar } from '..';
9
- const ProfileToken = /*#__PURE__*/forwardRef(({
9
+ const AvatarToken = /*#__PURE__*/forwardRef(({
10
10
  avatarSrc,
11
11
  id,
12
12
  size,
@@ -26,8 +26,8 @@ const ProfileToken = /*#__PURE__*/forwardRef(({
26
26
  ref: forwardedRef
27
27
  }));
28
28
  });
29
- ProfileToken.defaultProps = {
29
+ AvatarToken.defaultProps = {
30
30
  size: defaultTokenSize
31
31
  };
32
- ProfileToken.displayName = 'ProfileToken';
33
- export default ProfileToken;
32
+ AvatarToken.displayName = 'AvatarToken';
33
+ export default AvatarToken;
@@ -1,15 +1,6 @@
1
- import styled, { css } from 'styled-components';
1
+ import styled from 'styled-components';
2
2
  const TokenTextContainer = styled('span').withConfig({
3
3
  displayName: "_TokenTextContainer__TokenTextContainer",
4
4
  componentId: "sc-4t2bev-0"
5
- })(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}", ""], props => {
6
- if (props.as === 'a') {
7
- return css(["color:currentColor;text-decoration:none;"]);
8
- }
9
-
10
- if (props.as === 'button') {
11
- // reset button styles, make the cursor a pointer, and add line-height
12
- return css(["background:transparent;border:none;color:inherit;font:inherit;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;line-height:1;"]);
13
- }
14
- });
5
+ })(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:none;color:inherit;font:inherit;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;line-height:1;color:currentColor;text-decoration:none;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}"]);
15
6
  export default TokenTextContainer;
@@ -1,3 +1,3 @@
1
1
  export { default } from './Token';
2
2
  export { default as IssueLabelToken } from './IssueLabelToken';
3
- export { default as ProfileToken } from './ProfileToken';
3
+ export { default as AvatarToken } from './AvatarToken';
@@ -1,3 +1,3 @@
1
1
  export { default } from './Token';
2
2
  export { default as IssueLabelToken } from './IssueLabelToken';
3
- export { default as ProfileToken } from './ProfileToken';
3
+ export { default as AvatarToken } from './AvatarToken';
@@ -98,12 +98,11 @@ export { default as TabNav } from './TabNav';
98
98
  export type { TabNavProps, TabNavLinkProps } from './TabNav';
99
99
  export { default as TextInput } from './TextInput';
100
100
  export type { TextInputProps } from './TextInput';
101
- export { default as TextInputWithTokens } from './TextInputWithTokens';
102
101
  export { default as Text } from './Text';
103
102
  export type { TextProps } from './Text';
104
103
  export { default as Timeline } from './Timeline';
105
104
  export type { TimelineProps, TimelineBadgeProps, TimelineBodyProps, TimelineBreakProps, TimelineItemsProps } from './Timeline';
106
- export { default as Token, IssueLabelToken, ProfileToken } from './Token';
105
+ export { default as Token, IssueLabelToken, AvatarToken } from './Token';
107
106
  export { default as Tooltip } from './Tooltip';
108
107
  export type { TooltipProps } from './Tooltip';
109
108
  export { default as Truncate } from './Truncate';
package/lib-esm/index.js CHANGED
@@ -61,10 +61,9 @@ export { default as StyledOcticon } from './StyledOcticon';
61
61
  export { default as SubNav } from './SubNav';
62
62
  export { default as TabNav } from './TabNav';
63
63
  export { default as TextInput } from './TextInput';
64
- export { default as TextInputWithTokens } from './TextInputWithTokens';
65
64
  export { default as Text } from './Text';
66
65
  export { default as Timeline } from './Timeline';
67
- export { default as Token, IssueLabelToken, ProfileToken } from './Token';
66
+ export { default as Token, IssueLabelToken, AvatarToken } from './Token';
68
67
  export { default as Tooltip } from './Tooltip';
69
68
  export { default as Truncate } from './Truncate';
70
69
  export { default as UnderlineNav } from './UnderlineNav';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "0.0.0-20219815255",
3
+ "version": "0.0.0-202198182351",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",