elseware-ui 2.14.4 → 2.15.0
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/advanced-table/AdvancedTable.d.ts +1 -1
- package/build/components/data-display/table/Table.d.ts +1 -1
- package/build/components/data-display/tooltip/Tooltip.d.ts +12 -0
- package/build/components/data-display/world-map/WorldMap.d.ts +16 -0
- package/build/components/data-display/world-map-country-table/WorldMapCountryTable.d.ts +8 -0
- package/build/components/index.d.ts +5 -1
- package/build/components/other/modal/Modal.d.ts +1 -1
- package/build/components/utils/AsyncComponentWrapper.d.ts +6 -2
- package/build/data/meta/country.d.ts +8 -0
- package/build/data/meta/world_map_topojson.d.ts +43 -0
- package/build/hooks/index.d.ts +2 -1
- package/build/hooks/theme/useCurrentTheme.d.ts +2 -0
- package/build/index.es.js +29574 -578
- package/build/index.js +29577 -577
- package/package.json +10 -7
|
@@ -8,7 +8,7 @@ export interface AdvancedTableProps<T> {
|
|
|
8
8
|
isLoading?: boolean;
|
|
9
9
|
isSuccess?: boolean;
|
|
10
10
|
isError?: boolean;
|
|
11
|
-
error?:
|
|
11
|
+
error?: unknown;
|
|
12
12
|
}
|
|
13
13
|
declare function AdvancedTable<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, isLoading, isSuccess, isError, error, }: AdvancedTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export default AdvancedTable;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface TooltipProps {
|
|
3
|
+
content: ReactNode;
|
|
4
|
+
show: boolean;
|
|
5
|
+
offsetX?: number;
|
|
6
|
+
offsetY?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A generalized tooltip that automatically follows the mouse cursor.
|
|
11
|
+
*/
|
|
12
|
+
export default function Tooltip({ content, show, offsetX, offsetY, className, }: TooltipProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface WorldMapPoint {
|
|
2
|
+
code: string;
|
|
3
|
+
value: number;
|
|
4
|
+
}
|
|
5
|
+
export interface WorldMapProps {
|
|
6
|
+
data: WorldMapPoint[];
|
|
7
|
+
title?: string;
|
|
8
|
+
bubbleColor?: string;
|
|
9
|
+
bubbleStroke?: string;
|
|
10
|
+
bubbleScale?: number;
|
|
11
|
+
minBubble?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
disableCountryHover?: boolean;
|
|
14
|
+
disableCountrySelect?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export default function WorldMap({ data, title, bubbleColor, bubbleStroke, bubbleScale, minBubble, className, disableCountryHover, disableCountrySelect, }: WorldMapProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WorldMapPoint } from "../world-map/WorldMap";
|
|
2
|
+
interface WorldMapCountryTableProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
data: WorldMapPoint[];
|
|
5
|
+
defaultPageSize?: number;
|
|
6
|
+
}
|
|
7
|
+
export default function WorldMapCountryTable({ title, data, defaultPageSize, }: WorldMapCountryTableProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -17,9 +17,13 @@ import { StarRating, StarRatingDistribution } from "./data-display/rating";
|
|
|
17
17
|
import Slider from "./data-display/slider/Slider";
|
|
18
18
|
import Table from "./data-display/table/Table";
|
|
19
19
|
import Tag from "./data-display/tag/Tag";
|
|
20
|
+
import Tooltip from "./data-display/tooltip/Tooltip";
|
|
20
21
|
import { Typography, Chapter, Section, Paragraph, Quote } from "./data-display/typography";
|
|
21
22
|
import ValueBadge from "./data-display/value-badge/ValueBadge";
|
|
22
23
|
import YoutubeVideoPlayer from "./data-display/video/youtube-video-player/YoutubeVideoPlayer";
|
|
24
|
+
import WorldMap from "./data-display/world-map/WorldMap";
|
|
25
|
+
import { WorldMapPoint } from "./data-display/world-map/WorldMap";
|
|
26
|
+
import WorldMapCountryTable from "./data-display/world-map-country-table/WorldMapCountryTable";
|
|
23
27
|
import { Button } from "./data-entry/button/Button";
|
|
24
28
|
import Checkbox from "./data-entry/checkbox/Checkbox";
|
|
25
29
|
import DateSelector from "./data-entry/date-selector/DateSelector";
|
|
@@ -61,4 +65,4 @@ import { ThemeContext, ThemeProvider } from "./theme";
|
|
|
61
65
|
import { ThemeSwitch } from "./theme";
|
|
62
66
|
import AsyncComponentWrapper from "./utils/AsyncComponentWrapper";
|
|
63
67
|
import ShowMore from "./utils/ShowMore";
|
|
64
|
-
export { AdvancedTable, AdvancedTableColumnConfig, Avatar, Badge, TitleBanner, Brand, BarChart, LineChart, PieChart, Chip, Flag, Image, CloudinaryImage, Info, List, ListItem, PriceTag, StarRating, StarRatingDistribution, Slider, Table, Tag, Typography, Chapter, Section, Paragraph, Quote, ValueBadge, YoutubeVideoPlayer, Button, Checkbox, DateSelector, Form, FormResponse, ImageInput, InputResponse, InputLabel, Input, InputFile, InputList, InputListGroup, MultiImageInput, Radio, StarRatingInput, Select, Switch, Tags, TextArea, Backdrop, Skeleton, Toast, sendToast, Transition, ContentArea, Sidebar, Flex, FlexCol, FlexRow, Grid, Layout, Header, Content, Footer, MarkdownEditor, MarkdownViewer, Breadcrumb, BreadcrumbItem, Drawer, DrawerToggler, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemTitle, FooterNavItemContext, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemTitle, HeaderNavItemContext, Link, Menu, MenuGroup, MenuItem, MenuItemTitle, RouteTab, RouteTabs, Modal, UnderConstructionBanner, Accordion, Card, CardHeader, CardContent, CardFooter, ThemeContext, ThemeProvider, ThemeSwitch, AsyncComponentWrapper, ShowMore, };
|
|
68
|
+
export { AdvancedTable, AdvancedTableColumnConfig, Avatar, Badge, TitleBanner, Brand, BarChart, LineChart, PieChart, Chip, Flag, Image, CloudinaryImage, Info, List, ListItem, PriceTag, StarRating, StarRatingDistribution, Slider, Table, Tag, Tooltip, Typography, Chapter, Section, Paragraph, Quote, ValueBadge, YoutubeVideoPlayer, WorldMap, WorldMapPoint, WorldMapCountryTable, Button, Checkbox, DateSelector, Form, FormResponse, ImageInput, InputResponse, InputLabel, Input, InputFile, InputList, InputListGroup, MultiImageInput, Radio, StarRatingInput, Select, Switch, Tags, TextArea, Backdrop, Skeleton, Toast, sendToast, Transition, ContentArea, Sidebar, Flex, FlexCol, FlexRow, Grid, Layout, Header, Content, Footer, MarkdownEditor, MarkdownViewer, Breadcrumb, BreadcrumbItem, Drawer, DrawerToggler, FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemTitle, FooterNavItemContext, HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemTitle, HeaderNavItemContext, Link, Menu, MenuGroup, MenuItem, MenuItemTitle, RouteTab, RouteTabs, Modal, UnderConstructionBanner, Accordion, Card, CardHeader, CardContent, CardFooter, ThemeContext, ThemeProvider, ThemeSwitch, AsyncComponentWrapper, ShowMore, };
|
|
@@ -8,7 +8,7 @@ export interface ModalProps {
|
|
|
8
8
|
isLoading?: boolean;
|
|
9
9
|
isSuccess?: boolean;
|
|
10
10
|
isError?: boolean;
|
|
11
|
-
error?:
|
|
11
|
+
error?: unknown;
|
|
12
12
|
styles?: string;
|
|
13
13
|
}
|
|
14
14
|
declare function Modal({ title, show, handleOnClose, children, isLoading, isSuccess, isError, error, styles, enableCloseOnClickOutside, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,11 @@ export interface AsyncComponentWrapperProps {
|
|
|
4
4
|
isLoading?: boolean;
|
|
5
5
|
isSuccess?: boolean;
|
|
6
6
|
isError?: boolean;
|
|
7
|
-
error?:
|
|
7
|
+
error?: unknown;
|
|
8
|
+
/**
|
|
9
|
+
* Optional custom formatter if you want full control
|
|
10
|
+
*/
|
|
11
|
+
errorFormatter?: (error: unknown) => string;
|
|
8
12
|
}
|
|
9
|
-
declare function AsyncComponentWrapper({ children, isLoading, isSuccess, isError, error, }: AsyncComponentWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function AsyncComponentWrapper({ children, isLoading, isSuccess, isError, error, errorFormatter, }: AsyncComponentWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
10
14
|
export default AsyncComponentWrapper;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const COUNTRY_COORDINATES: Record<string, [number, number]>;
|
|
2
|
+
export declare const COUNTRY_NAMES: Record<string, string>;
|
|
3
|
+
export declare const COUNTRIES: {
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
coordinates: [number, number];
|
|
7
|
+
flag: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
}[];
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const worldMapTopoJSONContries100m: {
|
|
2
|
+
type: string;
|
|
3
|
+
objects: {
|
|
4
|
+
countries: {
|
|
5
|
+
type: string;
|
|
6
|
+
geometries: ({
|
|
7
|
+
type: string;
|
|
8
|
+
arcs: number[][][];
|
|
9
|
+
id: string;
|
|
10
|
+
properties: {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
type: string;
|
|
15
|
+
arcs: number[][];
|
|
16
|
+
id: string;
|
|
17
|
+
properties: {
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
} | {
|
|
21
|
+
type: string;
|
|
22
|
+
arcs: number[][];
|
|
23
|
+
properties: {
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
id?: undefined;
|
|
27
|
+
})[];
|
|
28
|
+
};
|
|
29
|
+
land: {
|
|
30
|
+
type: string;
|
|
31
|
+
geometries: {
|
|
32
|
+
type: string;
|
|
33
|
+
arcs: number[][][];
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
arcs: number[][][];
|
|
38
|
+
bbox: number[];
|
|
39
|
+
transform: {
|
|
40
|
+
scale: number[];
|
|
41
|
+
translate: number[];
|
|
42
|
+
};
|
|
43
|
+
};
|
package/build/hooks/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import useDrawer from "./components/useDrawer";
|
|
|
3
3
|
import useClickOutside from "./useClickOutside";
|
|
4
4
|
import useIsMobile from "./useIsMobile";
|
|
5
5
|
import useTheme from "./theme/useTheme";
|
|
6
|
-
|
|
6
|
+
import useCurrentTheme from "./theme/useCurrentTheme";
|
|
7
|
+
export { useModal, useDrawer, useClickOutside, useIsMobile, useTheme, useCurrentTheme, };
|