esewa-ui-library 1.0.1
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/README.md +1774 -0
- package/dist/@types/index.d.ts +61 -0
- package/dist/components/AlertCard/eSewaAlertCard.d.ts +18 -0
- package/dist/components/AppBar/eSewaAppbar.d.ts +15 -0
- package/dist/components/Button/eSewaButton.d.ts +19 -0
- package/dist/components/Card/eSewaCard.d.ts +7 -0
- package/dist/components/Carousel/eSewaCarousel.d.ts +15 -0
- package/dist/components/CheckBox/eSewaCheckbox.d.ts +11 -0
- package/dist/components/Chip/eSewaChipGroup.d.ts +15 -0
- package/dist/components/DatePicker-native/eSewaDatePicker.d.ts +25 -0
- package/dist/components/Datepicker/eSewaDatePicker.d.ts +18 -0
- package/dist/components/Dialog/eSewaDialog.d.ts +18 -0
- package/dist/components/Divider/eSewaDivider.d.ts +12 -0
- package/dist/components/FullPageLoadingScreen/EsewaFullPageLoadingScreen.d.ts +6 -0
- package/dist/components/Grid/eSewaGrid.d.ts +14 -0
- package/dist/components/Icon/esIcon.d.ts +10 -0
- package/dist/components/Image/eSewaImage.d.ts +12 -0
- package/dist/components/InputFeild/eSewaInputFeild.d.ts +23 -0
- package/dist/components/InputFeildTextArea/eSewaInputFeildTextArea.d.ts +17 -0
- package/dist/components/MultiSelect/eSewaMultiSelect.d.ts +12 -0
- package/dist/components/NativeSelect/eSewaSelectNative.d.ts +19 -0
- package/dist/components/NepaliDatepicker/eSewaNepaliDatepicker.d.ts +10 -0
- package/dist/components/Radio/eSewaRadio.d.ts +12 -0
- package/dist/components/Rating/eSewaRating.d.ts +9 -0
- package/dist/components/ReactSelect/eSewaSelect.d.ts +19 -0
- package/dist/components/SanitizeHtml/eSewaSanitizeHtml.d.ts +6 -0
- package/dist/components/ScrollVIew/eSewaScrolView.d.ts +10 -0
- package/dist/components/Skeleton/eSewaSkeleton.d.ts +11 -0
- package/dist/components/Tag/eSewaTag.d.ts +11 -0
- package/dist/components/Tooltip/eSewaToolip.d.ts +8 -0
- package/dist/hooks/useDebounce/useDebounce.d.ts +1 -0
- package/dist/hooks/useMessage/useMessage.d.ts +9 -0
- package/dist/hooks/useSessionStorage/useSessionStorage.d.ts +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +7919 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +7890 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/pages/componentTesting/ComponentTesting.d.ts +3 -0
- package/dist/pages/confirmationPage/eSewaConfirmationPage.d.ts +19 -0
- package/dist/pages/demoOrderDetail/orderDetails.d.ts +10 -0
- package/dist/pages/demoProductDetail/productDetail.d.ts +17 -0
- package/dist/pages/demoProductListing/productList.d.ts +4 -0
- package/dist/pages/normalPayment/normalPayment.d.ts +4 -0
- package/dist/pages/productPayment/ProductPayemnt.d.ts +3 -0
- package/dist/pages/productPayment/additionalDetails/AdditionalDetails.d.ts +3 -0
- package/dist/pages/productPayment/comfirmation/Confirmation.d.ts +19 -0
- package/dist/pages/productPayment/commissionDetails/CommissionCard.d.ts +8 -0
- package/dist/pages/productPayment/interface/index.d.ts +40 -0
- package/dist/pages/productPayment/paymentDetails/PaymentDetails.d.ts +3 -0
- package/dist/provider/eSewaPaymentProvider.d.ts +16 -0
- package/dist/provider/eSewaProvider.d.ts +21 -0
- package/dist/provider/eSewaThemeProvider.d.ts +4 -0
- package/dist/services/eSewaService.d.ts +4 -0
- package/dist/theme/borderRadius.d.ts +10 -0
- package/dist/theme/colors.d.ts +349 -0
- package/dist/theme/fontSize.d.ts +17 -0
- package/dist/theme/index.d.ts +645 -0
- package/dist/theme/shadow.d.ts +32 -0
- package/dist/theme/spacing.d.ts +19 -0
- package/dist/theme/values.d.ts +22 -0
- package/dist/utils/index.d.ts +9 -0
- package/package.json +88 -0
- package/src/styles/fonts/es-icon/es-font-icon.eot +0 -0
- package/src/styles/fonts/es-icon/es-font-icon.svg +598 -0
- package/src/styles/fonts/es-icon/es-font-icon.ttf +0 -0
- package/src/styles/fonts/es-icon/es-font-icon.woff +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare enum REQUEST_TYPE_ENUM {
|
|
2
|
+
INIT_APP = "INIT_APP",
|
|
3
|
+
REQUEST_PAYMENT = "REQUEST_PAYMENT",
|
|
4
|
+
USER_DETAIL_ACCESS = "USER_DETAIL_ACCESS",
|
|
5
|
+
MEDIA_ACCESS = "MEDIA_ACCESS",
|
|
6
|
+
LOCATION_ACCESS = "LOCATION_ACCESS",
|
|
7
|
+
VALIDATE_TRANSACTION = "VALIDATE_TRANSACTION"
|
|
8
|
+
}
|
|
9
|
+
export declare enum CALLBACK_TYPE_ENUM {
|
|
10
|
+
INIT_APP_CALLBACK = "INIT_APP_CALLBACK",
|
|
11
|
+
REQUEST_PAYMENT_CALLBACK = "REQUEST_PAYMENT_CALLBACK",
|
|
12
|
+
USER_DETAIL_ACCESS_CALLBACK = "USER_DETAIL_ACCESS_CALLBACK",
|
|
13
|
+
MEDIA_ACCESS_CALLBACK = "MEDIA_ACCESS_CALLBACK",
|
|
14
|
+
LOCATION_ACCESS_CALLBACK = "LOCATION_ACCESS_CALLBACK",
|
|
15
|
+
VALIDATE_TRANSACTION_CALLBACK = "VALIDATE_TRANSACTION_CALLBACK"
|
|
16
|
+
}
|
|
17
|
+
export interface MINI_APP_RESPONSE_TYPE {
|
|
18
|
+
requestType: string;
|
|
19
|
+
responseType: 'success' | 'error';
|
|
20
|
+
response: any;
|
|
21
|
+
}
|
|
22
|
+
export interface REQUEST_DATA_TYPE {
|
|
23
|
+
uuid?: string;
|
|
24
|
+
device_unique_id?: string;
|
|
25
|
+
merchant_identifier?: string;
|
|
26
|
+
vendorIdentifier?: any;
|
|
27
|
+
requestType: REQUEST_TYPE_ENUM;
|
|
28
|
+
method?: 'GET' | 'POST';
|
|
29
|
+
data?: any;
|
|
30
|
+
callbackKey?: string;
|
|
31
|
+
token?: any;
|
|
32
|
+
transactionCode?: string;
|
|
33
|
+
action?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare type Callback = (data: MINI_APP_RESPONSE_TYPE) => void;
|
|
36
|
+
declare global {
|
|
37
|
+
interface Window {
|
|
38
|
+
miniAppResponse: any;
|
|
39
|
+
Android: {
|
|
40
|
+
requestApp?: (data: any) => void;
|
|
41
|
+
INIT_APP_CALLBACK?: Callback | null;
|
|
42
|
+
REQUEST_PAYMENT_CALLBACK?: Callback | null;
|
|
43
|
+
USER_DETAIL_ACCESS_CALLBACK?: Callback | null;
|
|
44
|
+
MEDIA_ACCESS_CALLBACK?: Callback | null;
|
|
45
|
+
LOCATION_ACCESS_CALLBACK?: Callback | null;
|
|
46
|
+
VALIDATE_TRANSACTION_CALLBACK?: Callback | null;
|
|
47
|
+
};
|
|
48
|
+
webkit: {
|
|
49
|
+
requestApp: (data: any) => void;
|
|
50
|
+
receiveFromApp: (data: any) => void;
|
|
51
|
+
messageHandlers: {
|
|
52
|
+
iOSNative: {
|
|
53
|
+
requestApp: (data: any) => void;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
receiveDataFromWeb: (data: any) => void;
|
|
57
|
+
receiveDataFromApp: (data: any) => void;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function getDataFromMiniApp(e: any): void;
|
|
61
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AlertCardProps {
|
|
3
|
+
alertCardClass?: string;
|
|
4
|
+
variant?: 'primary' | 'warning' | 'danger' | 'info';
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
descriptionIcon?: string;
|
|
8
|
+
showDescriptionIcon?: boolean;
|
|
9
|
+
titleIcon?: string;
|
|
10
|
+
dismissIcon?: string;
|
|
11
|
+
showDismissIcon?: boolean;
|
|
12
|
+
onDismiss?: () => void;
|
|
13
|
+
showCardFooter?: boolean;
|
|
14
|
+
buttonLabel?: string;
|
|
15
|
+
buttonOnClick?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const ESewaAlertCard: React.FC<AlertCardProps>;
|
|
18
|
+
export default ESewaAlertCard;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AppBarProps {
|
|
3
|
+
title?: string | any;
|
|
4
|
+
icon?: string;
|
|
5
|
+
imageUrl?: string;
|
|
6
|
+
onBackIconClick?: () => void;
|
|
7
|
+
onTitleClick?: () => void;
|
|
8
|
+
onActionIconClick?: () => void;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
titleposition?: 'left' | 'center' | 'right';
|
|
12
|
+
actionIcon?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const ESewaAppBar: React.FC<AppBarProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ButtonProps {
|
|
3
|
+
type?: 'button' | 'submit' | 'reset';
|
|
4
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'info' | 'text';
|
|
5
|
+
onClick?: (e: any) => void;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
outlined?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
fullwidth?: boolean;
|
|
11
|
+
icon?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
iconPlacement?: 'start' | 'end';
|
|
14
|
+
iconClass?: string;
|
|
15
|
+
size?: 'large' | 'medium' | 'small';
|
|
16
|
+
textTransform?: 'uppercase' | 'capitalized';
|
|
17
|
+
}
|
|
18
|
+
export declare const ESewaButton: React.FC<ButtonProps>;
|
|
19
|
+
export default ESewaButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type CarouselProps = {
|
|
3
|
+
items: React.ReactNode[];
|
|
4
|
+
direction?: 'horizontal' | 'vertical';
|
|
5
|
+
itemWidth?: string;
|
|
6
|
+
itemHeight?: string;
|
|
7
|
+
showScrollbar?: boolean;
|
|
8
|
+
showIndicator?: boolean;
|
|
9
|
+
visibleItems?: number;
|
|
10
|
+
showNav?: boolean;
|
|
11
|
+
autoplay?: boolean;
|
|
12
|
+
autoplayInterval?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const ESewaCarousel: React.FC<CarouselProps>;
|
|
15
|
+
export default ESewaCarousel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type CheckboxProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
onChange?: (checked: any) => void;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
labelClass?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const ESewaCheckbox: React.FC<CheckboxProps>;
|
|
11
|
+
export default ESewaCheckbox;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ChipGroupProps {
|
|
3
|
+
selection: 'single' | 'multiple';
|
|
4
|
+
required?: boolean;
|
|
5
|
+
chips: ChipProps[];
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
interface ChipProps {
|
|
9
|
+
showIcon?: boolean;
|
|
10
|
+
icon?: string;
|
|
11
|
+
text: string;
|
|
12
|
+
id: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const ESewaChipGroup: React.FC<ChipGroupProps>;
|
|
15
|
+
export default ESewaChipGroup;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ESewaDatePickerProps {
|
|
3
|
+
value?: {
|
|
4
|
+
start: Date | null;
|
|
5
|
+
end: Date | null;
|
|
6
|
+
};
|
|
7
|
+
onChange?: (range: {
|
|
8
|
+
start: Date | null;
|
|
9
|
+
end: Date | null;
|
|
10
|
+
}) => void;
|
|
11
|
+
format?: string;
|
|
12
|
+
minDate?: Date;
|
|
13
|
+
maxDate?: Date;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
variant?: 'outlined' | 'borderless' | 'filled';
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
allowClear?: boolean;
|
|
18
|
+
pickerType?: 'date' | 'week' | 'month' | 'year';
|
|
19
|
+
popupStyle?: React.CSSProperties;
|
|
20
|
+
popupClassName?: string;
|
|
21
|
+
mode?: 'single' | 'range';
|
|
22
|
+
label?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const ESewaDatePickerNative: React.FC<ESewaDatePickerProps>;
|
|
25
|
+
export default ESewaDatePickerNative;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DatePickerProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
min?: string;
|
|
8
|
+
max?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
validationMessage?: string;
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const ESewaDatePicker: ({ id, name, label, value, min, max, required, readOnly, disabled, className, onChange, validationMessage, autoFocus, ...rest }: DatePickerProps) => React.JSX.Element;
|
|
18
|
+
export default ESewaDatePicker;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type DialogProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
showLeftIcon?: boolean;
|
|
5
|
+
leftIcon?: string;
|
|
6
|
+
showCloseIcon?: boolean;
|
|
7
|
+
closeIcon?: string;
|
|
8
|
+
okText?: string;
|
|
9
|
+
cancelText?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
onOk?: () => void;
|
|
13
|
+
onCancel?: () => void;
|
|
14
|
+
position?: 'center' | 'top' | 'bottom';
|
|
15
|
+
disableSubmitButton?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const ESewaDialog: React.FC<DialogProps>;
|
|
18
|
+
export default ESewaDialog;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './../../styles/varaiables.scss';
|
|
3
|
+
declare type DividerProps = {
|
|
4
|
+
color?: string;
|
|
5
|
+
thickness?: string;
|
|
6
|
+
width?: string;
|
|
7
|
+
margin?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
dotted?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const ESewaDivider: React.FC<DividerProps>;
|
|
12
|
+
export default ESewaDivider;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './eSewaGrid.scss';
|
|
3
|
+
declare type GridProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare type GridItemProps = {
|
|
8
|
+
colSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const ESewaGrid: React.FC<GridProps>;
|
|
13
|
+
declare const ESewaGridItem: React.FC<GridItemProps>;
|
|
14
|
+
export { ESewaGrid, ESewaGridItem };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "../../styles/es-font-icon.scss";
|
|
3
|
+
interface IconProps {
|
|
4
|
+
icon: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
iconPrimaryColor?: string;
|
|
7
|
+
iconSecondaryColor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ESIcon: React.FC<IconProps>;
|
|
10
|
+
export default ESIcon;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type LazyImageProps = {
|
|
3
|
+
src?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
|
+
className?: string;
|
|
8
|
+
fallbackSrc?: string;
|
|
9
|
+
loading?: 'lazy' | 'eager';
|
|
10
|
+
};
|
|
11
|
+
export declare const ESewaImage: React.FC<LazyImageProps>;
|
|
12
|
+
export default ESewaImage;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface InputFieldProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
type?: 'text' | 'password' | 'number' | 'email' | 'date' | 'checkbox' | 'radio' | 'select' | 'textarea';
|
|
5
|
+
name?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
value?: string | number;
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
pattern?: string;
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
step?: number;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
validationMessage?: string;
|
|
19
|
+
autoFocus?: boolean;
|
|
20
|
+
onChange?: any;
|
|
21
|
+
}
|
|
22
|
+
export declare const ESewaInputField: React.FC<InputFieldProps>;
|
|
23
|
+
export default ESewaInputField;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ChangeEvent } from 'react';
|
|
2
|
+
interface InputFieldTextAreaProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
rows?: number;
|
|
13
|
+
validationMessage?: string;
|
|
14
|
+
onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ESewaInputFeildTextArea: React.FC<InputFieldTextAreaProps>;
|
|
17
|
+
export default ESewaInputFeildTextArea;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Option {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface MultiSelectProps {
|
|
7
|
+
options: Option[];
|
|
8
|
+
onChange: (selectedItems: Option[]) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ESewaMultiSelect: React.FC<MultiSelectProps>;
|
|
12
|
+
export default ESewaMultiSelect;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ChangeEvent } from 'react';
|
|
2
|
+
declare type SelectProps = {
|
|
3
|
+
onChange?: (e: ChangeEvent<HTMLSelectElement>) => void;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
options?: Options[];
|
|
6
|
+
label?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
validationMessage?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
fullwidth?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare type Options = {
|
|
15
|
+
label: string;
|
|
16
|
+
value: any;
|
|
17
|
+
};
|
|
18
|
+
export declare const ESewaSelectNative: React.FC<SelectProps>;
|
|
19
|
+
export default ESewaSelectNative;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface NepaliDatepickerProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (val: string) => void;
|
|
7
|
+
calenderLocale?: 'en' | 'ne';
|
|
8
|
+
}
|
|
9
|
+
export declare const ESewaNepaliDatepicker: React.FC<NepaliDatepickerProps>;
|
|
10
|
+
export default ESewaNepaliDatepicker;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type RadioProps = {
|
|
3
|
+
key: any;
|
|
4
|
+
label?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
onChange?: (checked: any) => void;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
labelClass?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const ESewaRadio: React.FC<RadioProps>;
|
|
12
|
+
export default ESewaRadio;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SelectComponentProps<T> {
|
|
3
|
+
multi?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
name?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
onChange: (values: any) => void;
|
|
11
|
+
values?: T[];
|
|
12
|
+
options: T[];
|
|
13
|
+
searchBy?: string;
|
|
14
|
+
validationMessage?: string;
|
|
15
|
+
searchPlaceholder?: string;
|
|
16
|
+
labelField: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const ESewaSelect: React.FC<SelectComponentProps<any>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SkeletonProps {
|
|
3
|
+
loading: boolean;
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
circle?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const ESewaSkeleton: React.FC<SkeletonProps>;
|
|
11
|
+
export default ESewaSkeleton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TagProps {
|
|
3
|
+
text: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'info';
|
|
6
|
+
iconPosition?: 'start' | 'end';
|
|
7
|
+
size?: 'normal' | 'small';
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ESewaTag: React.FC<TagProps>;
|
|
11
|
+
export default ESewaTag;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDebounce: <T>(value: T, delay: number) => T;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const useMessage: () => {
|
|
3
|
+
success: (content: string, duration?: number | undefined) => void;
|
|
4
|
+
error: (content: string, duration?: number | undefined) => void;
|
|
5
|
+
info: (content: string, duration?: number | undefined) => void;
|
|
6
|
+
warning: (content: string, duration?: number | undefined) => void;
|
|
7
|
+
MessageComponent: React.JSX.Element | null;
|
|
8
|
+
};
|
|
9
|
+
export default useMessage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSessionStorage: (key: string) => readonly [string | null, (value: string) => void];
|