@canlooks/can-ui 0.0.3 → 0.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/dist/cjs/components/accordion/accordion.d.ts +1 -1
- package/dist/cjs/components/actionSheet/actionSheet.d.ts +1 -1
- 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/alert/alert.style.d.ts +1 -1
- package/dist/cjs/components/app/app.d.ts +1 -1
- package/dist/cjs/components/app/appActionSheet.d.ts +1 -1
- package/dist/cjs/components/app/appNotification.d.ts +1 -1
- package/dist/cjs/components/app/theme.d.ts +1 -1
- package/dist/cjs/components/avatar/avatar.d.ts +3 -3
- package/dist/cjs/components/avatar/avatar.style.d.ts +1 -1
- package/dist/cjs/components/avatar/avatarGroup.d.ts +2 -2
- package/dist/cjs/components/badge/badge.d.ts +2 -2
- package/dist/cjs/components/badge/badge.style.d.ts +1 -1
- package/dist/cjs/components/bottomNavigation/bottomNavigation.d.ts +1 -1
- package/dist/cjs/components/bottomNavigation/bottomNavigationItem.d.ts +2 -2
- package/dist/cjs/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/cjs/components/bubbleConfirm/bubbleConfirm.style.d.ts +1 -1
- package/dist/cjs/components/button/button.d.ts +1 -1
- package/dist/cjs/components/button/button.style.d.ts +1 -1
- package/dist/cjs/components/card/card.d.ts +1 -1
- package/dist/cjs/components/cascade/cascade.d.ts +1 -1
- package/dist/cjs/components/cascade/searchResult.d.ts +1 -1
- package/dist/cjs/components/checkbox/checkbox.d.ts +2 -2
- package/dist/cjs/components/checkboxBase/checkboxBase.d.ts +2 -2
- 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 +2 -2
- package/dist/cjs/components/colorPicker/colorPicker.d.ts +1 -1
- package/dist/cjs/components/counter/counter.d.ts +2 -2
- package/dist/cjs/components/curd/curd.d.ts +1 -1
- package/dist/cjs/components/curd/curd.style.d.ts +1 -1
- package/dist/cjs/components/curd/curdColumnConfig.d.ts +1 -1
- package/dist/cjs/components/curd/curdResizable.d.ts +1 -1
- package/dist/cjs/components/dataGrid/dataGrid.d.ts +6 -6
- package/dist/cjs/components/dataGrid/dataGrid.style.d.ts +1 -1
- package/dist/cjs/components/dataGrid/dataGridHead.d.ts +1 -1
- package/dist/cjs/components/dataGrid/dataGridRows.d.ts +1 -1
- package/dist/cjs/components/dateTimePicker/calendar.d.ts +1 -1
- package/dist/cjs/components/dateTimeRangePicker/dateTimeRangePicker.d.ts +1 -1
- package/dist/cjs/components/descriptions/descriptionItem.d.ts +2 -2
- package/dist/cjs/components/descriptions/descriptions.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 +2 -2
- package/dist/cjs/components/divider/divider.style.d.ts +1 -1
- package/dist/cjs/components/draggable/draggable.d.ts +1 -1
- package/dist/cjs/components/drawer/drawer.d.ts +2 -2
- package/dist/cjs/components/drawer/drawer.style.d.ts +1 -1
- package/dist/cjs/components/flex/flex.d.ts +1 -1
- package/dist/cjs/components/form/form.d.ts +1 -1
- package/dist/cjs/components/form/formItem.d.ts +1 -1
- package/dist/cjs/components/formDialog/formDialog.d.ts +1 -1
- package/dist/cjs/components/grid/grid.d.ts +1 -1
- package/dist/cjs/components/grid/grid.style.d.ts +1 -1
- package/dist/cjs/components/grid/gridItem.d.ts +2 -2
- package/dist/cjs/components/image/image.d.ts +2 -2
- package/dist/cjs/components/image/imagePreview.d.ts +1 -1
- package/dist/cjs/components/inputBase/inputBase.d.ts +1 -1
- package/dist/cjs/components/loading/loading.d.ts +2 -2
- package/dist/cjs/components/loadingIndicator/loadingIndicator.d.ts +2 -2
- package/dist/cjs/components/menu/menu.d.ts +1 -1
- package/dist/cjs/components/menuItem/menuItem.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/optionsBase/optionsBase.d.ts +1 -1
- package/dist/cjs/components/overlayBase/overlayBase.d.ts +2 -2
- package/dist/cjs/components/pagination/counter.d.ts +2 -2
- package/dist/cjs/components/pagination/jumper.d.ts +2 -2
- package/dist/cjs/components/pagination/pager.d.ts +2 -2
- package/dist/cjs/components/pagination/pagination.d.ts +1 -1
- package/dist/cjs/components/pagination/sizer.d.ts +1 -1
- package/dist/cjs/components/palette/colorValueInput.d.ts +1 -1
- package/dist/cjs/components/palette/palette.d.ts +1 -1
- package/dist/cjs/components/palette/palette.style.d.ts +1 -1
- package/dist/cjs/components/pickerDialog/pickerDialog.d.ts +1 -1
- package/dist/cjs/components/placeholder/placeholder.d.ts +1 -1
- package/dist/cjs/components/popper/popper.d.ts +1 -1
- package/dist/cjs/components/progress/progress.d.ts +2 -2
- package/dist/cjs/components/radio/radio.d.ts +2 -2
- package/dist/cjs/components/rating/rating.d.ts +1 -1
- package/dist/cjs/components/rating/rating.style.d.ts +1 -1
- package/dist/cjs/components/resizable/resizable.d.ts +1 -1
- package/dist/cjs/components/segmented/SegmentedOption.d.ts +1 -1
- package/dist/cjs/components/segmented/segmented.d.ts +1 -1
- package/dist/cjs/components/segmented/segmented.style.d.ts +2 -2
- package/dist/cjs/components/select/select.d.ts +1 -1
- package/dist/cjs/components/selectedList/selectedList.d.ts +1 -1
- package/dist/cjs/components/selectionContext/selectionContext.d.ts +1 -1
- package/dist/cjs/components/selectionContext/selectionHook.d.ts +1 -1
- package/dist/cjs/components/skeleton/skeleton.d.ts +2 -2
- package/dist/cjs/components/slidableActions/slidableActions.d.ts +1 -1
- package/dist/cjs/components/slidableActions/slidableActionsAction.d.ts +2 -2
- package/dist/cjs/components/slider/slider.d.ts +1 -1
- package/dist/cjs/components/slider/slider.style.d.ts +2 -2
- package/dist/cjs/components/snackbarBase/snackbarBase.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/stepper/stepper.d.ts +1 -1
- package/dist/cjs/components/switch/switch.d.ts +1 -1
- package/dist/cjs/components/switch/switch.style.d.ts +1 -1
- package/dist/cjs/components/table/table.d.ts +1 -1
- package/dist/cjs/components/tabs/tab.d.ts +1 -1
- package/dist/cjs/components/tabs/tabs.d.ts +1 -1
- package/dist/cjs/components/tabs/tabs.style.d.ts +3 -3
- package/dist/cjs/components/tag/tag.d.ts +1 -1
- package/dist/cjs/components/timeline/timeline.d.ts +1 -1
- package/dist/cjs/components/timeline/timeline.style.d.ts +1 -1
- package/dist/cjs/components/timeline/timelineItem.d.ts +1 -1
- package/dist/cjs/components/toggleButton/toggleButton.d.ts +1 -1
- package/dist/cjs/components/tooltip/tooltip.d.ts +1 -1
- package/dist/cjs/components/touchRipple/touchRipple.d.ts +2 -2
- package/dist/cjs/components/touchRipple/touchRipple.style.d.ts +1 -1
- package/dist/cjs/components/transfer/transfer.d.ts +1 -1
- package/dist/cjs/components/transfer/transfer.style.d.ts +1 -1
- package/dist/cjs/components/transfer/transferPanel.d.ts +1 -1
- package/dist/cjs/components/transportStyle/transportStyle.d.ts +2 -2
- package/dist/cjs/components/tree/tree.d.ts +1 -1
- package/dist/cjs/components/tree/tree.style.d.ts +2 -2
- package/dist/cjs/components/tree/treeNode.d.ts +1 -1
- package/dist/cjs/components/treeSelect/treeSelect.d.ts +1 -1
- package/dist/cjs/components/typography/typography.d.ts +1 -1
- package/dist/cjs/components/typography/typography.style.d.ts +1 -1
- package/dist/cjs/components/upload/dropArea.d.ts +1 -1
- package/dist/cjs/components/upload/upload.d.ts +1 -1
- package/dist/cjs/components/waterfall/waterfall.d.ts +2 -2
- package/dist/cjs/components/waterfall/waterfall.style.d.ts +1 -1
- package/dist/cjs/extensions/curd/curd.d.ts +1 -1
- package/dist/cjs/extensions/documentViewer/svgViewer.d.ts +1 -1
- package/dist/cjs/extensions/textFormatter/textFormatter.d.ts +1 -1
- package/dist/cjs/utils/curd.d.ts +5 -5
- package/dist/cjs/utils/dataGrid.d.ts +2 -2
- package/dist/cjs/utils/dnd.d.ts +1 -1
- package/dist/cjs/utils/form.d.ts +2 -2
- package/dist/cjs/utils/hooks.d.ts +1 -1
- package/dist/cjs/utils/style.d.ts +4 -4
- package/dist/cjs/utils/tree.d.ts +1 -1
- package/dist/cjs/utils/utils.d.ts +1 -1
- package/dist/esm/components/accordion/accordion.d.ts +1 -1
- package/dist/esm/components/actionSheet/actionSheet.d.ts +1 -1
- package/dist/esm/components/alert/alert.d.ts +1 -1
- package/dist/esm/components/alert/alert.style.d.ts +1 -1
- package/dist/esm/components/app/app.d.ts +1 -1
- package/dist/esm/components/app/appActionSheet.d.ts +1 -1
- package/dist/esm/components/app/appNotification.d.ts +1 -1
- package/dist/esm/components/app/theme.d.ts +1 -1
- package/dist/esm/components/avatar/avatar.d.ts +1 -1
- package/dist/esm/components/avatar/avatar.style.d.ts +1 -1
- package/dist/esm/components/avatar/avatarGroup.d.ts +1 -1
- package/dist/esm/components/badge/badge.d.ts +1 -1
- package/dist/esm/components/badge/badge.style.d.ts +1 -1
- package/dist/esm/components/bottomNavigation/bottomNavigation.d.ts +1 -1
- package/dist/esm/components/bottomNavigation/bottomNavigationItem.d.ts +1 -1
- package/dist/esm/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/esm/components/button/button.d.ts +1 -1
- package/dist/esm/components/button/button.style.d.ts +1 -1
- package/dist/esm/components/cascade/cascade.d.ts +1 -1
- package/dist/esm/components/cascade/searchResult.d.ts +1 -1
- package/dist/esm/components/checkbox/checkbox.d.ts +1 -1
- package/dist/esm/components/checkboxBase/checkboxBase.d.ts +1 -1
- package/dist/esm/components/checkboxBaseGroup/checkboxBaseGroup.d.ts +1 -1
- package/dist/esm/components/clickAway/clickAway.d.ts +1 -1
- package/dist/esm/components/colorPicker/colorPicker.d.ts +1 -1
- package/dist/esm/components/counter/counter.d.ts +1 -1
- package/dist/esm/components/curd/curd.d.ts +1 -1
- package/dist/esm/components/curd/curdColumnConfig.d.ts +1 -1
- package/dist/esm/components/curd/curdResizable.d.ts +1 -1
- package/dist/esm/components/dataGrid/dataGrid.d.ts +1 -1
- package/dist/esm/components/dataGrid/dataGridHead.d.ts +1 -1
- package/dist/esm/components/dataGrid/dataGridRows.d.ts +1 -1
- package/dist/esm/components/dateTimePicker/calendar.d.ts +1 -1
- package/dist/esm/components/dateTimeRangePicker/dateTimeRangePicker.d.ts +1 -1
- package/dist/esm/components/descriptions/descriptionItem.d.ts +1 -1
- package/dist/esm/components/descriptions/descriptions.d.ts +1 -1
- package/dist/esm/components/divider/divider.d.ts +1 -1
- package/dist/esm/components/draggable/draggable.d.ts +1 -1
- package/dist/esm/components/drawer/drawer.d.ts +1 -1
- package/dist/esm/components/drawer/drawer.style.d.ts +1 -1
- package/dist/esm/components/form/form.d.ts +1 -1
- package/dist/esm/components/form/formItem.d.ts +1 -1
- package/dist/esm/components/formDialog/formDialog.d.ts +1 -1
- package/dist/esm/components/grid/grid.d.ts +1 -1
- package/dist/esm/components/grid/grid.style.d.ts +1 -1
- package/dist/esm/components/grid/gridItem.d.ts +1 -1
- package/dist/esm/components/image/image.d.ts +1 -1
- package/dist/esm/components/inputBase/inputBase.d.ts +1 -1
- package/dist/esm/components/loading/loading.d.ts +1 -1
- package/dist/esm/components/loadingIndicator/loadingIndicator.d.ts +1 -1
- package/dist/esm/components/menu/menu.d.ts +1 -1
- package/dist/esm/components/menuItem/menuItem.d.ts +1 -1
- package/dist/esm/components/optionsBase/optionsBase.d.ts +1 -1
- package/dist/esm/components/overlayBase/overlayBase.d.ts +1 -1
- package/dist/esm/components/pagination/counter.d.ts +1 -1
- package/dist/esm/components/pagination/jumper.d.ts +1 -1
- package/dist/esm/components/pagination/pager.d.ts +1 -1
- package/dist/esm/components/pagination/pagination.d.ts +1 -1
- package/dist/esm/components/pagination/sizer.d.ts +1 -1
- package/dist/esm/components/palette/colorValueInput.d.ts +1 -1
- package/dist/esm/components/palette/palette.d.ts +1 -1
- package/dist/esm/components/pickerDialog/pickerDialog.d.ts +1 -1
- package/dist/esm/components/placeholder/placeholder.d.ts +1 -1
- package/dist/esm/components/popper/popper.d.ts +1 -1
- package/dist/esm/components/progress/progress.d.ts +1 -1
- package/dist/esm/components/radio/radio.d.ts +1 -1
- package/dist/esm/components/rating/rating.d.ts +1 -1
- package/dist/esm/components/rating/rating.style.d.ts +1 -1
- package/dist/esm/components/resizable/resizable.d.ts +1 -1
- package/dist/esm/components/segmented/SegmentedOption.d.ts +1 -1
- package/dist/esm/components/segmented/segmented.d.ts +1 -1
- package/dist/esm/components/select/select.d.ts +1 -1
- package/dist/esm/components/selectedList/selectedList.d.ts +1 -1
- package/dist/esm/components/selectionContext/selectionContext.d.ts +1 -1
- package/dist/esm/components/selectionContext/selectionHook.d.ts +1 -1
- package/dist/esm/components/skeleton/skeleton.d.ts +1 -1
- package/dist/esm/components/slidableActions/slidableActions.d.ts +1 -1
- package/dist/esm/components/slidableActions/slidableActionsAction.d.ts +1 -1
- package/dist/esm/components/slider/slider.d.ts +1 -1
- package/dist/esm/components/slider/slider.style.d.ts +1 -1
- package/dist/esm/components/snackbarBase/snackbarBase.d.ts +1 -1
- package/dist/esm/components/status/status.d.ts +1 -1
- package/dist/esm/components/stepper/stepper.d.ts +1 -1
- package/dist/esm/components/switch/switch.d.ts +1 -1
- package/dist/esm/components/switch/switch.style.d.ts +1 -1
- package/dist/esm/components/table/table.d.ts +1 -1
- package/dist/esm/components/tabs/tab.d.ts +1 -1
- package/dist/esm/components/tabs/tabs.d.ts +1 -1
- package/dist/esm/components/tag/tag.d.ts +1 -1
- package/dist/esm/components/timeline/timeline.d.ts +1 -1
- package/dist/esm/components/timeline/timeline.style.d.ts +1 -1
- package/dist/esm/components/toggleButton/toggleButton.d.ts +1 -1
- package/dist/esm/components/tooltip/tooltip.d.ts +1 -1
- package/dist/esm/components/touchRipple/touchRipple.d.ts +1 -1
- package/dist/esm/components/touchRipple/touchRipple.style.d.ts +1 -1
- package/dist/esm/components/transfer/transfer.d.ts +1 -1
- package/dist/esm/components/transfer/transferPanel.d.ts +1 -1
- package/dist/esm/components/transportStyle/transportStyle.d.ts +1 -1
- package/dist/esm/components/tree/tree.d.ts +1 -1
- package/dist/esm/components/tree/treeNode.d.ts +1 -1
- package/dist/esm/components/treeSelect/treeSelect.d.ts +1 -1
- package/dist/esm/components/typography/typography.d.ts +1 -1
- package/dist/esm/components/upload/dropArea.d.ts +1 -1
- package/dist/esm/components/upload/upload.d.ts +1 -1
- package/dist/esm/components/waterfall/waterfall.d.ts +1 -1
- package/dist/esm/components/waterfall/waterfall.style.d.ts +1 -1
- package/dist/esm/extensions/curd/curd.d.ts +1 -1
- package/dist/esm/extensions/textFormatter/textFormatter.d.ts +1 -1
- package/dist/esm/utils/curd.d.ts +1 -1
- package/dist/esm/utils/dataGrid.d.ts +1 -1
- package/dist/esm/utils/dnd.d.ts +1 -1
- package/dist/esm/utils/form.d.ts +1 -1
- package/dist/esm/utils/hooks.d.ts +1 -1
- package/dist/esm/utils/style.d.ts +1 -1
- package/dist/esm/utils/tree.d.ts +1 -1
- package/dist/esm/utils/utils.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { DIVProps } from '
|
|
2
|
+
import { DIVProps } from '../../../index';
|
|
3
3
|
export interface TransportStyleProps extends DIVProps {
|
|
4
4
|
/** 交叉轴对齐方式 */
|
|
5
5
|
alignItems?: CSSProperties['alignItems'];
|
|
@@ -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<TransportStyleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export declare const TransportStyle: import("react").ForwardRefExoticComponent<Omit<TransportStyleProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { DIVProps, Id, Obj } from '
|
|
2
|
+
import { DIVProps, Id, Obj } from '../../../index';
|
|
3
3
|
import { OptionType, SelectionContextBaseProps, SelectionContextMultipleProps, SelectionContextSingleProps } from '../selectionContext';
|
|
4
4
|
import { InputProps } from '../input';
|
|
5
5
|
import { TreeNode, TreeNodeProps } from './treeNode';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement, ReactNode, Ref } from 'react';
|
|
2
2
|
import { PopperProps, PopperRef } from '../popper';
|
|
3
3
|
import { NodeType, TreeBaseProps, TreeMultipleProps, TreeNode, TreeSingleProps } from '../tree';
|
|
4
|
-
import { Id } from '
|
|
4
|
+
import { Id } from '../../../index';
|
|
5
5
|
interface TreeSelectBaseProps<N extends NodeType<V>, V extends Id = Id> extends TreeBaseProps<N, V> {
|
|
6
6
|
/** <select />内部由<input />实现 */
|
|
7
7
|
inputProps?: JSX.IntrinsicElements['input'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { ColorPropsValue, OverridableProps } from '
|
|
2
|
+
import { ColorPropsValue, OverridableProps } from '../../../index';
|
|
3
3
|
import { ButtonProps } from '../button';
|
|
4
4
|
import { InputProps } from '../input';
|
|
5
5
|
import { TextareaProps } from '../textarea';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, ReactElement, ReactNode, Ref, SetStateAction } from 'react';
|
|
2
|
-
import { DIVProps } from '
|
|
2
|
+
import { DIVProps } from '../../../index';
|
|
3
3
|
import { ButtonProps } from '../button';
|
|
4
4
|
import { DropArea } from './dropArea';
|
|
5
5
|
export type UploadStatus = 'default' | 'uploading' | 'success' | 'error';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResponsiveProp } from '
|
|
1
|
+
import { ResponsiveProp } from '../../../index';
|
|
2
2
|
import { TransportStyleProps } from '../transportStyle';
|
|
3
3
|
export interface WaterfallProps extends TransportStyleProps {
|
|
4
4
|
/** 布局列数,@default {xs: 4} */
|
|
@@ -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<WaterfallProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const Waterfall: import("react").ForwardRefExoticComponent<Omit<WaterfallProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -2,7 +2,7 @@ import { ComponentClass, ReactNode } from 'react';
|
|
|
2
2
|
import { CurdBaseProps, CurdColumn } from '../../components/curd';
|
|
3
3
|
import { DataGridProps, RowType } from '../../components/dataGrid';
|
|
4
4
|
import { FormValue } from '../../components/form';
|
|
5
|
-
import { Id } from '
|
|
5
|
+
import { Id } from '../../../index';
|
|
6
6
|
/**
|
|
7
7
|
* -------------------------------------------------------------------
|
|
8
8
|
* 类修饰器
|
|
@@ -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<SvgViewerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
13
|
+
export declare const SvgViewer: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<SvgViewerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
|
package/dist/cjs/utils/curd.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { CurdColumn, CurdProps } from '../components/curd';
|
|
1
|
+
import { CurdColumn, CurdFormItemProps, CurdProps } from '../components/curd';
|
|
2
2
|
import { ColumnType, RowType } from '../components/dataGrid';
|
|
3
|
-
import { Id, Obj } from '
|
|
3
|
+
import { Id, Obj } from '../../index';
|
|
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)[]): CurdFormItemProps[] | 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): CurdFormItemProps[] | 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: any[];
|
|
19
19
|
actualColumns: (symbol | ColumnType<R>)[];
|
|
20
20
|
innerVisible: import("react").MutableRefObject<Id[]>;
|
|
21
21
|
setInnerVisible: import("react").Dispatch<import("react").SetStateAction<Id[]>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Id, Obj } from '
|
|
1
|
+
import { Id, Obj } from '../../index';
|
|
2
2
|
import { ColumnType, DataGridProps, RowType } from '../components/dataGrid';
|
|
3
3
|
/**
|
|
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'>): string | number | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* 索引列
|
|
10
10
|
* @param columns
|
package/dist/cjs/utils/dnd.d.ts
CHANGED
package/dist/cjs/utils/form.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Id } from '
|
|
1
|
+
import { Id } from '../../index';
|
|
2
2
|
/**
|
|
3
3
|
* 从onChange回调中获取表单字段的值
|
|
4
4
|
* @param e
|
|
@@ -10,4 +10,4 @@ export type FieldPath = Id | Id[];
|
|
|
10
10
|
* 将name字段统一转换成字符串方便处理
|
|
11
11
|
* @param field
|
|
12
12
|
*/
|
|
13
|
-
export declare function stringifyField(field: FieldPath):
|
|
13
|
+
export declare function stringifyField(field: FieldPath): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from '../components/app';
|
|
2
|
-
import { Breakpoints, ColorPropsValue, ResponsiveProp, ResponsiveValue } from '
|
|
2
|
+
import { Breakpoints, ColorPropsValue, ResponsiveProp, ResponsiveValue } from '../../index';
|
|
3
3
|
import { StatusType } from '../components/status/status';
|
|
4
4
|
/**
|
|
5
5
|
* 为类名添加统一前缀,通常为内部使用
|
|
@@ -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): string;
|
|
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): string;
|
|
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>): NonNullable<T>;
|
|
65
65
|
/**
|
|
66
66
|
* 使用状态对应的颜色
|
|
67
67
|
* @param status
|
package/dist/cjs/utils/tree.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
import { OverlayBaseProps } from '../overlayBase';
|
|
3
3
|
import { TransitionBaseProps } from '../transitionBase';
|
|
4
4
|
import { MenuItemProps } from '../menuItem';
|
|
5
|
-
import { Obj } from '
|
|
5
|
+
import { Obj } from '../../../index';
|
|
6
6
|
export type ActionSheetCloseReason = 'escape' | 'canceled' | 'confirmed' | 'maskClicked' | 'action';
|
|
7
7
|
export interface ActionSheetProps<A extends MenuItemProps & Obj> extends Omit<OverlayBaseProps, 'title'> {
|
|
8
8
|
title?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ColorPropsValue, DIVProps, Status } from '
|
|
2
|
+
import { ColorPropsValue, DIVProps, Status } from '../../../index';
|
|
3
3
|
export interface AlertProps extends Omit<DIVProps, 'title' | 'prefix' | 'children'> {
|
|
4
4
|
variant?: 'filled' | 'outlined' | 'standard';
|
|
5
5
|
status?: Status;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { DIVProps } from '
|
|
2
|
+
import { DIVProps } from '../../../index';
|
|
3
3
|
import { PartialTheme } from './theme';
|
|
4
4
|
import { AppDialogMethods } from './appDialog';
|
|
5
5
|
import { AppMessageMethods } from './appMessage';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ActionSheetProps } from '../actionSheet';
|
|
3
3
|
import { MenuItemProps } from '../menuItem';
|
|
4
|
-
import { Obj } from '
|
|
4
|
+
import { Obj } from '../../../index';
|
|
5
5
|
export interface AppActionSheetProps<A extends MenuItemProps & Obj> extends Omit<ActionSheetProps<A>, 'onAction' | 'onConfirm'> {
|
|
6
6
|
onAction?(action: A, ...args: any[]): any;
|
|
7
7
|
onConfirm?(...args: any[]): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SnackbarBaseProps } from '../snackbarBase';
|
|
2
2
|
import { SnackbarBaseMethods } from '../snackbarBase';
|
|
3
|
-
import { CornerPlacement } from '
|
|
3
|
+
import { CornerPlacement } from '../../../index';
|
|
4
4
|
export interface AppNotificationProps extends Omit<SnackbarBaseProps, 'placement'> {
|
|
5
5
|
placement?: CornerPlacement;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { ColorPresets, TextColorPresets, ThemeEasingName, Size, Breakpoints } from '
|
|
2
|
+
import { ColorPresets, TextColorPresets, ThemeEasingName, Size, Breakpoints } from '../../../index';
|
|
3
3
|
/**
|
|
4
4
|
* 获取不同程度的灰色
|
|
5
5
|
* @param amount 0 至 1,数值越小越靠近背景颜色,数值越大越靠近文字颜色(mode改变后数组会倒转)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, Ref } from 'react';
|
|
2
|
-
import { ColorPropsValue, DIVProps, Size } from '
|
|
2
|
+
import { ColorPropsValue, DIVProps, Size } from '../../../index';
|
|
3
3
|
import { AvatarGroup } from './avatarGroup';
|
|
4
4
|
export interface AvatarProps extends DIVProps {
|
|
5
5
|
color?: ColorPropsValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { AvatarProps } from './avatar';
|
|
3
|
-
import { Obj } from '
|
|
3
|
+
import { Obj } from '../../../index';
|
|
4
4
|
export interface AvatarGroupProps extends Omit<AvatarProps, 'src'> {
|
|
5
5
|
items?: (AvatarProps & Obj)[];
|
|
6
6
|
hoverable?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ColorPropsValue, DIVProps, Placement } from '
|
|
2
|
+
import { ColorPropsValue, DIVProps, Placement } from '../../../index';
|
|
3
3
|
export interface BadgeProps extends DIVProps {
|
|
4
4
|
color?: ColorPropsValue;
|
|
5
5
|
placement?: Placement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { DIVProps, Id, Obj } from '
|
|
2
|
+
import { DIVProps, Id, Obj } from '../../../index';
|
|
3
3
|
import { BottomNavigationItemProps } from './bottomNavigationItem';
|
|
4
4
|
type BottomNavigationItemType = BottomNavigationItemProps & Obj;
|
|
5
5
|
export interface BottomNavigationProps<I extends BottomNavigationItemType> extends Omit<DIVProps, 'defaultValue' | 'onChange'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { Button, ButtonProps } from '../button';
|
|
3
|
-
import { DIVProps, Obj } from '
|
|
3
|
+
import { DIVProps, Obj } from '../../../index';
|
|
4
4
|
export interface BreadcrumbItemProps extends ButtonProps, Obj {
|
|
5
5
|
/** 对应button的prefix */
|
|
6
6
|
icon?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode, Ref } from 'react';
|
|
2
|
-
import { ColorPropsValue, Size } from '
|
|
2
|
+
import { ColorPropsValue, Size } from '../../../index';
|
|
3
3
|
export interface ButtonProps extends Omit<JSX.IntrinsicElements['button'], 'ref' | 'prefix'> {
|
|
4
4
|
ref?: Ref<HTMLButtonElement>;
|
|
5
5
|
color?: ColorPropsValue;
|
|
@@ -4,7 +4,7 @@ import { InputBaseProps } from '../inputBase';
|
|
|
4
4
|
import { PopperProps, PopperRef } from '../popper';
|
|
5
5
|
import { SelectionContextProps } from '../selectionContext';
|
|
6
6
|
import { MenuOptionType, OptionsBaseSharedProps } from '../optionsBase';
|
|
7
|
-
import { Id } from '
|
|
7
|
+
import { Id } from '../../../index';
|
|
8
8
|
export interface CascadeBaseProps<O extends MenuOptionType<V>, V extends Id = Id> extends Omit<OptionsBaseSharedProps<O>, 'filterPredicate'>, Omit<InputBaseProps<'input'>, 'children' | 'defaultValue' | 'value' | 'onChange'> {
|
|
9
9
|
/** cascade内部由<input />实现 */
|
|
10
10
|
inputProps?: JSX.IntrinsicElements['input'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { OptionType } from '../selectionContext';
|
|
3
|
-
import { Id } from '
|
|
3
|
+
import { Id } from '../../../index';
|
|
4
4
|
type SearchResultProps<O extends OptionType<V>, V extends Id = Id> = {
|
|
5
5
|
primaryKey: keyof O;
|
|
6
6
|
labelKey: keyof O;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { CheckboxBaseProps } from '../checkboxBase';
|
|
3
3
|
import { CheckboxBaseGroupMultipleProps, ItemType } from '../checkboxBaseGroup';
|
|
4
|
-
import { Id } from '
|
|
4
|
+
import { Id } from '../../../index';
|
|
5
5
|
export interface CheckboxProps extends Omit<CheckboxBaseProps, '_type'> {
|
|
6
6
|
}
|
|
7
7
|
export declare const Checkbox: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, Ref } from 'react';
|
|
2
|
-
import { ColorPropsValue, DIVProps, Id, Size } from '
|
|
2
|
+
import { ColorPropsValue, DIVProps, Id, Size } from '../../../index';
|
|
3
3
|
export interface CheckboxBaseProps extends DIVProps {
|
|
4
4
|
inputProps?: JSX.IntrinsicElements['input'];
|
|
5
5
|
inputRef?: Ref<HTMLInputElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { FlexProps } from '../flex';
|
|
3
3
|
import { CheckboxBaseProps } from '../checkboxBase';
|
|
4
|
-
import { ColorPropsValue, Id, Obj, Size } from '
|
|
4
|
+
import { ColorPropsValue, Id, Obj, Size } from '../../../index';
|
|
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'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { DIVProps, DefineElement } from '
|
|
2
|
+
import { DIVProps, DefineElement } from '../../../index';
|
|
3
3
|
export interface ClickAwayProps extends DIVProps {
|
|
4
4
|
container?: DefineElement<Element | Window>;
|
|
5
5
|
/** 传入addEventListener的事件类型,@default 'click' */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, Ref } from 'react';
|
|
2
2
|
import { PopperProps, PopperRef } from '../popper';
|
|
3
|
-
import { ColorPropsValue, DIVProps, Size } from '
|
|
3
|
+
import { ColorPropsValue, DIVProps, Size } from '../../../index';
|
|
4
4
|
import Color from 'color';
|
|
5
5
|
export interface ColorPickerProps extends Omit<DIVProps, 'defaultValue' | 'onChange'> {
|
|
6
6
|
inputProps?: JSX.IntrinsicElements['input'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
-
import { DIVProps, Id, Obj } from '
|
|
2
|
+
import { DIVProps, Id, Obj } from '../../../index';
|
|
3
3
|
import { ColumnType, DataGridBaseProps, DataGridMultipleProps, DataGridSingleProps, OrderType, RowType } from '../dataGrid';
|
|
4
4
|
import { FormItemProps, FormProps, FormRef, FormValue } from '../form';
|
|
5
5
|
import { CurdFilter, CurdFilterProps } from './curdFilter';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dispatch, ReactElement, SetStateAction } from 'react';
|
|
2
2
|
import { CurdColumn } from './curd';
|
|
3
3
|
import { RowType } from '../dataGrid';
|
|
4
|
-
import { Id } from '
|
|
4
|
+
import { Id } from '../../../index';
|
|
5
5
|
type CurdColumnConfigProps<R extends RowType> = {
|
|
6
6
|
columns?: CurdColumn<R>[];
|
|
7
7
|
innerVisible: Id[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { Size } from '
|
|
2
|
+
import { Size } from '../../../index';
|
|
3
3
|
export declare const CurdResizable: import("react").MemoExoticComponent<({ innerSize, setInnerSize }: {
|
|
4
4
|
innerSize: Size;
|
|
5
5
|
setInnerSize: Dispatch<SetStateAction<Size>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { DIVProps, Id, Obj } from '
|
|
2
|
+
import { DIVProps, Id, Obj } from '../../../index';
|
|
3
3
|
import { FieldPath } from '../../utils';
|
|
4
4
|
import { TableProps } from '../table';
|
|
5
5
|
import { PaginationProps } from '../pagination';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { DataGridProps, OrderType } from './dataGrid';
|
|
3
|
-
import { Id, Obj } from '
|
|
3
|
+
import { Id, Obj } from '../../../index';
|
|
4
4
|
interface DataGridHeadProps<R extends Obj, V extends Id = Id> extends Pick<DataGridProps<R, V>, 'columns' | 'onOrderChange' | 'allowSelectAll' | 'multiple' | 'primaryKey' | 'rows'> {
|
|
5
5
|
orderColumn?: Id;
|
|
6
6
|
orderType?: OrderType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { DataGridProps } from './dataGrid';
|
|
3
|
-
import { Id, Obj } from '
|
|
3
|
+
import { Id, Obj } from '../../../index';
|
|
4
4
|
interface DataGridRowsProps<R extends Obj, V extends Id = Id> extends Pick<DataGridProps<R, V>, 'rows'> {
|
|
5
5
|
/** @private 内部使用,用于缩进子行 */
|
|
6
6
|
_level?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ColorPropsValue, DIVProps, Size } from '
|
|
2
|
+
import { ColorPropsValue, DIVProps, Size } from '../../../index';
|
|
3
3
|
import { DatePickerSharedProps, DateTimePickerProps } from '../dateTimePicker';
|
|
4
4
|
import { Dayjs } from 'dayjs';
|
|
5
5
|
type DateValueType = [Dayjs | null, Dayjs | null] | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { DescriptionsSharedProps } from './descriptions';
|
|
3
3
|
import { GridItemProps } from '../grid';
|
|
4
|
-
import { ResponsiveProp } from '
|
|
4
|
+
import { ResponsiveProp } from '../../../index';
|
|
5
5
|
interface DescriptionItemBaseProps extends DescriptionsSharedProps {
|
|
6
6
|
label?: ReactNode;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { Obj, ResponsiveProp, Size } from '
|
|
2
|
+
import { Obj, ResponsiveProp, Size } from '../../../index';
|
|
3
3
|
import { GridProps } from '../grid';
|
|
4
4
|
import { DescriptionItem, DescriptionItemProps } from './descriptionItem';
|
|
5
5
|
export type DescriptionsSharedProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { OverlayBaseProps } from '../overlayBase';
|
|
3
|
-
import { ResponsiveProp } from '
|
|
3
|
+
import { ResponsiveProp } from '../../../index';
|
|
4
4
|
import { TransitionBaseProps } from '../transitionBase';
|
|
5
5
|
export interface DrawerProps extends Omit<OverlayBaseProps, 'title'> {
|
|
6
6
|
title?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, ReactElement, ReactNode, Ref, RefObject, SetStateAction } from 'react';
|
|
2
|
-
import { Obj, ResponsiveProp } from '
|
|
2
|
+
import { Obj, ResponsiveProp } from '../../../index';
|
|
3
3
|
import { FieldPath } from '../../utils';
|
|
4
4
|
import { FieldError, FormItem, FormItemProps, FormItemRef } from './formItem';
|
|
5
5
|
import { FormRelatable } from './formRelatable';
|