@primer/components 0.0.0-202110321848 → 0.0.0-2021103221155

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.
package/lib/Pagehead.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { SystemCommonProps } from './constants';
1
2
  import { SxProp } from './sx';
2
3
  import { ComponentProps } from './utils/types';
3
- declare const Pagehead: import("styled-components").StyledComponent<"div", any, SxProp, never>;
4
+ declare const Pagehead: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
4
5
  export declare type PageheadProps = ComponentProps<typeof Pagehead>;
5
6
  export default Pagehead;
package/lib/Pagehead.js CHANGED
@@ -16,7 +16,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
16
  const Pagehead = _styledComponents.default.div.withConfig({
17
17
  displayName: "Pagehead",
18
18
  componentId: "sc-1ntn78e-0"
19
- })(["position:relative;padding-top:", ";padding-bottom:", ";margin-bottom:", ";border-bottom:1px solid ", ";", ";"], (0, _constants.get)('space.4'), (0, _constants.get)('space.4'), (0, _constants.get)('space.4'), (0, _constants.get)('colors.border.default'), _sx.default);
19
+ })(["position:relative;padding-top:", ";padding-bottom:", ";margin-bottom:", ";border-bottom:1px solid ", ";", ";", ";"], (0, _constants.get)('space.4'), (0, _constants.get)('space.4'), (0, _constants.get)('space.4'), (0, _constants.get)('colors.border.default'), _constants.COMMON, _sx.default);
20
20
 
21
21
  var _default = Pagehead;
22
22
  exports.default = _default;
@@ -1,11 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { SystemCommonProps } from './constants';
3
2
  import { SxProp } from './sx';
4
3
  import { ComponentProps } from './utils/types';
5
4
  declare const StateLabelBase: import("styled-components").StyledComponent<"span", any, {
6
5
  variant?: "small" | "normal" | undefined;
7
6
  status?: "issueClosed" | "pullClosed" | "pullMerged" | "issueOpened" | "pullOpened" | "draft" | undefined;
8
- } & SystemCommonProps & SxProp, never>;
7
+ } & SxProp, never>;
9
8
  export declare type StateLabelProps = ComponentProps<typeof StateLabelBase>;
10
9
  declare function StateLabel({ children, status, variant: variantProp, ...rest }: StateLabelProps): JSX.Element;
11
10
  declare namespace StateLabel {
package/lib/StateLabel.js CHANGED
@@ -79,7 +79,7 @@ const sizeVariants = (0, _styledSystem.variant)({
79
79
  const StateLabelBase = _styledComponents.default.span.withConfig({
80
80
  displayName: "StateLabel__StateLabelBase",
81
81
  componentId: "k4pd9e-0"
82
- })(["display:inline-flex;align-items:center;font-weight:", ";line-height:16px;color:", ";text-align:center;border-radius:", ";", ";", ";", ";", ";"], (0, _constants.get)('fontWeights.bold'), (0, _constants.get)('colors.canvas.default'), (0, _constants.get)('radii.3'), colorVariants, sizeVariants, _constants.COMMON, _sx.default);
82
+ })(["display:inline-flex;align-items:center;font-weight:", ";line-height:16px;color:", ";text-align:center;border-radius:", ";", ";", ";", ";"], (0, _constants.get)('fontWeights.bold'), (0, _constants.get)('colors.canvas.default'), (0, _constants.get)('radii.3'), colorVariants, sizeVariants, _sx.default);
83
83
 
84
84
  function StateLabel({
85
85
  children,
@@ -1,5 +1,6 @@
1
+ import { SystemCommonProps } from './constants';
1
2
  import { SxProp } from './sx';
2
3
  import { ComponentProps } from './utils/types';
3
- declare const Pagehead: import("styled-components").StyledComponent<"div", any, SxProp, never>;
4
+ declare const Pagehead: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
4
5
  export declare type PageheadProps = ComponentProps<typeof Pagehead>;
5
6
  export default Pagehead;
@@ -1,8 +1,8 @@
1
1
  import styled from 'styled-components';
2
- import { get } from './constants';
2
+ import { COMMON, get } from './constants';
3
3
  import sx from './sx';
4
4
  const Pagehead = styled.div.withConfig({
5
5
  displayName: "Pagehead",
6
6
  componentId: "sc-1ntn78e-0"
7
- })(["position:relative;padding-top:", ";padding-bottom:", ";margin-bottom:", ";border-bottom:1px solid ", ";", ";"], get('space.4'), get('space.4'), get('space.4'), get('colors.border.default'), sx);
7
+ })(["position:relative;padding-top:", ";padding-bottom:", ";margin-bottom:", ";border-bottom:1px solid ", ";", ";", ";"], get('space.4'), get('space.4'), get('space.4'), get('colors.border.default'), COMMON, sx);
8
8
  export default Pagehead;
@@ -1,11 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { SystemCommonProps } from './constants';
3
2
  import { SxProp } from './sx';
4
3
  import { ComponentProps } from './utils/types';
5
4
  declare const StateLabelBase: import("styled-components").StyledComponent<"span", any, {
6
5
  variant?: "small" | "normal" | undefined;
7
6
  status?: "issueClosed" | "pullClosed" | "pullMerged" | "issueOpened" | "pullOpened" | "draft" | undefined;
8
- } & SystemCommonProps & SxProp, never>;
7
+ } & SxProp, never>;
9
8
  export declare type StateLabelProps = ComponentProps<typeof StateLabelBase>;
10
9
  declare function StateLabel({ children, status, variant: variantProp, ...rest }: StateLabelProps): JSX.Element;
11
10
  declare namespace StateLabel {
@@ -4,7 +4,7 @@ import { GitMergeIcon, GitPullRequestIcon, IssueClosedIcon, IssueOpenedIcon, Que
4
4
  import React from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { variant } from 'styled-system';
7
- import { COMMON, get } from './constants';
7
+ import { get } from './constants';
8
8
  import StyledOcticon from './StyledOcticon';
9
9
  import sx from './sx';
10
10
  const octiconMap = {
@@ -62,7 +62,7 @@ const sizeVariants = variant({
62
62
  const StateLabelBase = styled.span.withConfig({
63
63
  displayName: "StateLabel__StateLabelBase",
64
64
  componentId: "k4pd9e-0"
65
- })(["display:inline-flex;align-items:center;font-weight:", ";line-height:16px;color:", ";text-align:center;border-radius:", ";", ";", ";", ";", ";"], get('fontWeights.bold'), get('colors.canvas.default'), get('radii.3'), colorVariants, sizeVariants, COMMON, sx);
65
+ })(["display:inline-flex;align-items:center;font-weight:", ";line-height:16px;color:", ";text-align:center;border-radius:", ";", ";", ";", ";"], get('fontWeights.bold'), get('colors.canvas.default'), get('radii.3'), colorVariants, sizeVariants, sx);
66
66
 
67
67
  function StateLabel({
68
68
  children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "0.0.0-202110321848",
3
+ "version": "0.0.0-2021103221155",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",