elseware-ui 2.15.3 → 2.17.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/avatar/Avatar.d.ts +1 -1
- package/build/components/data-display/avatar/index.d.ts +1 -0
- package/build/components/data-display/badge/Badge.d.ts +2 -1
- package/build/components/data-display/badge/index.d.ts +1 -0
- package/build/components/data-display/banners/index.d.ts +2 -0
- package/build/components/data-display/brand/index.d.ts +2 -0
- package/build/components/data-display/charts/bar-chart/index.d.ts +2 -0
- package/build/components/data-display/charts/index.d.ts +3 -0
- package/build/components/data-display/charts/line-chart/index.d.ts +2 -0
- package/build/components/data-display/charts/pie-chart/index.d.ts +2 -0
- package/build/components/data-display/chip/index.d.ts +2 -0
- package/build/components/data-display/flag/index.d.ts +2 -0
- package/build/components/data-display/image/cloudinary-image/CloudinaryImage.d.ts +9 -0
- package/build/components/data-display/image/cloudinary-image/index.d.ts +2 -0
- package/build/components/data-display/image/image/index.d.ts +2 -0
- package/build/components/data-display/image/index.d.ts +2 -3
- package/build/components/data-display/index.d.ts +21 -0
- package/build/components/data-display/info/index.d.ts +2 -0
- package/build/components/data-display/price-tag/index.d.ts +2 -0
- package/build/components/data-display/rating/index.d.ts +2 -3
- package/build/components/data-display/rating/star-rating/index.d.ts +2 -0
- package/build/components/data-display/rating/star-rating-distribution/index.d.ts +2 -0
- package/build/components/data-display/slider/index.d.ts +2 -0
- package/build/components/data-display/table/Table.d.ts +7 -8
- package/build/components/data-display/table/TableContent.d.ts +15 -10
- package/build/components/data-display/table/index.d.ts +2 -0
- package/build/components/data-display/tag/index.d.ts +2 -0
- package/build/components/data-display/tooltip/index.d.ts +2 -0
- package/build/components/data-display/typography/chapter/index.d.ts +2 -0
- package/build/components/data-display/typography/index.d.ts +4 -4
- package/build/components/data-display/typography/paragraph/index.d.ts +2 -0
- package/build/components/data-display/typography/quote/index.d.ts +2 -0
- package/build/components/data-display/typography/section/index.d.ts +2 -0
- package/build/components/data-display/value-badge/index.d.ts +2 -0
- package/build/components/data-display/video/cloudinary-video/CloudinaryVideo.d.ts +2 -0
- package/build/components/data-display/video/cloudinary-video/index.d.ts +2 -0
- package/build/components/data-display/video/index.d.ts +2 -0
- package/build/components/data-display/video/youtube-video-player/index.d.ts +2 -0
- package/build/components/data-display/world-map/index.d.ts +2 -0
- package/build/components/data-display/world-map-country-table/index.d.ts +2 -0
- package/build/components/data-entry/button/Button.d.ts +1 -1
- package/build/components/data-entry/button/index.d.ts +2 -0
- package/build/components/data-entry/checkbox/index.d.ts +2 -0
- package/build/components/data-entry/date-selector/index.d.ts +2 -0
- package/build/components/data-entry/image-input/index.d.ts +2 -0
- package/build/components/data-entry/index.d.ts +13 -0
- package/build/components/data-entry/input/index.d.ts +6 -7
- package/build/components/data-entry/input/input/Input.d.ts +5 -2
- package/build/components/data-entry/input/input/index.d.ts +2 -0
- package/build/components/data-entry/input/input-file/index.d.ts +2 -0
- package/build/components/data-entry/input/input-label/index.d.ts +2 -0
- package/build/components/data-entry/input/input-list/index.d.ts +2 -0
- package/build/components/data-entry/input/input-list-group/index.d.ts +2 -0
- package/build/components/data-entry/input/input-response/index.d.ts +2 -0
- package/build/components/data-entry/multi-image-input/index.d.ts +2 -0
- package/build/components/data-entry/radio/index.d.ts +2 -0
- package/build/components/data-entry/select/index.d.ts +2 -0
- package/build/components/data-entry/switch/index.d.ts +2 -0
- package/build/components/data-entry/tags/index.d.ts +2 -0
- package/build/components/data-entry/text-area/index.d.ts +2 -0
- package/build/components/feedback/backdrop/index.d.ts +2 -0
- package/build/components/feedback/index.d.ts +4 -0
- package/build/components/feedback/skeleton/index.d.ts +2 -0
- package/build/components/feedback/toast/index.d.ts +2 -0
- package/build/components/feedback/transition/index.d.ts +1 -1
- package/build/components/general/content-area/index.d.ts +2 -0
- package/build/components/general/index.d.ts +2 -0
- package/build/components/index.d.ts +11 -68
- package/build/components/layout/grid/index.d.ts +2 -0
- package/build/components/layout/index.d.ts +3 -0
- package/build/components/markdown/editor/index.d.ts +2 -0
- package/build/components/markdown/index.d.ts +2 -0
- package/build/components/markdown/viewer/index.d.ts +2 -0
- package/build/components/navigation/drawer/index.d.ts +3 -0
- package/build/components/navigation/index.d.ts +7 -0
- package/build/components/navigation/link/index.d.ts +2 -0
- package/build/components/navigation/route-tabs/index.d.ts +3 -0
- package/build/components/other/index.d.ts +2 -0
- package/build/components/other/modal/index.d.ts +2 -0
- package/build/components/other/under-construction-banner/index.d.ts +2 -0
- package/build/components/surfaces/accordion/index.d.ts +2 -0
- package/build/components/surfaces/index.d.ts +2 -0
- package/build/components/utils/async-component-wrapper/index.d.ts +2 -0
- package/build/components/utils/index.d.ts +2 -0
- package/build/components/utils/show-more/index.d.ts +2 -0
- package/build/compositions/index.d.ts +1 -4
- package/build/compositions/navigation/box-nav/index.d.ts +4 -0
- package/build/compositions/navigation/index.d.ts +1 -0
- package/build/data/enums.d.ts +1 -2
- package/build/data/meta/country.d.ts +2 -1
- package/build/data/meta/currency.d.ts +1 -1
- package/build/data/styles.d.ts +6 -0
- package/build/data/test/images/index.d.ts +7 -0
- package/build/data/test/test-user-data.d.ts +7 -0
- package/build/hooks/index.d.ts +5 -5
- package/build/index.d.ts +1 -0
- package/build/index.es.js +33684 -33764
- package/build/index.js +33716 -33793
- package/build/utils/currency.d.ts +1 -0
- package/build/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/build/components/data-display/advanced-table/AdvancedTable.d.ts +0 -14
- package/build/components/data-display/advanced-table/AdvancedTableContent.d.ts +0 -16
- package/build/components/data-display/image/CloudinaryImage.d.ts +0 -8
- package/build/components/data-display/table/TableRow.d.ts +0 -8
- /package/build/components/data-display/charts/{BarChart.d.ts → bar-chart/BarChart.d.ts} +0 -0
- /package/build/components/data-display/charts/{LineChart.d.ts → line-chart/LineChart.d.ts} +0 -0
- /package/build/components/data-display/charts/{PieChart.d.ts → pie-chart/PieChart.d.ts} +0 -0
- /package/build/components/data-display/image/{Image.d.ts → image/Image.d.ts} +0 -0
- /package/build/components/data-display/rating/{StarRating.d.ts → star-rating/StarRating.d.ts} +0 -0
- /package/build/components/data-display/rating/{StarRatingDistribution.d.ts → star-rating-distribution/StarRatingDistribution.d.ts} +0 -0
- /package/build/components/utils/{AsyncComponentWrapper.d.ts → async-component-wrapper/AsyncComponentWrapper.d.ts} +0 -0
- /package/build/components/utils/{ShowMore.d.ts → show-more/ShowMore.d.ts} +0 -0
- /package/build/hooks/{useClickOutside.d.ts → layout/useClickOutside.d.ts} +0 -0
- /package/build/hooks/{useIsMobile.d.ts → layout/useIsMobile.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Avatar } from "./Avatar";
|
|
@@ -9,6 +9,7 @@ export interface BadgeProps {
|
|
|
9
9
|
shape?: keyof typeof Shape;
|
|
10
10
|
size?: keyof typeof Size;
|
|
11
11
|
showZero?: boolean;
|
|
12
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
12
13
|
styles?: string;
|
|
13
14
|
}
|
|
14
|
-
export declare const Badge: ({ children, offset, dot, count, variant, shape, size, showZero, styles, }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Badge: ({ children, offset, dot, count, variant, shape, size, showZero, position, styles, }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from "./Badge";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface CloudinaryImageProps {
|
|
2
|
+
publicId?: string;
|
|
3
|
+
cloudName?: string;
|
|
4
|
+
secure?: boolean;
|
|
5
|
+
alt?: string;
|
|
6
|
+
styles?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function CloudinaryImage({ publicId, cloudName, secure, alt, styles, }: CloudinaryImageProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default CloudinaryImage;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Image, CloudinaryImage };
|
|
1
|
+
export * from "./cloudinary-image";
|
|
2
|
+
export * from "./image";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./avatar";
|
|
2
|
+
export * from "./badge";
|
|
3
|
+
export * from "./banners";
|
|
4
|
+
export * from "./brand";
|
|
5
|
+
export * from "./charts";
|
|
6
|
+
export * from "./chip";
|
|
7
|
+
export * from "./flag";
|
|
8
|
+
export * from "./image";
|
|
9
|
+
export * from "./info";
|
|
10
|
+
export * from "./lists";
|
|
11
|
+
export * from "./price-tag";
|
|
12
|
+
export * from "./rating";
|
|
13
|
+
export * from "./slider";
|
|
14
|
+
export * from "./table";
|
|
15
|
+
export * from "./tag";
|
|
16
|
+
export * from "./tooltip";
|
|
17
|
+
export * from "./typography";
|
|
18
|
+
export * from "./value-badge";
|
|
19
|
+
export * from "./video";
|
|
20
|
+
export * from "./world-map";
|
|
21
|
+
export * from "./world-map-country-table";
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { StarRating, StarRatingDistribution };
|
|
1
|
+
export * from "./star-rating";
|
|
2
|
+
export * from "./star-rating-distribution";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { TableColumnConfig } from "./TableContent";
|
|
2
|
+
export interface TableProps<T> {
|
|
2
3
|
title?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
columns: TableColumnConfig<T>[];
|
|
5
|
+
data: T[];
|
|
6
|
+
defaultPageSize?: number;
|
|
7
|
+
pageSizeOptions?: (number | "All")[];
|
|
7
8
|
isLoading?: boolean;
|
|
8
9
|
isSuccess?: boolean;
|
|
9
10
|
isError?: boolean;
|
|
10
11
|
error?: unknown;
|
|
11
|
-
enableSelect: boolean;
|
|
12
|
-
maxRowCount?: number;
|
|
13
12
|
}
|
|
14
|
-
declare function Table({ title,
|
|
13
|
+
declare function Table<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, isLoading, isSuccess, isError, error, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export default Table;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TableColumnConfig<T> = {
|
|
3
|
+
key: keyof T;
|
|
4
|
+
header: string;
|
|
5
|
+
render: (value: T[keyof T], record: T) => React.ReactNode;
|
|
6
|
+
sortable?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type TableContentProps<T> = {
|
|
2
9
|
title?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
declare function TableContent({ title, headers, data, enableSelect, maxRowCount, }: TableContentProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default TableContent;
|
|
10
|
+
columns: TableColumnConfig<T>[];
|
|
11
|
+
data: T[];
|
|
12
|
+
defaultPageSize?: number;
|
|
13
|
+
pageSizeOptions?: (number | "All")[];
|
|
14
|
+
};
|
|
15
|
+
export declare function TableContent<T extends Record<string, any>>({ title, columns, data, defaultPageSize, pageSizeOptions, }: TableContentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Chapter } from "./chapter
|
|
2
|
-
import { Section } from "./section
|
|
3
|
-
import { Paragraph } from "./paragraph
|
|
4
|
-
import { Quote } from "./quote
|
|
1
|
+
import { Chapter } from "./chapter";
|
|
2
|
+
import { Section } from "./section";
|
|
3
|
+
import { Paragraph } from "./paragraph";
|
|
4
|
+
import { Quote } from "./quote";
|
|
5
5
|
declare const Typography: {
|
|
6
6
|
Chapter: ({ level, children, variant, decoration, bold, italic, styles, onClick, }: import("./chapter/Chapter").ChapterProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
Section: ({ level, children, variant, decoration, bold, italic, styles, onClick, }: import("./section/Section").SectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./button";
|
|
2
|
+
export * from "./checkbox";
|
|
3
|
+
export * from "./date-selector";
|
|
4
|
+
export * from "./form";
|
|
5
|
+
export * from "./image-input";
|
|
6
|
+
export * from "./input";
|
|
7
|
+
export * from "./multi-image-input";
|
|
8
|
+
export * from "./radio";
|
|
9
|
+
export * from "./rating";
|
|
10
|
+
export * from "./select";
|
|
11
|
+
export * from "./switch";
|
|
12
|
+
export * from "./tags";
|
|
13
|
+
export * from "./text-area";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { InputResponse, InputLabel, Input, InputFile, InputList, InputListGroup, };
|
|
1
|
+
export * from "./input";
|
|
2
|
+
export * from "./input-file";
|
|
3
|
+
export * from "./input-label";
|
|
4
|
+
export * from "./input-list";
|
|
5
|
+
export * from "./input-list-group";
|
|
6
|
+
export * from "./input-response";
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { FieldHookConfig } from "formik";
|
|
2
|
-
|
|
2
|
+
import { Shape } from "../../../../data/enums";
|
|
3
|
+
export interface InputProps extends FieldHookConfig<string> {
|
|
3
4
|
type: "text" | "password" | "number";
|
|
5
|
+
name: string;
|
|
4
6
|
placeholder: string;
|
|
5
7
|
styles?: string;
|
|
6
8
|
step?: string;
|
|
9
|
+
shape?: keyof typeof Shape;
|
|
7
10
|
}
|
|
8
11
|
export interface PasswordVisibilityTogglerProps {
|
|
9
12
|
onClick: (visibility: boolean) => void;
|
|
10
13
|
}
|
|
11
|
-
export declare const Input: ({ type, placeholder, styles, step, ...props }:
|
|
14
|
+
export declare const Input: ({ type, placeholder, styles, step, shape, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,68 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import { Image, CloudinaryImage } from "./data-display/image";
|
|
13
|
-
import Info from "./data-display/info/Info";
|
|
14
|
-
import { List, ListItem } from "./data-display/lists";
|
|
15
|
-
import { PriceTag } from "./data-display/price-tag/PriceTag";
|
|
16
|
-
import { StarRating, StarRatingDistribution } from "./data-display/rating";
|
|
17
|
-
import Slider from "./data-display/slider/Slider";
|
|
18
|
-
import Table from "./data-display/table/Table";
|
|
19
|
-
import Tag from "./data-display/tag/Tag";
|
|
20
|
-
import Tooltip from "./data-display/tooltip/Tooltip";
|
|
21
|
-
import { Typography, Chapter, Section, Paragraph, Quote } from "./data-display/typography";
|
|
22
|
-
import ValueBadge from "./data-display/value-badge/ValueBadge";
|
|
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";
|
|
27
|
-
import { Button } from "./data-entry/button/Button";
|
|
28
|
-
import Checkbox from "./data-entry/checkbox/Checkbox";
|
|
29
|
-
import DateSelector from "./data-entry/date-selector/DateSelector";
|
|
30
|
-
import { Form, FormResponse } from "./data-entry/form";
|
|
31
|
-
import ImageInput from "./data-entry/image-input/ImageInput";
|
|
32
|
-
import { InputResponse, InputLabel, Input, InputFile, InputList, InputListGroup } from "./data-entry/input";
|
|
33
|
-
import MultiImageInput from "./data-entry/multi-image-input/MultiImageInput";
|
|
34
|
-
import Radio from "./data-entry/radio/Radio";
|
|
35
|
-
import { StarRatingInput } from "./data-entry/rating";
|
|
36
|
-
import Select from "./data-entry/select/Select";
|
|
37
|
-
import Switch from "./data-entry/switch/Switch";
|
|
38
|
-
import Tags from "./data-entry/tags/Tags";
|
|
39
|
-
import TextArea from "./data-entry/text-area/TextArea";
|
|
40
|
-
import Backdrop from "./feedback/backdrop/Backdrop";
|
|
41
|
-
import { Skeleton } from "./feedback/skeleton/Skeleton";
|
|
42
|
-
import { Toast, sendToast } from "./feedback/toast/Toast";
|
|
43
|
-
import Transition from "./feedback/transition";
|
|
44
|
-
import ContentArea from "./general/content-area/ContentArea";
|
|
45
|
-
import { Sidebar } from "./general/sidebar";
|
|
46
|
-
import { Flex, FlexCol, FlexRow } from "./layout/flex";
|
|
47
|
-
import Grid from "./layout/grid/Grid";
|
|
48
|
-
import { Layout, Header, Content, Footer } from "./layout/layout";
|
|
49
|
-
import MarkdownEditor from "./markdown/editor/MarkdownEditor";
|
|
50
|
-
import MarkdownViewer from "./markdown/viewer/MarkdownViewer";
|
|
51
|
-
import { Breadcrumb, BreadcrumbItem } from "./navigation/breadcrumb";
|
|
52
|
-
import { Drawer } from "./navigation/drawer/Drawer";
|
|
53
|
-
import DrawerToggler from "./navigation/drawer/DrawerToggler";
|
|
54
|
-
import { FooterNav, FooterNavGroup, FooterNavItem, FooterNavItemTitle, FooterNavItemContext } from "./navigation/footer-nav";
|
|
55
|
-
import { HeaderNav, HeaderNavGroup, HeaderNavItem, HeaderNavItemTitle, HeaderNavItemContext } from "./navigation/header-nav";
|
|
56
|
-
import { Link } from "./navigation/link/Link";
|
|
57
|
-
import { Menu, MenuGroup, MenuItem, MenuItemTitle } from "./navigation/menu";
|
|
58
|
-
import RouteTab from "./navigation/route-tabs/RouteTab";
|
|
59
|
-
import RouteTabs from "./navigation/route-tabs/RouteTabs";
|
|
60
|
-
import Modal from "./other/modal/Modal";
|
|
61
|
-
import { UnderConstructionBanner } from "./other/under-construction-banner/UnderConstructionBanner";
|
|
62
|
-
import Accordion from "./surfaces/accordion/Accordion";
|
|
63
|
-
import { Card, CardHeader, CardContent, CardFooter } from "./surfaces/card";
|
|
64
|
-
import { ThemeContext, ThemeProvider } from "./theme";
|
|
65
|
-
import { ThemeSwitch } from "./theme";
|
|
66
|
-
import AsyncComponentWrapper from "./utils/AsyncComponentWrapper";
|
|
67
|
-
import ShowMore from "./utils/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, };
|
|
1
|
+
export * from "./data-display";
|
|
2
|
+
export * from "./data-entry";
|
|
3
|
+
export * from "./feedback";
|
|
4
|
+
export * from "./general";
|
|
5
|
+
export * from "./layout";
|
|
6
|
+
export * from "./markdown";
|
|
7
|
+
export * from "./navigation";
|
|
8
|
+
export * from "./other";
|
|
9
|
+
export * from "./surfaces";
|
|
10
|
+
export * from "./theme";
|
|
11
|
+
export * from "./utils";
|