@nextelco/common-ui 2.1.79 → 2.1.80
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.
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './Modal.scss';
|
|
3
|
+
/**
|
|
4
|
+
* Largura do modal.
|
|
5
|
+
*
|
|
6
|
+
* Sem `size` o modal mede-se pelo conteúdo (entre `min-width: 500px` e
|
|
7
|
+
* `max-width: 90%`), que é o comportamento histórico — não se define um
|
|
8
|
+
* default para não mexer na aparência dos portais que já o usam.
|
|
9
|
+
*/
|
|
10
|
+
export type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
3
11
|
declare const Modal: React.ForwardRefExoticComponent<{
|
|
4
12
|
title: string;
|
|
5
13
|
modalOnly?: boolean;
|
|
6
14
|
onClose: () => void;
|
|
15
|
+
/** Largura fixa. Omitir mantém a largura pelo conteúdo. */
|
|
16
|
+
size?: ModalSize;
|
|
7
17
|
} & {
|
|
8
18
|
children?: React.ReactNode | undefined;
|
|
9
19
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as Modal } from '../components/molecules/Modal/Modal';
|
|
2
|
+
export type { ModalSize } from '../components/molecules/Modal/Modal';
|
|
2
3
|
export { default as SidebarDrawer } from '../components/molecules/Sidebar/Sidebar';
|
|
3
4
|
export { default as MultiTagPicker, Option, } from '../components/molecules/MultiTagPicker/MultiTagPicker';
|
|
4
5
|
export { default as ConfirmModal } from '../components/molecules/ConfirmModal/ConfirmModal';
|