@univerjs/design 0.5.5 → 0.6.0-alpha.0
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 +60 -46
- package/lib/es/index.js +10751 -10229
- package/lib/index.css +1 -1
- package/lib/types/components/avatar/Avatar.d.ts +1 -1
- package/lib/types/components/avatar/Avatar.stories.d.ts +3 -4
- package/lib/types/components/button/Button.d.ts +1 -1
- package/lib/types/components/button/Button.stories.d.ts +4 -5
- package/lib/types/components/cascader-list/CascaderList.d.ts +16 -2
- package/lib/types/components/cascader-list/CascaderList.stories.d.ts +1 -2
- package/lib/types/components/checkbox/Checkbox.d.ts +1 -1
- package/lib/types/components/checkbox/Checkbox.stories.d.ts +3 -4
- package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +2 -3
- package/lib/types/components/color-picker/ColorInput.d.ts +16 -2
- package/lib/types/components/color-picker/ColorPicker.d.ts +16 -2
- package/lib/types/components/color-picker/ColorPicker.stories.d.ts +1 -2
- package/lib/types/components/color-picker/ColorPresets.d.ts +16 -2
- package/lib/types/components/color-picker/ColorSpectrum.d.ts +16 -2
- package/lib/types/components/color-picker/HueSlider.d.ts +16 -2
- package/lib/types/components/config-provider/ConfigProvider.d.ts +1 -1
- package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +1 -2
- package/lib/types/components/confirm/Confirm.d.ts +1 -1
- package/lib/types/components/confirm/Confirm.stories.d.ts +1 -2
- package/lib/types/components/date-picker/DatePanel.d.ts +1 -2
- package/lib/types/components/date-picker/DatePicker.d.ts +1 -2
- package/lib/types/components/date-picker/DatePicker.stories.d.ts +1 -2
- package/lib/types/components/date-range-picker/DateRangePicker.d.ts +1 -2
- package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +1 -2
- package/lib/types/components/design-token/Palette.stories.d.ts +1 -2
- package/lib/types/components/dialog/Dialog.d.ts +2 -2
- package/lib/types/components/dialog/Dialog.stories.d.ts +2 -3
- package/lib/types/components/draggable-list/DraggableList.d.ts +1 -1
- package/lib/types/components/draggable-list/DraggableList.stories.d.ts +1 -2
- package/lib/types/components/dropdown/Dropdown.stories.d.ts +1 -2
- package/lib/types/components/dropdown/DropdownProvider.d.ts +2 -2
- package/lib/types/components/dropdown-legacy/DropdownLegacy.d.ts +1 -1
- package/lib/types/components/dropdown-legacy/DropdownLegacy.stories.d.ts +1 -2
- package/lib/types/components/form-layout/FormLayout.d.ts +2 -2
- package/lib/types/components/form-layout/FormLayout.stories.d.ts +1 -2
- package/lib/types/components/icon/Icon.stories.d.ts +1 -2
- package/lib/types/components/input/Input.d.ts +3 -46
- package/lib/types/components/input/Input.stories.d.ts +3 -4
- package/lib/types/components/input/InputWithSlot.d.ts +1 -1
- package/lib/types/components/input/InputWithSlot.stories.d.ts +1 -2
- package/lib/types/components/input-number/InputNumber.stories.d.ts +3 -4
- package/lib/types/components/message/Message.stories.d.ts +1 -2
- package/lib/types/components/pager/Pager.d.ts +16 -2
- package/lib/types/components/pager/Pager.stories.d.ts +1 -2
- package/lib/types/components/popup/Popup.stories.d.ts +1 -2
- package/lib/types/components/radio/Radio.d.ts +1 -1
- package/lib/types/components/radio/Radio.stories.d.ts +2 -3
- package/lib/types/components/radio-group/RadioGroup.d.ts +1 -1
- package/lib/types/components/radio-group/RadioGroup.stories.d.ts +2 -3
- package/lib/types/components/scrollbar/Scrollbar.d.ts +1 -1
- package/lib/types/components/segmented/Segmented.stories.d.ts +1 -2
- package/lib/types/components/select/Select.d.ts +1 -1
- package/lib/types/components/select/Select.stories.d.ts +4 -5
- package/lib/types/components/select-list/SelectList.d.ts +16 -2
- package/lib/types/components/select-list/SelectList.stories.d.ts +1 -2
- package/lib/types/components/slider/Slider.d.ts +16 -2
- package/lib/types/components/slider/Slider.stories.d.ts +1 -2
- package/lib/types/components/switch/Switch.d.ts +16 -2
- package/lib/types/components/tooltip/Tooltip.d.ts +1 -1
- package/lib/types/components/tooltip/Tooltip.stories.d.ts +1 -2
- package/lib/types/components/tree/Tree.d.ts +1 -1
- package/lib/types/components/tree/Tree.stories.d.ts +1 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types/{components/avatar/__tests__/index.spec.d.ts → utils/render.d.ts} +3 -1
- package/lib/umd/index.js +60 -46
- package/package.json +14 -14
- package/lib/types/components/button/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/cascader-list/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/checkbox/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/checkbox-group/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/config-provider/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/input/__tests__/Input.spec.d.ts +0 -16
- package/lib/types/components/input/__tests__/InputWithSlot.spec.d.ts +0 -16
- package/lib/types/components/message/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/pager/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/radio/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/radio-group/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/scrollbar/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/switch/__tests__/index.spec.d.ts +0 -16
- package/lib/types/components/tree/__tests__/index.spec.d.ts +0 -16
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
2
16
|
interface IHueSliderProps {
|
|
3
17
|
hsv: [number, number, number];
|
|
4
18
|
onChange: (h: number, s: number, v: number) => void;
|
|
5
19
|
onChanged?: (h: number, s: number, v: number) => void;
|
|
6
20
|
}
|
|
7
|
-
export declare function HueSlider({ hsv, onChange, onChanged }: IHueSliderProps):
|
|
21
|
+
export declare function HueSlider({ hsv, onChange, onChanged }: IHueSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
22
|
export {};
|
|
@@ -6,4 +6,4 @@ export interface IConfigProviderProps {
|
|
|
6
6
|
mountContainer: HTMLElement | null;
|
|
7
7
|
}
|
|
8
8
|
export declare const ConfigContext: React.Context<Omit<IConfigProviderProps, "children">>;
|
|
9
|
-
export declare function ConfigProvider(props: IConfigProviderProps):
|
|
9
|
+
export declare function ConfigProvider(props: IConfigProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { ConfigProvider } from './ConfigProvider';
|
|
4
3
|
declare const meta: Meta<typeof ConfigProvider>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const Playground: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { Confirm } from './Confirm';
|
|
4
3
|
declare const meta: Meta<typeof Confirm>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const ConfirmBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { dayjs } from '@univerjs/core';
|
|
2
2
|
import { BasePickerPanelProps } from 'rc-picker';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
3
|
export type IDatePanelProps = Omit<BasePickerPanelProps<dayjs.Dayjs>, 'prefixCls' | 'locale' | 'generateConfig'>;
|
|
5
|
-
export declare const DatePanel: (props: IDatePanelProps) =>
|
|
4
|
+
export declare const DatePanel: (props: IDatePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { dayjs } from '@univerjs/core';
|
|
2
2
|
import { PickerProps } from 'rc-picker';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
3
|
export interface IDatePickerProps extends Omit<PickerProps<dayjs.Dayjs>, 'value' | 'onChange' | 'locale' | 'generateConfig' | 'prefixCls'> {
|
|
5
4
|
/**
|
|
6
5
|
* The value of the date picker.
|
|
@@ -11,4 +10,4 @@ export interface IDatePickerProps extends Omit<PickerProps<dayjs.Dayjs>, 'value'
|
|
|
11
10
|
*/
|
|
12
11
|
onChange: (date: dayjs.Dayjs, dateString: string) => void;
|
|
13
12
|
}
|
|
14
|
-
export declare function DatePicker(props: IDatePickerProps):
|
|
13
|
+
export declare function DatePicker(props: IDatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { DatePicker } from './DatePicker';
|
|
4
3
|
declare const meta: Meta<typeof DatePicker>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const DatePickerBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { dayjs } from '@univerjs/core';
|
|
2
2
|
import { NoUndefinedRangeValueType } from 'rc-picker/lib/PickerInput/RangePicker';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
3
|
export interface IDateRangePickerProps {
|
|
5
4
|
/**
|
|
6
5
|
* The value of the date picker.
|
|
@@ -11,4 +10,4 @@ export interface IDateRangePickerProps {
|
|
|
11
10
|
*/
|
|
12
11
|
onChange: (date: NoUndefinedRangeValueType<dayjs.Dayjs>, dateString: [string, string]) => void;
|
|
13
12
|
}
|
|
14
|
-
export declare function DateRangePicker(props: IDateRangePickerProps):
|
|
13
|
+
export declare function DateRangePicker(props: IDateRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { DateRangePicker } from './DateRangePicker';
|
|
4
3
|
declare const meta: Meta<typeof DateRangePicker>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const DateRangePickerBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
4
|
interface IProps {
|
|
6
5
|
theme: Record<string, string>;
|
|
7
6
|
}
|
|
8
|
-
export declare function Palette(props: IProps):
|
|
7
|
+
export declare function Palette(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export declare const Playground: StoryObj;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { ModalStyles } from 'rc-dialog/lib/IDialogPropTypes';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
3
|
export interface IDialogProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/**
|
|
@@ -76,4 +76,4 @@ export interface IDialogProps {
|
|
|
76
76
|
*/
|
|
77
77
|
maskClosable?: boolean;
|
|
78
78
|
}
|
|
79
|
-
export declare function Dialog(props: IDialogProps):
|
|
79
|
+
export declare function Dialog(props: IDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { Dialog } from './Dialog';
|
|
4
3
|
declare const meta: Meta<typeof Dialog>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const DialogBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
9
8
|
export declare const DialogDraggable: {
|
|
10
|
-
render():
|
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
};
|
|
@@ -7,4 +7,4 @@ export interface IDraggableListProps<T> extends Omit<RGL.ReactGridLayoutProps, '
|
|
|
7
7
|
idKey: keyof T;
|
|
8
8
|
itemRender: (item: T, index: number) => React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare function DraggableList<T = any>(props: IDraggableListProps<T>):
|
|
10
|
+
export declare function DraggableList<T = any>(props: IDraggableListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { DraggableList } from './DraggableList';
|
|
4
3
|
declare const meta: Meta<typeof DraggableList>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const DraggableListDemo: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { DropdownProvider } from './DropdownProvider';
|
|
4
3
|
declare const meta: Meta<typeof DropdownProvider>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const Playground: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactNode
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
interface IDropdownProviderProps {
|
|
3
3
|
visible?: boolean;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
onVisibleChange?: (visible: boolean) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function DropdownProvider({ visible, children, disabled, onVisibleChange }: IDropdownProviderProps):
|
|
8
|
+
export declare function DropdownProvider({ visible, children, disabled, onVisibleChange }: IDropdownProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -47,4 +47,4 @@ export interface IDropdownLegacyProps {
|
|
|
47
47
|
/** Disable dropdown from showing up. */
|
|
48
48
|
disabled?: boolean;
|
|
49
49
|
}
|
|
50
|
-
export declare function DropdownLegacy(props: IDropdownLegacyProps):
|
|
50
|
+
export declare function DropdownLegacy(props: IDropdownLegacyProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { DropdownLegacy } from './DropdownLegacy';
|
|
4
3
|
declare const meta: Meta<typeof DropdownLegacy>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const Playground: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -10,10 +10,10 @@ export interface IFormLayoutProps {
|
|
|
10
10
|
collapsable?: boolean;
|
|
11
11
|
defaultCollapsed?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const FormLayout: (props: IFormLayoutProps) =>
|
|
13
|
+
export declare const FormLayout: (props: IFormLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export type IFormDualColumnLayoutProps = PropsWithChildren;
|
|
15
15
|
/**
|
|
16
16
|
* A dual columns layout component for the form.
|
|
17
17
|
* @param props props of the component
|
|
18
18
|
*/
|
|
19
|
-
export declare const FormDualColumnLayout: (props: IFormDualColumnLayoutProps) =>
|
|
19
|
+
export declare const FormDualColumnLayout: (props: IFormDualColumnLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
4
|
export declare const Playground: {
|
|
6
|
-
render: () =>
|
|
5
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
};
|
|
@@ -1,61 +1,18 @@
|
|
|
1
|
-
import { InputProps } from 'rc-input';
|
|
2
1
|
import { default as React } from 'react';
|
|
2
|
+
type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
|
|
3
3
|
export interface IInputProps extends Pick<InputProps, 'onFocus' | 'onBlur'> {
|
|
4
|
-
/**
|
|
5
|
-
* Whether the input is autoFocus
|
|
6
|
-
* @default false
|
|
7
|
-
*/
|
|
8
4
|
autoFocus?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* The input class name
|
|
11
|
-
*/
|
|
12
5
|
className?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The input affix wrapper style
|
|
15
|
-
*/
|
|
16
6
|
affixWrapperStyle?: React.CSSProperties;
|
|
17
|
-
/**
|
|
18
|
-
* The input type
|
|
19
|
-
* @default text
|
|
20
|
-
*/
|
|
21
7
|
type?: 'text' | 'password';
|
|
22
|
-
/**
|
|
23
|
-
* The input placeholder
|
|
24
|
-
*/
|
|
25
8
|
placeholder?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The input content value
|
|
28
|
-
*/
|
|
29
9
|
value?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The input size
|
|
32
|
-
* @default middle
|
|
33
|
-
*/
|
|
34
10
|
size?: 'small' | 'middle' | 'large';
|
|
35
|
-
/**
|
|
36
|
-
* Whether the input is clearable
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
11
|
allowClear?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the input is disabled
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
12
|
disabled?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Callback when user click
|
|
47
|
-
* @param e
|
|
48
|
-
*/
|
|
49
13
|
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
50
|
-
/**
|
|
51
|
-
* Callback when user press a key
|
|
52
|
-
* @param e
|
|
53
|
-
*/
|
|
54
14
|
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
55
|
-
/**
|
|
56
|
-
* Callback when user input
|
|
57
|
-
* @param value
|
|
58
|
-
*/
|
|
59
15
|
onChange?: (value: string) => void;
|
|
60
16
|
}
|
|
61
|
-
export declare
|
|
17
|
+
export declare const Input: ({ autoFocus, className, affixWrapperStyle, type, placeholder, value, size, allowClear, disabled, onClick, onKeyDown, onChange, onFocus, onBlur, ...props }: IInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { Input } from './Input';
|
|
4
3
|
declare const meta: Meta<typeof Input>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const InputBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
9
8
|
export declare const InputSize: {
|
|
10
|
-
render():
|
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
};
|
|
12
11
|
export declare const InputDisabled: {
|
|
13
|
-
render():
|
|
12
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
};
|
|
@@ -6,4 +6,4 @@ export interface IInputWithSlotProps extends IInputProps {
|
|
|
6
6
|
*/
|
|
7
7
|
slot: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare function InputWithSlot(props: IInputWithSlotProps):
|
|
9
|
+
export declare function InputWithSlot(props: IInputWithSlotProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { InputWithSlot } from './InputWithSlot';
|
|
4
3
|
declare const meta: Meta<typeof InputWithSlot>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const InputWithSlotDemo: {
|
|
7
|
-
return():
|
|
6
|
+
return(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { InputNumber } from './InputNumber';
|
|
4
3
|
declare const meta: Meta<typeof InputNumber>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const InputNumberBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
9
8
|
export declare const InputNumberDisabled: {
|
|
10
|
-
render():
|
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
};
|
|
12
11
|
export declare const InputNumberHideControls: {
|
|
13
|
-
render():
|
|
12
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
4
|
export declare const Playground: {
|
|
6
|
-
render: () =>
|
|
5
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
};
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
2
16
|
export interface IPagerProps {
|
|
3
17
|
text?: string;
|
|
4
18
|
value: number;
|
|
@@ -6,4 +20,4 @@ export interface IPagerProps {
|
|
|
6
20
|
loop?: boolean;
|
|
7
21
|
onChange?(value: number): void;
|
|
8
22
|
}
|
|
9
|
-
export declare function Pager(props: IPagerProps):
|
|
23
|
+
export declare function Pager(props: IPagerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
4
|
export declare const Playground: {
|
|
6
|
-
render: () =>
|
|
5
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { Popup } from './Popup';
|
|
4
3
|
declare const meta: Meta<typeof Popup>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const PopupBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { Radio } from './Radio';
|
|
4
3
|
declare const meta: Meta<typeof Radio>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const RadioBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
9
8
|
export declare const RadioDisabled: {
|
|
10
|
-
render():
|
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { RadioGroup } from './RadioGroup';
|
|
4
3
|
declare const meta: Meta<typeof RadioGroup>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const Playground: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
9
8
|
export declare const RadioGroupVertical: {
|
|
10
|
-
render():
|
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
3
2
|
import { Segmented } from './Segmented';
|
|
4
3
|
declare const meta: Meta<typeof Segmented>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const SegmentedBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -37,5 +37,5 @@ export interface ISelectProps {
|
|
|
37
37
|
onDropdownVisibleChange?: (open: boolean) => void;
|
|
38
38
|
disabled?: boolean;
|
|
39
39
|
}
|
|
40
|
-
export declare function Select(props: ISelectProps):
|
|
40
|
+
export declare function Select(props: ISelectProps): import("react/jsx-runtime").JSX.Element | null;
|
|
41
41
|
export {};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
3
2
|
import { Select } from './Select';
|
|
4
3
|
declare const meta: Meta<typeof Select>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const SelectBasic: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
9
8
|
export declare const SelectEmpty: {
|
|
10
|
-
render():
|
|
9
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
};
|
|
12
11
|
export declare const SelectBorderless: {
|
|
13
|
-
render():
|
|
12
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
};
|
|
15
14
|
export declare const SelectGroup: {
|
|
16
|
-
render():
|
|
15
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
};
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
2
16
|
export interface ISelectListProps {
|
|
3
17
|
/**
|
|
4
18
|
* The value of select
|
|
@@ -32,4 +46,4 @@ export interface ISelectListProps {
|
|
|
32
46
|
*/
|
|
33
47
|
className?: string;
|
|
34
48
|
}
|
|
35
|
-
export declare function SelectList(props: ISelectListProps):
|
|
49
|
+
export declare function SelectList(props: ISelectListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { SelectList } from './SelectList';
|
|
4
3
|
declare const meta: Meta<typeof SelectList>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const Playground: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
2
16
|
export interface ISliderProps {
|
|
3
17
|
/** The value of slider. When range is false, use number, otherwise, use [number, number] */
|
|
4
18
|
value: number;
|
|
@@ -30,4 +44,4 @@ export interface ISliderProps {
|
|
|
30
44
|
/**
|
|
31
45
|
* Slider Component
|
|
32
46
|
*/
|
|
33
|
-
export declare function Slider(props: ISliderProps):
|
|
47
|
+
export declare function Slider(props: ISliderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { Slider } from './Slider';
|
|
4
3
|
declare const meta: Meta<typeof Slider>;
|
|
5
4
|
export default meta;
|
|
6
5
|
export declare const Playground: {
|
|
7
|
-
render():
|
|
6
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
};
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
2
16
|
export interface ISwitchProps {
|
|
3
17
|
defaultChecked?: boolean;
|
|
4
18
|
onChange?: (checked: boolean) => void;
|
|
5
19
|
}
|
|
6
|
-
declare const Switch: (props: ISwitchProps) =>
|
|
20
|
+
declare const Switch: (props: ISwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
21
|
export { Switch };
|
|
@@ -34,4 +34,4 @@ export interface ITooltipProps {
|
|
|
34
34
|
*/
|
|
35
35
|
onVisibleChange?: (visible: boolean) => void;
|
|
36
36
|
}
|
|
37
|
-
export declare function Tooltip({ visible, asChild, title, children, placement, showIfEllipsis, onVisibleChange }: ITooltipProps):
|
|
37
|
+
export declare function Tooltip({ visible, asChild, title, children, placement, showIfEllipsis, onVisibleChange }: ITooltipProps): import("react/jsx-runtime").JSX.Element | null;
|