elseware-ui 2.2.21 → 2.2.22
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/index.esm.min.js +24 -0
- package/dist/index.min.js +25 -0
- package/package.json +9 -7
- package/build/components/data-display/avatar/Avatar.d.ts +0 -17
- package/build/components/data-display/badge/Badge.d.ts +0 -16
- package/build/components/data-display/banners/TitleBanner.d.ts +0 -18
- package/build/components/data-display/charts/BarChart.d.ts +0 -10
- package/build/components/data-display/charts/LineChart.d.ts +0 -9
- package/build/components/data-display/charts/PieChart.d.ts +0 -10
- package/build/components/data-display/chip/Chip.d.ts +0 -11
- package/build/components/data-display/colors/Color.d.ts +0 -7
- package/build/components/data-display/colors/ColorMatrix.d.ts +0 -4
- package/build/components/data-display/image/CloudinaryImage.d.ts +0 -10
- package/build/components/data-display/image/Image.d.ts +0 -10
- package/build/components/data-display/image/index.d.ts +0 -3
- package/build/components/data-display/info/Info.d.ts +0 -9
- package/build/components/data-display/lists/List.d.ts +0 -9
- package/build/components/data-display/lists/ListItem.d.ts +0 -15
- package/build/components/data-display/lists/index.d.ts +0 -3
- package/build/components/data-display/price-tag/PriceTag.d.ts +0 -10
- package/build/components/data-display/rating/StarRating.d.ts +0 -11
- package/build/components/data-display/rating/StarRatingDistribution.d.ts +0 -25
- package/build/components/data-display/rating/index.d.ts +0 -3
- package/build/components/data-display/slider/Slider.d.ts +0 -10
- package/build/components/data-display/slider/SliderItem.d.ts +0 -10
- package/build/components/data-display/table/Table.d.ts +0 -17
- package/build/components/data-display/table/TableContent.d.ts +0 -13
- package/build/components/data-display/table/TableRow.d.ts +0 -10
- package/build/components/data-display/tag/Tag.d.ts +0 -8
- package/build/components/data-display/typography/chapter/Chapter.d.ts +0 -14
- package/build/components/data-display/typography/index.d.ts +0 -14
- package/build/components/data-display/typography/link/Link.d.ts +0 -15
- package/build/components/data-display/typography/paragraph/Paragraph.d.ts +0 -14
- package/build/components/data-display/typography/quote/Quote.d.ts +0 -7
- package/build/components/data-display/typography/section/Section.d.ts +0 -14
- package/build/components/data-entry/button/Button.d.ts +0 -20
- package/build/components/data-entry/checkbox/Checkbox.d.ts +0 -9
- package/build/components/data-entry/date-selector/DateSelector.d.ts +0 -9
- package/build/components/data-entry/form/Form.d.ts +0 -11
- package/build/components/data-entry/form/FormResponse.d.ts +0 -12
- package/build/components/data-entry/form/index.d.ts +0 -3
- package/build/components/data-entry/image-input/ImageInput.d.ts +0 -13
- package/build/components/data-entry/image-input/ImageView.d.ts +0 -9
- package/build/components/data-entry/input/Input.d.ts +0 -13
- package/build/components/data-entry/input/InputResponse.d.ts +0 -11
- package/build/components/data-entry/input/index.d.ts +0 -3
- package/build/components/data-entry/multi-image-input/MultiImageInput.d.ts +0 -10
- package/build/components/data-entry/radio/Radio.d.ts +0 -9
- package/build/components/data-entry/rating/StarRatingInput.d.ts +0 -9
- package/build/components/data-entry/rating/index.d.ts +0 -2
- package/build/components/data-entry/select/Select.d.ts +0 -10
- package/build/components/data-entry/switch/Switch.d.ts +0 -11
- package/build/components/data-entry/text-area/TextArea.d.ts +0 -10
- package/build/components/feedback/backdrop/Backdrop.d.ts +0 -8
- package/build/components/feedback/skeleton/Skeleton.d.ts +0 -7
- package/build/components/feedback/toast/Toast.d.ts +0 -9
- package/build/components/feedback/transition/TransitionDropdown.d.ts +0 -9
- package/build/components/feedback/transition/TransitionFadeIn.d.ts +0 -9
- package/build/components/feedback/transition/index.d.ts +0 -7
- package/build/components/general/content-area/ContentArea.d.ts +0 -10
- package/build/components/general/footer-navbar/FooterNavbar.d.ts +0 -4
- package/build/components/general/header-navbar/HeaderNavbar.d.ts +0 -10
- package/build/components/general/sidebar/Sidebar.d.ts +0 -8
- package/build/components/general/sidebar/SidebarToggler.d.ts +0 -7
- package/build/components/general/sidebar/index.d.ts +0 -3
- package/build/components/layout/flex/FlexCol.d.ts +0 -9
- package/build/components/layout/flex/FlexRow.d.ts +0 -9
- package/build/components/layout/flex/index.d.ts +0 -7
- package/build/components/layout/grid/Grid.d.ts +0 -8
- package/build/components/layout/layout/Content.d.ts +0 -9
- package/build/components/layout/layout/Footer.d.ts +0 -7
- package/build/components/layout/layout/Header.d.ts +0 -8
- package/build/components/layout/layout/Layout.d.ts +0 -8
- package/build/components/layout/layout/Sider.d.ts +0 -9
- package/build/components/layout/layout/index.d.ts +0 -6
- package/build/components/navigation/breadcrumb/Breadcrumb.d.ts +0 -13
- package/build/components/navigation/breadcrumb/BreadcrumbItem.d.ts +0 -9
- package/build/components/navigation/breadcrumb/index.d.ts +0 -3
- package/build/components/navigation/header-nav/HeaderNav.d.ts +0 -25
- package/build/components/navigation/header-nav/HeaderNavGroup.d.ts +0 -13
- package/build/components/navigation/header-nav/HeaderNavItem.d.ts +0 -12
- package/build/components/navigation/header-nav/HeaderNavItemContext.d.ts +0 -9
- package/build/components/navigation/header-nav/HeaderNavItemTitle.d.ts +0 -10
- package/build/components/navigation/header-nav/index.d.ts +0 -5
- package/build/components/navigation/menu/MIContext.d.ts +0 -8
- package/build/components/navigation/menu/Menu.d.ts +0 -25
- package/build/components/navigation/menu/MenuGroup.d.ts +0 -11
- package/build/components/navigation/menu/MenuItem.d.ts +0 -17
- package/build/components/navigation/menu/MenuItemTitle.d.ts +0 -9
- package/build/components/navigation/menu/index.d.ts +0 -5
- package/build/components/other/modal/Modal.d.ts +0 -16
- package/build/components/surfaces/accordion/Accordion.d.ts +0 -12
- package/build/components/surfaces/card/Card.d.ts +0 -9
- package/build/components/surfaces/card/CardContent.d.ts +0 -9
- package/build/components/surfaces/card/CardFooter.d.ts +0 -9
- package/build/components/surfaces/card/CardHeader.d.ts +0 -11
- package/build/components/surfaces/card/index.d.ts +0 -5
- package/build/components/theme/ThemeContext.d.ts +0 -14
- package/build/components/theme/ThemeSwitch.d.ts +0 -3
- package/build/components/theme/index.d.ts +0 -3
- package/build/components/utils/AsyncComponentWrapper.d.ts +0 -11
- package/build/components/utils/ShowMore.d.ts +0 -8
- package/build/data/enums.d.ts +0 -48
- package/build/data/meta/currency.d.ts +0 -5
- package/build/data/styles.d.ts +0 -67
- package/build/data/test/test-data.d.ts +0 -20
- package/build/index.d.ts +0 -55
- package/build/index.es.js +0 -33341
- package/build/index.es.js.map +0 -1
- package/build/index.js +0 -33447
- package/build/index.js.map +0 -1
- package/build/layouts/DefaultLayout.d.ts +0 -7
- package/build/utils/hooks/components/useModal.d.ts +0 -6
- package/build/utils/hooks/components/useSider.d.ts +0 -7
- package/build/utils/useClickOutside.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elseware-ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A modern and customizable React UI component library by elseware Technology.",
|
|
6
|
-
"types": "
|
|
7
|
-
"main": "
|
|
8
|
-
"module": "
|
|
9
|
-
"typings": "
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"main": "dist/index.min.js",
|
|
8
|
+
"module": "dist/index.esm.min.js",
|
|
9
|
+
"typings": "dist/index.d.ts",
|
|
10
10
|
"files": [
|
|
11
|
-
"
|
|
11
|
+
"dist"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@headlessui/react": "^2.1.8",
|
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "rollup -c rollup.config.js",
|
|
40
|
+
"build:storybook": "storybook build",
|
|
40
41
|
"storybook": "storybook dev -p 6006",
|
|
41
|
-
"
|
|
42
|
+
"publish": "npm run build && npm publish --access public"
|
|
42
43
|
},
|
|
43
44
|
"eslintConfig": {
|
|
44
45
|
"extends": [
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
"@types/react-dom": "^19.0.4",
|
|
78
79
|
"eslint-plugin-storybook": "^0.11.2",
|
|
79
80
|
"prop-types": "^15.8.1",
|
|
81
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
80
82
|
"storybook": "^8.5.0",
|
|
81
83
|
"tslib": "^2.6.2",
|
|
82
84
|
"webpack": "^5.89.0"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import { Variant, Shape, Size } from "../../../data/enums";
|
|
5
|
-
export interface AvatarProps {
|
|
6
|
-
alt?: string;
|
|
7
|
-
icon?: ReactNode;
|
|
8
|
-
children?: string;
|
|
9
|
-
variant?: keyof typeof Variant;
|
|
10
|
-
shape?: keyof typeof Shape;
|
|
11
|
-
size?: keyof typeof Size;
|
|
12
|
-
src?: string;
|
|
13
|
-
styles?: string;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
borderVariant?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const Avatar: ({ alt, icon, children, variant, shape, size, src, styles, onClick, borderVariant, }: AvatarProps) => React.JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import { Variant, Shape, Size } from "../../../data/enums";
|
|
5
|
-
export interface BadgeProps {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
offset?: [number, number];
|
|
8
|
-
dot?: boolean;
|
|
9
|
-
count?: number;
|
|
10
|
-
variant?: keyof typeof Variant;
|
|
11
|
-
shape?: keyof typeof Shape;
|
|
12
|
-
size?: keyof typeof Size;
|
|
13
|
-
showZero?: boolean;
|
|
14
|
-
styles?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const Badge: ({ children, offset, dot, count, variant, shape, size, showZero, styles, }: BadgeProps) => React.JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
export interface TitleBannerLevel1Props {
|
|
5
|
-
title: string;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export interface TitleBannerLevel2Props {
|
|
9
|
-
title: string;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export interface TitleBannerProps {
|
|
13
|
-
title: string;
|
|
14
|
-
level?: 1 | 2;
|
|
15
|
-
children?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
declare function TitleBanner({ title, level, children, }: TitleBannerProps): React.JSX.Element;
|
|
18
|
-
export default TitleBanner;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ChartOptions, ChartData } from "chart.js";
|
|
4
|
-
export interface BarChartProps {
|
|
5
|
-
data: ChartData<"bar">;
|
|
6
|
-
options: ChartOptions<"bar">;
|
|
7
|
-
styles?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const BarChart: React.FC<BarChartProps>;
|
|
10
|
-
export default BarChart;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ChartData, ChartOptions } from 'chart.js';
|
|
4
|
-
export interface LineChartProps {
|
|
5
|
-
data: ChartData<'line'>;
|
|
6
|
-
options?: ChartOptions<'line'>;
|
|
7
|
-
}
|
|
8
|
-
declare const LineChart: React.FC<LineChartProps>;
|
|
9
|
-
export default LineChart;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ChartData, ChartOptions } from "chart.js";
|
|
4
|
-
export interface PieChartProps {
|
|
5
|
-
data: ChartData<"pie">;
|
|
6
|
-
options: ChartOptions<"pie">;
|
|
7
|
-
styles?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const PieChart: React.FC<PieChartProps>;
|
|
10
|
-
export default PieChart;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Variant, Shape, Size } from "../../../data/enums";
|
|
4
|
-
export interface ChipProps {
|
|
5
|
-
label?: string;
|
|
6
|
-
variant?: keyof typeof Variant;
|
|
7
|
-
shape?: keyof typeof Shape;
|
|
8
|
-
size?: keyof typeof Size;
|
|
9
|
-
styles?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const Chip: ({ label, variant, shape, size, styles, }: ChipProps) => React.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface CloudinaryImageProps {
|
|
4
|
-
publicId?: string;
|
|
5
|
-
secure?: boolean;
|
|
6
|
-
alt?: string;
|
|
7
|
-
styles?: string;
|
|
8
|
-
}
|
|
9
|
-
declare function CloudinaryImage({ publicId, secure, alt, styles }: CloudinaryImageProps): React.JSX.Element;
|
|
10
|
-
export default CloudinaryImage;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface ImageProps {
|
|
4
|
-
alt?: string;
|
|
5
|
-
src?: string;
|
|
6
|
-
height?: number;
|
|
7
|
-
width?: number;
|
|
8
|
-
styles?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const Image: ({ alt, src, height, width, styles, }: ImageProps) => React.JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
export interface InfoProps {
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
styles?: string;
|
|
7
|
-
}
|
|
8
|
-
declare function Info({ children, styles }: InfoProps): React.JSX.Element;
|
|
9
|
-
export default Info;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
export interface ListProps {
|
|
5
|
-
title?: string;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare function List({ title, children }: ListProps): React.JSX.Element;
|
|
9
|
-
export default List;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
export interface ListItemWrapperProps {
|
|
5
|
-
TypographyComponent: ReactNode;
|
|
6
|
-
x: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const ListItemWrapper: ({ TypographyComponent, x }: ListItemWrapperProps) => React.JSX.Element;
|
|
9
|
-
export interface ListItemProps {
|
|
10
|
-
TypographyComponent?: ReactNode;
|
|
11
|
-
bulletVisible?: boolean;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const ListItem: ({ TypographyComponent, bulletVisible, children }: ListItemProps) => React.JSX.Element;
|
|
15
|
-
export default ListItem;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface PriceTagProps {
|
|
4
|
-
discount?: number;
|
|
5
|
-
price: number;
|
|
6
|
-
code?: string;
|
|
7
|
-
styles?: string;
|
|
8
|
-
}
|
|
9
|
-
declare function PriceTag({ discount, price, code, styles }: PriceTagProps): React.JSX.Element;
|
|
10
|
-
export { PriceTag };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface StarRatingProps {
|
|
4
|
-
rating: number;
|
|
5
|
-
isNumericRatingEnabled?: boolean;
|
|
6
|
-
reviewAmount?: number;
|
|
7
|
-
isReviewAmountEnabled?: boolean;
|
|
8
|
-
styles?: string;
|
|
9
|
-
}
|
|
10
|
-
declare function StarRating({ rating, reviewAmount, isNumericRatingEnabled, isReviewAmountEnabled, styles }: StarRatingProps): React.JSX.Element;
|
|
11
|
-
export default StarRating;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface NumericRatingProps {
|
|
4
|
-
averageRating: number;
|
|
5
|
-
totalReviews: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ProgressBarRatingProps {
|
|
8
|
-
star: number;
|
|
9
|
-
percentage: number;
|
|
10
|
-
}
|
|
11
|
-
export interface ProgressBarsRatingProps {
|
|
12
|
-
ratingDistribution: Array<{
|
|
13
|
-
star: number;
|
|
14
|
-
percentage: number;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
17
|
-
declare function StarRatingDistribution({ numericRating, progressBarsRating, ratingDistribution, }: {
|
|
18
|
-
numericRating?: boolean | undefined;
|
|
19
|
-
progressBarsRating?: boolean | undefined;
|
|
20
|
-
ratingDistribution?: {
|
|
21
|
-
star: number;
|
|
22
|
-
count: number;
|
|
23
|
-
}[] | undefined;
|
|
24
|
-
}): React.JSX.Element;
|
|
25
|
-
export default StarRatingDistribution;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface SliderProps {
|
|
4
|
-
isLoading?: boolean;
|
|
5
|
-
isSuccess?: boolean;
|
|
6
|
-
coverArt: string;
|
|
7
|
-
screenshots: string[];
|
|
8
|
-
}
|
|
9
|
-
declare function Slider({ isLoading, isSuccess, coverArt, screenshots }: SliderProps): React.JSX.Element;
|
|
10
|
-
export default Slider;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface SliderItemProps {
|
|
4
|
-
img?: string;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
styles?: string;
|
|
8
|
-
}
|
|
9
|
-
declare function SliderItem({ img, onClick, selected, styles }: SliderItemProps): React.JSX.Element;
|
|
10
|
-
export default SliderItem;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface TableProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
headers: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
};
|
|
8
|
-
data: any[];
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
isSuccess?: boolean;
|
|
11
|
-
isError?: boolean;
|
|
12
|
-
error?: string;
|
|
13
|
-
enableSelect: boolean;
|
|
14
|
-
maxRowCount?: number;
|
|
15
|
-
}
|
|
16
|
-
declare function Table({ title, headers, data, isLoading, isSuccess, isError, error, enableSelect, maxRowCount }: TableProps): React.JSX.Element;
|
|
17
|
-
export default Table;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface TableContentProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
headers: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
};
|
|
8
|
-
data: any[];
|
|
9
|
-
enableSelect: boolean;
|
|
10
|
-
maxRowCount?: number;
|
|
11
|
-
}
|
|
12
|
-
declare function TableContent({ title, headers, data, enableSelect, maxRowCount, }: TableContentProps): React.JSX.Element;
|
|
13
|
-
export default TableContent;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface TableRowProps {
|
|
4
|
-
rowData: any;
|
|
5
|
-
headers: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
declare function TableRow({ rowData, headers }: TableRowProps): React.JSX.Element;
|
|
10
|
-
export default TableRow;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { TextVariant, Decoration } from "../../../../data/enums";
|
|
4
|
-
export interface ChapterProps {
|
|
5
|
-
level: 1 | 2 | 3;
|
|
6
|
-
children?: string;
|
|
7
|
-
variant?: keyof typeof TextVariant;
|
|
8
|
-
styles?: string;
|
|
9
|
-
decoration?: keyof typeof Decoration;
|
|
10
|
-
bold?: boolean;
|
|
11
|
-
italic?: boolean;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const Chapter: ({ level, children, variant, decoration, bold, italic, styles, onClick, }: ChapterProps) => React.JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import { Chapter } from "./chapter/Chapter";
|
|
3
|
-
import { Section } from "./section/Section";
|
|
4
|
-
import { Paragraph } from "./paragraph/Paragraph";
|
|
5
|
-
import { Link } from "./link/Link";
|
|
6
|
-
import { Quote } from "./quote/Quote";
|
|
7
|
-
declare const Typography: {
|
|
8
|
-
Chapter: ({ level, children, variant, decoration, bold, italic, styles, onClick, }: import("./chapter/Chapter").ChapterProps) => import("react").JSX.Element;
|
|
9
|
-
Section: ({ level, children, variant, decoration, bold, italic, styles, onClick, }: import("./section/Section").SectionProps) => import("react").JSX.Element;
|
|
10
|
-
Paragraph: ({ level, children, variant, decoration, bold, italic, styles, onClick, }: import("./paragraph/Paragraph").ParagraphProps) => import("react").JSX.Element;
|
|
11
|
-
Link: ({ children, href, target, variant, decoration, bold, italic, styles, onClick, }: import("./link/Link").LinkProps) => import("react").JSX.Element;
|
|
12
|
-
Quote: ({ children, styles }: import("./quote/Quote").QuoteProps) => import("react").JSX.Element;
|
|
13
|
-
};
|
|
14
|
-
export { Typography, Chapter, Section, Paragraph, Link, Quote };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { TextVariant, Decoration, Target } from "../../../../data/enums";
|
|
4
|
-
export interface LinkProps {
|
|
5
|
-
children?: string;
|
|
6
|
-
href?: string;
|
|
7
|
-
target?: keyof typeof Target;
|
|
8
|
-
variant?: keyof typeof TextVariant;
|
|
9
|
-
styles?: string;
|
|
10
|
-
decoration?: keyof typeof Decoration;
|
|
11
|
-
bold?: boolean;
|
|
12
|
-
italic?: boolean;
|
|
13
|
-
onClick?: () => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const Link: ({ children, href, target, variant, decoration, bold, italic, styles, onClick, }: LinkProps) => React.JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { TextVariant, Decoration } from "../../../../data/enums";
|
|
4
|
-
export interface ParagraphProps {
|
|
5
|
-
level: 1 | 2 | 3;
|
|
6
|
-
children?: string;
|
|
7
|
-
variant?: keyof typeof TextVariant;
|
|
8
|
-
styles?: string;
|
|
9
|
-
decoration?: keyof typeof Decoration;
|
|
10
|
-
bold?: boolean;
|
|
11
|
-
italic?: boolean;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const Paragraph: ({ level, children, variant, decoration, bold, italic, styles, onClick, }: ParagraphProps) => React.JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { TextVariant, Decoration } from "../../../../data/enums";
|
|
4
|
-
export interface SectionProps {
|
|
5
|
-
level: 1 | 2 | 3;
|
|
6
|
-
children?: string;
|
|
7
|
-
variant?: keyof typeof TextVariant;
|
|
8
|
-
styles?: string;
|
|
9
|
-
decoration?: keyof typeof Decoration;
|
|
10
|
-
bold?: boolean;
|
|
11
|
-
italic?: boolean;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const Section: ({ level, children, variant, decoration, bold, italic, styles, onClick, }: SectionProps) => React.JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import { Variant, Shape, Size } from "../../../data/enums";
|
|
5
|
-
export interface ButtonProps {
|
|
6
|
-
type: "button" | "submit";
|
|
7
|
-
icon?: ReactNode;
|
|
8
|
-
text?: string;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
ghost?: boolean;
|
|
13
|
-
block?: boolean;
|
|
14
|
-
variant?: keyof typeof Variant;
|
|
15
|
-
shape?: keyof typeof Shape;
|
|
16
|
-
size?: keyof typeof Size;
|
|
17
|
-
styles?: string;
|
|
18
|
-
onClick?: () => void;
|
|
19
|
-
}
|
|
20
|
-
export declare const Button: ({ type, icon, text, children, loading, disabled, ghost, block, variant, shape, size, styles, onClick, }: ButtonProps) => React.JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FieldHookConfig } from "formik";
|
|
4
|
-
export interface CheckboxProps {
|
|
5
|
-
placeholder: string;
|
|
6
|
-
options: any[];
|
|
7
|
-
}
|
|
8
|
-
declare function Checkbox({ placeholder, options, ...props }: FieldHookConfig<string> & CheckboxProps): React.JSX.Element;
|
|
9
|
-
export default Checkbox;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FieldHookConfig } from "formik";
|
|
4
|
-
interface DateSelectorProps {
|
|
5
|
-
placeholder: string;
|
|
6
|
-
styles?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const DateSelector: ({ placeholder, styles, ...props }: FieldHookConfig<string> & DateSelectorProps) => React.JSX.Element;
|
|
9
|
-
export default DateSelector;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface FormProps {
|
|
4
|
-
initialValues?: object;
|
|
5
|
-
validationSchema?: object;
|
|
6
|
-
enableReinitialize?: boolean;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
styles?: string;
|
|
9
|
-
onSubmit: any;
|
|
10
|
-
}
|
|
11
|
-
export declare const Form: ({ initialValues, validationSchema, enableReinitialize, children, styles, onSubmit, }: FormProps) => React.JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Variant, Shape, Size } from "../../../data/enums";
|
|
4
|
-
export interface FormResponseProps {
|
|
5
|
-
text: string | undefined;
|
|
6
|
-
variant?: keyof typeof Variant;
|
|
7
|
-
shape?: keyof typeof Shape;
|
|
8
|
-
size?: keyof typeof Size;
|
|
9
|
-
styles?: string;
|
|
10
|
-
}
|
|
11
|
-
declare function FormResponse({ text, variant, shape, size, styles, }: FormResponseProps): React.JSX.Element;
|
|
12
|
-
export default FormResponse;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface ImageInputProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
uploadDir?: string;
|
|
6
|
-
onValueChanged?: (imageUrl: string) => void;
|
|
7
|
-
disableSetValue?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface ImageInputRef {
|
|
10
|
-
handleResetClick: () => void;
|
|
11
|
-
}
|
|
12
|
-
declare const ImageInput: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<ImageInputRef>>;
|
|
13
|
-
export default ImageInput;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface ImageViewProps {
|
|
4
|
-
imageUrl?: string;
|
|
5
|
-
secure?: boolean;
|
|
6
|
-
alt?: string;
|
|
7
|
-
}
|
|
8
|
-
declare function ImageView({ imageUrl, secure, alt }: ImageViewProps): React.JSX.Element;
|
|
9
|
-
export default ImageView;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FieldHookConfig } from "formik";
|
|
4
|
-
export interface InputProps {
|
|
5
|
-
type: "text" | "password" | "number";
|
|
6
|
-
placeholder: string;
|
|
7
|
-
styles?: string;
|
|
8
|
-
step?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface PasswordVisibilityTogglerProps {
|
|
11
|
-
onClick: (visibility: boolean) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const Input: ({ type, placeholder, styles, step, ...props }: FieldHookConfig<string> & InputProps) => React.JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { TextVariant } from "../../../data/enums";
|
|
4
|
-
export interface InputResponseProps {
|
|
5
|
-
name: string;
|
|
6
|
-
visibility?: boolean;
|
|
7
|
-
variant?: keyof typeof TextVariant;
|
|
8
|
-
styles?: string;
|
|
9
|
-
}
|
|
10
|
-
declare function InputResponse({ name, visibility, variant, styles, }: InputResponseProps): React.JSX.Element;
|
|
11
|
-
export default InputResponse;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FieldHookConfig } from "formik";
|
|
4
|
-
export interface MultiImageInputProps {
|
|
5
|
-
title?: string;
|
|
6
|
-
uploadDir?: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
declare function MultiImageInput({ title, uploadDir, ...props }: FieldHookConfig<string[]> & MultiImageInputProps): React.JSX.Element;
|
|
10
|
-
export default MultiImageInput;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FieldHookConfig } from "formik";
|
|
4
|
-
export interface RadioProps {
|
|
5
|
-
placeholder: string;
|
|
6
|
-
options: any[];
|
|
7
|
-
}
|
|
8
|
-
declare function Radio({ placeholder, options, ...props }: FieldHookConfig<string> & RadioProps): React.JSX.Element;
|
|
9
|
-
export default Radio;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FieldHookConfig } from "formik";
|
|
4
|
-
export interface StarRatingInputProps {
|
|
5
|
-
starAmount?: number;
|
|
6
|
-
styles?: string;
|
|
7
|
-
}
|
|
8
|
-
declare function StarRatingInput({ starAmount, styles, ...props }: FieldHookConfig<string> & StarRatingInputProps): React.JSX.Element;
|
|
9
|
-
export default StarRatingInput;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="@types/react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FieldHookConfig } from "formik";
|
|
4
|
-
export interface SelectProps {
|
|
5
|
-
placeholder: string;
|
|
6
|
-
options: any[];
|
|
7
|
-
styles?: string;
|
|
8
|
-
}
|
|
9
|
-
declare function Select({ placeholder, options, styles, ...props }: FieldHookConfig<string> & SelectProps): React.JSX.Element;
|
|
10
|
-
export default Select;
|