elseware-ui 2.14.5 → 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.
@@ -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, };
@@ -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
+ };
@@ -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
- export { useModal, useDrawer, useClickOutside, useIsMobile, useTheme };
6
+ import useCurrentTheme from "./theme/useCurrentTheme";
7
+ export { useModal, useDrawer, useClickOutside, useIsMobile, useTheme, useCurrentTheme, };
@@ -0,0 +1,2 @@
1
+ declare const useCurrentTheme: () => "light" | "dark";
2
+ export default useCurrentTheme;