@reach/disclosure
Advanced tools
Comparing version 0.1.0 to 0.8.0
@@ -86,4 +86,17 @@ /** | ||
export declare const DisclosureButton: import("@reach/utils").ComponentWithAs<"button", DisclosureButtonProps>; | ||
export declare type DisclosureButtonProps = {}; | ||
/** | ||
* @see Docs https://reacttraining.com/reach-ui/disclosure#disclosurebutton-props | ||
*/ | ||
export declare type DisclosureButtonProps = { | ||
/** | ||
* Typically a text string that serves as a label for the disclosure button, | ||
* though nested DOM nodes can be passed as well so long as they are valid | ||
* children of interactive elements. | ||
* | ||
* @see https://adrianroselli.com/2016/12/be-wary-of-nesting-roles.html | ||
* @see Docs https://reacttraining.com/reach-ui/disclosure#disclosurebutton-children | ||
*/ | ||
children: React.ReactNode; | ||
}; | ||
/** | ||
* DisclosurePanel | ||
@@ -96,2 +109,9 @@ * | ||
*/ | ||
export declare const DisclosurePanel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>; | ||
export declare const DisclosurePanel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & { | ||
/** | ||
* Inner collapsible content for the disclosure item. | ||
* | ||
* @see Docs https://reacttraining.com/reach-ui/disclosure#disclosurepanel-children | ||
*/ | ||
children: React.ReactNode; | ||
} & React.RefAttributes<HTMLDivElement>>; |
{ | ||
"name": "@reach/disclosure", | ||
"version": "0.1.0", | ||
"version": "0.8.0", | ||
"description": "Accessible React disclosure component", | ||
@@ -18,4 +18,4 @@ "author": "React Training <hello@reacttraining.com>", | ||
"dependencies": { | ||
"@reach/auto-id": "0.7.4", | ||
"@reach/utils": "0.7.4", | ||
"@reach/auto-id": "^0.8.0", | ||
"@reach/utils": "^0.8.0", | ||
"warning": "^4.0.3" | ||
@@ -31,4 +31,6 @@ }, | ||
"files": [ | ||
"README.md", | ||
"dist" | ||
] | ||
], | ||
"gitHead": "7702c46373c7f11adc21184e7def9977203e9326" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
57597
11
473
0
6
1
+ Added@reach/auto-id@0.8.6(transitive)
+ Added@reach/utils@0.8.6(transitive)
+ Addedtslib@1.14.1(transitive)
- Removed@reach/auto-id@0.7.4(transitive)
- Removed@reach/utils@0.7.4(transitive)
Updated@reach/auto-id@^0.8.0
Updated@reach/utils@^0.8.0