@touchtech/baselayer-ui 8.3.25 → 8.3.27
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/ConfirmationModal/ConfirmationModal.d.ts +3 -1
- package/dist/components/Modal/Modal.d.ts +3 -1
- package/dist/components/Modal/Modal.stories.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/SelectContext.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/styles.css +19 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactElement, ReactNode, RefObject } from "react";
|
|
2
2
|
type ConfirmationModalProps = {
|
|
3
3
|
className?: string;
|
|
4
|
+
modalClassName?: string;
|
|
5
|
+
flexCenter?: boolean;
|
|
4
6
|
buttonsLeft?: ReactElement[];
|
|
5
7
|
buttonsRight?: ReactElement[];
|
|
6
8
|
children?: ReactNode;
|
|
@@ -13,7 +15,7 @@ type ConfirmationModalProps = {
|
|
|
13
15
|
onClose?: () => void;
|
|
14
16
|
baseZIndex?: number;
|
|
15
17
|
};
|
|
16
|
-
declare function ConfirmationModal({ className, children, containerRef, header, isOpen, buttonsLeft, buttonsRight, onClose, noPadding, noOverlay, noShadow, baseZIndex, }: ConfirmationModalProps): JSX.Element;
|
|
18
|
+
declare function ConfirmationModal({ className, children, containerRef, header, isOpen, buttonsLeft, buttonsRight, onClose, noPadding, noOverlay, noShadow, baseZIndex, modalClassName, flexCenter, }: ConfirmationModalProps): JSX.Element;
|
|
17
19
|
declare namespace ConfirmationModal {
|
|
18
20
|
var displayName: string;
|
|
19
21
|
}
|
|
@@ -3,6 +3,8 @@ type ModalProps = {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
containerRef?: RefObject<HTMLDivElement>;
|
|
5
5
|
isOpen: boolean;
|
|
6
|
+
modalClassName?: string;
|
|
7
|
+
flexCenter?: boolean;
|
|
6
8
|
onClose?: () => void;
|
|
7
9
|
button?: ReactNode;
|
|
8
10
|
transparent?: boolean;
|
|
@@ -10,5 +12,5 @@ type ModalProps = {
|
|
|
10
12
|
noOverlay?: boolean;
|
|
11
13
|
baseZIndex?: number;
|
|
12
14
|
};
|
|
13
|
-
declare function Modal({ children, containerRef, isOpen, button, transparent, noShadow, noOverlay, onClose, baseZIndex, }: ModalProps): JSX.Element;
|
|
15
|
+
declare function Modal({ children, containerRef, isOpen, button, transparent, noShadow, noOverlay, onClose, baseZIndex, modalClassName, flexCenter, }: ModalProps): JSX.Element;
|
|
14
16
|
export default Modal;
|
|
@@ -7,5 +7,6 @@ export function Default(): JSX.Element;
|
|
|
7
7
|
export function Transparent(): JSX.Element;
|
|
8
8
|
export function NoShadow(): JSX.Element;
|
|
9
9
|
export function NoOverlay(): JSX.Element;
|
|
10
|
+
export function FlexCenter(): JSX.Element;
|
|
10
11
|
export function WithButton(): JSX.Element;
|
|
11
12
|
import Modal from "./Modal";
|
|
@@ -19,6 +19,7 @@ type SelectProps = {
|
|
|
19
19
|
onChange?: (values: Array<string>) => void;
|
|
20
20
|
onFilter?: (option: OptionType, searchKeyword: string) => boolean;
|
|
21
21
|
showSelectedWithTick?: boolean;
|
|
22
|
+
enableSingleDeletion?: boolean;
|
|
22
23
|
};
|
|
23
|
-
declare function Select({ className, defaultValue, disabled, multiple, options, placeholder, label, selectAll, showExpandedGroup, scrollMenuIntoView, size, showSelectedAsTags, showSearch, showSelectedWithTick, width, loading, onChange, onFilter, }: SelectProps): JSX.Element;
|
|
24
|
+
declare function Select({ className, defaultValue, disabled, multiple, options, placeholder, label, selectAll, showExpandedGroup, scrollMenuIntoView, size, showSelectedAsTags, showSearch, showSelectedWithTick, enableSingleDeletion, width, loading, onChange, onFilter, }: SelectProps): JSX.Element;
|
|
24
25
|
export default Select;
|
|
@@ -9,6 +9,7 @@ type Props = {
|
|
|
9
9
|
options: Array<OptionType | GroupOptionType>;
|
|
10
10
|
onChange?: (values: Array<string>) => void;
|
|
11
11
|
showSelectedWithTick?: boolean;
|
|
12
|
+
enableSingleDeletion?: boolean;
|
|
12
13
|
};
|
|
13
14
|
type SelectContextState = {
|
|
14
15
|
multiple?: boolean;
|
|
@@ -22,5 +23,5 @@ type SelectContextState = {
|
|
|
22
23
|
showSelectedWithTick?: boolean;
|
|
23
24
|
};
|
|
24
25
|
declare const SelectContext: React.Context<SelectContextState>;
|
|
25
|
-
declare const SelectContextProvider: ({ children, defaultValue, multiple, selectAll, showExpandedGroup, options, onChange, showSelectedWithTick, }: Props) => JSX.Element;
|
|
26
|
+
declare const SelectContextProvider: ({ children, defaultValue, multiple, selectAll, showExpandedGroup, options, onChange, showSelectedWithTick, enableSingleDeletion, }: Props) => JSX.Element;
|
|
26
27
|
export { SelectContext, SelectContextProvider };
|