enwawa-ui 4.1.6 → 4.1.8
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/lib/index.d.ts +21 -19
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +681 -678
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +681 -678
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/unidades.3f7a55ed.svg +0 -11
- package/lib/unidades.81420fe1.svg +0 -11
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode, ChangeEvent, SetStateAction, JSXElementConstructor, ReactElement } from "react";
|
|
1
|
+
import React, { CSSProperties, ReactNode, ChangeEvent, SetStateAction, JSXElementConstructor, ReactElement, Dispatch } from "react";
|
|
2
2
|
import { ButtonShape, ButtonSize, ButtonType } from "antd/es/button";
|
|
3
3
|
import { ButtonProps, AutoCompleteProps, DescriptionsProps, TableProps as _TableProps1, BreadcrumbProps as _BreadcrumbProps1, SwitchProps } from "antd/lib";
|
|
4
4
|
import { CheckboxProps, AlertProps, ColProps, BreadcrumbProps, TooltipProps, InputNumberProps, DropdownProps, MenuProps, SelectProps, PaginationProps, PopoverProps, RadioChangeEvent, UploadProps, RowProps as _RowProps1, CollapseProps, LayoutProps, SiderProps, SpaceProps, StepsProps, FormProps, CountdownProps, ModalFuncProps, FormInstance, TableProps, TableColumnsType, ModalProps as _ModalProps1, DatePickerProps, ImageProps, SpinProps, TagProps } from "antd";
|
|
@@ -18,7 +18,9 @@ import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
|
|
|
18
18
|
import { TextProps as _TextProps1 } from "antd/es/typography/Text";
|
|
19
19
|
import { Dayjs } from "dayjs";
|
|
20
20
|
import { AnyObject } from "antd/es/_util/type";
|
|
21
|
+
import { JSX } from "react/jsx-runtime";
|
|
21
22
|
import { CircleProps, GoogleMap, GoogleMapProps } from "@react-google-maps/api";
|
|
23
|
+
import { MessageInstance } from "antd/es/message/interface";
|
|
22
24
|
import { WatchOptions } from "rc-field-form/es/interface";
|
|
23
25
|
import { CheckboxChangeEvent } from "antd/es/checkbox";
|
|
24
26
|
import { DrawerProps } from "antd/es/drawer";
|
|
@@ -3025,7 +3027,7 @@ export interface TmCrudPageProps<RecordType = AnyObject, FormType = any> {
|
|
|
3025
3027
|
breadcrumbItems?: MlBreadcrumbProps['items'];
|
|
3026
3028
|
padding?: string;
|
|
3027
3029
|
}
|
|
3028
|
-
export const TmCrudPage: <RecordType extends AnyObject, FormType extends Store>({ columns, data, loadingTable, formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, subtitle, subContent, open, pageSize, currentPage, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, showSearchBox, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, tableTitle, buttonAddText, addButtonOnClick, onChangePagination, onChangeTable, total, showTotal, disabledButtons, searchBoxOnSearch, searchBoxPlaceholder, tableHeaderCustomLeftElements, pagination, handleCloseCallback, tableTitleLevel, secondaryButtonText, secondaryOnClick, showFormStepper, onBack, padding, expandable, breadcrumbItems, }: TmCrudPageProps<RecordType, FormType>) =>
|
|
3030
|
+
export const TmCrudPage: <RecordType extends AnyObject, FormType extends Store>({ columns, data, loadingTable, formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, subtitle, subContent, open, pageSize, currentPage, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, showSearchBox, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, tableTitle, buttonAddText, addButtonOnClick, onChangePagination, onChangeTable, total, showTotal, disabledButtons, searchBoxOnSearch, searchBoxPlaceholder, tableHeaderCustomLeftElements, pagination, handleCloseCallback, tableTitleLevel, secondaryButtonText, secondaryOnClick, showFormStepper, onBack, padding, expandable, breadcrumbItems, }: TmCrudPageProps<RecordType, FormType>) => JSX.Element;
|
|
3029
3031
|
/**
|
|
3030
3032
|
* Properties for the OrEventContentDuty component.
|
|
3031
3033
|
*/
|
|
@@ -3362,7 +3364,7 @@ export interface TmCalendarPageProps<_RecordType = AnyObject, FormType = any> {
|
|
|
3362
3364
|
*/
|
|
3363
3365
|
loadingSearchFilter?: boolean;
|
|
3364
3366
|
}
|
|
3365
|
-
export const TmCalendarPage: <RecordType extends AnyObject, FormType extends Store>({ formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, buttonAddText, buttonIcon, buttonOnClick, open, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, loadingSearchFilter, onSelectDate, loadingTable, }: TmCalendarPageProps<RecordType, FormType>) =>
|
|
3367
|
+
export const TmCalendarPage: <RecordType extends AnyObject, FormType extends Store>({ formSteps, onValuesChange, onCloseLeftDrawer, leftDrawerContent, openLeftDrawer, buttonAddText, buttonIcon, buttonOnClick, open, currentFormStep, titleLeftDrawer, leftDrawerWidth, drawerContent, showDrawerContent, drawerTitle, drawerWidth, firstButtonText, secondButtonText, onClickFirstButton, onClickSecondButton, $margin, title, actionPopOverText, disabledButtons, handleCloseCallback, showFormStepper, onBack, events, resources, resourceTitle, displayDate, onChangeSegment, segmentOptions, columnsFilters, buttonsFilters, filterText, leftArrowOnOnClick, rightArrowOnOnClick, currentDate, onSelectResource, loadingSearchFilter, onSelectDate, loadingTable, }: TmCalendarPageProps<RecordType, FormType>) => JSX.Element;
|
|
3366
3368
|
export interface MarkersArrayMap {
|
|
3367
3369
|
type: 'add' | 'oneWay' | 'return';
|
|
3368
3370
|
color?: OrMarkProps['color'];
|
|
@@ -3643,7 +3645,7 @@ export interface TmCustomTabsPageProps<FormType = any> {
|
|
|
3643
3645
|
*/
|
|
3644
3646
|
breadcrumbItems?: MlBreadcrumbProps['items'];
|
|
3645
3647
|
}
|
|
3646
|
-
export const TmCustomTabsPage: <FormType extends Store>({ avatar, username, phone, balanceLabel, balanceValue, infoIcon, infoLabel, infoValue, mainButtonLabel, secondaryButtonLabel, mainButtonIcon, secondaryButtonIcon, onClickLeftArrow, onClickMainAction, onClickSecondaryAction, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, tabsProps, breadcrumbItems, }: TmCustomTabsPageProps<FormType>) =>
|
|
3648
|
+
export const TmCustomTabsPage: <FormType extends Store>({ avatar, username, phone, balanceLabel, balanceValue, infoIcon, infoLabel, infoValue, mainButtonLabel, secondaryButtonLabel, mainButtonIcon, secondaryButtonIcon, onClickLeftArrow, onClickMainAction, onClickSecondaryAction, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, tabsProps, breadcrumbItems, }: TmCustomTabsPageProps<FormType>) => JSX.Element;
|
|
3647
3649
|
interface IDashboardItems {
|
|
3648
3650
|
gutter: {
|
|
3649
3651
|
xs?: number;
|
|
@@ -3706,7 +3708,7 @@ export interface TmDashboardProps<FormType = any> {
|
|
|
3706
3708
|
drawerWidth?: number;
|
|
3707
3709
|
};
|
|
3708
3710
|
}
|
|
3709
|
-
export const TmDashboard: ({ headerProps, itemsLeft, itemsRight, drawerConfig, }: TmDashboardProps) =>
|
|
3711
|
+
export const TmDashboard: ({ headerProps, itemsLeft, itemsRight, drawerConfig, }: TmDashboardProps) => JSX.Element;
|
|
3710
3712
|
export interface OrDetailsPageProps<FormType = any> {
|
|
3711
3713
|
/**
|
|
3712
3714
|
* The ID for input
|
|
@@ -3773,7 +3775,7 @@ export interface OrDetailsPageProps<FormType = any> {
|
|
|
3773
3775
|
*/
|
|
3774
3776
|
orAlertConfig?: OrAlertProps;
|
|
3775
3777
|
}
|
|
3776
|
-
export const OrDetailsPage: <FormType extends Store>({ title, bordered, items, extra, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, orAlertConfig, }: OrDetailsPageProps<FormType>) =>
|
|
3778
|
+
export const OrDetailsPage: <FormType extends Store>({ title, bordered, items, extra, formSteps, handleCloseCallback, open, drawerTitle, drawerWidth, disabledButtons, currentFormStep, showFormStepper, onValuesChange, orAlertConfig, }: OrDetailsPageProps<FormType>) => JSX.Element;
|
|
3777
3779
|
export interface TmDescriptionsPageProps {
|
|
3778
3780
|
/**
|
|
3779
3781
|
* The ID for input
|
|
@@ -3800,7 +3802,7 @@ export interface TmDescriptionsPageProps {
|
|
|
3800
3802
|
*/
|
|
3801
3803
|
header?: React.ReactElement;
|
|
3802
3804
|
}
|
|
3803
|
-
export const TmDescriptionsPage: ({ items, header, }: TmDescriptionsPageProps) =>
|
|
3805
|
+
export const TmDescriptionsPage: ({ items, header, }: TmDescriptionsPageProps) => JSX.Element;
|
|
3804
3806
|
export interface TmFormListPageProps<FormType = any> {
|
|
3805
3807
|
formList?: {
|
|
3806
3808
|
title?: string;
|
|
@@ -3811,7 +3813,7 @@ export interface TmFormListPageProps<FormType = any> {
|
|
|
3811
3813
|
formButtonProps?: AtButtonProps;
|
|
3812
3814
|
}[];
|
|
3813
3815
|
}
|
|
3814
|
-
export const TmFormListPage: <FormType extends Store>({ formList, }: TmFormListPageProps<FormType>) =>
|
|
3816
|
+
export const TmFormListPage: <FormType extends Store>({ formList, }: TmFormListPageProps<FormType>) => JSX.Element;
|
|
3815
3817
|
export interface OrFlagGridProps {
|
|
3816
3818
|
/**
|
|
3817
3819
|
* The ID for cards
|
|
@@ -4090,8 +4092,8 @@ export interface TmQuoteResultPageProps {
|
|
|
4090
4092
|
*/
|
|
4091
4093
|
emptyCallback?: () => void;
|
|
4092
4094
|
}
|
|
4093
|
-
export const TmQuoteResultPage: ({ $backgroundSrc, rentalResult, rentalVehicleItem, loading, emptyMessage, emptyButtonText, emptyCallback, }: TmQuoteResultPageProps) =>
|
|
4094
|
-
export const useMessage: () => readonly [
|
|
4095
|
+
export const TmQuoteResultPage: ({ $backgroundSrc, rentalResult, rentalVehicleItem, loading, emptyMessage, emptyButtonText, emptyCallback, }: TmQuoteResultPageProps) => JSX.Element;
|
|
4096
|
+
export const useMessage: () => readonly [MessageInstance, ReactElement<unknown, string | JSXElementConstructor<any>>];
|
|
4095
4097
|
export interface ModalProps extends ModalFuncProps {
|
|
4096
4098
|
variant: 'confirm' | 'warning' | 'info' | 'error';
|
|
4097
4099
|
}
|
|
@@ -4102,10 +4104,10 @@ export const useModal: () => {
|
|
|
4102
4104
|
} & {
|
|
4103
4105
|
then<T>(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise<T>;
|
|
4104
4106
|
};
|
|
4105
|
-
setVariant:
|
|
4106
|
-
contextHolder:
|
|
4107
|
+
setVariant: Dispatch<SetStateAction<"warning" | "info" | "error" | "confirm">>;
|
|
4108
|
+
contextHolder: ReactElement<any, string | JSXElementConstructor<any>>;
|
|
4107
4109
|
};
|
|
4108
|
-
export const useForm: <T = any>() => [
|
|
4110
|
+
export const useForm: <T = any>() => [FormInstance<T>];
|
|
4109
4111
|
export const useFormWatch: <T = any>(name: string | string[], form?: FormInstance | WatchOptions<FormInstance>) => T;
|
|
4110
4112
|
export interface TmRechargePageProps<FormType = any> {
|
|
4111
4113
|
/**
|
|
@@ -4281,7 +4283,7 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
4281
4283
|
rate?: number;
|
|
4282
4284
|
currenciesEnabled?: boolean;
|
|
4283
4285
|
}
|
|
4284
|
-
export const TmRechargePage: <FormType extends Store>({ title, subtitle, balance, cardTitle, fontSize, height, ruleAmount, form, initialValues, onFinish, amountPlaceholder, currenciesOptions, defaultCurrency, amountToPayText, amountToPay, couponText, discount, totalText, taxText, tax, payBtn, drawerTitle, open, paymentMethods, currentPaymentSelectedFields, disabledButton, showPaymentMethods, termsDisclaimer, onCloseDrawer, showLeftArrow, onClickLeftArrow, editable, rate, values, currenciesEnabled }: TmRechargePageProps<FormType>) =>
|
|
4286
|
+
export const TmRechargePage: <FormType extends Store>({ title, subtitle, balance, cardTitle, fontSize, height, ruleAmount, form, initialValues, onFinish, amountPlaceholder, currenciesOptions, defaultCurrency, amountToPayText, amountToPay, couponText, discount, totalText, taxText, tax, payBtn, drawerTitle, open, paymentMethods, currentPaymentSelectedFields, disabledButton, showPaymentMethods, termsDisclaimer, onCloseDrawer, showLeftArrow, onClickLeftArrow, editable, rate, values, currenciesEnabled }: TmRechargePageProps<FormType>) => JSX.Element;
|
|
4285
4287
|
export interface TmRentalsPageProps<FormType = any> {
|
|
4286
4288
|
/**
|
|
4287
4289
|
* Form Steps info
|
|
@@ -4320,7 +4322,7 @@ export interface TmRentalsPageProps<FormType = any> {
|
|
|
4320
4322
|
*/
|
|
4321
4323
|
disclaimerMessage?: string;
|
|
4322
4324
|
}
|
|
4323
|
-
export const TmRentalsPage: <FormType extends Store>({ formSteps, onValuesChange, currentFormStep, disabledButtons, showFormStepper, $backgroundSrc, disclaimer, disclaimerHref, disclaimerMessage, }: TmRentalsPageProps<FormType>) =>
|
|
4325
|
+
export const TmRentalsPage: <FormType extends Store>({ formSteps, onValuesChange, currentFormStep, disabledButtons, showFormStepper, $backgroundSrc, disclaimer, disclaimerHref, disclaimerMessage, }: TmRentalsPageProps<FormType>) => JSX.Element;
|
|
4324
4326
|
export interface TmRequestsPageProps<_RecordType = AnyObject, FormType = any> {
|
|
4325
4327
|
username?: string;
|
|
4326
4328
|
/**
|
|
@@ -4905,7 +4907,7 @@ export interface OrTableProps<RecordType = AnyObject> {
|
|
|
4905
4907
|
*/
|
|
4906
4908
|
components?: TableProps<RecordType>['components'];
|
|
4907
4909
|
}
|
|
4908
|
-
export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) =>
|
|
4910
|
+
export const OrTable: <RecordType extends AnyObject>({ bordered, loading, pagination, size, sticky, rowSelection, ...props }: OrTableProps<RecordType>) => JSX.Element;
|
|
4909
4911
|
export type OrSelectTableOption<T = any> = {
|
|
4910
4912
|
label: string;
|
|
4911
4913
|
value: string;
|
|
@@ -4992,7 +4994,7 @@ export interface OrDraggableTableProps<RecordType = AnyObject> {
|
|
|
4992
4994
|
*/
|
|
4993
4995
|
showDraggableIcon?: boolean;
|
|
4994
4996
|
}
|
|
4995
|
-
export const OrDraggableTable: <RecordType extends AnyObject>({ data, columns, onDragEnd, showDraggableIcon, }: OrDraggableTableProps<RecordType>) =>
|
|
4997
|
+
export const OrDraggableTable: <RecordType extends AnyObject>({ data, columns, onDragEnd, showDraggableIcon, }: OrDraggableTableProps<RecordType>) => JSX.Element;
|
|
4996
4998
|
interface TextProps extends AtTextProps {
|
|
4997
4999
|
text: string;
|
|
4998
5000
|
}
|
|
@@ -5787,7 +5789,7 @@ export interface OrPaymentMethodsProps<FormType = any> {
|
|
|
5787
5789
|
*/
|
|
5788
5790
|
onCloseDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
5789
5791
|
}
|
|
5790
|
-
export const OrPaymentMethods: <FormType extends Store>({ drawerTitle, open, paymentMethods, currentPaymentSelectedFields, showPaymentMethods, termsDisclaimer, onCloseDrawer, disabledButton, }: OrPaymentMethodsProps<FormType>) =>
|
|
5792
|
+
export const OrPaymentMethods: <FormType extends Store>({ drawerTitle, open, paymentMethods, currentPaymentSelectedFields, showPaymentMethods, termsDisclaimer, onCloseDrawer, disabledButton, }: OrPaymentMethodsProps<FormType>) => JSX.Element;
|
|
5791
5793
|
export interface OrTableModuleLayoutProps {
|
|
5792
5794
|
/**
|
|
5793
5795
|
* Page title
|
|
@@ -6183,7 +6185,7 @@ export interface AtCircularChartProps<T> {
|
|
|
6183
6185
|
height?: string;
|
|
6184
6186
|
}
|
|
6185
6187
|
export const AtCircularChart: React.FC<AtCircularChartProps<ChartData>>;
|
|
6186
|
-
export const MultipleDatePicker: () =>
|
|
6188
|
+
export const MultipleDatePicker: () => JSX.Element;
|
|
6187
6189
|
export interface AtDatePickerPros {
|
|
6188
6190
|
/**
|
|
6189
6191
|
* If true, the date picker will be disabled
|