fsk-design-system 1.0.3 → 1.0.4
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 +0 -4
- package/dist/components/Alert/Alert.d.ts +2 -0
- package/dist/components/Alert/Alert.types.d.ts +1 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +2 -0
- package/dist/components/Avatar/Avatar.types.d.ts +1 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Badge/Badge.d.ts +2 -0
- package/dist/components/Badge/Badge.types.d.ts +5 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +1 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.types.d.ts +6 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +5 -0
- package/dist/components/Card/Card.types.d.ts +11 -0
- package/dist/components/Card/LinkCard/LinkCard.d.ts +2 -0
- package/dist/components/Card/LinkCard/LinkCard.types.d.ts +11 -0
- package/dist/components/Card/LinkCard/index.d.ts +2 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Carousel/Carousel.d.ts +2 -0
- package/dist/components/Carousel/Carousel.types.d.ts +1 -0
- package/dist/components/Carousel/index.d.ts +2 -0
- package/dist/components/Cascader/Cascader.d.ts +16 -0
- package/dist/components/Cascader/Cascader.form.d.ts +8 -0
- package/dist/components/Cascader/Cascader.types.d.ts +6 -0
- package/dist/components/Cascader/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/Cascader/Dropdown/Dropdown.types.d.ts +5 -0
- package/dist/components/Cascader/Dropdown/index.d.ts +1 -0
- package/dist/components/Cascader/index.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.form.d.ts +8 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +9 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Collapse/Collapse.d.ts +2 -0
- package/dist/components/Collapse/Collapse.types.d.ts +1 -0
- package/dist/components/Collapse/index.d.ts +2 -0
- package/dist/components/Comment/Comment.d.ts +5 -0
- package/dist/components/Comment/Comment.types.d.ts +15 -0
- package/dist/components/Comment/Form/Form.d.ts +2 -0
- package/dist/components/Comment/Form/Form.types.d.ts +8 -0
- package/dist/components/Comment/Form/index.d.ts +2 -0
- package/dist/components/Comment/index.d.ts +3 -0
- package/dist/components/ControlWrapper/ControlWrapper.d.ts +2 -0
- package/dist/components/ControlWrapper/ControlWrapper.types.d.ts +11 -0
- package/dist/components/ControlWrapper/index.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts +18 -0
- package/dist/components/DatePicker/DatePicker.form.d.ts +14 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts +13 -0
- package/dist/components/DatePicker/RangePicker.form.d.ts +8 -0
- package/dist/components/DatePicker/buddhistLocale.d.ts +2 -0
- package/dist/components/DatePicker/index.d.ts +4 -0
- package/dist/components/Divider/Divider.d.ts +2 -0
- package/dist/components/Divider/Divider.types.d.ts +1 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Drawer/Drawer.d.ts +2 -0
- package/dist/components/Drawer/Drawer.types.d.ts +1 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts +1 -0
- package/dist/components/Dropdown/index.d.ts +2 -0
- package/dist/components/Empty/Empty.d.ts +2 -0
- package/dist/components/Empty/Empty.types.d.ts +1 -0
- package/dist/components/Empty/index.d.ts +2 -0
- package/dist/components/Form/Form.d.ts +16 -0
- package/dist/components/Form/Form.types.d.ts +1 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/Grid/Grid.d.ts +6 -0
- package/dist/components/Grid/Grid.types.d.ts +1 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Hint/Hint.d.ts +2 -0
- package/dist/components/Hint/Hint.types.d.ts +1 -0
- package/dist/components/Hint/index.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +16 -0
- package/dist/components/Input/Input.form.d.ts +8 -0
- package/dist/components/Input/Input.types.d.ts +6 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/InputNumber/InputNumber.d.ts +15 -0
- package/dist/components/InputNumber/InputNumber.form.d.ts +8 -0
- package/dist/components/InputNumber/InputNumber.types.d.ts +6 -0
- package/dist/components/InputNumber/index.d.ts +3 -0
- package/dist/components/Layout/Header/Header.d.ts +2 -0
- package/dist/components/Layout/Header/Header.types.d.ts +11 -0
- package/dist/components/Layout/Header/Notifications/Notifications.d.ts +2 -0
- package/dist/components/Layout/Header/Notifications/Notifications.types.d.ts +4 -0
- package/dist/components/Layout/Header/Notifications/index.d.ts +2 -0
- package/dist/components/Layout/Header/Support/Support.d.ts +2 -0
- package/dist/components/Layout/Header/Support/Support.types.d.ts +4 -0
- package/dist/components/Layout/Header/Support/index.d.ts +2 -0
- package/dist/components/Layout/Header/index.d.ts +2 -0
- package/dist/components/Layout/Layout.d.ts +2 -0
- package/dist/components/Layout/Layout.types.d.ts +12 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/Modal.types.d.ts +1 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Notification/Notification.d.ts +3 -0
- package/dist/components/Notification/Notification.types.d.ts +7 -0
- package/dist/components/Notification/index.d.ts +3 -0
- package/dist/components/Notification/useNotification.d.ts +5 -0
- package/dist/components/Pagination/Pagination.d.ts +2 -0
- package/dist/components/Pagination/Pagination.types.d.ts +1 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Plug/Plug.d.ts +2 -0
- package/dist/components/Plug/Plug.types.d.ts +4 -0
- package/dist/components/Plug/index.d.ts +2 -0
- package/dist/components/Popover/Popover.d.ts +2 -0
- package/dist/components/Popover/Popover.types.d.ts +1 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Progress/Progress.d.ts +2 -0
- package/dist/components/Progress/Progress.types.d.ts +4 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Radio/Radio.d.ts +10 -0
- package/dist/components/Radio/Radio.form.d.ts +16 -0
- package/dist/components/Radio/Radio.types.d.ts +9 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Search/Search.d.ts +15 -0
- package/dist/components/Search/Search.form.d.ts +8 -0
- package/dist/components/Search/Search.types.d.ts +3 -0
- package/dist/components/Search/index.d.ts +3 -0
- package/dist/components/Select/Select.d.ts +15 -0
- package/dist/components/Select/Select.form.d.ts +8 -0
- package/dist/components/Select/Select.types.d.ts +6 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.d.ts +19 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +1 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +8 -0
- package/dist/components/Switch/Switch.form.d.ts +8 -0
- package/dist/components/Switch/Switch.types.d.ts +8 -0
- package/dist/components/Switch/index.d.ts +3 -0
- package/dist/components/Table/Table.d.ts +2 -0
- package/dist/components/Table/Table.types.d.ts +1 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +2 -0
- package/dist/components/Tabs/Tabs.types.d.ts +5 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tag/Tag.d.ts +2 -0
- package/dist/components/Tag/Tag.types.d.ts +4 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/TextArea/TextArea.d.ts +16 -0
- package/dist/components/TextArea/TextArea.form.d.ts +8 -0
- package/dist/components/TextArea/TextArea.types.d.ts +6 -0
- package/dist/components/TextArea/index.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Upload/Dragger/Dragger.d.ts +5 -0
- package/dist/components/Upload/Dragger/Dragger.form.d.ts +9 -0
- package/dist/components/Upload/Dragger/Dragger.types.d.ts +1 -0
- package/dist/components/Upload/Dragger/index.d.ts +3 -0
- package/dist/components/Upload/FileButton/FileButton.d.ts +2 -0
- package/dist/components/Upload/FileButton/FileButton.types.d.ts +10 -0
- package/dist/components/Upload/FileButton/index.d.ts +2 -0
- package/dist/components/Upload/Upload.d.ts +8 -0
- package/dist/components/Upload/Upload.form.d.ts +16 -0
- package/dist/components/Upload/Upload.types.d.ts +5 -0
- package/dist/components/Upload/index.d.ts +5 -0
- package/dist/components/UserMenu/UserMenu.d.ts +2 -0
- package/dist/components/UserMenu/UserMenu.types.d.ts +8 -0
- package/dist/components/UserMenu/index.d.ts +2 -0
- package/dist/components/index.d.ts +40 -0
- package/dist/{fsk-design-system.js → fsk-design-system.es.ts} +23195 -23347
- package/dist/fsk-design-system.umd.ts +472 -0
- package/dist/index.d.ts +2 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/theme.provider.d.ts +2 -0
- package/dist/theme/theme.tokens.d.ts +4 -0
- package/dist/theme/theme.types.d.ts +2 -0
- package/dist/theme/useTheme.d.ts +5 -0
- package/package.json +16 -15
- package/dist/design-tokens.source.json +0 -1
- package/dist/fsk-design-system.css +0 -1
- package/dist/fsk-design-system.d.ts +0 -714
- package/dist/fsk-design-system.umd.cjs +0 -472
package/README.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AlertProps } from 'antd/es/alert';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AvatarProps } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BreadcrumbProps } from 'antd';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<import('antd').ButtonProps, "size" | "type"> & {
|
|
3
|
+
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
4
|
+
type?: "main-primary" | "main-secondary" | "main-outline" | "link" | "extra-primary" | "extra-secondary" | "extra-outline";
|
|
5
|
+
} & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonProps as AntButtonProps, default as Button } from 'antd/es/button';
|
|
2
|
+
export type ButtonProps = Omit<AntButtonProps, "size" | "type"> & {
|
|
3
|
+
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
4
|
+
type?: "main-primary" | "main-secondary" | "main-outline" | "link" | "extra-primary" | "extra-secondary" | "extra-outline";
|
|
5
|
+
};
|
|
6
|
+
export type ButtonRef = React.ComponentRef<typeof Button>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TagProps } from '../../Tag';
|
|
2
|
+
export type LinkCardProps = {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
count?: string | number;
|
|
5
|
+
tags?: TagProps[];
|
|
6
|
+
text?: React.ReactNode;
|
|
7
|
+
extraContent?: React.ReactNode;
|
|
8
|
+
link?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CarouselProps } from 'antd';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CascaderRef } from './Cascader.types';
|
|
3
|
+
export declare const Cascader: React.ForwardRefExoticComponent<Omit<import('antd').CascaderProps<import('rc-cascader').DefaultOptionType, string, boolean>, "size" | "status" | "children"> & {
|
|
4
|
+
isFormItem?: boolean;
|
|
5
|
+
isRequired?: boolean;
|
|
6
|
+
error?: string;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
caption?: React.ReactNode;
|
|
9
|
+
size?: "s" | "m" | "l";
|
|
10
|
+
formControlStatus?: import('antd').FormItemProps["status"];
|
|
11
|
+
className?: string;
|
|
12
|
+
} & {
|
|
13
|
+
children?: React.ReactNode | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
status?: "success" | "error";
|
|
16
|
+
} & React.RefAttributes<CascaderRef>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormItemProps } from '../Form';
|
|
2
|
+
import { CascaderProps } from './Cascader.types';
|
|
3
|
+
type Props<T> = {
|
|
4
|
+
formItem?: FormItemProps<T>;
|
|
5
|
+
cascader?: CascaderProps;
|
|
6
|
+
};
|
|
7
|
+
export declare const FormCascader: <T>(props: Props<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CascaderProps as AntCascaderProps, DefaultOptionType } from 'antd/es/cascader';
|
|
2
|
+
import { ControlWrapperProps } from '../ControlWrapper';
|
|
3
|
+
export type { CascaderRef } from 'antd/es/cascader';
|
|
4
|
+
export type CascaderProps<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean = boolean> = React.PropsWithChildren<Omit<AntCascaderProps<OptionType, ValueField, Multiple>, "status" | "children" | "size"> & ControlWrapperProps & {
|
|
5
|
+
status?: "success" | "error";
|
|
6
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dropdown } from './Dropdown';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CheckboxRef } from './Checkbox.types';
|
|
3
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<import('antd').CheckboxProps & {
|
|
4
|
+
children?: React.ReactNode | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
extraContent?: React.ReactNode;
|
|
7
|
+
caption?: React.ReactNode;
|
|
8
|
+
status?: "success" | "error";
|
|
9
|
+
error?: string;
|
|
10
|
+
} & React.RefAttributes<CheckboxRef>> & {
|
|
11
|
+
Group: <T = any>(props: import('antd/es/checkbox').CheckboxGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormItemProps } from '../Form';
|
|
2
|
+
import { CheckboxProps } from './Checkbox.types';
|
|
3
|
+
type Props<T> = {
|
|
4
|
+
formItem?: FormItemProps<T>;
|
|
5
|
+
checkbox?: CheckboxProps;
|
|
6
|
+
};
|
|
7
|
+
export declare const FormCheckbox: <T>(props: Props<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CheckboxProps as AntCheckboxProps } from 'antd/es/checkbox';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export type { CheckboxRef } from 'antd/es/checkbox';
|
|
4
|
+
export type CheckboxProps = React.PropsWithChildren<AntCheckboxProps> & {
|
|
5
|
+
extraContent?: React.ReactNode;
|
|
6
|
+
caption?: React.ReactNode;
|
|
7
|
+
status?: "success" | "error";
|
|
8
|
+
error?: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CollapseProps } from 'antd';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AvatarProps } from '../Avatar';
|
|
2
|
+
type Comment = {
|
|
3
|
+
avatar?: AvatarProps;
|
|
4
|
+
name?: React.ReactNode;
|
|
5
|
+
date?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
depthLevel?: number;
|
|
8
|
+
canBeReplied?: boolean;
|
|
9
|
+
onReply?: () => void;
|
|
10
|
+
extraContent?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export type CommentProps = Comment & {
|
|
13
|
+
replys?: Comment[];
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormItemProps } from '../Form';
|
|
2
|
+
export type ControlWrapperProps = React.PropsWithChildren<{
|
|
3
|
+
isFormItem?: boolean;
|
|
4
|
+
isRequired?: boolean;
|
|
5
|
+
error?: string;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
caption?: React.ReactNode;
|
|
8
|
+
size?: "s" | "m" | "l";
|
|
9
|
+
formControlStatus?: FormItemProps["status"];
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DatePickerProps } from './DatePicker.types';
|
|
3
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<Omit<DatePickerProps, "ref"> & React.RefAttributes<import('rc-picker').PickerRef>> & {
|
|
4
|
+
RangePicker: React.ForwardRefExoticComponent<Omit<import('antd/es/date-picker').RangePickerProps, "size" | "status"> & {
|
|
5
|
+
isFormItem?: boolean;
|
|
6
|
+
isRequired?: boolean;
|
|
7
|
+
error?: string;
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
caption?: React.ReactNode;
|
|
10
|
+
size?: "s" | "m" | "l";
|
|
11
|
+
formControlStatus?: import('antd').FormItemProps["status"];
|
|
12
|
+
className?: string;
|
|
13
|
+
} & {
|
|
14
|
+
children?: React.ReactNode | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
status?: "success" | "error";
|
|
17
|
+
} & React.RefAttributes<import('rc-picker').PickerRef>>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormItemProps } from '../Form';
|
|
2
|
+
import { DatePickerProps } from './DatePicker.types';
|
|
3
|
+
type Props<T> = {
|
|
4
|
+
formItem?: FormItemProps<T>;
|
|
5
|
+
datePicker?: DatePickerProps;
|
|
6
|
+
};
|
|
7
|
+
export declare const FormDatePickerMain: <T>(props: Props<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const FormDatePicker: (<T>(props: Props<T>) => import("@emotion/react/jsx-runtime").JSX.Element) & {
|
|
9
|
+
RangePicker: <T>(props: {
|
|
10
|
+
formItem?: FormItemProps<T> | undefined;
|
|
11
|
+
rangePicker?: import('./DatePicker.types').RangePickerProps;
|
|
12
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DatePickerProps as AntDatePickerProps, RangePickerProps as AntRangePickerProps, default as AntDatePicker } from 'antd/es/date-picker';
|
|
2
|
+
import { ControlWrapperProps } from '../ControlWrapper';
|
|
3
|
+
export type DatePickerProps = Omit<AntDatePickerProps, "status" | "size"> & ControlWrapperProps & {
|
|
4
|
+
status?: "success" | "error";
|
|
5
|
+
};
|
|
6
|
+
export type RangePickerProps = Omit<AntRangePickerProps, "status" | "size"> & ControlWrapperProps & {
|
|
7
|
+
status?: "success" | "error";
|
|
8
|
+
};
|
|
9
|
+
export type DatePickerRef = React.ComponentRef<typeof AntDatePicker>;
|
|
10
|
+
export type RangePickerRef = React.ComponentRef<typeof AntDatePicker.RangePicker>;
|
|
11
|
+
export type DatePickerBaseProps = {
|
|
12
|
+
component: typeof AntDatePicker | typeof AntDatePicker.RangePicker;
|
|
13
|
+
} & (DatePickerProps | RangePickerProps);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormItemProps } from '../Form';
|
|
2
|
+
import { RangePickerProps } from './DatePicker.types';
|
|
3
|
+
type Props<T> = {
|
|
4
|
+
formItem?: FormItemProps<T>;
|
|
5
|
+
rangePicker?: RangePickerProps;
|
|
6
|
+
};
|
|
7
|
+
export declare const FormRangePicker: <T>(props: Props<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { DividerProps } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { DrawerProps } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { DropdownProps } from 'antd/es/dropdown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { EmptyProps } from 'antd/es/empty';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const Form: (<Values = any>(props: React.PropsWithChildren<import('antd').FormProps<Values>> & React.RefAttributes<import('rc-field-form/lib/interface').FormRef<Values>>) => React.ReactElement) & Pick<import('react').FC<{}>, "displayName"> & {
|
|
2
|
+
useForm: typeof import('antd/es/form/Form').useForm;
|
|
3
|
+
useFormInstance: typeof import('antd/es/form/hooks/useFormInstance').default;
|
|
4
|
+
useWatch: typeof import('rc-field-form').useWatch;
|
|
5
|
+
Item: (<Values = any>(props: import('antd').FormItemProps<Values>) => React.ReactElement) & {
|
|
6
|
+
useStatus: () => {
|
|
7
|
+
status?: import('antd/es/form/FormItem').ValidateStatus;
|
|
8
|
+
errors: React.ReactNode[];
|
|
9
|
+
warnings: React.ReactNode[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
List: import('react').FC<import('antd/es/form').FormListProps>;
|
|
13
|
+
ErrorList: import('react').FC<import('antd/es/form').ErrorListProps>;
|
|
14
|
+
Provider: typeof import('antd/es/form/context').FormProvider;
|
|
15
|
+
create: () => void;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { FormProps, FormItemProps } from 'antd/es/form';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Row: import('@emotion/styled').StyledComponent<import('antd').RowProps & import('react').RefAttributes<HTMLDivElement> & {
|
|
2
|
+
theme?: import('@emotion/react').Theme;
|
|
3
|
+
}, {}, {}>;
|
|
4
|
+
export declare const Col: import('@emotion/styled').StyledComponent<import('antd').ColProps & import('react').RefAttributes<HTMLDivElement> & {
|
|
5
|
+
theme?: import('@emotion/react').Theme;
|
|
6
|
+
}, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { RowProps, ColProps } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { PopoverProps as HintProps } from 'antd';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputRef } from './Input.types';
|
|
3
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<import('antd').InputProps, "size" | "status"> & {
|
|
4
|
+
isFormItem?: boolean;
|
|
5
|
+
isRequired?: boolean;
|
|
6
|
+
error?: string;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
caption?: React.ReactNode;
|
|
9
|
+
size?: "s" | "m" | "l";
|
|
10
|
+
formControlStatus?: import('antd').FormItemProps["status"];
|
|
11
|
+
className?: string;
|
|
12
|
+
} & {
|
|
13
|
+
children?: React.ReactNode | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
status?: "success" | "error";
|
|
16
|
+
} & React.RefAttributes<InputRef>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormItemProps } from '../Form';
|
|
2
|
+
import { InputProps } from './Input.types';
|
|
3
|
+
type Props<T> = {
|
|
4
|
+
formItem?: FormItemProps<T>;
|
|
5
|
+
input?: InputProps;
|
|
6
|
+
};
|
|
7
|
+
export declare const FormInput: <T>(props: Props<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputProps as AntInputProps } from 'antd/es/input';
|
|
2
|
+
import { ControlWrapperProps } from '../ControlWrapper';
|
|
3
|
+
export type { InputRef } from 'antd/es/input';
|
|
4
|
+
export type InputProps = Omit<AntInputProps, "size" | "status"> & ControlWrapperProps & {
|
|
5
|
+
status?: "success" | "error";
|
|
6
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const InputNumber: React.ForwardRefExoticComponent<Omit<import('antd').InputNumberProps<import('rc-input-number').ValueType>, "size" | "status"> & {
|
|
3
|
+
isFormItem?: boolean;
|
|
4
|
+
isRequired?: boolean;
|
|
5
|
+
error?: string;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
caption?: React.ReactNode;
|
|
8
|
+
size?: "s" | "m" | "l";
|
|
9
|
+
formControlStatus?: import('antd').FormItemProps["status"];
|
|
10
|
+
className?: string;
|
|
11
|
+
} & {
|
|
12
|
+
children?: React.ReactNode | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
status?: "success" | "error";
|
|
15
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormItemProps } from '../Form';
|
|
2
|
+
import { InputNumberProps } from './InputNumber.types';
|
|
3
|
+
type Props<T> = {
|
|
4
|
+
formItem?: FormItemProps<T>;
|
|
5
|
+
input?: InputNumberProps;
|
|
6
|
+
};
|
|
7
|
+
export declare const FormInputNumber: <T>(props: Props<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputNumberProps as AntInputNumberProps, default as InputNumber } from 'antd/es/input-number';
|
|
2
|
+
import { ControlWrapperProps } from '../ControlWrapper';
|
|
3
|
+
export type InputNumberProps = Omit<AntInputNumberProps, "size" | "status"> & ControlWrapperProps & {
|
|
4
|
+
status?: "success" | "error";
|
|
5
|
+
};
|
|
6
|
+
export type InputNumberRef = React.ComponentRef<typeof InputNumber>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LayoutProps as AntLayoutProps } from 'antd/es/layout';
|
|
2
|
+
import { UserMenuProps } from '../../UserMenu';
|
|
3
|
+
import { NotificationsProps } from './Notifications';
|
|
4
|
+
import { SupportProps } from './Support';
|
|
5
|
+
export type HeaderProps = {
|
|
6
|
+
antProps?: AntLayoutProps;
|
|
7
|
+
logo?: React.ReactNode;
|
|
8
|
+
support?: SupportProps;
|
|
9
|
+
notifications?: NotificationsProps;
|
|
10
|
+
userMenu?: UserMenuProps;
|
|
11
|
+
};
|