@up42/up-components 0.12.8 → 0.12.10
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/cjs/index.js +1 -1
- package/dist/cjs/types/components/InfoModal/InfoModal.d.ts +1 -1
- package/dist/cjs/types/components/Modal/Modal.overrides.d.ts +2 -0
- package/dist/cjs/types/components/PageHeader/PageHeader.d.ts +8 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/InfoModal/InfoModal.d.ts +1 -1
- package/dist/esm/types/components/Modal/Modal.overrides.d.ts +2 -0
- package/dist/esm/types/components/PageHeader/PageHeader.d.ts +8 -1
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { ModalProps as MUIModalProps } from '../Modal/Modal';
|
|
|
4
4
|
import { InfoCardProps } from '../InfoCard/InfoCard';
|
|
5
5
|
export declare type InfoModalProps = MUIGlobalOmit<Omit<MUIModalProps, 'BackdropProps' | 'BackdropComponent' | 'onBackdropClick'>, Omit<InfoCardProps, 'headerAction'> & {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Maximum width of the modal, in pixels.
|
|
8
8
|
*/
|
|
9
9
|
maxWidth?: number;
|
|
10
10
|
}>;
|
|
@@ -3,7 +3,14 @@ export declare type PageHeaderProps = {
|
|
|
3
3
|
title: string;
|
|
4
4
|
divider?: boolean;
|
|
5
5
|
description?: React.ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* Action button right side of header (default action)
|
|
8
|
+
*/
|
|
6
9
|
action?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Action button left side of header
|
|
12
|
+
*/
|
|
13
|
+
secondaryAction?: React.ReactNode;
|
|
7
14
|
/**
|
|
8
15
|
* Pass SetStateAction from child component to update header title
|
|
9
16
|
*/
|
|
@@ -12,4 +19,4 @@ export declare type PageHeaderProps = {
|
|
|
12
19
|
/**
|
|
13
20
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-pageheader
|
|
14
21
|
*/
|
|
15
|
-
export declare const PageHeader: ({ title, description, divider, action, onSubmitTitle }: PageHeaderProps) => JSX.Element;
|
|
22
|
+
export declare const PageHeader: ({ title, description, divider, action, secondaryAction, onSubmitTitle, }: PageHeaderProps) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -475,7 +475,7 @@ declare const InfoCard: React__default.ForwardRefExoticComponent<Pick<{
|
|
|
475
475
|
|
|
476
476
|
declare type InfoModalProps = MUIGlobalOmit<Omit<ModalProps, 'BackdropProps' | 'BackdropComponent' | 'onBackdropClick'>, Omit<InfoCardProps, 'headerAction'> & {
|
|
477
477
|
/**
|
|
478
|
-
*
|
|
478
|
+
* Maximum width of the modal, in pixels.
|
|
479
479
|
*/
|
|
480
480
|
maxWidth?: number;
|
|
481
481
|
}>;
|
|
@@ -605,7 +605,14 @@ declare type PageHeaderProps = {
|
|
|
605
605
|
title: string;
|
|
606
606
|
divider?: boolean;
|
|
607
607
|
description?: React__default.ReactNode;
|
|
608
|
+
/**
|
|
609
|
+
* Action button right side of header (default action)
|
|
610
|
+
*/
|
|
608
611
|
action?: React__default.ReactNode;
|
|
612
|
+
/**
|
|
613
|
+
* Action button left side of header
|
|
614
|
+
*/
|
|
615
|
+
secondaryAction?: React__default.ReactNode;
|
|
609
616
|
/**
|
|
610
617
|
* Pass SetStateAction from child component to update header title
|
|
611
618
|
*/
|
|
@@ -614,7 +621,7 @@ declare type PageHeaderProps = {
|
|
|
614
621
|
/**
|
|
615
622
|
* Documentation: https://up-components.up42.dev/?path=/story/patterns-pageheader
|
|
616
623
|
*/
|
|
617
|
-
declare const PageHeader: ({ title, description, divider, action, onSubmitTitle }: PageHeaderProps) => JSX.Element;
|
|
624
|
+
declare const PageHeader: ({ title, description, divider, action, secondaryAction, onSubmitTitle, }: PageHeaderProps) => JSX.Element;
|
|
618
625
|
|
|
619
626
|
/**
|
|
620
627
|
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-notfound
|