-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Description List ‘details’ to ’description’
- Loading branch information
1 parent
88dee33
commit 3dcf2fd
Showing
8 changed files
with
48 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/react/src/DescriptionList/DescriptionListDescription.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* @license EUPL-1.2+ | ||
* Copyright Gemeente Amsterdam | ||
*/ | ||
|
||
import clsx from 'clsx' | ||
import { forwardRef } from 'react' | ||
import type { ForwardedRef, HTMLAttributes, PropsWithChildren } from 'react' | ||
|
||
export type DescriptionListDescriptionProps = PropsWithChildren<HTMLAttributes<HTMLElement>> | ||
|
||
export const DescriptionListDescription = forwardRef( | ||
({ children, className, ...restProps }: DescriptionListDescriptionProps, ref: ForwardedRef<HTMLElement>) => ( | ||
<dd {...restProps} ref={ref} className={clsx('ams-description-list__description', className)}> | ||
{children} | ||
</dd> | ||
), | ||
) | ||
|
||
DescriptionListDescription.displayName = 'DescriptionList.Description' |
20 changes: 0 additions & 20 deletions
20
packages/react/src/DescriptionList/DescriptionListDetails.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { DescriptionList } from './DescriptionList' | ||
export type { DescriptionListProps } from './DescriptionList' | ||
export type { DescriptionListTermProps } from './DescriptionListTerm' | ||
export type { DescriptionListDetailsProps } from './DescriptionListDetails' | ||
export type { DescriptionListDescriptionProps } from './DescriptionListDescription' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters