@trussworks/react-uswds
Advanced tools
Comparing version 2.7.2 to 2.8.0
@@ -5,2 +5,15 @@ # Changelog | ||
## [2.8.0](https://github.com/trussworks/react-uswds/compare/2.7.2...2.8.0) (2022-02-18) | ||
### Features | ||
* Accept Accordion headingLevel in items prop ([#1905](https://github.com/trussworks/react-uswds/issues/1905)) ([5090110](https://github.com/trussworks/react-uswds/commit/509011019e05d6db33dc7269bcb56d57553ebdd0)) | ||
### Documentation & Examples | ||
* Add maintainer docs as per TDR 95 ([#1903](https://github.com/trussworks/react-uswds/issues/1903)) ([ad9bb44](https://github.com/trussworks/react-uswds/commit/ad9bb440b3099760af92420bec0b3ba6a80f8013)) | ||
* Update All Contributors ([#1906](https://github.com/trussworks/react-uswds/issues/1906)) ([b8b5667](https://github.com/trussworks/react-uswds/commit/b8b5667153fa5d163af6ed2530e8378b3b8222ac)) | ||
### [2.7.2](https://github.com/trussworks/react-uswds/compare/2.7.1...2.7.2) (2022-02-14) | ||
@@ -7,0 +20,0 @@ |
import React from 'react'; | ||
interface AccordionItem { | ||
export interface AccordionItemProps { | ||
title: React.ReactNode | string; | ||
@@ -8,2 +8,3 @@ content: React.ReactNode; | ||
className?: string; | ||
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; | ||
handleToggle?: (event: React.MouseEvent<HTMLButtonElement>) => void; | ||
@@ -14,7 +15,7 @@ } | ||
multiselectable?: boolean; | ||
items: AccordionItem[]; | ||
items: AccordionItemProps[]; | ||
className?: string; | ||
} | ||
export declare const AccordionItem: ({ title, id, content, expanded, className, handleToggle, }: AccordionItem) => React.ReactElement; | ||
export declare const AccordionItem: ({ title, id, content, expanded, className, headingLevel, handleToggle, }: AccordionItemProps) => React.ReactElement; | ||
export declare const Accordion: ({ bordered, items, className, multiselectable, }: AccordionProps) => React.ReactElement; | ||
export default Accordion; |
{ | ||
"name": "@trussworks/react-uswds", | ||
"version": "2.7.2", | ||
"version": "2.8.0", | ||
"description": "React USWDS 2.0 component library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# @trussworks/react-uswds | ||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-17-orange.svg?style=flat-square)](#contributors-) | ||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
@@ -23,10 +23,13 @@ | ||
- [Install](#install) | ||
- [Pre-Release](#pre-release) | ||
- [Usage](#usage) | ||
- [Background](#background) | ||
- [Non-Goals](#non-goals) | ||
- [Maintainers](#maintainers) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
- [@trussworks/react-uswds](#trussworksreact-uswds) | ||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [Pre-Release](#pre-release) | ||
- [Background](#background) | ||
- [Non-Goals](#non-goals) | ||
- [Active Maintainers](#active-maintainers) | ||
- [Contributing](#contributing) | ||
- [Quick links:](#quick-links) | ||
- [License](#license) | ||
- [Contributors ✨](#contributors-) | ||
@@ -46,31 +49,2 @@ ## Install | ||
``` | ||
### Pre-Release | ||
Pre-release packages are published to GitHub Packages every time code is pushed to the `main` branch. To use, you | ||
will need a [GitHub access | ||
token](https://docs.github.com/en/packages/publishing-and-managing-packages/about-github-packages#about-tokens) | ||
with the `read:packages` scope. | ||
1. Create an `.npmrc` with | ||
``` | ||
//npm.pkg.github.com/:_authToken=YOUR_TOKEN_GOES_HERE | ||
@trussworks:registry=https://npm.pkg.github.com | ||
``` | ||
or | ||
Create a `.yarnrc` file with | ||
``` | ||
"@trussworks:registry" "https://npm.pkg.github.com" | ||
``` | ||
2. In your `package.json`, use `"@trussworks/react-uswds": "next"` | ||
See [GitHub Packages with npm | ||
docs](https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages) | ||
for more detailed information. | ||
## Usage | ||
@@ -98,2 +72,5 @@ | ||
### Pre-Release | ||
See [prelease.md](docs/prerelease.md) | ||
## Background | ||
@@ -109,9 +86,8 @@ | ||
## Maintainers | ||
## Active Maintainers | ||
- [@suzubara](https://github.com/suzubara) | ||
- [@haworku](https://github.com/haworku) | ||
- [@brandonlenz](https://github.com/brandonlenz) | ||
- [@sirenaborracha](https://github.com/sirenaborracha) | ||
TBD | ||
We are starting to rotate Trussel maintainer responsibilities. Check out the [maintainers README](./docs/for_maintainers.md). | ||
## Contributing | ||
@@ -159,3 +135,3 @@ | ||
<td align="center"><a href="https://github.com/suzubara"><img src="https://avatars.githubusercontent.com/u/2723066?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Suzanne Rozier</b></sub></a><br /><a href="https://github.com/trussworks/react-uswds/commits?author=suzubara" title="Code">💻</a> <a href="https://github.com/trussworks/react-uswds/commits?author=suzubara" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://github.com/haworku"><img src="https://avatars.githubusercontent.com/u/10750442?v=4?s=100" width="100px;" alt=""/><br /><sub><b>haworku</b></sub></a><br /><a href="https://github.com/trussworks/react-uswds/commits?author=haworku" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/haworku"><img src="https://avatars.githubusercontent.com/u/10750442?v=4?s=100" width="100px;" alt=""/><br /><sub><b>haworku</b></sub></a><br /><a href="https://github.com/trussworks/react-uswds/commits?author=haworku" title="Code">💻</a> <a href="https://github.com/trussworks/react-uswds/commits?author=haworku" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://github.com/ahobson"><img src="https://avatars.githubusercontent.com/u/21983?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrew Hobson</b></sub></a><br /><a href="https://github.com/trussworks/react-uswds/commits?author=ahobson" title="Code">💻</a></td> | ||
@@ -176,2 +152,7 @@ <td align="center"><a href="https://github.com/gidjin"><img src="https://avatars.githubusercontent.com/u/940173?v=4?s=100" width="100px;" alt=""/><br /><sub><b>John Gedeon</b></sub></a><br /><a href="https://github.com/trussworks/react-uswds/commits?author=gidjin" title="Code">💻</a></td> | ||
</tr> | ||
<tr> | ||
<td align="center"><a href="https://github.com/kimallen"><img src="https://avatars.githubusercontent.com/u/13249580?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kim Allen</b></sub></a><br /><a href="https://github.com/trussworks/react-uswds/commits?author=kimallen" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/kylehilltruss"><img src="https://avatars.githubusercontent.com/u/83614364?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kyle Hill</b></sub></a><br /><a href="https://github.com/trussworks/react-uswds/commits?author=kylehilltruss" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/rswerve"><img src="https://avatars.githubusercontent.com/u/8964335?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mazdak Atighi</b></sub></a><br /><a href="https://github.com/trussworks/react-uswds/commits?author=rswerve" title="Code">💻</a></td> | ||
</tr> | ||
</table> | ||
@@ -178,0 +159,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3178804
3600
160