@unicom-cloud/ui 0.8.92 → 0.8.94
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/Checkbox.js +5 -4
- package/Layout.js +8 -7
- package/cascader/panel/Option.js +7 -6
- package/cascader/panel/Search.js +17 -16
- package/checkbox/index.js +7 -6
- package/color-picker/Mode.js +7 -6
- package/index.js +171 -171
- package/layout/index.js +11 -9
- package/package.json +1 -1
- package/pagination/PageItem.js +52 -53
- package/pagination/Pagination.js +2 -1
- package/pagination/interface.js +4 -1
- package/select/Option.js +12 -11
- package/select/Select.js +1 -0
- package/table/tbody/Tr.js +3 -2
- package/table/thead/Column.js +3 -2
- package/table/thead/index.js +3 -2
- package/transfer/Item.js +17 -16
- package/transfer/List.js +12 -11
- package/tree/Node.js +94 -92
- package/tree/Tree.js +182 -182
- package/types/pc/affix/index.d.ts +1 -1
- package/types/pc/alert/index.d.ts +1 -1
- package/types/pc/anchor/Anchor.d.ts +1 -1
- package/types/pc/anchor/Link.d.ts +1 -1
- package/types/pc/anchor/context.d.ts +1 -1
- package/types/pc/auto-complete/index.d.ts +1 -1
- package/types/pc/avatar/Avatar.d.ts +1 -1
- package/types/pc/avatar/Group.d.ts +1 -1
- package/types/pc/avatar/context.d.ts +1 -1
- package/types/pc/back-top/index.d.ts +1 -1
- package/types/pc/badge/index.d.ts +2 -2
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/index.d.ts +1 -1
- package/types/pc/button/Group.d.ts +1 -1
- package/types/pc/button/index.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/card/Grid.d.ts +1 -1
- package/types/pc/card/Meta.d.ts +1 -1
- package/types/pc/card/index.d.ts +1 -1
- package/types/pc/carousel/Arrow.d.ts +1 -1
- package/types/pc/carousel/Indicator.d.ts +1 -1
- package/types/pc/carousel/index.d.ts +2 -2
- package/types/pc/cascader/Cascader.d.ts +1 -1
- package/types/pc/cascader/util.d.ts +1 -1
- package/types/pc/checkbox/Checkbox.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +1 -1
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/index.d.ts +1 -1
- package/types/pc/collapse/Collapse.d.ts +1 -1
- package/types/pc/collapse/Item.d.ts +1 -1
- package/types/pc/color-picker/InputHex.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Mode.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/index.d.ts +1 -1
- package/types/pc/color-picker/utils.d.ts +1 -1
- package/types/pc/comment/index.d.ts +1 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +3 -2
- package/types/pc/config-provider/context.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +1 -1
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/Picker.d.ts +1 -2
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/date-picker/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +1 -1
- package/types/pc/divider/index.d.ts +1 -1
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/drawer/Drawer.d.ts +2 -2
- package/types/pc/dropdown/Button.d.ts +1 -1
- package/types/pc/dropdown/index.d.ts +1 -1
- package/types/pc/empty/index.d.ts +1 -1
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/Form.d.ts +1 -1
- package/types/pc/form/FormLabel.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/FormProvider.d.ts +1 -1
- package/types/pc/form/context.d.ts +1 -1
- package/types/pc/form/hook/useForm.d.ts +1 -1
- package/types/pc/form/index.d.ts +1 -1
- package/types/pc/form/interface.d.ts +2 -2
- package/types/pc/form/store.d.ts +3 -4
- package/types/pc/form/util.d.ts +3 -3
- package/types/pc/grid/Col.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +1 -1
- package/types/pc/grid/GridItem.d.ts +1 -1
- package/types/pc/grid/Row.d.ts +1 -1
- package/types/pc/grid/context.d.ts +1 -1
- package/types/pc/grid/util.d.ts +1 -1
- package/types/pc/hooks/use-watermark/index.d.ts +1 -1
- package/types/pc/icons/file/index.d.ts +1 -1
- package/types/pc/image/Image.d.ts +1 -1
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreview.d.ts +1 -1
- package/types/pc/image/ImagePreviewGroup.d.ts +1 -1
- package/types/pc/image/ImagePreviewToolbar.d.ts +1 -1
- package/types/pc/image/index.d.ts +1 -1
- package/types/pc/image/previewGroupContext.d.ts +1 -1
- package/types/pc/input/Button.d.ts +1 -1
- package/types/pc/input/Group.d.ts +1 -1
- package/types/pc/input/Input.d.ts +1 -1
- package/types/pc/input/InputElement.d.ts +1 -1
- package/types/pc/input/Password.d.ts +1 -1
- package/types/pc/input/Search.d.ts +1 -1
- package/types/pc/input/Textarea.d.ts +1 -1
- package/types/pc/input/index.d.ts +1 -1
- package/types/pc/input/useComposition.d.ts +1 -1
- package/types/pc/input-number/index.d.ts +1 -1
- package/types/pc/input-tag/InputTag.d.ts +2 -2
- package/types/pc/input-tag/interface.d.ts +2 -2
- package/types/pc/layout/Content.d.ts +1 -1
- package/types/pc/layout/Footer.d.ts +1 -1
- package/types/pc/layout/Header.d.ts +1 -1
- package/types/pc/layout/Sider.d.ts +1 -1
- package/types/pc/layout/index.d.ts +2 -2
- package/types/pc/link/index.d.ts +1 -1
- package/types/pc/list/Item.d.ts +1 -1
- package/types/pc/list/Meta.d.ts +1 -1
- package/types/pc/list/index.d.ts +2 -2
- package/types/pc/mentions/index.d.ts +1 -1
- package/types/pc/mentions/util.d.ts +1 -1
- package/types/pc/menu/Item.d.ts +1 -1
- package/types/pc/menu/ItemGroup.d.ts +1 -1
- package/types/pc/menu/Menu.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/menu/index.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +1 -1
- package/types/pc/message/index.d.ts +2 -2
- package/types/pc/message/useMessage.d.ts +1 -1
- package/types/pc/modal/Modal.d.ts +2 -2
- package/types/pc/modal/config.d.ts +1 -1
- package/types/pc/notification/index.d.ts +2 -2
- package/types/pc/notification/useNotification.d.ts +1 -1
- package/types/pc/page-header/index.d.ts +2 -2
- package/types/pc/pagination/PageItem.d.ts +2 -47
- package/types/pc/pagination/Pagination.d.ts +1 -1
- package/types/pc/pagination/interface.d.ts +47 -0
- package/types/pc/popconfirm/index.d.ts +1 -1
- package/types/pc/popover/index.d.ts +1 -1
- package/types/pc/popover/interface.d.ts +1 -1
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/index.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +1 -1
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/radio/index.d.ts +1 -1
- package/types/pc/rate/index.d.ts +1 -1
- package/types/pc/resize-box/Split.d.ts +1 -1
- package/types/pc/resize-box/SplitGroup.d.ts +1 -1
- package/types/pc/resize-box/index.d.ts +1 -1
- package/types/pc/result/index.d.ts +1 -1
- package/types/pc/select/OptGroup.d.ts +1 -1
- package/types/pc/select/Option.d.ts +1 -1
- package/types/pc/select/Select.d.ts +3 -2
- package/types/pc/select/index.d.ts +1 -1
- package/types/pc/select/util.d.ts +1 -1
- package/types/pc/select-view/Core.d.ts +1 -1
- package/types/pc/select-view/index.d.ts +1 -1
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +1 -1
- package/types/pc/skeleton/index.d.ts +1 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/hook/useInterval.d.ts +1 -1
- package/types/pc/slider/index.d.ts +1 -1
- package/types/pc/space/index.d.ts +1 -1
- package/types/pc/space-/index.d.ts +1 -1
- package/types/pc/spin/index.d.ts +1 -1
- package/types/pc/statistic/Countdown.d.ts +1 -1
- package/types/pc/statistic/index.d.ts +2 -2
- package/types/pc/steps/Step.d.ts +1 -1
- package/types/pc/steps/index.d.ts +1 -1
- package/types/pc/switch/index.d.ts +2 -2
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/Table.d.ts +1 -1
- package/types/pc/table/constant.d.ts +1 -1
- package/types/pc/table/interface.d.ts +1 -1
- package/types/pc/table/util.d.ts +1 -1
- package/types/pc/tabs/Tab.d.ts +1 -1
- package/types/pc/tabs/TabPane.d.ts +1 -1
- package/types/pc/tabs/index.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/index.d.ts +1 -1
- package/types/pc/tag/index.d.ts +1 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/timeline/Item.d.ts +1 -1
- package/types/pc/timeline/Timeline.d.ts +1 -1
- package/types/pc/timeline/index.d.ts +1 -1
- package/types/pc/tooltip/index.d.ts +2 -2
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/index.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/tree/Context.d.ts +1 -2
- package/types/pc/tree/Node.d.ts +1 -1
- package/types/pc/tree/Tree.d.ts +1 -1
- package/types/pc/tree/index.d.ts +2 -2
- package/types/pc/tree/interface.d.ts +19 -3
- package/types/pc/tree/util.d.ts +1 -1
- package/types/pc/tree-select/List.d.ts +1 -1
- package/types/pc/trigger/getPopupStyle.d.ts +1 -1
- package/types/pc/trigger/index.d.ts +2 -2
- package/types/pc/typography/EditContent.d.ts +1 -1
- package/types/pc/typography/Ellipsis.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/typography/Paragraph.d.ts +1 -1
- package/types/pc/typography/Title.d.ts +1 -1
- package/types/pc/typography/Typography.d.ts +1 -1
- package/types/pc/typography/useCssEllipsis.d.ts +1 -1
- package/types/pc/typography/useEllipsis.d.ts +1 -1
- package/types/pc/upload/TriggerNode.d.ts +1 -1
- package/types/pc/upload/Upload.d.ts +2 -2
- package/types/pc/upload/Uploader.d.ts +1 -1
- package/types/pc/upload/request.d.ts +1 -1
- package/types/pc/upload/util.d.ts +1 -1
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/index.d.ts +1 -1
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/index.d.ts +2 -2
- package/typography/Ellipsis.js +3 -2
- package/version/index.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AlertProps } from './interface';
|
|
2
2
|
declare const AlertComponent: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default AlertComponent;
|
|
4
4
|
export type { AlertProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { AnchorProps } from './interface';
|
|
3
3
|
import Link from './Link';
|
|
4
4
|
declare const ForwardRefAnchor: React.ForwardRefExoticComponent<AnchorProps & {
|
|
5
5
|
children?: React.ReactNode | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { AnchorLinkProps } from './interface';
|
|
3
3
|
declare const AnchorLinkComponent: React.ForwardRefExoticComponent<AnchorLinkProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RefInputType } from '../input/interface';
|
|
3
3
|
import Select from '../select/Select';
|
|
4
|
-
import
|
|
4
|
+
import { AutoCompleteProps } from './interface';
|
|
5
5
|
declare const ForwardRefAutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<RefInputType>>;
|
|
6
6
|
declare const AutoCompleteComponent: typeof ForwardRefAutoComplete & {
|
|
7
7
|
Option: typeof Select.Option;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { AvatarProps } from './interface';
|
|
3
3
|
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { AvatarGroupProps } from './interface';
|
|
3
3
|
declare const AvatarGroupComponent: React.ForwardRefExoticComponent<AvatarGroupProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { BackTopProps } from './interface';
|
|
3
3
|
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<BackTopProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<unknown>>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Count from './Count';
|
|
2
|
-
import
|
|
2
|
+
import { BadgeProps } from './interface';
|
|
3
3
|
declare const BadgeComponent: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<unknown>>;
|
|
4
4
|
declare const BADGE_COLORS: string[];
|
|
5
5
|
declare const BADGE_STATUS: string[];
|
|
6
|
-
export default BadgeComponent;
|
|
7
6
|
export { BADGE_COLORS, BADGE_STATUS, Count as BadgeCount };
|
|
7
|
+
export default BadgeComponent;
|
|
8
8
|
export type { BadgeProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { BreadCrumbItemProps } from './interface';
|
|
3
3
|
declare function Item(props: PropsWithChildren<BreadCrumbItemProps>): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
4
|
declare namespace Item {
|
|
5
5
|
var displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { BreadcrumbProps } from './interface';
|
|
3
3
|
import Item from './Item';
|
|
4
4
|
declare const ForwardRefBreadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<unknown>>;
|
|
5
5
|
declare const BreadcrumbComponent: typeof ForwardRefBreadcrumb & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { ButtonGroupProps } from './interface';
|
|
3
3
|
declare const GroupComponent: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default GroupComponent;
|
|
5
5
|
export type { ButtonGroupProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Group from './Group';
|
|
3
|
-
import
|
|
3
|
+
import { ButtonProps } from './interface';
|
|
4
4
|
declare const ForwardRefButton: React.ForwardRefExoticComponent<Partial<{
|
|
5
5
|
htmlType?: "button" | "submit" | "reset";
|
|
6
6
|
} & import("./interface").BaseButtonProps & Omit<React.ButtonHTMLAttributes<any>, "className" | "type" | "onClick"> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Month from './Month';
|
|
2
2
|
import Year from './Year';
|
|
3
|
-
import
|
|
3
|
+
import { CalendarProps } from './interface';
|
|
4
4
|
declare function Calendar(baseProps: CalendarProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
5
5
|
declare namespace Calendar {
|
|
6
6
|
var displayName: string;
|
package/types/pc/card/Grid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CardGridProps } from './interface';
|
|
3
3
|
declare const CardComponent: React.ForwardRefExoticComponent<CardGridProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default CardComponent;
|
|
5
5
|
export type { CardGridProps };
|
package/types/pc/card/Meta.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CardMetaProps } from './interface';
|
|
3
3
|
declare const MetaComponent: React.ForwardRefExoticComponent<CardMetaProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default MetaComponent;
|
|
5
5
|
export type { CardMetaProps };
|
package/types/pc/card/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Grid from './Grid';
|
|
3
3
|
import Meta from './Meta';
|
|
4
|
-
import
|
|
4
|
+
import { CardProps } from './interface';
|
|
5
5
|
declare const ForwardRefCard: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<unknown>>;
|
|
6
6
|
declare const CardComponent: typeof ForwardRefCard & {
|
|
7
7
|
Meta: typeof Meta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CarouselArrowProps } from './interface';
|
|
3
3
|
declare const CarouselArrowComponent: React.ForwardRefExoticComponent<CarouselArrowProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default CarouselArrowComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CarouselIndicatorProps } from './interface';
|
|
3
3
|
declare const CarouselIndicatorComponent: React.ForwardRefExoticComponent<CarouselIndicatorProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default CarouselIndicatorComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CarouselProps } from './interface';
|
|
3
3
|
declare const CarouselComponent: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default CarouselComponent;
|
|
5
|
-
export { CarouselProps };
|
|
5
|
+
export type { CarouselProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Store from './base/store';
|
|
2
|
-
import
|
|
2
|
+
import { CascaderProps } from './interface';
|
|
3
3
|
export declare const ValueSeparator = "__pqb_cascader__";
|
|
4
4
|
export declare const SHOW_PARENT = "parent";
|
|
5
5
|
export declare const SHOW_CHILD = "child";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import CheckboxGroup from './Group';
|
|
3
3
|
import CheckboxGroupBlock from './GroupBlock';
|
|
4
|
-
import
|
|
4
|
+
import { CheckboxProps } from './interface';
|
|
5
5
|
import useCheckbox from './useCheckbox';
|
|
6
6
|
interface ForwardRefCheckboxType extends React.ForwardRefExoticComponent<React.PropsWithoutRef<CheckboxProps> & React.RefAttributes<unknown>> {
|
|
7
7
|
<T extends React.ReactText = any>(props: React.PropsWithChildren<CheckboxProps<T>> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren, ReactText } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CheckboxGroupProps } from './interface';
|
|
3
3
|
export declare const CheckboxGroupContext: React.Context<{
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
isCheckboxGroup: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CollapseProps } from './interface';
|
|
3
3
|
import CollapseItem from './Item';
|
|
4
4
|
export declare const CollapseContext: React.Context<Pick<CollapseProps, "lazyload" | "destroyOnHide" | "expandIcon" | "triggerRegion" | "expandIconPosition"> & {
|
|
5
5
|
activeKeys: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CollapseItemProps } from './interface';
|
|
3
3
|
declare const ItemRef: React.ForwardRefExoticComponent<CollapseItemProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ColorPickerMode, GradientColor } from './interface';
|
|
2
2
|
export declare const getMode: (mode: ColorPickerMode | ColorPickerMode[]) => ColorPickerMode | ColorPickerMode[];
|
|
3
3
|
export declare const isSingleMode: (mode: ColorPickerMode | ColorPickerMode[]) => mode is ColorPickerMode.Single;
|
|
4
4
|
export declare const isGradientMode: (mode: ColorPickerMode | ColorPickerMode[]) => mode is ColorPickerMode.Gradient;
|
|
@@ -3,7 +3,7 @@ import { ControlBar } from './ControlBar';
|
|
|
3
3
|
import { InputAlpha } from './InputAlpha';
|
|
4
4
|
import { InputHex } from './InputHex';
|
|
5
5
|
import { InputRgb } from './InputRgb';
|
|
6
|
-
import
|
|
6
|
+
import { ColorPickerProps } from './interface';
|
|
7
7
|
import { Palette } from './Palette';
|
|
8
8
|
import { Panel } from './Panel';
|
|
9
9
|
declare const ColorPickerComponent: React.ForwardRefExoticComponent<ColorPickerProps & React.RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CommentProps } from './interface';
|
|
2
2
|
declare const CommentRef: import("react").ForwardRefExoticComponent<CommentProps & {
|
|
3
3
|
children?: import("react").ReactNode | undefined;
|
|
4
4
|
} & import("react").RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ConfigContext, { ConfigProviderDefaultProps } from './context';
|
|
2
|
-
import
|
|
2
|
+
import { ConfigProviderProps } from './interface';
|
|
3
3
|
declare function ConfigProvider(baseProps: ConfigProviderProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
4
|
declare namespace ConfigProvider {
|
|
5
5
|
var ConfigContext: import("react").Context<ConfigProviderProps>;
|
|
@@ -7,4 +7,5 @@ declare namespace ConfigProvider {
|
|
|
7
7
|
}
|
|
8
8
|
export default ConfigProvider;
|
|
9
9
|
export declare const ConfigConsumer: import("react").Consumer<ConfigProviderProps>;
|
|
10
|
-
export { ConfigContext, ConfigProviderDefaultProps
|
|
10
|
+
export { ConfigContext, ConfigProviderDefaultProps };
|
|
11
|
+
export type { ConfigProviderProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ConfigProviderProps } from './interface';
|
|
2
2
|
export declare const ConfigProviderDefaultProps: ConfigProviderProps;
|
|
3
3
|
declare const ConfigContext: import("react").Context<ConfigProviderProps>;
|
|
4
4
|
export default ConfigContext;
|
|
@@ -67,7 +67,7 @@ import { TypographyEllipsisProps } from '../typography';
|
|
|
67
67
|
import { UploadProps } from '../upload/interface';
|
|
68
68
|
import { VerificationCodeProps } from '../verification-code/interface';
|
|
69
69
|
import { WatermarkProps } from '../watermark/interface';
|
|
70
|
-
export type ThemeConfig = Record<string,
|
|
70
|
+
export type ThemeConfig = Record<string, unknown>;
|
|
71
71
|
export type ComponentConfig = {
|
|
72
72
|
Affix?: AffixProps;
|
|
73
73
|
Alert?: AlertProps;
|
package/types/pc/copy/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CopyProps } from './interface';
|
|
3
3
|
declare function Copy(props: PropsWithChildren<CopyProps>): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
4
|
declare namespace Copy {
|
|
5
5
|
var displayName: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
2
|
import React, { ReactElement } from 'react';
|
|
3
3
|
import { TimePickerProps } from '../time-picker/interface';
|
|
4
|
-
import
|
|
5
|
-
import type { DatePickerHandle } from './interface';
|
|
4
|
+
import { CalendarValue, DatePickerHandle, ModeType, PickerProps } from './interface';
|
|
6
5
|
interface InnerPickerProps extends PickerProps {
|
|
7
6
|
disabledDate?: (current: Dayjs) => boolean;
|
|
8
7
|
picker?: ReactElement;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RangePickerHandle } from './interface';
|
|
2
2
|
declare const PickerComponent: import("react").ForwardRefExoticComponent<import("./interface").BaseRangePickerProps & import("components/common/utils").Omit<import("./interface").PickerProps, "onChange" | "onSelect" | "onOk" | "inputProps" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange"> & import("react").RefAttributes<RangePickerHandle>>;
|
|
3
3
|
export default PickerComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import RangePicker from './RangePicker';
|
|
2
|
-
import
|
|
2
|
+
import { DatePickerDecorator, DatePickerHandle, DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps } from './interface';
|
|
3
3
|
declare const DatePicker: DatePickerDecorator;
|
|
4
4
|
declare const MonthPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseMonthPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
|
|
5
5
|
declare const YearPicker: import("react").ForwardRefExoticComponent<import("./interface").BaseYearPickerProps & import("./interface").PickerProps & import("react").RefAttributes<DatePickerHandle>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DescriptionsProps } from './interface';
|
|
2
2
|
declare function Descriptions(baseProps: DescriptionsProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
3
|
declare namespace Descriptions {
|
|
4
4
|
var displayName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DetailsProps } from './interface';
|
|
2
2
|
declare const DetailsComponent: import("react").ForwardRefExoticComponent<DetailsProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default DetailsComponent;
|
|
4
4
|
export type { DetailsProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { DividerProps } from './interface';
|
|
3
3
|
declare const DividerComponent: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default DividerComponent;
|
|
5
5
|
export type { DividerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { DrawerProps } from './interface';
|
|
3
3
|
declare const DrawerComponent: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default DrawerComponent;
|
|
5
|
-
export { DrawerProps };
|
|
5
|
+
export type { DrawerProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DropdownButtonProps } from './interface';
|
|
2
2
|
declare const ButtonComponent: import("react").ForwardRefExoticComponent<DropdownButtonProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default ButtonComponent;
|
|
4
4
|
export type { DropdownButtonProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Button from './Button';
|
|
3
|
-
import
|
|
3
|
+
import { DropdownProps } from './interface';
|
|
4
4
|
declare const ForwardRefDropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<unknown>>;
|
|
5
5
|
declare const DropdownComponent: typeof ForwardRefDropdown & {
|
|
6
6
|
Button: typeof Button;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { EmptyProps } from './interface';
|
|
2
2
|
declare const Empty: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<EmptyProps & import("react").RefAttributes<unknown>>>;
|
|
3
3
|
export default Empty;
|
|
4
4
|
export type { EmptyProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Component, ReactNode } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { FieldError, FormControlProps, FormItemContextProps, FormItemProps, KeyType } from './interface';
|
|
3
3
|
import { NotifyType, StoreChangeInfo } from './store';
|
|
4
4
|
declare class Control<FormData = any, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData> extends Component<FormControlProps<FormData, FieldValue, FieldKey>> {
|
|
5
5
|
static defaultProps: {
|
package/types/pc/form/Form.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { FormInstance, FormProps, KeyType } from './interface';
|
|
3
3
|
declare const _default: <FormData = any, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(props: React.PropsWithChildren<FormProps<FormData, FieldValue, FieldKey>> & {
|
|
4
4
|
ref?: React.Ref<FormInstance<FormData, FieldValue, FieldKey>>;
|
|
5
5
|
}) => React.ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { FormItemProps } from './interface';
|
|
3
3
|
interface FormItemLabelProps extends Pick<FormItemProps, 'tooltip' | 'label' | 'requiredSymbol' | 'required' | 'rules'> {
|
|
4
4
|
showColon: boolean | ReactNode;
|
|
5
5
|
prefix: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FormListProps, KeyType } from './interface';
|
|
2
2
|
declare function FormList<SubFieldValue = unknown, SubFieldKey extends KeyType = string, FieldKey extends KeyType = string>(props: FormListProps<SubFieldValue, SubFieldKey, FieldKey>): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
3
|
declare namespace FormList {
|
|
4
4
|
var displayName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { FormProviderProps } from './interface';
|
|
3
3
|
declare const _default: ForwardRefExoticComponent<PropsWithChildren<FormProviderProps>>;
|
|
4
4
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { FormContextProps, FormInstance, FormItemContextProps, KeyType } from './interface';
|
|
3
3
|
export type FormContextType<FormData = any, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData> = Context<FormContextProps<FormData, FieldValue, FieldKey>>;
|
|
4
4
|
export declare const FormContext: Context<FormContextProps>;
|
|
5
5
|
export type FormItemContextType<FormData = any, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData> = Context<FormItemContextProps<FormData, FieldValue, FieldKey>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FormInstance, KeyType } from '../interface';
|
|
2
2
|
export declare function getFormInstance<FormData = unknown, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(): FormInstance<FormData, FieldValue, FieldKey>;
|
|
3
3
|
type SetForm = () => void;
|
|
4
4
|
declare function useForm<FormData = unknown, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData>(form?: FormInstance<FormData, FieldValue, FieldKey>): [FormInstance<FormData, FieldValue, FieldKey> | null | undefined, SetForm];
|
package/types/pc/form/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Form from './Form';
|
|
2
|
-
import
|
|
2
|
+
import { FormInstance, FormItemProps, FormProps, FormProviderProps } from './interface';
|
|
3
3
|
import FormControl from './Control';
|
|
4
4
|
import FormItem from './FormItem';
|
|
5
5
|
import FormList from './FormList';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Options as ScrollIntoViewOptions } from '@unicom-cloud/scroll-into-view-if-needed';
|
|
2
|
-
import
|
|
2
|
+
import { ValidateMessagesTemplateType } from '@unicom-cloud/validate/types';
|
|
3
3
|
import React, { CSSProperties, FormHTMLAttributes, HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
4
4
|
import { JSX } from 'react/jsx-runtime';
|
|
5
5
|
import { ColProps } from '../grid/Col';
|
|
6
|
-
import
|
|
6
|
+
import { TooltipProps } from '../tooltip/interface';
|
|
7
7
|
import Store from './store';
|
|
8
8
|
export type IndexedObject = {
|
|
9
9
|
[key: string]: any;
|
package/types/pc/form/store.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { SubmitStatus } from './interface';
|
|
2
|
+
import { FieldError, FieldState, FormProps, FormValidateFn, KeyType, SubmitStatus } from './interface';
|
|
4
3
|
export type DeepPartial<T> = T extends object ? {
|
|
5
4
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
6
5
|
} : T;
|
|
@@ -12,7 +11,7 @@ export type DeepPartial<T> = T extends object ? {
|
|
|
12
11
|
export type NotifyType = 'setFieldValue' | 'reset' | 'innerSetValue';
|
|
13
12
|
export type innerCallbackType = 'onValuesChange' | 'onSubmit' | 'onReset' | 'onChange' | 'onSubmitFailed';
|
|
14
13
|
export type StoreChangeInfo<T> = {
|
|
15
|
-
prev:
|
|
14
|
+
prev: unknown;
|
|
16
15
|
field?: T | T[];
|
|
17
16
|
isFormList?: boolean;
|
|
18
17
|
ignore?: boolean;
|
|
@@ -25,7 +24,7 @@ export type StoreChangeInfo<T> = {
|
|
|
25
24
|
touched?: boolean;
|
|
26
25
|
};
|
|
27
26
|
};
|
|
28
|
-
declare class Store<FormData =
|
|
27
|
+
declare class Store<FormData = unknown, FieldValue = FormData[keyof FormData], FieldKey extends KeyType = keyof FormData> {
|
|
29
28
|
private submitStatus;
|
|
30
29
|
private registerFields;
|
|
31
30
|
private registerWatchers;
|
package/types/pc/form/util.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropertyPath } from 'lodash';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { RulesProps } from '../form/interface';
|
|
4
|
+
import { FormProps, IndexedObject } from './interface';
|
|
5
5
|
export declare function cloneDeep(value: any): any;
|
|
6
6
|
export declare const formatValidateMsg: (validateMessages: FormProps["validateMessages"], info: {
|
|
7
7
|
label: ReactNode;
|
package/types/pc/grid/Col.d.ts
CHANGED
package/types/pc/grid/Grid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { GridProps } from './interface';
|
|
3
3
|
declare const GridComponent: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default GridComponent;
|
|
5
5
|
export type { GridProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { GridItemProps } from './interface';
|
|
3
3
|
declare const ForwardRefGridItem: React.ForwardRefExoticComponent<GridItemProps & React.RefAttributes<unknown>>;
|
|
4
4
|
declare const GridItemComponent: typeof ForwardRefGridItem & {
|
|
5
5
|
__PQB_GRID_ITEM__: boolean;
|