elseware-ui 2.18.0 → 2.18.2
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/build/components/data-display/table/TableContent.d.ts +3 -1
- package/build/components/data-display/world-map/WorldMap.d.ts +2 -2
- package/build/components/eui/EUIProvider.d.ts +6 -1
- package/build/components/other/modal/Modal.d.ts +3 -1
- package/build/components/theme/ShapeSwitch.d.ts +1 -0
- package/build/components/theme/index.d.ts +2 -1
- package/build/index.es.js +172 -56
- package/build/index.js +173 -55
- package/build/layouts/dev/EUIDevLayout.d.ts +8 -0
- package/build/layouts/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { Shape } from "../../../data/enums";
|
|
2
3
|
export type TableColumnConfig<T> = {
|
|
3
4
|
key: keyof T;
|
|
4
5
|
header: string;
|
|
@@ -11,6 +12,7 @@ type TableContentProps<T> = {
|
|
|
11
12
|
data: T[];
|
|
12
13
|
defaultPageSize?: number;
|
|
13
14
|
pageSizeOptions?: (number | "All")[];
|
|
15
|
+
shape?: keyof typeof Shape;
|
|
14
16
|
};
|
|
15
|
-
export declare function TableContent<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, }: TableContentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function TableContent<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, shape, }: TableContentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export {};
|
|
@@ -9,8 +9,8 @@ export interface WorldMapProps {
|
|
|
9
9
|
bubbleStroke?: string;
|
|
10
10
|
bubbleScale?: number;
|
|
11
11
|
minBubble?: number;
|
|
12
|
-
|
|
12
|
+
styles?: string;
|
|
13
13
|
disableCountryHover?: boolean;
|
|
14
14
|
disableCountrySelect?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export default function WorldMap({ data, title, bubbleColor, bubbleStroke, bubbleScale, minBubble,
|
|
16
|
+
export default function WorldMap({ data, title, bubbleColor, bubbleStroke, bubbleScale, minBubble, styles, disableCountryHover, disableCountrySelect, }: WorldMapProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { EUIConfigs } from "./EUITypes";
|
|
3
|
+
interface EUIContextValue {
|
|
4
|
+
config: EUIConfigs;
|
|
5
|
+
setConfig: React.Dispatch<React.SetStateAction<EUIConfigs>>;
|
|
6
|
+
}
|
|
3
7
|
export declare const EUIProvider: ({ config, children, }: {
|
|
4
8
|
config: EUIConfigs;
|
|
5
9
|
children: React.ReactNode;
|
|
6
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const useEUIConfig: () =>
|
|
11
|
+
export declare const useEUIConfig: () => EUIContextValue;
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { Shape } from "../../../data/enums";
|
|
2
3
|
export interface ModalProps {
|
|
3
4
|
title: string;
|
|
4
5
|
show: boolean;
|
|
@@ -10,6 +11,7 @@ export interface ModalProps {
|
|
|
10
11
|
isError?: boolean;
|
|
11
12
|
error?: unknown;
|
|
12
13
|
styles?: string;
|
|
14
|
+
shape?: keyof typeof Shape;
|
|
13
15
|
}
|
|
14
|
-
declare function Modal({ title, show, handleOnClose, children, isLoading, isSuccess, isError, error, styles, enableCloseOnClickOutside, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function Modal({ title, show, handleOnClose, children, isLoading, isSuccess, isError, error, styles, enableCloseOnClickOutside, shape, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export default Modal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ShapeSwitch: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ThemeContext, ThemeProvider } from "./ThemeContext";
|
|
2
2
|
import { ThemeSwitch } from "./ThemeSwitch";
|
|
3
|
-
|
|
3
|
+
import { ShapeSwitch } from "./ShapeSwitch";
|
|
4
|
+
export { ThemeContext, ThemeProvider, ThemeSwitch, ShapeSwitch };
|