@canlooks/can-ui 0.0.2 → 0.0.3
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/cjs/components/actionSheet/actionSheet.style.d.ts +1 -1
- package/dist/cjs/components/alert/alert.d.ts +1 -1
- package/dist/cjs/components/avatar/avatar.d.ts +2 -2
- package/dist/cjs/components/avatar/avatarGroup.d.ts +1 -1
- package/dist/cjs/components/badge/badge.d.ts +1 -1
- package/dist/cjs/components/bottomNavigation/bottomNavigationItem.d.ts +1 -1
- package/dist/cjs/components/bubbleConfirm/bubbleConfirm.style.d.ts +1 -1
- package/dist/cjs/components/card/card.d.ts +1 -1
- package/dist/cjs/components/checkbox/checkbox.d.ts +1 -1
- package/dist/cjs/components/checkboxBase/checkboxBase.d.ts +1 -1
- package/dist/cjs/components/checkboxBase/checkboxBase.style.d.ts +2 -2
- package/dist/cjs/components/checkboxBaseGroup/checkboxBaseGroup.d.ts +3 -3
- package/dist/cjs/components/clickAway/clickAway.d.ts +1 -1
- package/dist/cjs/components/counter/counter.d.ts +1 -1
- package/dist/cjs/components/curd/curd.style.d.ts +1 -1
- package/dist/cjs/components/dataGrid/dataGrid.d.ts +5 -5
- package/dist/cjs/components/dataGrid/dataGrid.style.d.ts +1 -1
- package/dist/cjs/components/descriptions/descriptionItem.d.ts +1 -1
- package/dist/cjs/components/descriptions/descriptions.style.d.ts +1 -1
- package/dist/cjs/components/dialog/dialog.d.ts +1 -1
- package/dist/cjs/components/dialog/dialog.style.d.ts +1 -1
- package/dist/cjs/components/divider/divider.d.ts +1 -1
- package/dist/cjs/components/divider/divider.style.d.ts +1 -1
- package/dist/cjs/components/drawer/drawer.d.ts +1 -1
- package/dist/cjs/components/flex/flex.d.ts +1 -1
- package/dist/cjs/components/grid/gridItem.d.ts +1 -1
- package/dist/cjs/components/image/image.d.ts +1 -1
- package/dist/cjs/components/image/imagePreview.d.ts +1 -1
- package/dist/cjs/components/loading/loading.d.ts +1 -1
- package/dist/cjs/components/loadingIndicator/loadingIndicator.d.ts +1 -1
- package/dist/cjs/components/menuItem/menuItem.style.d.ts +1 -1
- package/dist/cjs/components/modal/modal.d.ts +1 -1
- package/dist/cjs/components/overlayBase/overlayBase.d.ts +1 -1
- package/dist/cjs/components/pagination/counter.d.ts +1 -1
- package/dist/cjs/components/pagination/jumper.d.ts +1 -1
- package/dist/cjs/components/pagination/pager.d.ts +1 -1
- package/dist/cjs/components/palette/palette.style.d.ts +1 -1
- package/dist/cjs/components/placeholder/placeholder.d.ts +1 -1
- package/dist/cjs/components/progress/progress.d.ts +1 -1
- package/dist/cjs/components/radio/radio.d.ts +1 -1
- package/dist/cjs/components/segmented/segmented.style.d.ts +2 -2
- package/dist/cjs/components/skeleton/skeleton.d.ts +1 -1
- package/dist/cjs/components/slidableActions/slidableActionsAction.d.ts +1 -1
- package/dist/cjs/components/slider/slider.style.d.ts +1 -1
- package/dist/cjs/components/status/status.d.ts +2 -2
- package/dist/cjs/components/stepper/step.style.d.ts +1 -1
- package/dist/cjs/components/tabs/tabs.style.d.ts +3 -3
- package/dist/cjs/components/timeline/timelineItem.d.ts +1 -1
- package/dist/cjs/components/touchRipple/touchRipple.d.ts +1 -1
- package/dist/cjs/components/transfer/transfer.style.d.ts +1 -1
- package/dist/cjs/components/transportStyle/transportStyle.d.ts +1 -1
- package/dist/cjs/components/tree/tree.style.d.ts +2 -2
- package/dist/cjs/components/typography/typography.style.d.ts +1 -1
- package/dist/cjs/components/waterfall/waterfall.d.ts +1 -1
- package/dist/cjs/extensions/documentViewer/svgViewer.d.ts +1 -1
- package/dist/cjs/utils/curd.d.ts +4 -4
- package/dist/cjs/utils/dataGrid.d.ts +1 -1
- package/dist/cjs/utils/form.d.ts +1 -1
- package/dist/cjs/utils/style.d.ts +3 -3
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ColorPropsValue, DIVProps
|
|
2
|
+
import { ColorPropsValue, DIVProps } from '../../..';
|
|
3
3
|
export interface AlertProps extends Omit<DIVProps, 'title' | 'prefix' | 'children'> {
|
|
4
4
|
variant?: 'filled' | 'outlined' | 'standard';
|
|
5
5
|
status?: Status;
|
|
@@ -10,8 +10,8 @@ export interface AvatarProps extends DIVProps {
|
|
|
10
10
|
imgRef?: Ref<HTMLImageElement>;
|
|
11
11
|
}
|
|
12
12
|
export declare function useAvatarStyle(props: Pick<AvatarProps, 'color' | 'size'>): {
|
|
13
|
-
color:
|
|
14
|
-
size:
|
|
13
|
+
color: any;
|
|
14
|
+
size: any;
|
|
15
15
|
};
|
|
16
16
|
export declare const Avatar: {
|
|
17
17
|
(props: AvatarProps): ReactElement;
|
|
@@ -11,4 +11,4 @@ export interface AvatarGroupProps extends Omit<AvatarProps, 'src'> {
|
|
|
11
11
|
/** 超过最大限制时,渲染的额外头像 */
|
|
12
12
|
renderSurplus?(surplus: number): ReactNode;
|
|
13
13
|
}
|
|
14
|
-
export declare const AvatarGroup: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
14
|
+
export declare const AvatarGroup: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<AvatarGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -13,4 +13,4 @@ export interface BadgeProps extends DIVProps {
|
|
|
13
13
|
offsetX?: number | string;
|
|
14
14
|
offsetY?: number | string;
|
|
15
15
|
}
|
|
16
|
-
export declare const Badge: import("react").ForwardRefExoticComponent<
|
|
16
|
+
export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -7,4 +7,4 @@ export interface BottomNavigationItemProps extends DIVProps {
|
|
|
7
7
|
showLabelInactive?: boolean;
|
|
8
8
|
active?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const BottomNavigationItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
10
|
+
export declare const BottomNavigationItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<BottomNavigationItemProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -9,4 +9,4 @@ export interface CardProps extends FlexProps {
|
|
|
9
9
|
/** @default theme.borderRadius */
|
|
10
10
|
borderRadius?: number;
|
|
11
11
|
}
|
|
12
|
-
export declare const Card: import("react").ForwardRefExoticComponent<
|
|
12
|
+
export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -10,4 +10,4 @@ export declare const Checkbox: {
|
|
|
10
10
|
};
|
|
11
11
|
export interface CheckboxGroupProps<I extends ItemType, V extends Id = Id> extends Omit<CheckboxBaseGroupMultipleProps<I, V>, 'multiple'> {
|
|
12
12
|
}
|
|
13
|
-
export declare const CheckboxGroup: import("react").ForwardRefExoticComponent<
|
|
13
|
+
export declare const CheckboxGroup: import("react").ForwardRefExoticComponent<CheckboxGroupProps<ItemType, Id> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -16,4 +16,4 @@ export interface CheckboxBaseProps extends DIVProps {
|
|
|
16
16
|
checked?: boolean;
|
|
17
17
|
onChange?(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
18
18
|
}
|
|
19
|
-
export declare const CheckboxBase: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
19
|
+
export declare const CheckboxBase: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<CheckboxBaseProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CheckboxBaseProps } from './checkboxBase';
|
|
2
2
|
export declare const classes: {
|
|
3
|
-
checkbox: string;
|
|
4
|
-
radio: string;
|
|
5
3
|
input: string;
|
|
6
4
|
label: string;
|
|
7
5
|
icon: string;
|
|
6
|
+
checkbox: string;
|
|
7
|
+
radio: string;
|
|
8
8
|
radioChecked: string;
|
|
9
9
|
indeterminate: string;
|
|
10
10
|
} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { FlexProps } from '../flex';
|
|
3
3
|
import { CheckboxBaseProps } from '../checkboxBase';
|
|
4
|
-
import {
|
|
4
|
+
import { Id, Obj } from '../../..';
|
|
5
5
|
export interface ItemType extends Omit<CheckboxBaseProps, '_type'>, Obj {
|
|
6
6
|
}
|
|
7
7
|
export interface CheckboxBaseGroupCommonProps<I extends ItemType> extends Omit<FlexProps, 'defaultValue' | 'onChange'> {
|
|
@@ -24,8 +24,8 @@ export interface CheckboxBaseGroupMultipleProps<I extends ItemType, V extends Id
|
|
|
24
24
|
}
|
|
25
25
|
export type CheckboxBaseGroupProps<I extends ItemType, V extends Id = Id> = CheckboxBaseGroupSingleProps<I, V> | CheckboxBaseGroupMultipleProps<I, V>;
|
|
26
26
|
export declare function useCheckboxBaseGroupContext(): {
|
|
27
|
-
size?:
|
|
28
|
-
color?:
|
|
27
|
+
size?: any;
|
|
28
|
+
color?: any;
|
|
29
29
|
checked?: boolean;
|
|
30
30
|
setChecked?(checked: boolean): void;
|
|
31
31
|
};
|
|
@@ -10,4 +10,4 @@ export interface ClickAwayProps extends DIVProps {
|
|
|
10
10
|
/** 用于参考的目标元素,若为数组,需要点击数组外的元素才会触发clickAway */
|
|
11
11
|
targets?: () => Element | null | (Element | null)[];
|
|
12
12
|
}
|
|
13
|
-
export declare const ClickAway: import("react").ForwardRefExoticComponent<
|
|
13
|
+
export declare const ClickAway: import("react").ForwardRefExoticComponent<ClickAwayProps & import("react").RefAttributes<any>>;
|
|
@@ -15,4 +15,4 @@ export interface CounterProps extends Omit<FlexProps, 'defaultValue' | 'onChange
|
|
|
15
15
|
increaseProps?: ButtonProps;
|
|
16
16
|
inputProps?: InputProps;
|
|
17
17
|
}
|
|
18
|
-
export declare const Counter: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
18
|
+
export declare const Counter: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<CounterProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -96,7 +96,7 @@ export interface DataGridContext<R extends RowType> extends DataGridSharedProps<
|
|
|
96
96
|
toggleSelected?(key: Id): void;
|
|
97
97
|
}
|
|
98
98
|
export declare function useDataGridContext(): {
|
|
99
|
-
flattedColumns?: (symbol | ColumnType<
|
|
99
|
+
flattedColumns?: (symbol | ColumnType<Obj>)[] | undefined;
|
|
100
100
|
toggleExpanded?(key: Id): void;
|
|
101
101
|
multiple?: boolean;
|
|
102
102
|
innerValue?: Id | Id[];
|
|
@@ -105,13 +105,13 @@ export declare function useDataGridContext(): {
|
|
|
105
105
|
* 当数据中存在该字段,则会渲染可展开的子行;
|
|
106
106
|
* children允许的值类型 @type {R[] | ReactNode | ((parent: R, expanded: boolean) => ReactNode)}
|
|
107
107
|
*/
|
|
108
|
-
childrenKey?:
|
|
108
|
+
childrenKey?: string | number | symbol | undefined;
|
|
109
109
|
renderExpandIcon?(key: Id, isExpand: boolean, expanded: Id[]): ReactNode;
|
|
110
|
-
rowProps?(row:
|
|
110
|
+
rowProps?(row: Obj, index: number, rows: Obj[]): JSX.IntrinsicElements["tr"];
|
|
111
111
|
/** 点击行时是否触发选中,@default true */
|
|
112
112
|
clickRowToSelect?: boolean;
|
|
113
|
-
selectorProps?(row:
|
|
114
|
-
primaryKey:
|
|
113
|
+
selectorProps?(row: Obj, index: number, rows: Obj[]): CheckboxProps | RadioProps;
|
|
114
|
+
primaryKey: string | number | symbol;
|
|
115
115
|
indent: number;
|
|
116
116
|
expandedSet: Set<Id>;
|
|
117
117
|
};
|
|
@@ -13,5 +13,5 @@ interface DescriptionTableItemProps extends DescriptionItemBaseProps {
|
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
}
|
|
15
15
|
export type DescriptionItemProps = DescriptionGridItemProps | DescriptionTableItemProps;
|
|
16
|
-
export declare const DescriptionItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
16
|
+
export declare const DescriptionItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<DescriptionItemProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
17
17
|
export {};
|
|
@@ -33,4 +33,4 @@ export interface DialogProps extends Omit<ModalProps, 'title' | 'prefix'> {
|
|
|
33
33
|
defaultOpen?: boolean;
|
|
34
34
|
onClose?(closeReason: DialogCloseReason): void;
|
|
35
35
|
}
|
|
36
|
-
export declare const Dialog: React.ForwardRefExoticComponent<
|
|
36
|
+
export declare const Dialog: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,4 +5,4 @@ export interface DividerProps extends DIVProps {
|
|
|
5
5
|
orientation?: 'horizontal' | 'vertical';
|
|
6
6
|
margin?: number | string;
|
|
7
7
|
}
|
|
8
|
-
export declare const Divider: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
8
|
+
export declare const Divider: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -17,4 +17,4 @@ export interface DrawerProps extends Omit<OverlayBaseProps, 'title'> {
|
|
|
17
17
|
slideProps?: TransitionBaseProps<HTMLDivElement>;
|
|
18
18
|
}
|
|
19
19
|
export type DrawerCloseReason = 'escape' | 'closed' | 'maskClicked';
|
|
20
|
-
export declare const Drawer: import("react").ForwardRefExoticComponent<
|
|
20
|
+
export declare const Drawer: import("react").ForwardRefExoticComponent<DrawerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -12,4 +12,4 @@ export interface FlexProps extends TransportStyleProps {
|
|
|
12
12
|
/** 当compact为true时,gap无效,而且会清除子元素的圆角,让他们拼接起来 */
|
|
13
13
|
compact?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const Flex: import("react").ForwardRefExoticComponent<
|
|
15
|
+
export declare const Flex: import("react").ForwardRefExoticComponent<FlexProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -4,4 +4,4 @@ export interface GridItemProps extends TransportStyleProps {
|
|
|
4
4
|
span?: ResponsiveProp;
|
|
5
5
|
offset?: ResponsiveProp;
|
|
6
6
|
}
|
|
7
|
-
export declare const GridItem: import("react").ForwardRefExoticComponent<
|
|
7
|
+
export declare const GridItem: import("react").ForwardRefExoticComponent<GridItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -16,4 +16,4 @@ export interface ImageProps extends DIVProps {
|
|
|
16
16
|
previewProps?: ImagePreviewProps;
|
|
17
17
|
onPreview?(e: React.MouseEvent<HTMLDivElement>): void;
|
|
18
18
|
}
|
|
19
|
-
export declare const Image: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
19
|
+
export declare const Image: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ImageProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -7,4 +7,4 @@ export interface ImagePreviewProps extends ModalProps {
|
|
|
7
7
|
closable?: boolean;
|
|
8
8
|
transformWrapper?: ReactZoomPanPinchProps;
|
|
9
9
|
}
|
|
10
|
-
export declare const ImagePreview: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
10
|
+
export declare const ImagePreview: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ImagePreviewProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -11,4 +11,4 @@ export interface LoadingProps extends DIVProps {
|
|
|
11
11
|
indicatorProps?: LoadingIndicatorProps;
|
|
12
12
|
progressProps?: ProgressProps;
|
|
13
13
|
}
|
|
14
|
-
export declare const Loading: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
14
|
+
export declare const Loading: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<LoadingProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -4,4 +4,4 @@ export interface LoadingIndicatorProps extends DIVProps {
|
|
|
4
4
|
width?: number;
|
|
5
5
|
color?: ColorPropsValue;
|
|
6
6
|
}
|
|
7
|
-
export declare const LoadingIndicator: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
7
|
+
export declare const LoadingIndicator: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<LoadingIndicatorProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -3,4 +3,4 @@ import { TransitionBaseProps } from '../transitionBase';
|
|
|
3
3
|
export interface ModalProps extends OverlayBaseProps {
|
|
4
4
|
modalProps?: TransitionBaseProps<HTMLDivElement>;
|
|
5
5
|
}
|
|
6
|
-
export declare const Modal: import("react").ForwardRefExoticComponent<
|
|
6
|
+
export declare const Modal: import("react").ForwardRefExoticComponent<ModalProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -16,4 +16,4 @@ export interface OverlayBaseProps extends DIVProps {
|
|
|
16
16
|
removeFocusOnOpen?: boolean;
|
|
17
17
|
}
|
|
18
18
|
export declare const overlayBaseTransitionDuration = 300;
|
|
19
|
-
export declare const OverlayBase: import("react").ForwardRefExoticComponent<
|
|
19
|
+
export declare const OverlayBase: import("react").ForwardRefExoticComponent<OverlayBaseProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DIVProps } from '../../..';
|
|
2
2
|
export interface PaginationCounterProps extends DIVProps {
|
|
3
3
|
}
|
|
4
|
-
export declare const PaginationCounter: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
4
|
+
export declare const PaginationCounter: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<PaginationCounterProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -5,4 +5,4 @@ export interface PaginationJumperProps extends DIVProps {
|
|
|
5
5
|
InputProps?: InputProps;
|
|
6
6
|
InputRef?: Ref<HTMLDivElement>;
|
|
7
7
|
}
|
|
8
|
-
export declare const PaginationJumper: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
8
|
+
export declare const PaginationJumper: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<PaginationJumperProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DIVProps } from '../../..';
|
|
2
2
|
export interface PaginationPagerProps extends DIVProps {
|
|
3
3
|
}
|
|
4
|
-
export declare const PaginationPager: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
4
|
+
export declare const PaginationPager: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<PaginationPagerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -19,4 +19,4 @@ export interface ProgressProps extends DIVProps {
|
|
|
19
19
|
strokeLinecap?: React.SVGAttributes<SVGCircleElement>['strokeLinecap'];
|
|
20
20
|
value?: number;
|
|
21
21
|
}
|
|
22
|
-
export declare const Progress: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
22
|
+
export declare const Progress: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ProgressProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -10,4 +10,4 @@ export declare const Radio: {
|
|
|
10
10
|
};
|
|
11
11
|
export interface RadioGroupProps<I extends ItemType, V extends Id = Id> extends Omit<CheckboxBaseGroupSingleProps<I, V>, 'multiple'> {
|
|
12
12
|
}
|
|
13
|
-
export declare const RadioGroup: import("react").ForwardRefExoticComponent<
|
|
13
|
+
export declare const RadioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps<ItemType, Id> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -23,7 +23,7 @@ export interface SkeletonCardProps extends SkeletonSharedProps, DIVProps {
|
|
|
23
23
|
/** @default 3 */
|
|
24
24
|
rows?: number;
|
|
25
25
|
}
|
|
26
|
-
export declare const SkeletonCard: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
26
|
+
export declare const SkeletonCard: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<SkeletonCardProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
27
27
|
export interface SkeletonTableProps extends SkeletonSharedProps, Partial<JSX.IntrinsicElements['table']> {
|
|
28
28
|
columns?: number;
|
|
29
29
|
rows?: number;
|
|
@@ -10,4 +10,4 @@ export interface SlidableActionsActionProps extends DIVProps {
|
|
|
10
10
|
/** @private */
|
|
11
11
|
_index?: number;
|
|
12
12
|
}
|
|
13
|
-
export declare const SlidableActionsAction: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
13
|
+
export declare const SlidableActionsAction: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<SlidableActionsActionProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AntdIconProps } from '@ant-design/icons/lib/components/AntdIcon';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { DIVProps
|
|
3
|
+
import { DIVProps } from '../../..';
|
|
4
4
|
export type StatusType = IStatus | 'confirm' | 'unknown';
|
|
5
5
|
export declare const statusMapToIcon: {
|
|
6
6
|
info: import("react").ForwardRefExoticComponent<Omit<AntdIconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -24,4 +24,4 @@ export interface StatusProps extends DIVProps {
|
|
|
24
24
|
/** 是否播放动画,@default false */
|
|
25
25
|
animation?: boolean;
|
|
26
26
|
}
|
|
27
|
-
export declare const Status: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
27
|
+
export declare const Status: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<StatusProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TabsProps } from './tabs';
|
|
2
2
|
export declare const classes: {
|
|
3
|
-
prefix: string;
|
|
4
|
-
tab: string;
|
|
5
3
|
label: string;
|
|
4
|
+
prefix: string;
|
|
6
5
|
suffix: string;
|
|
7
6
|
indicator: string;
|
|
8
|
-
|
|
7
|
+
tab: string;
|
|
9
8
|
start: string;
|
|
9
|
+
end: string;
|
|
10
10
|
scroll: string;
|
|
11
11
|
ellipsis: string;
|
|
12
12
|
scrollWrap: string;
|
|
@@ -9,4 +9,4 @@ export interface TimelineItemProps extends Omit<TimelineSharedProps, 'content'>
|
|
|
9
9
|
/** @private 内部使用,用于alternate模式下判断标签位置 */
|
|
10
10
|
_index?: number;
|
|
11
11
|
}
|
|
12
|
-
export declare const TimelineItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
12
|
+
export declare const TimelineItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<TimelineItemProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -12,5 +12,5 @@ export declare const TouchRipple: {
|
|
|
12
12
|
interface RippleProps extends DIVProps {
|
|
13
13
|
color?: ColorPropsValue;
|
|
14
14
|
}
|
|
15
|
-
export declare const Ripple: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
15
|
+
export declare const Ripple: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<RippleProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
16
16
|
export {};
|
|
@@ -27,4 +27,4 @@ export interface TransportStyleProps extends DIVProps {
|
|
|
27
27
|
marginBottom?: CSSProperties['marginBottom'];
|
|
28
28
|
marginLeft?: CSSProperties['marginLeft'];
|
|
29
29
|
}
|
|
30
|
-
export declare const TransportStyle: import("react").ForwardRefExoticComponent<
|
|
30
|
+
export declare const TransportStyle: import("react").ForwardRefExoticComponent<TransportStyleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -7,4 +7,4 @@ export interface WaterfallProps extends TransportStyleProps {
|
|
|
7
7
|
columnGap?: ResponsiveProp;
|
|
8
8
|
rowGap?: ResponsiveProp;
|
|
9
9
|
}
|
|
10
|
-
export declare const Waterfall: import("react").ForwardRefExoticComponent<
|
|
10
|
+
export declare const Waterfall: import("react").ForwardRefExoticComponent<WaterfallProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -10,4 +10,4 @@ export interface SvgViewerProps extends DocumentViewerBaseProps, Omit<LoadingPro
|
|
|
10
10
|
onThemeChange?(mode: Theme['mode']): void;
|
|
11
11
|
transformWrapperProps?: ReactZoomPanPinchProps;
|
|
12
12
|
}
|
|
13
|
-
export declare const SvgViewer: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
13
|
+
export declare const SvgViewer: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<SvgViewerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
package/dist/cjs/utils/curd.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { CurdColumn,
|
|
1
|
+
import { CurdColumn, CurdProps } from '../components/curd';
|
|
2
2
|
import { ColumnType, RowType } from '../components/dataGrid';
|
|
3
3
|
import { Id, Obj } from '../..';
|
|
4
4
|
/**
|
|
5
5
|
* 将Curd的Columns转换为FilterItem
|
|
6
6
|
* @param columns
|
|
7
7
|
*/
|
|
8
|
-
export declare function columnsToFilterItem(columns?: (CurdColumn<any> | symbol)[]):
|
|
8
|
+
export declare function columnsToFilterItem(columns?: (CurdColumn<any> | symbol)[]): any[] | undefined;
|
|
9
9
|
/**
|
|
10
10
|
* 将Curd的Columns转换为FormItem
|
|
11
11
|
* @param columns
|
|
12
12
|
*/
|
|
13
|
-
export declare function columnsToFormItem(columns?: (CurdColumn<any> | symbol)[], row?: Obj):
|
|
13
|
+
export declare function columnsToFormItem(columns?: (CurdColumn<any> | symbol)[], row?: Obj): any[] | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* 统一处理Columns
|
|
16
16
|
*/
|
|
17
17
|
export declare function useCurdColumns<R extends RowType, V extends Id = Id>({ columns, columnConfigurable }: Pick<CurdProps<R, V>, 'columns' | 'columnConfigurable'>): {
|
|
18
|
-
orderedColumns:
|
|
18
|
+
orderedColumns: CurdColumn<R>[];
|
|
19
19
|
actualColumns: (symbol | ColumnType<R>)[];
|
|
20
20
|
innerVisible: import("react").MutableRefObject<Id[]>;
|
|
21
21
|
setInnerVisible: import("react").Dispatch<import("react").SetStateAction<Id[]>>;
|
|
@@ -4,7 +4,7 @@ import { ColumnType, DataGridProps, RowType } from '../components/dataGrid';
|
|
|
4
4
|
* 为列添加key
|
|
5
5
|
* @param col
|
|
6
6
|
*/
|
|
7
|
-
export declare function setDefaultColumnKey<R extends Obj>(col: Pick<ColumnType<R>, 'key' | 'field'>):
|
|
7
|
+
export declare function setDefaultColumnKey<R extends Obj>(col: Pick<ColumnType<R>, 'key' | 'field'>): any;
|
|
8
8
|
/**
|
|
9
9
|
* 索引列
|
|
10
10
|
* @param columns
|
package/dist/cjs/utils/form.d.ts
CHANGED
|
@@ -35,12 +35,12 @@ export declare function useCss<T>(callback: (theme: Theme) => T, deps?: any[]):
|
|
|
35
35
|
* @param colorPropsValue
|
|
36
36
|
* @param theme
|
|
37
37
|
*/
|
|
38
|
-
export declare function colorTransfer(colorPropsValue: ColorPropsValue, theme: Theme):
|
|
38
|
+
export declare function colorTransfer(colorPropsValue: ColorPropsValue, theme: Theme): any;
|
|
39
39
|
/**
|
|
40
40
|
* 将useCss()与colorTransfer()方法结合封装
|
|
41
41
|
* @param colorPropsValue
|
|
42
42
|
*/
|
|
43
|
-
export declare function useColor(colorPropsValue: ColorPropsValue):
|
|
43
|
+
export declare function useColor(colorPropsValue: ColorPropsValue): any;
|
|
44
44
|
/**
|
|
45
45
|
* 点击的波纹效果
|
|
46
46
|
* @param colorPropsValue
|
|
@@ -61,7 +61,7 @@ export declare function responsiveValue<T = number>(prop: ResponsiveProp<T>): Re
|
|
|
61
61
|
* 使用hooks监听响应式值的变化
|
|
62
62
|
* @param prop
|
|
63
63
|
*/
|
|
64
|
-
export declare function useResponsiveValue<T = number>(prop: ResponsiveProp<T>):
|
|
64
|
+
export declare function useResponsiveValue<T = number>(prop: ResponsiveProp<T>): any;
|
|
65
65
|
/**
|
|
66
66
|
* 使用状态对应的颜色
|
|
67
67
|
* @param status
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canlooks/can-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"author": "C.CanLiang <canlooks@gmail.com>",
|
|
5
5
|
"description": "My ui framework",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
},
|
|
23
23
|
"main": "dist/cjs/index.js",
|
|
24
24
|
"module": "dist/esm/index.js",
|
|
25
|
-
"types": "index.d.ts",
|
|
25
|
+
"types": "dist/esm/index.d.ts",
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
28
|
"import": "./dist/esm/index.js",
|
|
29
29
|
"require": "./dist/cjs/index.js",
|
|
30
|
-
"types": "./index.d.ts"
|
|
30
|
+
"types": "./dist/esm/index.d.ts"
|
|
31
31
|
},
|
|
32
32
|
"./extensions/*": {
|
|
33
33
|
"import": "./extensions/*.mjs",
|