@faasjs/ant-design 0.0.3-beta.68 → 0.0.3-beta.69

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.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd/es/config-pro
2
2
  import { StyleProviderProps } from '@ant-design/cssinjs/lib/StyleContext';
3
3
  import { MessageInstance } from 'antd/es/message/interface';
4
4
  import { NotificationInstance } from 'antd/es/notification/interface';
5
- import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, TimePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps } from 'antd';
5
+ import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, TimePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
6
6
  export { Drawer, Modal } from 'antd';
7
7
  import { BrowserRouterProps, RouteProps } from 'react-router-dom';
8
8
  import * as react from 'react';
@@ -18,6 +18,7 @@ import * as antd_es_form from 'antd/es/form';
18
18
  import * as rc_field_form_es_useWatch from 'rc-field-form/es/useWatch';
19
19
  import * as antd_es_form_hooks_useFormInstance from 'antd/es/form/hooks/useFormInstance';
20
20
  import * as antd_es_form_Form from 'antd/es/form/Form';
21
+ import { Tab } from 'rc-tabs/es/interface';
21
22
 
22
23
  interface ModalProps extends ModalProps$1 {
23
24
  children?: JSX.Element | JSX.Element[] | string;
@@ -500,6 +501,22 @@ interface RoutesProps {
500
501
  */
501
502
  declare function Routes(props: RoutesProps): JSX.Element;
502
503
 
504
+ interface TabProps extends Partial<Tab> {
505
+ id: string;
506
+ title?: React.ReactNode;
507
+ children: React.ReactNode;
508
+ }
509
+ interface TabsProps extends Omit<TabsProps$1, 'items'> {
510
+ /** auto skip null tab */
511
+ items: (TabProps | null)[];
512
+ }
513
+ /**
514
+ * Tabs component with Ant Design & FaasJS
515
+ *
516
+ * @ref https://ant.design/components/tabs/
517
+ */
518
+ declare function Tabs(props: TabsProps): JSX.Element;
519
+
503
520
  interface TitleProps {
504
521
  title: string | string[];
505
522
  /** ` - ` as default */
@@ -534,4 +551,4 @@ interface TitleProps {
534
551
  */
535
552
  declare function Title(props: TitleProps): JSX.Element;
536
553
 
537
- export { App, AppProps, BaseItemProps, BaseOption, Blank, BlankProps, ConfigContext, ConfigProvider, ConfigProviderProps, Description, DescriptionItemContentProps, DescriptionItemProps, DescriptionProps, DrawerProps, ErrorBoundary, ErrorBoundaryProps, ExtendDescriptionItemProps, ExtendDescriptionTypeProps, ExtendFormItemProps, ExtendFormTypeProps, ExtendTableItemProps, ExtendTableTypeProps, ExtendTypes, FaasDataInjection, FaasDataWrapper, FaasDataWrapperProps, FaasItemProps, FaasItemType, FaasItemTypeValue, Form, FormItem, FormItemProps, FormProps, FormSubmitProps, Link, LinkProps, Loading, LoadingProps, ModalProps, PageNotFound, Routes, RoutesProps, Table, TableItemProps, TableProps, Title, TitleProps, UnionFaasItemElement, UnionFaasItemInjection, UnionFaasItemProps, UnionFaasItemRender, UnionScene, setDrawerProps, setModalProps, transferOptions, transferValue, useApp, useAppProps, useConfigContext, useDrawer, useModal };
554
+ export { App, AppProps, BaseItemProps, BaseOption, Blank, BlankProps, ConfigContext, ConfigProvider, ConfigProviderProps, Description, DescriptionItemContentProps, DescriptionItemProps, DescriptionProps, DrawerProps, ErrorBoundary, ErrorBoundaryProps, ExtendDescriptionItemProps, ExtendDescriptionTypeProps, ExtendFormItemProps, ExtendFormTypeProps, ExtendTableItemProps, ExtendTableTypeProps, ExtendTypes, FaasDataInjection, FaasDataWrapper, FaasDataWrapperProps, FaasItemProps, FaasItemType, FaasItemTypeValue, Form, FormItem, FormItemProps, FormProps, FormSubmitProps, Link, LinkProps, Loading, LoadingProps, ModalProps, PageNotFound, Routes, RoutesProps, TabProps, Table, TableItemProps, TableProps, Tabs, TabsProps, Title, TitleProps, UnionFaasItemElement, UnionFaasItemInjection, UnionFaasItemProps, UnionFaasItemRender, UnionScene, setDrawerProps, setModalProps, transferOptions, transferValue, useApp, useAppProps, useConfigContext, useDrawer, useModal };