@univerjs/design 0.2.7 → 0.2.8
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/lib/cjs/index.js +11 -9
- package/lib/es/index.js +613 -361
- package/lib/types/components/avatar/Avatar.d.ts +0 -1
- package/lib/types/components/avatar/Avatar.stories.d.ts +0 -1
- package/lib/types/components/button/Button.d.ts +0 -1
- package/lib/types/components/button/Button.stories.d.ts +0 -1
- package/lib/types/components/cascader-list/CascaderList.d.ts +0 -1
- package/lib/types/components/cascader-list/CascaderList.stories.d.ts +0 -1
- package/lib/types/components/checkbox/Checkbox.d.ts +0 -1
- package/lib/types/components/checkbox/Checkbox.stories.d.ts +0 -1
- package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +0 -1
- package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +0 -1
- package/lib/types/components/color-picker/ColorPicker.d.ts +0 -1
- package/lib/types/components/color-picker/ColorPicker.stories.d.ts +0 -1
- package/lib/types/components/config-provider/ConfigProvider.d.ts +0 -1
- package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +0 -1
- package/lib/types/components/confirm/Confirm.d.ts +0 -1
- package/lib/types/components/confirm/Confirm.stories.d.ts +0 -1
- package/lib/types/components/date-picker/DatePanel.d.ts +0 -1
- package/lib/types/components/date-picker/DatePicker.d.ts +0 -1
- package/lib/types/components/date-picker/DatePicker.stories.d.ts +0 -1
- package/lib/types/components/date-range-picker/DateRangePicker.d.ts +0 -1
- package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +0 -1
- package/lib/types/components/design-token/Palette.stories.d.ts +0 -1
- package/lib/types/components/dialog/Dialog.d.ts +8 -2
- package/lib/types/components/dialog/Dialog.stories.d.ts +0 -1
- package/lib/types/components/draggable-list/DraggableList.d.ts +0 -1
- package/lib/types/components/draggable-list/DraggableList.stories.d.ts +0 -1
- package/lib/types/components/dropdown/Dropdown.d.ts +0 -1
- package/lib/types/components/dropdown/Dropdown.stories.d.ts +0 -1
- package/lib/types/components/form-layout/FormLayout.d.ts +0 -1
- package/lib/types/components/form-layout/FormLayout.stories.d.ts +0 -1
- package/lib/types/components/icon/Icon.stories.d.ts +0 -1
- package/lib/types/components/input/Input.d.ts +0 -1
- package/lib/types/components/input/Input.stories.d.ts +0 -1
- package/lib/types/components/input/InputWithSlot.d.ts +0 -1
- package/lib/types/components/input/InputWithSlot.stories.d.ts +0 -1
- package/lib/types/components/input-number/InputNumber.d.ts +0 -1
- package/lib/types/components/input-number/InputNumber.stories.d.ts +0 -1
- package/lib/types/components/mentions/Mentions.d.ts +0 -1
- package/lib/types/components/mentions/Mentions.stories.d.ts +0 -1
- package/lib/types/components/menu/Menu.d.ts +0 -1
- package/lib/types/components/message/Message.d.ts +0 -1
- package/lib/types/components/message/Message.stories.d.ts +0 -1
- package/lib/types/components/pager/Pager.d.ts +0 -1
- package/lib/types/components/pager/Pager.stories.d.ts +0 -1
- package/lib/types/components/popup/Popup.d.ts +0 -1
- package/lib/types/components/popup/Popup.stories.d.ts +0 -1
- package/lib/types/components/popup/RectPopup.d.ts +0 -1
- package/lib/types/components/radio/Radio.d.ts +0 -1
- package/lib/types/components/radio/Radio.stories.d.ts +0 -1
- package/lib/types/components/radio-group/RadioGroup.d.ts +0 -1
- package/lib/types/components/radio-group/RadioGroup.stories.d.ts +0 -1
- package/lib/types/components/scrollbar/Scrollbar.d.ts +0 -1
- package/lib/types/components/scrollbar/Scrollbar.stories.d.ts +0 -1
- package/lib/types/components/segmented/Segmented.d.ts +0 -1
- package/lib/types/components/segmented/Segmented.stories.d.ts +0 -1
- package/lib/types/components/select/Select.d.ts +0 -1
- package/lib/types/components/select/Select.stories.d.ts +0 -1
- package/lib/types/components/select-list/SelectList.d.ts +0 -1
- package/lib/types/components/select-list/SelectList.stories.d.ts +0 -1
- package/lib/types/components/slider/Slider.d.ts +0 -1
- package/lib/types/components/slider/Slider.stories.d.ts +0 -1
- package/lib/types/components/switch/Switch.d.ts +0 -1
- package/lib/types/components/textarea/Textarea.d.ts +0 -1
- package/lib/types/components/textarea/Textarea.stories.d.ts +0 -1
- package/lib/types/components/tooltip/Tooltip.d.ts +0 -1
- package/lib/types/components/tooltip/Tooltip.stories.d.ts +0 -1
- package/lib/types/components/tooltip/placements.d.ts +0 -1
- package/lib/types/components/tree/Tree.d.ts +0 -1
- package/lib/types/components/tree/Tree.stories.d.ts +0 -1
- package/lib/types/components/tree/util.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +0 -1
- package/lib/types/locale/interface.d.ts +0 -1
- package/lib/types/locale/ru-RU.d.ts +0 -1
- package/lib/types/locale/vi-VN.d.ts +0 -1
- package/lib/types/locale/zh-CN.d.ts +0 -1
- package/lib/types/locale/zh-TW.d.ts +0 -1
- package/lib/umd/index.js +11 -9
- package/package.json +9 -9
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
import { BasePickerPanelProps } from 'rc-picker';
|
|
4
|
-
|
|
5
4
|
export type IDatePanelProps = Omit<BasePickerPanelProps<Dayjs>, 'prefixCls' | 'locale' | 'generateConfig'>;
|
|
6
5
|
export declare const DatePanel: (props: IDatePanelProps) => React.JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PickerProps } from 'rc-picker';
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
|
-
|
|
5
4
|
export interface IDatePickerProps extends Omit<PickerProps<Dayjs>, 'value' | 'onChange' | 'locale' | 'generateConfig' | 'prefixCls'> {
|
|
6
5
|
/**
|
|
7
6
|
* The value of the date picker.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ModalStyles } from 'rc-dialog/lib/IDialogPropTypes';
|
|
3
|
-
|
|
4
3
|
export interface IDialogProps {
|
|
5
4
|
children: React.ReactNode;
|
|
6
5
|
/**
|
|
@@ -60,14 +59,21 @@ export interface IDialogProps {
|
|
|
60
59
|
* Whether the dialog should show a mask.
|
|
61
60
|
*/
|
|
62
61
|
mask?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* additional className for dialog
|
|
64
|
+
*/
|
|
63
65
|
className?: string;
|
|
64
66
|
/**
|
|
65
67
|
* The style of the customize.
|
|
66
68
|
*/
|
|
67
69
|
dialogStyles?: ModalStyles;
|
|
68
70
|
/**
|
|
69
|
-
*
|
|
71
|
+
* whether show close button
|
|
70
72
|
*/
|
|
71
73
|
closable?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* whether click mask to close, default is true
|
|
76
|
+
*/
|
|
77
|
+
maskClosable?: boolean;
|
|
72
78
|
}
|
|
73
79
|
export declare function Dialog(props: IDialogProps): React.JSX.Element | null;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { default as RGL } from 'react-grid-layout';
|
|
3
|
-
|
|
4
3
|
export interface IDraggableListProps<T> extends Omit<RGL.ReactGridLayoutProps, 'layout' | 'onLayoutChange' | 'cols' | 'isResizable'> {
|
|
5
4
|
list: T[];
|
|
6
5
|
onListChange: (list: T[]) => void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MentionsInputProps } from 'react-mentions';
|
|
3
|
-
|
|
4
3
|
export interface IMentionsProps extends MentionsInputProps {
|
|
5
4
|
}
|
|
6
5
|
export declare const Mentions: React.ForwardRefExoticComponent<IMentionsProps & React.RefAttributes<React.Component<MentionsInputProps, any, any>>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MenuItemGroupProps, MenuItemProps, MenuProps, MenuRef, SubMenuProps } from 'rc-menu';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
|
|
4
3
|
export declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<MenuRef>>;
|
|
5
4
|
export declare function MenuItem(props: MenuItemProps): React.FunctionComponentElement<any>;
|
|
6
5
|
export declare function SubMenu(props: SubMenuProps): React.FunctionComponentElement<any>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { SegmentedProps } from 'rc-segmented';
|
|
3
|
-
|
|
4
3
|
export interface ISegmentedProps extends Omit<SegmentedProps, 'prefixCls'> {
|
|
5
4
|
}
|
|
6
5
|
export declare const Segmented: React.ForwardRefExoticComponent<Omit<ISegmentedProps, "ref"> & React.RefAttributes<HTMLDivElement | null>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ITreeNodeProps } from './Tree';
|
|
2
|
-
|
|
3
2
|
export declare const findNodePathFromTree: (tree: ITreeNodeProps[], key: string) => string[];
|
|
4
3
|
export declare const createCacheWithFindNodePathFromTree: (tree: ITreeNodeProps[]) => {
|
|
5
4
|
findNodePathFromTreeWithCache: (key: string) => string[];
|