@primer/components 0.0.0-20211010104458 → 0.0.0-2021101010546

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @primer/components
2
2
 
3
- ## 0.0.0-20211010104458
3
+ ## 0.0.0-2021101010546
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SxProp } from '../sx';
3
- declare type VisualProps = SxProp & {
4
- children: React.ReactNode;
5
- };
3
+ declare type VisualProps = SxProp & React.HTMLAttributes<HTMLSpanElement>;
6
4
  export declare const LeadingVisualContainer: React.FC<VisualProps>;
7
5
  export declare type LeadingVisualProps = VisualProps;
8
6
  export declare const LeadingVisual: React.FC<VisualProps>;
@@ -30,11 +30,7 @@ export declare const ActionList: import("@radix-ui/react-polymorphic").ForwardRe
30
30
  /** Secondary text which provides additional information about an `Item`. */
31
31
  Description: import("react").FC<import("./Description").DescriptionProps>;
32
32
  /** Icon (or similar) positioned before `Item` text. */
33
- LeadingVisual: import("react").FC<import("../sx").SxProp & {
34
- children: import("react").ReactNode;
35
- }>;
33
+ LeadingVisual: import("react").FC<import("../sx").SxProp & import("react").HTMLAttributes<HTMLSpanElement>>;
36
34
  /** Icon (or similar) positioned after `Item` text. */
37
- TrailingVisual: import("react").FC<import("../sx").SxProp & {
38
- children: import("react").ReactNode;
39
- }>;
35
+ TrailingVisual: import("react").FC<import("../sx").SxProp & import("react").HTMLAttributes<HTMLSpanElement>>;
40
36
  };
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SxProp } from '../sx';
3
- declare type VisualProps = SxProp & {
4
- children: React.ReactNode;
5
- };
3
+ declare type VisualProps = SxProp & React.HTMLAttributes<HTMLSpanElement>;
6
4
  export declare const LeadingVisualContainer: React.FC<VisualProps>;
7
5
  export declare type LeadingVisualProps = VisualProps;
8
6
  export declare const LeadingVisual: React.FC<VisualProps>;
@@ -30,11 +30,7 @@ export declare const ActionList: import("@radix-ui/react-polymorphic").ForwardRe
30
30
  /** Secondary text which provides additional information about an `Item`. */
31
31
  Description: import("react").FC<import("./Description").DescriptionProps>;
32
32
  /** Icon (or similar) positioned before `Item` text. */
33
- LeadingVisual: import("react").FC<import("../sx").SxProp & {
34
- children: import("react").ReactNode;
35
- }>;
33
+ LeadingVisual: import("react").FC<import("../sx").SxProp & import("react").HTMLAttributes<HTMLSpanElement>>;
36
34
  /** Icon (or similar) positioned after `Item` text. */
37
- TrailingVisual: import("react").FC<import("../sx").SxProp & {
38
- children: import("react").ReactNode;
39
- }>;
35
+ TrailingVisual: import("react").FC<import("../sx").SxProp & import("react").HTMLAttributes<HTMLSpanElement>>;
40
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "0.0.0-20211010104458",
3
+ "version": "0.0.0-2021101010546",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",