gotrip-fx-transaction-form 0.1.0-uat.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/index.js +60056 -0
- package/package.json +14 -0
- package/types/components/AddTransaction/BankList.d.ts +20 -0
- package/types/components/AddTransaction/BankSelectionInput.d.ts +11 -0
- package/types/components/AddTransaction/Business.d.ts +7 -0
- package/types/components/AddTransaction/Education.d.ts +7 -0
- package/types/components/AddTransaction/GroupCustomers.d.ts +5 -0
- package/types/components/AddTransaction/SingularCustomer.d.ts +7 -0
- package/types/components/AddTransaction/UseCaseSelection.d.ts +21 -0
- package/types/components/AddUser/AddBookerForm.d.ts +6 -0
- package/types/components/Apps/AdminApp.d.ts +1 -0
- package/types/components/Apps/AgencyApp.d.ts +1 -0
- package/types/components/Apps/EmbededIndividualApp.d.ts +5 -0
- package/types/components/Apps/IndividualApp.d.ts +1 -0
- package/types/components/Apps/PartnerApp.d.ts +1 -0
- package/types/components/CurrencyExchangeRate/CurrencyExchangeRate.d.ts +10 -0
- package/types/components/CustomerSelection/CustomerSelection.d.ts +10 -0
- package/types/components/Dashboard/BookerSelectionInput.d.ts +7 -0
- package/types/components/Dashboard/DailyTransactionChart.d.ts +8 -0
- package/types/components/Dashboard/TotalCommissionCard.d.ts +9 -0
- package/types/components/Dashboard/TotalTransactionCard.d.ts +9 -0
- package/types/components/Dashboard/TransactionByStatusChart.d.ts +8 -0
- package/types/components/Dashboard/TransactionByTypeChart.d.ts +8 -0
- package/types/components/Layout/Layout.d.ts +6 -0
- package/types/components/Layout/NavBar/Navbar.d.ts +1 -0
- package/types/components/Menu/Menu.d.ts +1 -0
- package/types/components/Menu/MenuItem.d.ts +9 -0
- package/types/components/Modal/ErrorModal.d.ts +1 -0
- package/types/components/Modal/Modal.d.ts +12 -0
- package/types/components/Modal/SuccessModal.d.ts +1 -0
- package/types/components/Modal/WebcamModal.d.ts +7 -0
- package/types/components/Pagination/LimitDropdown.d.ts +6 -0
- package/types/components/TransactionList/BankSelectionInput.d.ts +7 -0
- package/types/components/TransactionList/CurrencySelectionInput.d.ts +7 -0
- package/types/components/TransactionList/StatusSelectionInput.d.ts +9 -0
- package/types/components/TransactionStatusBadge/TransactionStatusBadge.d.ts +4 -0
- package/types/components/UpdateUser/UpdateBookerForm.d.ts +7 -0
- package/types/components/UpdateUser/UpdateCommissionRateForm.d.ts +7 -0
- package/types/components/UserProfile/AccountSettingForm.d.ts +7 -0
- package/types/components/UserProfile/ChangePasswordForm.d.ts +5 -0
- package/types/components/UserStatusBadge/UserStatusBadge.d.ts +4 -0
- package/types/components/ui/link-button.d.ts +4 -0
- package/types/components/ui/pagination.d.ts +19 -0
- package/types/constants/airlines.d.ts +7 -0
- package/types/constants/airport-code-country.d.ts +5 -0
- package/types/constants/api-urls.d.ts +56 -0
- package/types/constants/countries.d.ts +6 -0
- package/types/constants/env.d.ts +5 -0
- package/types/constants/index.d.ts +7 -0
- package/types/constants/provinces.d.ts +6 -0
- package/types/design-systems/Button/Button.d.ts +14 -0
- package/types/design-systems/Chart/LineChart.d.ts +13 -0
- package/types/design-systems/Chart/PieChart.d.ts +9 -0
- package/types/design-systems/Drawer/Drawer.d.ts +12 -0
- package/types/design-systems/Input/Input.d.ts +5 -0
- package/types/design-systems/Stat/Stat.d.ts +8 -0
- package/types/design-systems/Toast/Toast.d.ts +7 -0
- package/types/embeded-main.d.ts +7 -0
- package/types/hooks/transanactions/useBusiness.hook.d.ts +202 -0
- package/types/hooks/transanactions/useEducation.hook.d.ts +270 -0
- package/types/hooks/useBookerList.d.ts +11 -0
- package/types/hooks/useConfirmTransaction.d.ts +32 -0
- package/types/hooks/useDashboard.d.ts +27 -0
- package/types/hooks/useDisclosure.d.ts +5 -0
- package/types/hooks/useEducationFXList.d.ts +8 -0
- package/types/hooks/useGroupCustomers.d.ts +231 -0
- package/types/hooks/useImportBookers.d.ts +104 -0
- package/types/hooks/useIsMobile.d.ts +1 -0
- package/types/hooks/useTransactionList.d.ts +21 -0
- package/types/hooks/useUserList.d.ts +12 -0
- package/types/hooks/useUserProfile.d.ts +7 -0
- package/types/hooks/useWindowSize.d.ts +4 -0
- package/types/index.d.ts +6 -0
- package/types/main.d.ts +1 -0
- package/types/pages/admin/home/UserList.d.ts +1 -0
- package/types/pages/admin/login/LoginPage.d.ts +6 -0
- package/types/pages/agency/add-booker/add-booker.d.ts +5 -0
- package/types/pages/agency/add-booker/import-booker.d.ts +1 -0
- package/types/pages/agency/add-transaction/add-transaction.d.ts +5 -0
- package/types/pages/agency/booker-list/index.d.ts +1 -0
- package/types/pages/agency/dashboard/dashboard.d.ts +1 -0
- package/types/pages/agency/login/LoginPage.d.ts +6 -0
- package/types/pages/agency/register/RegisterPage.d.ts +1 -0
- package/types/pages/agency/register/SupervisorRegisterForm.d.ts +1 -0
- package/types/pages/agency/register/UserRegisterForm.d.ts +1 -0
- package/types/pages/agency/register/UserTypeSelection.d.ts +7 -0
- package/types/pages/agency/tracsaction-list/TransactionList.d.ts +7 -0
- package/types/pages/agency/traveller-confirmation/TravellerConfirmation.d.ts +1 -0
- package/types/pages/agency/user-profile/user-profile.d.ts +1 -0
- package/types/pages/guest/home.d.ts +1 -0
- package/types/pages/partner/EducationFXList.d.ts +1 -0
- package/types/pages/partner/MemberList.d.ts +1 -0
- package/types/store/useAppStore.d.ts +25 -0
- package/types/store/useAuthStore.d.ts +12 -0
- package/types/types/app-actor.d.ts +6 -0
- package/types/types/enum.d.ts +17 -0
- package/types/types/request.dto.d.ts +17 -0
- package/types/types/response.dto.d.ts +147 -0
- package/types/types/user.d.ts +11 -0
- package/types/util/axios.d.ts +1 -0
- package/types/util/extract-api-error-codes.d.ts +2 -0
- package/types/util/fixed-thead.d.ts +1 -0
- package/types/util/formatter.d.ts +3 -0
- package/types/util/time.d.ts +1 -0
- package/types/util/toast.d.ts +1 -0
- package/types/util/transaction.util.d.ts +2 -0
- package/types/vite-env.d.ts +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gotrip-fx-transaction-form",
|
|
3
|
+
"version": "0.1.0-uat.1",
|
|
4
|
+
"description": "FX Transaction Form ES6 module",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "types/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"*.js",
|
|
9
|
+
"types/**/*"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type Bank = {
|
|
2
|
+
name: string;
|
|
3
|
+
code: string;
|
|
4
|
+
image: string;
|
|
5
|
+
isDefault?: boolean;
|
|
6
|
+
comingSoon?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const banks: Bank[];
|
|
9
|
+
type Props = {
|
|
10
|
+
selected?: Bank | null;
|
|
11
|
+
onSelect: (bank: Bank) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const BankList: ({ selected, onSelect }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
type MultipleBankListProps = {
|
|
15
|
+
selected?: Bank[];
|
|
16
|
+
onSelect?: (bank: Bank) => void;
|
|
17
|
+
onRemove?: (bank: Bank) => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const MultipleBankList: ({ selected, onSelect, onRemove }: MultipleBankListProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Currency } from '../../types/response.dto';
|
|
2
|
+
type Props = {
|
|
3
|
+
currencies: Currency[];
|
|
4
|
+
selectedCurrencyCode: string;
|
|
5
|
+
onSelectCurrency: (v: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const BankSelectionInput: ({ currencies, selectedCurrencyCode, onSelectCurrency, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum EUseCaseses {
|
|
2
|
+
SINGULAR = "SINGULAR",// khách lẻ
|
|
3
|
+
GROUP = "GROUP",// khách đoàn
|
|
4
|
+
EDUCATION = "EDUCATION",
|
|
5
|
+
MEDICAL = "MEDICAL",
|
|
6
|
+
INHERITANCE = "INHERITANCE",
|
|
7
|
+
SUBSIDY = "SUBSIDY",
|
|
8
|
+
IMMIGRATION = "IMMIGRATION",
|
|
9
|
+
BUSINESS = "BUSINESS"
|
|
10
|
+
}
|
|
11
|
+
type Props = {
|
|
12
|
+
useCase: EUseCaseses;
|
|
13
|
+
setUseCase: (useCase: EUseCaseses) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const UseCaseSelection: ({ useCase, setUseCase }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
type Props2 = {
|
|
17
|
+
selected: EUseCaseses;
|
|
18
|
+
setSelected: (selected: EUseCaseses) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const UseCaseSelectionForGuest: ({ selected, setSelected }: Props2) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdminApp: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AgencyApp: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IndividualApp: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PartnerApp: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
selectedCurrency: string;
|
|
3
|
+
selectedBank: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
setSelectedCurrency: (currency: string) => void;
|
|
6
|
+
setSelectedBank: (bank: string) => void;
|
|
7
|
+
setAmount: (amount: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const CurrencyExchangeRate: ({ selectedCurrency, selectedBank, amount, setSelectedCurrency, setSelectedBank, setAmount, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Customer = {
|
|
2
|
+
name: string;
|
|
3
|
+
eTicketNumber: string;
|
|
4
|
+
};
|
|
5
|
+
type Props = {
|
|
6
|
+
customers: Customer[];
|
|
7
|
+
onSelect: (customer: Customer) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const CustomerSelection: ({ customers, onSelect }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IUser } from '../../types/response.dto';
|
|
2
|
+
type Props = {
|
|
3
|
+
bookers: IUser[];
|
|
4
|
+
onSelectBooker: (v: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const BookerSelectionInput: ({ bookers, onSelectBooker }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type DailyTransactionChartProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
fromDate: string;
|
|
4
|
+
toDate: string;
|
|
5
|
+
bookerId?: number | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const DailyTransactionChart: ({ fromDate, toDate, title, bookerId, }: DailyTransactionChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface TotalCommissionCardProps {
|
|
3
|
+
label: string;
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate: string;
|
|
6
|
+
bookerId?: number | null;
|
|
7
|
+
}
|
|
8
|
+
declare const TotalCommissionCard: React.FC<TotalCommissionCardProps>;
|
|
9
|
+
export default TotalCommissionCard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface TotalTransactionCardProps {
|
|
3
|
+
label: string;
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate: string;
|
|
6
|
+
bookerId?: number | null;
|
|
7
|
+
}
|
|
8
|
+
declare const TotalTransactionCard: React.FC<TotalTransactionCardProps>;
|
|
9
|
+
export default TotalTransactionCard;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type TransactionByStatusChartProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
fromDate: string;
|
|
4
|
+
toDate: string;
|
|
5
|
+
bookerId?: number | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const TransactionByStatusChart: ({ fromDate, toDate, title, bookerId, }: TransactionByStatusChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type TransactionByTypeChartProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
fromDate: string;
|
|
4
|
+
toDate: string;
|
|
5
|
+
bookerId?: number | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const TransactionByTypeChart: ({ fromDate, toDate, title, bookerId, }: TransactionByTypeChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Navbar: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Menu: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
type Props = {
|
|
3
|
+
label: string;
|
|
4
|
+
icon: IconDefinition;
|
|
5
|
+
path: string;
|
|
6
|
+
active: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const MenuItem: ({ label, icon, path, active }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ErrorModal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
icon?: React.ReactNode;
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
footer?: React.ReactNode;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
showCloseButton?: boolean;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const Modal: ({ isOpen, icon, title, content, footer, size, showCloseButton, onClose, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SuccessModal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Currency } from '../../types/response.dto';
|
|
2
|
+
type Props = {
|
|
3
|
+
currencies: Currency[];
|
|
4
|
+
onSelectCurrency: (v: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const CurrencySelectionInput: ({ currencies, onSelectCurrency }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type UpdateBookerFormProps = {
|
|
2
|
+
bookerId: number;
|
|
3
|
+
onSubmitSuccess: () => void;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const UpdateBookerForm: ({ bookerId, onSubmitSuccess, onClose }: UpdateBookerFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type UpdateCommissionRateFormProps = {
|
|
2
|
+
userId: number;
|
|
3
|
+
onSubmitSuccess: () => void;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const UpdateCommissionRateForm: ({ userId, onSubmitSuccess, onClose, }: UpdateCommissionRateFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IUser } from '../../types/response.dto';
|
|
2
|
+
type AccountSettingFormProps = {
|
|
3
|
+
user: IUser | null;
|
|
4
|
+
updateUserProfile: (data: IUser) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const AccountSettingForm: ({ user, updateUserProfile }: AccountSettingFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { HTMLChakraProps, RecipeProps } from '@chakra-ui/react';
|
|
2
|
+
export interface LinkButtonProps extends HTMLChakraProps<'a', RecipeProps<'button'>> {
|
|
3
|
+
}
|
|
4
|
+
export declare const LinkButton: import('react').ForwardRefExoticComponent<LinkButtonProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ButtonProps, TextProps, Pagination as ChakraPagination } from '@chakra-ui/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type PaginationVariant = 'outline' | 'solid' | 'subtle';
|
|
4
|
+
export interface PaginationRootProps extends Omit<ChakraPagination.RootProps, 'type'> {
|
|
5
|
+
size?: ButtonProps['size'];
|
|
6
|
+
variant?: PaginationVariant;
|
|
7
|
+
getHref?: (page: number) => string;
|
|
8
|
+
}
|
|
9
|
+
export declare const PaginationRoot: React.ForwardRefExoticComponent<PaginationRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const PaginationEllipsis: React.ForwardRefExoticComponent<ChakraPagination.EllipsisProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const PaginationItem: React.ForwardRefExoticComponent<ChakraPagination.ItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export declare const PaginationPrevTrigger: React.ForwardRefExoticComponent<ChakraPagination.PrevTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export declare const PaginationNextTrigger: React.ForwardRefExoticComponent<ChakraPagination.NextTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export declare const PaginationItems: (props: React.HTMLAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
interface PageTextProps extends TextProps {
|
|
16
|
+
format?: 'short' | 'compact' | 'long';
|
|
17
|
+
}
|
|
18
|
+
export declare const PaginationPageText: React.ForwardRefExoticComponent<PageTextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const ApiUrls: {
|
|
2
|
+
auth: {
|
|
3
|
+
login: string;
|
|
4
|
+
register: string;
|
|
5
|
+
registerSupervisor: string;
|
|
6
|
+
};
|
|
7
|
+
transactionHandlers: {
|
|
8
|
+
list: string;
|
|
9
|
+
create: string;
|
|
10
|
+
createMany: string;
|
|
11
|
+
confirm: string;
|
|
12
|
+
sendBankTransaction: string;
|
|
13
|
+
checkTicketStatus: string;
|
|
14
|
+
getByBankTransactionId: (transactionId: string) => string;
|
|
15
|
+
guestCreateEducationTransaction: string;
|
|
16
|
+
};
|
|
17
|
+
currency: {
|
|
18
|
+
list: string;
|
|
19
|
+
};
|
|
20
|
+
bank: {
|
|
21
|
+
list: string;
|
|
22
|
+
};
|
|
23
|
+
travelport: {
|
|
24
|
+
getFlightInfo: string;
|
|
25
|
+
};
|
|
26
|
+
upload: {
|
|
27
|
+
signedUrl: string;
|
|
28
|
+
};
|
|
29
|
+
image: {
|
|
30
|
+
extractFlightTicket: string;
|
|
31
|
+
};
|
|
32
|
+
bid: {
|
|
33
|
+
list: string;
|
|
34
|
+
};
|
|
35
|
+
userHandlers: {
|
|
36
|
+
userProfile: string;
|
|
37
|
+
changePassword: string;
|
|
38
|
+
list: string;
|
|
39
|
+
approveUser: string;
|
|
40
|
+
bookerList: string;
|
|
41
|
+
createBooker: string;
|
|
42
|
+
createManyBooker: string;
|
|
43
|
+
getBooker: string;
|
|
44
|
+
updateBooker: string;
|
|
45
|
+
getCommissionRate: string;
|
|
46
|
+
updateCommissionRate: string;
|
|
47
|
+
getBookersOfSupervisor: string;
|
|
48
|
+
};
|
|
49
|
+
dashboardHandlers: {
|
|
50
|
+
getTotalCommissionAmount: string;
|
|
51
|
+
getTotalTransaction: string;
|
|
52
|
+
getTransactionCountGroupByType: string;
|
|
53
|
+
getTransactionCountByStatus: string;
|
|
54
|
+
getTransactionCountByDate: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
type?: 'button' | 'submit' | 'reset';
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
9
|
+
title?: string;
|
|
10
|
+
variant?: 'solid' | 'subtle' | 'surface' | 'outline' | 'ghost' | 'plain';
|
|
11
|
+
colorPalette?: 'blue' | 'green' | 'red' | 'yellow' | 'purple' | 'gray';
|
|
12
|
+
}
|
|
13
|
+
export declare const GTButton: ({ children, type, className, onClick, disabled, loading, size, title, variant, colorPalette, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface GTLineChartProps {
|
|
2
|
+
data: Array<{
|
|
3
|
+
[key: string]: string | number;
|
|
4
|
+
}>;
|
|
5
|
+
dataKey: string;
|
|
6
|
+
lines: Array<{
|
|
7
|
+
dataKey: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}>;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const GTLineChart: ({ data, dataKey, lines, loading }: GTLineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface GTDrawerProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
setOpen: (open: boolean) => void;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
header?: React.ReactNode;
|
|
7
|
+
footer?: React.ReactNode;
|
|
8
|
+
trigger?: React.ReactNode;
|
|
9
|
+
contentWidth?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const GTDrawer: React.FC<GTDrawerProps>;
|
|
12
|
+
export default GTDrawer;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
2
|
+
export declare const DEFAULT_INPUT_CLASS_NAME = "relative block w-full rounded-md border-0 p-1.5 text-gray-900 ring-1 ring-gray-300 ring-inset placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-blue-600 focus:ring-inset";
|
|
3
|
+
type InputProps = {} & UseFormRegisterReturn<any> & React.InputHTMLAttributes<HTMLInputElement>;
|
|
4
|
+
export declare const GTInput: ({ className, ...otherProps }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmbededIndividualAppProps } from './components/Apps/EmbededIndividualApp';
|
|
2
|
+
interface FxTransactionFormType {
|
|
3
|
+
init: (id: string, props: EmbededIndividualAppProps) => void;
|
|
4
|
+
}
|
|
5
|
+
declare const FxTransactionForm: FxTransactionFormType;
|
|
6
|
+
export type { EmbededIndividualAppProps, FxTransactionFormType };
|
|
7
|
+
export default FxTransactionForm;
|