react-frontend-common-components 0.0.92 → 0.0.94
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/components/app-avatar/app-avatar.d.ts +8 -0
- package/dist/components/app-back-arrow/app-back-arrow.d.ts +12 -0
- package/dist/components/app-badge/app-badge.d.ts +15 -0
- package/dist/components/app-bread-crumb/app-bread-crumb.d.ts +6 -0
- package/dist/components/app-button/app-button.d.ts +16 -0
- package/dist/components/app-card/app-card.d.ts +14 -0
- package/dist/components/app-carousel/app-carousel.d.ts +15 -0
- package/dist/components/app-chart/app-chart.d.ts +13 -0
- package/dist/components/app-checkbox-text/app-checkbox-text.d.ts +10 -0
- package/dist/components/app-collapse/app-collapse.d.ts +13 -0
- package/dist/components/app-custom-loader/app-custom-loader.d.ts +6 -0
- package/dist/components/app-divider/app-divider.d.ts +6 -0
- package/dist/components/app-float-button/app-float-button.d.ts +9 -0
- package/dist/components/app-image-box/app-image-box.d.ts +15 -0
- package/dist/components/app-input/app-input.d.ts +26 -0
- package/dist/components/app-label/app-label.d.ts +10 -0
- package/dist/components/app-list/app-list.d.ts +8 -0
- package/dist/components/app-loader/app-loader.d.ts +10 -0
- package/dist/components/app-location-map/app-location-map.d.ts +16 -0
- package/dist/components/app-modal/app-modal.d.ts +16 -0
- package/dist/components/app-otp-field/app-otp-field.d.ts +16 -0
- package/dist/components/app-pagination/app-pagination.d.ts +12 -0
- package/dist/components/app-password-input/app-password-input.d.ts +25 -0
- package/dist/components/app-phone-input/app-phone-input.d.ts +11 -0
- package/dist/components/app-popover/app-popover.d.ts +13 -0
- package/dist/components/app-progress/app-progress.d.ts +12 -0
- package/dist/components/app-radio-group/app-radio-group.d.ts +13 -0
- package/dist/components/app-select/app-select.d.ts +25 -0
- package/dist/components/app-select-add/app-select-add.d.ts +10 -0
- package/dist/components/app-sidebar/app-sidebar.d.ts +23 -0
- package/dist/components/app-tab/app-tab.d.ts +11 -0
- package/dist/components/app-table/app-table.d.ts +14 -0
- package/dist/components/app-tag/app-tag.d.ts +13 -0
- package/dist/components/app-textarea/app-textarea.d.ts +23 -0
- package/dist/components/app-title/app-title.d.ts +10 -0
- package/dist/components/app-toggle-button/app-toggle-button.d.ts +10 -0
- package/dist/components/app-upload-image/app-upload-image.d.ts +18 -0
- package/dist/components/over-view-card/over-view-card.d.ts +8 -0
- package/dist/index.d.ts +449 -0
- package/dist/index.js +8 -22
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +64 -0
- package/dist/index.mjs.map +1 -0
- package/dist/themes/icons/icons.d.ts +10 -0
- package/package.json +6 -6
- package/rollup.config.js +6 -2
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { AvatarProps } from "antd";
|
3
|
+
interface AppAvatarProps extends AvatarProps {
|
4
|
+
fallbackIcon?: React.ReactNode;
|
5
|
+
className?: string;
|
6
|
+
}
|
7
|
+
declare const AppAvatar: ({ src, fallbackIcon, className, ...props }: AppAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export default AppAvatar;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { MouseEventHandler } from "react";
|
3
|
+
import "./app-back-arrow.css";
|
4
|
+
interface BackArrowProps {
|
5
|
+
text?: string;
|
6
|
+
href?: string;
|
7
|
+
className?: string;
|
8
|
+
backIcon?: React.ReactNode;
|
9
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
10
|
+
}
|
11
|
+
declare const AppBackArrow: ({ text, href, className, backIcon, onClick, }: BackArrowProps) => import("react/jsx-runtime").JSX.Element;
|
12
|
+
export default AppBackArrow;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { BadgeProps as AntdBadgeProps } from "antd";
|
3
|
+
import "./app-badge.css";
|
4
|
+
interface AppBadgeProps extends Omit<AntdBadgeProps, "content"> {
|
5
|
+
content?: React.ReactNode;
|
6
|
+
children: React.ReactNode;
|
7
|
+
className?: string;
|
8
|
+
ribbon?: {
|
9
|
+
text: React.ReactNode;
|
10
|
+
color?: string;
|
11
|
+
placement?: "start" | "end";
|
12
|
+
};
|
13
|
+
}
|
14
|
+
declare const AppBadge: ({ content, children, className, ribbon, ...props }: AppBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
15
|
+
export default AppBadge;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { BreadcrumbProps } from "antd";
|
2
|
+
interface AppBreadcrumbProps extends BreadcrumbProps {
|
3
|
+
className?: string;
|
4
|
+
}
|
5
|
+
declare const AppBreadcrumb: ({ className, ...props }: AppBreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
6
|
+
export default AppBreadcrumb;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { MouseEventHandler } from "react";
|
2
|
+
import "./app-button.css";
|
3
|
+
import React from "react";
|
4
|
+
interface AppButtonProps {
|
5
|
+
size?: "small" | "middle" | "large" | "default" | undefined;
|
6
|
+
className?: string;
|
7
|
+
handleClick?: MouseEventHandler<HTMLElement>;
|
8
|
+
icon?: React.ReactNode;
|
9
|
+
text?: string;
|
10
|
+
disabled?: boolean;
|
11
|
+
iconPosition?: string;
|
12
|
+
isLoading?: boolean;
|
13
|
+
type?: "default" | "text" | "link" | "primary" | "dashed" | undefined;
|
14
|
+
}
|
15
|
+
declare const AppButton: ({ type, size, className, handleClick, icon, text, disabled, iconPosition, isLoading, }: AppButtonProps) => import("react/jsx-runtime").JSX.Element;
|
16
|
+
export default AppButton;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { CardProps } from "antd/lib/card";
|
3
|
+
import "./app-card.css";
|
4
|
+
interface AppCardProps extends CardProps {
|
5
|
+
title?: React.ReactNode;
|
6
|
+
extra?: React.ReactNode;
|
7
|
+
cover?: React.ReactNode;
|
8
|
+
hoverable?: boolean;
|
9
|
+
actions?: React.ReactNode[];
|
10
|
+
className?: string;
|
11
|
+
borderless?: boolean;
|
12
|
+
}
|
13
|
+
declare const AppCard: ({ title, extra, cover, hoverable, actions, className, borderless, ...cardProps }: AppCardProps) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
export default AppCard;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { CarouselProps } from "antd";
|
3
|
+
import "./app-carousel.css";
|
4
|
+
interface AppCarouselProps extends CarouselProps {
|
5
|
+
items: React.ReactNode[];
|
6
|
+
className?: string;
|
7
|
+
nxtIcon?: React.ReactNode;
|
8
|
+
prevIcon?: React.ReactNode;
|
9
|
+
showIcon?: boolean;
|
10
|
+
showDots?: boolean;
|
11
|
+
showLines?: boolean;
|
12
|
+
autoplay?: boolean;
|
13
|
+
}
|
14
|
+
declare const AppCarousel: ({ items, className, nxtIcon, prevIcon, showIcon, showDots, autoplay, ...rest }: AppCarouselProps) => import("react/jsx-runtime").JSX.Element;
|
15
|
+
export default AppCarousel;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ChartData, ChartOptions } from "chart.js";
|
2
|
+
import "./app-chart.css";
|
3
|
+
type ChartType = "bar" | "line" | "pie" | "doughnut";
|
4
|
+
interface AppChartProps {
|
5
|
+
type: ChartType;
|
6
|
+
data: ChartData<"bar" | "line" | "pie" | "doughnut">;
|
7
|
+
options?: ChartOptions<"bar" | "line" | "pie" | "doughnut">;
|
8
|
+
className?: string;
|
9
|
+
height?: number;
|
10
|
+
width?: number;
|
11
|
+
}
|
12
|
+
declare const AppChart: ({ type, data, options, className, height, width, ...props }: AppChartProps) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export default AppChart;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { CheckboxChangeEvent } from "antd/es/checkbox";
|
2
|
+
import "./app-checkbox-text.css";
|
3
|
+
interface AppCheckboxTextProps {
|
4
|
+
text: string;
|
5
|
+
checked?: boolean;
|
6
|
+
handleChange?: (e: CheckboxChangeEvent) => void;
|
7
|
+
className?: string;
|
8
|
+
}
|
9
|
+
declare const AppCheckboxText: ({ text, checked, handleChange, className, }: AppCheckboxTextProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export default AppCheckboxText;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { CollapseProps, CollapsePanelProps } from "antd/lib/collapse";
|
3
|
+
interface AppCollapseProps extends CollapseProps {
|
4
|
+
panels?: {
|
5
|
+
key: string;
|
6
|
+
header: React.ReactNode;
|
7
|
+
content: React.ReactNode;
|
8
|
+
collapsible?: CollapsePanelProps["collapsible"];
|
9
|
+
}[];
|
10
|
+
className?: string;
|
11
|
+
}
|
12
|
+
declare const AppCollapse: ({ panels, defaultActiveKey, onChange, expandIconPosition, ghost, accordion, expandIcon, size, bordered, activeKey, className, ...restProps }: AppCollapseProps) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export default AppCollapse;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { FloatButtonProps } from "antd";
|
3
|
+
interface AppFloatButtonProps extends FloatButtonProps {
|
4
|
+
className?: string;
|
5
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
6
|
+
onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
|
7
|
+
}
|
8
|
+
declare const AppFloatButton: ({ className, onClick, onMouseEnter, ...props }: AppFloatButtonProps) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export default AppFloatButton;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { MouseEventHandler } from "react";
|
2
|
+
import "./app-image-box.css";
|
3
|
+
interface ImageType {
|
4
|
+
src: string;
|
5
|
+
}
|
6
|
+
interface AppImageBoxProps {
|
7
|
+
width?: number;
|
8
|
+
height?: number;
|
9
|
+
text?: string;
|
10
|
+
image: ImageType;
|
11
|
+
className?: string;
|
12
|
+
handleClick?: MouseEventHandler<HTMLElement>;
|
13
|
+
}
|
14
|
+
declare const AppImageBox: ({ width, height, text, image, className, handleClick, }: AppImageBoxProps) => import("react/jsx-runtime").JSX.Element;
|
15
|
+
export default AppImageBox;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { InputProps } from "antd";
|
2
|
+
import { ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from "react";
|
3
|
+
import "./app-input.css";
|
4
|
+
interface AppInputProps extends InputProps {
|
5
|
+
className?: string;
|
6
|
+
label?: string;
|
7
|
+
name?: string;
|
8
|
+
value?: string;
|
9
|
+
dataTestId?: string;
|
10
|
+
id?: string;
|
11
|
+
disabled?: boolean;
|
12
|
+
handleChange?: ChangeEventHandler<HTMLInputElement>;
|
13
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
14
|
+
onPressEnter?: KeyboardEventHandler<HTMLInputElement>;
|
15
|
+
defaultValue?: string;
|
16
|
+
isAutoFocus?: boolean;
|
17
|
+
triggerFocus?: boolean;
|
18
|
+
type?: string;
|
19
|
+
isOptional?: boolean;
|
20
|
+
errorMessage?: string;
|
21
|
+
suffixIcon?: React.ReactNode;
|
22
|
+
prefixIcon?: React.ReactNode;
|
23
|
+
required?: boolean;
|
24
|
+
}
|
25
|
+
declare const AppInput: ({ className, label, name, value, dataTestId, type, id, disabled, handleChange, onClick, defaultValue, onPressEnter, isAutoFocus, triggerFocus, isOptional, errorMessage, suffixIcon, prefixIcon, required, ...props }: AppInputProps) => import("react/jsx-runtime").JSX.Element;
|
26
|
+
export default AppInput;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import "./app-label.css";
|
2
|
+
interface AppLabelProps {
|
3
|
+
text: string;
|
4
|
+
htmlFor?: string;
|
5
|
+
color?: string;
|
6
|
+
fontSize?: string;
|
7
|
+
className?: string;
|
8
|
+
}
|
9
|
+
declare const AppLabel: ({ text, htmlFor, color, fontSize, className, }: AppLabelProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export default AppLabel;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { ListProps } from "antd";
|
3
|
+
interface AppListProps<T> extends ListProps<T> {
|
4
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
5
|
+
className?: string;
|
6
|
+
}
|
7
|
+
declare const AppList: <T extends unknown>({ renderItem, dataSource, className, ...props }: AppListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export default AppList;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./app-loader.css";
|
3
|
+
type LoaderType = "spinner" | "skeleton" | "custom";
|
4
|
+
interface AppLoaderProps {
|
5
|
+
type?: LoaderType;
|
6
|
+
customLoader?: React.ReactNode;
|
7
|
+
className?: string;
|
8
|
+
}
|
9
|
+
declare const AppLoader: ({ type, customLoader, className }: AppLoaderProps) => string | number | true | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element;
|
10
|
+
export default AppLoader;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./app-location-map.css";
|
3
|
+
interface LatLng {
|
4
|
+
lat: number;
|
5
|
+
lng: number;
|
6
|
+
}
|
7
|
+
interface LocationMapProps {
|
8
|
+
cityId?: LatLng;
|
9
|
+
className?: string;
|
10
|
+
containerStyle?: React.CSSProperties;
|
11
|
+
clickableIcons?: boolean;
|
12
|
+
zoom?: number;
|
13
|
+
mapKey: string;
|
14
|
+
}
|
15
|
+
declare const AppLocationMap: ({ cityId, className, containerStyle, clickableIcons, zoom, mapKey, }: LocationMapProps) => import("react/jsx-runtime").JSX.Element;
|
16
|
+
export default AppLocationMap;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./app-modal.css";
|
3
|
+
interface AppModalProps {
|
4
|
+
visible: boolean;
|
5
|
+
onClose: () => void;
|
6
|
+
title?: string;
|
7
|
+
description?: string;
|
8
|
+
children: React.ReactNode;
|
9
|
+
footerButtons?: React.ReactNode;
|
10
|
+
alignTitleLeft?: boolean;
|
11
|
+
className?: string;
|
12
|
+
closeIcon?: React.ReactNode;
|
13
|
+
width?: number;
|
14
|
+
}
|
15
|
+
declare const AppModal: ({ visible, onClose, title, description, children, footerButtons, alignTitleLeft, className, closeIcon, width, }: AppModalProps) => import("react/jsx-runtime").JSX.Element;
|
16
|
+
export default AppModal;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./app-otp-field.css";
|
3
|
+
interface AppOtpFieldProps {
|
4
|
+
otp: string;
|
5
|
+
onChange: (otp: string) => void;
|
6
|
+
numInputs?: number;
|
7
|
+
otpError?: string;
|
8
|
+
resendTimeout?: number;
|
9
|
+
onResendOtp?: () => void;
|
10
|
+
setResendTimeout: (timeout: number) => void;
|
11
|
+
className?: string;
|
12
|
+
resendTxt?: React.ReactNode;
|
13
|
+
resendTime: string;
|
14
|
+
}
|
15
|
+
declare const AppOtpField: ({ otp, onChange, numInputs, otpError, resendTimeout, onResendOtp, setResendTimeout, className, resendTxt, resendTime, }: AppOtpFieldProps) => import("react/jsx-runtime").JSX.Element;
|
16
|
+
export default AppOtpField;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { PaginationProps } from "antd/lib/pagination";
|
2
|
+
interface AppPaginationProps extends PaginationProps {
|
3
|
+
total: number;
|
4
|
+
currentPage: number;
|
5
|
+
pageSize?: number;
|
6
|
+
onPageChange: (page: number, pageSize: number) => void;
|
7
|
+
showGotoBox: boolean;
|
8
|
+
sizeChanger: boolean;
|
9
|
+
className?: string;
|
10
|
+
}
|
11
|
+
declare const AppPagination: ({ total, currentPage, pageSize, onPageChange, showGotoBox, sizeChanger, className, ...rest }: AppPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
12
|
+
export default AppPagination;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from "react";
|
3
|
+
import "./app-password-input.css";
|
4
|
+
interface AppPasswordInputProps {
|
5
|
+
className?: string;
|
6
|
+
label?: string;
|
7
|
+
name?: string;
|
8
|
+
value?: string;
|
9
|
+
dataTestId?: string;
|
10
|
+
id?: string;
|
11
|
+
disabled?: boolean;
|
12
|
+
handleChange?: ChangeEventHandler<HTMLInputElement>;
|
13
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
14
|
+
onPressEnter?: KeyboardEventHandler<HTMLInputElement>;
|
15
|
+
defaultValue?: string;
|
16
|
+
isAutoFocus?: boolean;
|
17
|
+
triggerFocus?: boolean;
|
18
|
+
errorMessage?: string;
|
19
|
+
autoComplete?: string;
|
20
|
+
icon?: React.ReactNode;
|
21
|
+
hiddenIcon?: React.ReactNode;
|
22
|
+
showIcon?: boolean;
|
23
|
+
}
|
24
|
+
declare const AppPasswordInput: ({ label, name, value, dataTestId, id, disabled, handleChange, onClick, defaultValue, onPressEnter, className, errorMessage, isAutoFocus, triggerFocus, autoComplete, icon, hiddenIcon, showIcon, }: AppPasswordInputProps) => import("react/jsx-runtime").JSX.Element;
|
25
|
+
export default AppPasswordInput;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import "react-phone-input-2/lib/style.css";
|
2
|
+
import "./app-phone-input.css";
|
3
|
+
interface AppPhoneInputProps {
|
4
|
+
countryCode?: string;
|
5
|
+
phone: string;
|
6
|
+
handleChange: (phone: string, countryCode: string, uniCode: string) => void;
|
7
|
+
className: string;
|
8
|
+
id: string;
|
9
|
+
}
|
10
|
+
declare const AppPhoneInput: ({ handleChange, countryCode, phone, className, id, }: AppPhoneInputProps) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
export default AppPhoneInput;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { PopoverProps } from "antd/lib/popover";
|
2
|
+
import "./app-popover.css";
|
3
|
+
interface AppPopoverProps extends PopoverProps {
|
4
|
+
content: React.ReactNode;
|
5
|
+
title?: React.ReactNode;
|
6
|
+
children: React.ReactNode;
|
7
|
+
bgColor?: string;
|
8
|
+
triggerType?: "hover" | "click";
|
9
|
+
color?: string;
|
10
|
+
className?: string;
|
11
|
+
}
|
12
|
+
declare const AppPopover: ({ content, title, children, bgColor, color, triggerType, className, ...popoverProps }: AppPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export default AppPopover;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
interface AppProgressProps {
|
2
|
+
percent: number;
|
3
|
+
type?: "line" | "circle" | "dashboard";
|
4
|
+
strokeColor?: string;
|
5
|
+
trailColor?: string;
|
6
|
+
size?: "default" | "small";
|
7
|
+
status?: "success" | "exception" | "normal" | "active";
|
8
|
+
showInfo?: boolean;
|
9
|
+
className?: string;
|
10
|
+
}
|
11
|
+
declare const AppProgress: ({ percent, type, strokeColor, trailColor, size, status, showInfo, className, }: AppProgressProps) => import("react/jsx-runtime").JSX.Element;
|
12
|
+
export default AppProgress;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import "./app-radio-group.css";
|
2
|
+
interface Option {
|
3
|
+
value: number;
|
4
|
+
text: string;
|
5
|
+
}
|
6
|
+
interface AppRadioGroupProps {
|
7
|
+
options: Option[];
|
8
|
+
selectedValue: number | null;
|
9
|
+
onChange: (value: number) => void;
|
10
|
+
className?: string;
|
11
|
+
}
|
12
|
+
declare const AppRadioGroup: ({ options, selectedValue, onChange, className, }: AppRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export default AppRadioGroup;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { SelectProps } from "antd";
|
2
|
+
import { MouseEventHandler } from "react";
|
3
|
+
import "./app-select.css";
|
4
|
+
interface Options {
|
5
|
+
value: string;
|
6
|
+
label: string;
|
7
|
+
flag?: string;
|
8
|
+
}
|
9
|
+
interface AppSelectProps extends SelectProps {
|
10
|
+
className?: string;
|
11
|
+
value?: string | null;
|
12
|
+
dataTestId?: string;
|
13
|
+
id?: string;
|
14
|
+
disabled?: boolean;
|
15
|
+
handleChange?: (value: string | string[]) => void;
|
16
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
17
|
+
options?: Options[];
|
18
|
+
onSelectChange?: (value: string) => void;
|
19
|
+
required?: boolean;
|
20
|
+
placeholder?: string;
|
21
|
+
errorMessage?: string;
|
22
|
+
showSearch?: boolean;
|
23
|
+
}
|
24
|
+
declare const AppSelect: ({ value, handleChange, options, disabled, placeholder, className, errorMessage, showSearch, required, ...props }: AppSelectProps) => import("react/jsx-runtime").JSX.Element;
|
25
|
+
export default AppSelect;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { SelectProps } from "antd";
|
2
|
+
import "./app-select-add.css";
|
3
|
+
interface AppSelectAddProps extends SelectProps {
|
4
|
+
options?: SelectProps["options"];
|
5
|
+
placeholder?: string;
|
6
|
+
onChange?: (value: string) => void;
|
7
|
+
className?: string;
|
8
|
+
}
|
9
|
+
declare const AppSelectAdd: ({ options, placeholder, onChange, className, ...rest }: AppSelectAddProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export default AppSelectAdd;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./app-sidebar.css";
|
3
|
+
interface SidebarProps {
|
4
|
+
links: {
|
5
|
+
onClick?: () => void;
|
6
|
+
label: string;
|
7
|
+
path: string;
|
8
|
+
icon: React.ReactNode;
|
9
|
+
activeIcon?: React.ReactNode;
|
10
|
+
tag?: React.ReactNode;
|
11
|
+
}[];
|
12
|
+
sideBarHead?: React.ReactNode;
|
13
|
+
footerLinks?: {
|
14
|
+
label: string;
|
15
|
+
path: string;
|
16
|
+
icon: React.ReactNode;
|
17
|
+
activeIcon?: React.ReactNode;
|
18
|
+
}[];
|
19
|
+
className?: string;
|
20
|
+
activeLink?: string;
|
21
|
+
}
|
22
|
+
declare const Sidebar: ({ links, sideBarHead, footerLinks, className, activeLink, }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
23
|
+
export default Sidebar;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { TabsProps } from "antd";
|
2
|
+
import "./app-tab.css";
|
3
|
+
interface AppTabProps {
|
4
|
+
className?: string;
|
5
|
+
items?: TabsProps["items"];
|
6
|
+
handleChange?: (activeKey: string) => void;
|
7
|
+
defaultActiveKey?: string;
|
8
|
+
activeKey?: string;
|
9
|
+
}
|
10
|
+
declare const AppTab: ({ className, items, handleChange, defaultActiveKey, activeKey, }: AppTabProps) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
export default AppTab;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { TableProps } from "antd";
|
2
|
+
import { ColumnsType } from "antd/lib/table";
|
3
|
+
interface AppTableProps<T> extends TableProps<T> {
|
4
|
+
columns: ColumnsType<T>;
|
5
|
+
dataSource: T[];
|
6
|
+
rowKey?: string;
|
7
|
+
bordered?: boolean;
|
8
|
+
pagination?: TableProps<T>["pagination"];
|
9
|
+
size?: "small" | "middle" | "large";
|
10
|
+
scroll?: TableProps<T>["scroll"];
|
11
|
+
className?: string;
|
12
|
+
}
|
13
|
+
declare const AppTable: <T extends object>({ columns, dataSource, rowKey, bordered, pagination, size, scroll, className, ...tableProps }: AppTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
export default AppTable;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./app-tag.css";
|
3
|
+
interface AppTagProps {
|
4
|
+
color?: string;
|
5
|
+
closable?: boolean;
|
6
|
+
onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
7
|
+
style?: React.CSSProperties;
|
8
|
+
className?: string;
|
9
|
+
children: React.ReactNode;
|
10
|
+
closeIcon?: React.ReactNode;
|
11
|
+
}
|
12
|
+
declare const AppTag: ({ color, closable, onClick, style, className, children, closeIcon, }: AppTagProps) => import("react/jsx-runtime").JSX.Element | null;
|
13
|
+
export default AppTag;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ChangeEventHandler, KeyboardEventHandler } from "react";
|
2
|
+
import "./app-textarea.css";
|
3
|
+
interface textAreaProps {
|
4
|
+
id?: string;
|
5
|
+
label?: string;
|
6
|
+
name?: string;
|
7
|
+
value?: string;
|
8
|
+
dataTestId?: string;
|
9
|
+
defaultValue?: string;
|
10
|
+
onPressEnter?: KeyboardEventHandler<HTMLTextAreaElement>;
|
11
|
+
handleChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
12
|
+
autoSize?: {
|
13
|
+
minRows?: number;
|
14
|
+
maxRows?: number;
|
15
|
+
};
|
16
|
+
rows?: number;
|
17
|
+
cols?: number;
|
18
|
+
placeholder?: string;
|
19
|
+
className?: string;
|
20
|
+
error?: string;
|
21
|
+
}
|
22
|
+
declare const AppTextarea: ({ id, placeholder, name, value, dataTestId, defaultValue, onPressEnter, handleChange, rows, cols, className, error, }: textAreaProps) => import("react/jsx-runtime").JSX.Element;
|
23
|
+
export default AppTextarea;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./app-title.css";
|
3
|
+
interface TitleProps {
|
4
|
+
mainText: React.ReactNode;
|
5
|
+
className?: string;
|
6
|
+
subText?: string;
|
7
|
+
level?: 1 | 2 | 3 | 4 | 5;
|
8
|
+
}
|
9
|
+
declare const AppTitle: ({ mainText, className, subText, level, }: TitleProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export default AppTitle;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import "./app-toggle-button.css";
|
2
|
+
interface AppToggleButtonProps {
|
3
|
+
initialChecked?: boolean;
|
4
|
+
onChange?: (checked: boolean) => void;
|
5
|
+
checkedLabel?: string;
|
6
|
+
uncheckedLabel?: string;
|
7
|
+
className?: string;
|
8
|
+
}
|
9
|
+
declare const AppToggleButton: ({ initialChecked, onChange, checkedLabel, uncheckedLabel, className, }: AppToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export default AppToggleButton;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./app-upload-image.css";
|
3
|
+
interface AppUploadImageProps {
|
4
|
+
className?: string;
|
5
|
+
uploadIcon?: React.ReactNode;
|
6
|
+
value?: string;
|
7
|
+
text?: string;
|
8
|
+
onFileChange?: (file: File | null) => void;
|
9
|
+
alertMessages?: {
|
10
|
+
invalidType?: string;
|
11
|
+
sizeExceed?: string;
|
12
|
+
};
|
13
|
+
acceptedFormats?: string[];
|
14
|
+
maxSizeMb?: number;
|
15
|
+
altText?: string;
|
16
|
+
}
|
17
|
+
declare const AppUploadImage: ({ className, uploadIcon, value, text, onFileChange, alertMessages, acceptedFormats, maxSizeMb, altText, }: AppUploadImageProps) => import("react/jsx-runtime").JSX.Element;
|
18
|
+
export default AppUploadImage;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import "./over-view-card.css";
|
2
|
+
interface OverViewCardProps {
|
3
|
+
className?: string;
|
4
|
+
text?: string;
|
5
|
+
number?: number | string;
|
6
|
+
}
|
7
|
+
declare const OverViewCard: ({ className, text, number }: OverViewCardProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export default OverViewCard;
|