@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.
Files changed (80) hide show
  1. package/lib/cjs/index.js +11 -9
  2. package/lib/es/index.js +613 -361
  3. package/lib/types/components/avatar/Avatar.d.ts +0 -1
  4. package/lib/types/components/avatar/Avatar.stories.d.ts +0 -1
  5. package/lib/types/components/button/Button.d.ts +0 -1
  6. package/lib/types/components/button/Button.stories.d.ts +0 -1
  7. package/lib/types/components/cascader-list/CascaderList.d.ts +0 -1
  8. package/lib/types/components/cascader-list/CascaderList.stories.d.ts +0 -1
  9. package/lib/types/components/checkbox/Checkbox.d.ts +0 -1
  10. package/lib/types/components/checkbox/Checkbox.stories.d.ts +0 -1
  11. package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +0 -1
  12. package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +0 -1
  13. package/lib/types/components/color-picker/ColorPicker.d.ts +0 -1
  14. package/lib/types/components/color-picker/ColorPicker.stories.d.ts +0 -1
  15. package/lib/types/components/config-provider/ConfigProvider.d.ts +0 -1
  16. package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +0 -1
  17. package/lib/types/components/confirm/Confirm.d.ts +0 -1
  18. package/lib/types/components/confirm/Confirm.stories.d.ts +0 -1
  19. package/lib/types/components/date-picker/DatePanel.d.ts +0 -1
  20. package/lib/types/components/date-picker/DatePicker.d.ts +0 -1
  21. package/lib/types/components/date-picker/DatePicker.stories.d.ts +0 -1
  22. package/lib/types/components/date-range-picker/DateRangePicker.d.ts +0 -1
  23. package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +0 -1
  24. package/lib/types/components/design-token/Palette.stories.d.ts +0 -1
  25. package/lib/types/components/dialog/Dialog.d.ts +8 -2
  26. package/lib/types/components/dialog/Dialog.stories.d.ts +0 -1
  27. package/lib/types/components/draggable-list/DraggableList.d.ts +0 -1
  28. package/lib/types/components/draggable-list/DraggableList.stories.d.ts +0 -1
  29. package/lib/types/components/dropdown/Dropdown.d.ts +0 -1
  30. package/lib/types/components/dropdown/Dropdown.stories.d.ts +0 -1
  31. package/lib/types/components/form-layout/FormLayout.d.ts +0 -1
  32. package/lib/types/components/form-layout/FormLayout.stories.d.ts +0 -1
  33. package/lib/types/components/icon/Icon.stories.d.ts +0 -1
  34. package/lib/types/components/input/Input.d.ts +0 -1
  35. package/lib/types/components/input/Input.stories.d.ts +0 -1
  36. package/lib/types/components/input/InputWithSlot.d.ts +0 -1
  37. package/lib/types/components/input/InputWithSlot.stories.d.ts +0 -1
  38. package/lib/types/components/input-number/InputNumber.d.ts +0 -1
  39. package/lib/types/components/input-number/InputNumber.stories.d.ts +0 -1
  40. package/lib/types/components/mentions/Mentions.d.ts +0 -1
  41. package/lib/types/components/mentions/Mentions.stories.d.ts +0 -1
  42. package/lib/types/components/menu/Menu.d.ts +0 -1
  43. package/lib/types/components/message/Message.d.ts +0 -1
  44. package/lib/types/components/message/Message.stories.d.ts +0 -1
  45. package/lib/types/components/pager/Pager.d.ts +0 -1
  46. package/lib/types/components/pager/Pager.stories.d.ts +0 -1
  47. package/lib/types/components/popup/Popup.d.ts +0 -1
  48. package/lib/types/components/popup/Popup.stories.d.ts +0 -1
  49. package/lib/types/components/popup/RectPopup.d.ts +0 -1
  50. package/lib/types/components/radio/Radio.d.ts +0 -1
  51. package/lib/types/components/radio/Radio.stories.d.ts +0 -1
  52. package/lib/types/components/radio-group/RadioGroup.d.ts +0 -1
  53. package/lib/types/components/radio-group/RadioGroup.stories.d.ts +0 -1
  54. package/lib/types/components/scrollbar/Scrollbar.d.ts +0 -1
  55. package/lib/types/components/scrollbar/Scrollbar.stories.d.ts +0 -1
  56. package/lib/types/components/segmented/Segmented.d.ts +0 -1
  57. package/lib/types/components/segmented/Segmented.stories.d.ts +0 -1
  58. package/lib/types/components/select/Select.d.ts +0 -1
  59. package/lib/types/components/select/Select.stories.d.ts +0 -1
  60. package/lib/types/components/select-list/SelectList.d.ts +0 -1
  61. package/lib/types/components/select-list/SelectList.stories.d.ts +0 -1
  62. package/lib/types/components/slider/Slider.d.ts +0 -1
  63. package/lib/types/components/slider/Slider.stories.d.ts +0 -1
  64. package/lib/types/components/switch/Switch.d.ts +0 -1
  65. package/lib/types/components/textarea/Textarea.d.ts +0 -1
  66. package/lib/types/components/textarea/Textarea.stories.d.ts +0 -1
  67. package/lib/types/components/tooltip/Tooltip.d.ts +0 -1
  68. package/lib/types/components/tooltip/Tooltip.stories.d.ts +0 -1
  69. package/lib/types/components/tooltip/placements.d.ts +0 -1
  70. package/lib/types/components/tree/Tree.d.ts +0 -1
  71. package/lib/types/components/tree/Tree.stories.d.ts +0 -1
  72. package/lib/types/components/tree/util.d.ts +0 -1
  73. package/lib/types/locale/en-US.d.ts +0 -1
  74. package/lib/types/locale/interface.d.ts +0 -1
  75. package/lib/types/locale/ru-RU.d.ts +0 -1
  76. package/lib/types/locale/vi-VN.d.ts +0 -1
  77. package/lib/types/locale/zh-CN.d.ts +0 -1
  78. package/lib/types/locale/zh-TW.d.ts +0 -1
  79. package/lib/umd/index.js +11 -9
  80. package/package.json +9 -9
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  type Shape = 'circle' | 'square';
4
3
  type AvatarSize = number | 'middle' | 'small';
5
4
  type ImageFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Avatar } from './Avatar';
4
-
5
4
  declare const meta: Meta<typeof Avatar>;
6
5
  export default meta;
7
6
  export declare const AvatarShape: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type ButtonType = 'primary' | 'default' | 'text' | 'link';
4
3
  export type ButtonSize = 'small' | 'middle' | 'large';
5
4
  export interface IButtonProps {
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Button } from './Button';
4
-
5
4
  declare const meta: Meta<typeof Button>;
6
5
  export default meta;
7
6
  export declare const ButtonType: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  interface IOption {
4
3
  label: string;
5
4
  value: string;
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { CascaderList } from './CascaderList';
4
-
5
4
  declare const meta: Meta<typeof CascaderList>;
6
5
  export default meta;
7
6
  export declare const Playground: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface ICheckboxProps {
4
3
  children?: React.ReactNode;
5
4
  /**
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Checkbox } from './Checkbox';
4
-
5
4
  declare const meta: Meta<typeof Checkbox>;
6
5
  export default meta;
7
6
  export declare const CheckboxBasic: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface ICheckboxGroupProps {
4
3
  children: React.ReactNode[];
5
4
  /**
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { CheckboxGroup } from './CheckboxGroup';
4
-
5
4
  declare const meta: Meta<typeof CheckboxGroup>;
6
5
  export default meta;
7
6
  export declare const Playground: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface IColorPickerProps {
4
3
  color?: string;
5
4
  onClick?: (color: string, e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { ColorPicker } from './ColorPicker';
4
-
5
4
  declare const meta: Meta<typeof ColorPicker>;
6
5
  export default meta;
7
6
  export declare const Playground: {
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { ILocale } from '../../locale/interface';
3
-
4
3
  export interface IConfigProviderProps {
5
4
  children: React.ReactNode;
6
5
  locale?: ILocale['design'];
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { ConfigProvider } from './ConfigProvider';
4
-
5
4
  declare const meta: Meta<typeof ConfigProvider>;
6
5
  export default meta;
7
6
  export declare const Playground: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface IConfirmProps {
4
3
  children: React.ReactNode;
5
4
  /**
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Confirm } from './Confirm';
4
-
5
4
  declare const meta: Meta<typeof Confirm>;
6
5
  export default meta;
7
6
  export declare const ConfirmBasic: {
@@ -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,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { DatePicker } from './DatePicker';
4
-
5
4
  declare const meta: Meta<typeof DatePicker>;
6
5
  export default meta;
7
6
  export declare const DatePickerBasic: {
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { Dayjs } from 'dayjs';
3
3
  import { NoUndefinedRangeValueType } from 'rc-picker/lib/PickerInput/RangePicker';
4
-
5
4
  export interface IDateRangePickerProps {
6
5
  /**
7
6
  * The value of the date picker.
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { DateRangePicker } from './DateRangePicker';
4
-
5
4
  declare const meta: Meta<typeof DateRangePicker>;
6
5
  export default meta;
7
6
  export declare const DateRangePickerBasic: {
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
-
4
3
  declare const meta: Meta;
5
4
  export default meta;
6
5
  interface IProps {
@@ -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,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Dialog } from './Dialog';
4
-
5
4
  declare const meta: Meta<typeof Dialog>;
6
5
  export default meta;
7
6
  export declare const DialogBasic: {
@@ -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,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { DraggableList } from './DraggableList';
4
-
5
4
  declare const meta: Meta<typeof DraggableList>;
6
5
  export default meta;
7
6
  export declare const DraggableListDemo: {
@@ -1,7 +1,6 @@
1
1
  import { ActionType, AlignType } from '@rc-component/trigger';
2
2
  import { default as Placements } from 'rc-dropdown/lib/placements';
3
3
  import { default as React } from 'react';
4
-
5
4
  export interface IDropdownProps {
6
5
  /** Semantic DOM class */
7
6
  className?: string;
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Dropdown } from './Dropdown';
4
-
5
4
  declare const meta: Meta<typeof Dropdown>;
6
5
  export default meta;
7
6
  export declare const Playground: {
@@ -1,5 +1,4 @@
1
1
  import { PropsWithChildren, default as React } from 'react';
2
-
3
2
  export interface IFormLayoutProps {
4
3
  label?: React.ReactNode;
5
4
  desc?: React.ReactNode;
@@ -1,6 +1,5 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
-
4
3
  declare const meta: Meta;
5
4
  export default meta;
6
5
  export declare const Playground: {
@@ -1,6 +1,5 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
-
4
3
  declare const meta: Meta;
5
4
  export default meta;
6
5
  export declare const Playground: {
@@ -1,6 +1,5 @@
1
1
  import { InputProps } from 'rc-input';
2
2
  import { default as React } from 'react';
3
-
4
3
  export interface IInputProps extends Pick<InputProps, 'onFocus' | 'onBlur'> {
5
4
  /**
6
5
  * Whether the input is autoFocus
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Input } from './Input';
4
-
5
4
  declare const meta: Meta<typeof Input>;
6
5
  export default meta;
7
6
  export declare const InputBasic: {
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { IInputProps } from './Input';
3
-
4
3
  export interface IInputWithSlotProps extends IInputProps {
5
4
  /**
6
5
  * A React node that would be rendered in the slot of the input component.
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { InputWithSlot } from './InputWithSlot';
4
-
5
4
  declare const meta: Meta<typeof InputWithSlot>;
6
5
  export default meta;
7
6
  export declare const InputWithSlotDemo: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface IInputNumberProps {
4
3
  /**
5
4
  * The className of the input
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { InputNumber } from './InputNumber';
4
-
5
4
  declare const meta: Meta<typeof InputNumber>;
6
5
  export default meta;
7
6
  export declare const InputNumberBasic: {
@@ -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,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Mentions } from './Mentions';
4
-
5
4
  declare const meta: Meta<typeof Mentions>;
6
5
  export default meta;
7
6
  export declare const InputBasic: {
@@ -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 { CSSProperties, ReactElement } from 'react';
2
2
  import { IDisposable } from '../../type';
3
-
4
3
  export declare enum MessageType {
5
4
  Success = "success",
6
5
  Info = "info",
@@ -1,6 +1,5 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
-
4
3
  declare const meta: Meta;
5
4
  export default meta;
6
5
  export declare const Playground: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface IPagerProps {
4
3
  text?: string;
5
4
  value: number;
@@ -1,6 +1,5 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
-
4
3
  declare const meta: Meta;
5
4
  export default meta;
6
5
  export declare const Playground: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface IPopupProps {
4
3
  children: React.ReactElement;
5
4
  /**
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Popup } from './Popup';
4
-
5
4
  declare const meta: Meta<typeof Popup>;
6
5
  export default meta;
7
6
  export declare const PopupBasic: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  interface IAbsolutePosition {
4
3
  left: number;
5
4
  right: number;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface IRadioProps {
4
3
  children?: React.ReactNode;
5
4
  /**
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Radio } from './Radio';
4
-
5
4
  declare const meta: Meta<typeof Radio>;
6
5
  export default meta;
7
6
  export declare const RadioBasic: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface IRadioGroupProps {
4
3
  children: React.ReactNode[];
5
4
  /**
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { RadioGroup } from './RadioGroup';
4
-
5
4
  declare const meta: Meta<typeof RadioGroup>;
6
5
  export default meta;
7
6
  export declare const Playground: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface IScrollbarProps {
4
3
  children?: React.ReactNode;
5
4
  }
@@ -1,6 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import { Scrollbar } from './Scrollbar';
3
-
4
3
  declare const meta: Meta<typeof Scrollbar>;
5
4
  export default meta;
6
5
  export declare const ScrollbarBasic: StoryObj;
@@ -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,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { Meta } from '@storybook/react';
3
3
  import { Segmented } from './Segmented';
4
-
5
4
  declare const meta: Meta<typeof Segmented>;
6
5
  export default meta;
7
6
  export declare const SegmentedBasic: {
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { LabelInValueType } from 'rc-select/lib/Select';
3
-
4
3
  interface IOption {
5
4
  label?: string | React.ReactNode;
6
5
  value?: string;
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Select } from './Select';
4
-
5
4
  declare const meta: Meta<typeof Select>;
6
5
  export default meta;
7
6
  export declare const SelectBasic: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface ISelectListProps {
4
3
  /**
5
4
  * The value of select
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { SelectList } from './SelectList';
4
-
5
4
  declare const meta: Meta<typeof SelectList>;
6
5
  export default meta;
7
6
  export declare const Playground: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface ISliderProps {
4
3
  /** The value of slider. When range is false, use number, otherwise, use [number, number] */
5
4
  value: number;
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Slider } from './Slider';
4
-
5
4
  declare const meta: Meta<typeof Slider>;
6
5
  export default meta;
7
6
  export declare const Playground: {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface ISwitchProps {
4
3
  defaultChecked?: boolean;
5
4
  onChange?: (checked: boolean) => void;
@@ -1,6 +1,5 @@
1
1
  import { TextAreaProps } from 'rc-textarea';
2
2
  import { default as React } from 'react';
3
-
4
3
  export interface ITextareaProps extends Pick<TextAreaProps, 'onFocus' | 'onBlur'> {
5
4
  /**
6
5
  * Whether the input is autoFocus
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Textarea } from './Textarea';
4
-
5
4
  declare const meta: Meta<typeof Textarea>;
6
5
  export default meta;
7
6
  export declare const TextareaBasic: {
@@ -1,6 +1,5 @@
1
1
  import { TooltipRef } from 'rc-tooltip';
2
2
  import { default as React } from 'react';
3
-
4
3
  export interface ITooltipProps {
5
4
  visible?: boolean;
6
5
  placement?: 'top' | 'bottom' | 'left' | 'right';
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Tooltip } from './Tooltip';
4
-
5
4
  declare const meta: Meta<typeof Tooltip>;
6
5
  export default meta;
7
6
  export declare const Playground: {
@@ -1,4 +1,3 @@
1
1
  import { BuildInPlacements } from '@rc-component/trigger';
2
-
3
2
  export declare const placements: BuildInPlacements;
4
3
  export default placements;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare enum TreeSelectionMode {
4
3
  ONLY_LEAF_NODE = 0,
5
4
  ALL = 1
@@ -1,7 +1,6 @@
1
1
  import { Meta } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
  import { Tree } from './Tree';
4
-
5
4
  declare const meta: Meta<typeof Tree>;
6
5
  export default meta;
7
6
  export declare const TreeBasic: {
@@ -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[];
@@ -1,4 +1,3 @@
1
1
  import { ILocale } from './interface';
2
-
3
2
  declare const locale: ILocale;
4
3
  export default locale;
@@ -1,5 +1,4 @@
1
1
  import { default as PickerZhCN } from 'rc-picker/lib/locale/zh_CN';
2
-
3
2
  export interface ILocale {
4
3
  design: {
5
4
  Confirm: Record<string, any>;
@@ -1,4 +1,3 @@
1
1
  import { ILocale } from './interface';
2
-
3
2
  declare const locale: ILocale;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { ILocale } from './interface';
2
-
3
2
  declare const locale: ILocale;
4
3
  export default locale;