@hyphen/hyphen-components 6.14.0 → 6.15.1
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/dist/components/Modal/components/ModalHeader/ModalHeader.d.ts +6 -1
- package/dist/hyphen-components.cjs.development.js +110 -100
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +110 -100
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Modal/Modal.stories.tsx +3 -1
- package/src/components/Modal/components/ModalHeader/ModalHeader.tsx +27 -9
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
|
|
2
|
+
import { BoxProps } from '../../../Box/Box';
|
|
3
|
+
export type ModalHeaderProps = Omit<BoxProps, 'as' | 'radius' | 'justifyContent'> & {
|
|
3
4
|
/**
|
|
4
5
|
* id of the element containing the title, used by the Modal `aria-labelledby` prop
|
|
5
6
|
*/
|
|
@@ -8,6 +9,10 @@ export type ModalHeaderProps = {
|
|
|
8
9
|
* Modal's header title
|
|
9
10
|
*/
|
|
10
11
|
title?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Additional content to render in the modal header, displayed alongside the title.
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactNode;
|
|
11
16
|
/**
|
|
12
17
|
* If defined, will render a 'x' close button on the right side of the ModalHeader
|
|
13
18
|
*/
|