@univerjs/design 0.17.0 → 0.18.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 +322 -88
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +329 -15659
- package/lib/es/locale/ca-ES.js +1 -50
- package/lib/es/locale/en-US.js +1 -50
- package/lib/es/locale/es-ES.js +1 -50
- package/lib/es/locale/fa-IR.js +1 -50
- package/lib/es/locale/fr-FR.js +1 -50
- package/lib/es/locale/ja-JP.js +1 -50
- package/lib/es/locale/ko-KR.js +1 -50
- package/lib/es/locale/ru-RU.js +1 -50
- package/lib/es/locale/sk-SK.js +1 -50
- package/lib/es/locale/vi-VN.js +1 -50
- package/lib/es/locale/zh-CN.js +1 -50
- package/lib/es/locale/zh-TW.js +1 -50
- package/lib/index.css +2580 -1
- package/lib/index.js +329 -15659
- package/lib/locale/ca-ES.js +1 -50
- package/lib/locale/en-US.js +1 -50
- package/lib/locale/es-ES.js +1 -50
- package/lib/locale/fa-IR.js +1 -50
- package/lib/locale/fr-FR.js +1 -50
- package/lib/locale/ja-JP.js +1 -50
- package/lib/locale/ko-KR.js +1 -50
- package/lib/locale/ru-RU.js +1 -50
- package/lib/locale/sk-SK.js +1 -50
- package/lib/locale/vi-VN.js +1 -50
- package/lib/locale/zh-CN.js +1 -50
- package/lib/locale/zh-TW.js +1 -50
- package/lib/types/components/accordion/Accordion.d.ts +16 -1
- package/lib/types/components/accordion/Accordion.stories.d.ts +16 -1
- package/lib/types/components/avatar/Avatar.d.ts +18 -3
- package/lib/types/components/avatar/Avatar.stories.d.ts +16 -1
- package/lib/types/components/badge/Badge.d.ts +16 -1
- package/lib/types/components/badge/Badge.stories.d.ts +16 -1
- package/lib/types/components/button/Button.d.ts +19 -4
- package/lib/types/components/button/Button.stories.d.ts +16 -1
- package/lib/types/components/button/ButtonGroup.d.ts +17 -2
- package/lib/types/components/button/ButtonGroup.stories.d.ts +16 -1
- package/lib/types/components/calendar/Calendar.stories.d.ts +16 -1
- package/lib/types/components/cascader-list/CascaderList.stories.d.ts +16 -1
- package/lib/types/components/checkbox/Checkbox.d.ts +16 -1
- package/lib/types/components/checkbox/Checkbox.stories.d.ts +16 -1
- package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +16 -1
- package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +16 -1
- package/lib/types/components/color-picker/ColorPicker.stories.d.ts +16 -1
- package/lib/types/components/config-provider/ConfigProvider.d.ts +17 -2
- package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +16 -1
- package/lib/types/components/confirm/Confirm.d.ts +16 -1
- package/lib/types/components/confirm/Confirm.stories.d.ts +16 -1
- package/lib/types/components/date-picker/DatePicker.stories.d.ts +16 -1
- package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +16 -1
- package/lib/types/components/dialog/Dialog.d.ts +16 -1
- package/lib/types/components/dialog/Dialog.stories.d.ts +16 -1
- package/lib/types/components/dialog/DialogPrimitive.d.ts +24 -9
- package/lib/types/components/draggable-list/DraggableList.d.ts +16 -1
- package/lib/types/components/draggable-list/DraggableList.stories.d.ts +16 -1
- package/lib/types/components/dropdown/Dropdown.d.ts +16 -1
- package/lib/types/components/dropdown/Dropdown.stories.d.ts +16 -1
- package/lib/types/components/dropdown/PopoverPrimitive.d.ts +16 -1
- package/lib/types/components/dropdown-menu/DropdownMenu.d.ts +16 -1
- package/lib/types/components/dropdown-menu/DropdownMenuPrimitive.d.ts +16 -1
- package/lib/types/components/form-layout/FormLayout.d.ts +16 -1
- package/lib/types/components/form-layout/FormLayout.stories.d.ts +16 -1
- package/lib/types/components/gallery/Gallery.d.ts +1 -1
- package/lib/types/components/gallery/Gallery.stories.d.ts +16 -1
- package/lib/types/components/gradient-color-picker/GradientColorPicker.stories.d.ts +16 -1
- package/lib/types/components/hover-card/HoverCard.d.ts +16 -1
- package/lib/types/components/hover-card/HoverCard.stories.d.ts +16 -1
- package/lib/types/components/hover-card/HoverCardPrimitive.d.ts +4 -4
- package/lib/types/components/input/Input.d.ts +19 -4
- package/lib/types/components/input/Input.stories.d.ts +16 -1
- package/lib/types/components/input-number/InputNumber.d.ts +17 -2
- package/lib/types/components/input-number/InputNumber.stories.d.ts +16 -1
- package/lib/types/components/kbd/Kbd.stories.d.ts +16 -1
- package/lib/types/components/message/Message.d.ts +16 -1
- package/lib/types/components/message/Message.stories.d.ts +16 -1
- package/lib/types/components/pager/Pager.stories.d.ts +16 -1
- package/lib/types/components/popup/Popup.d.ts +17 -2
- package/lib/types/components/popup/Popup.stories.d.ts +16 -1
- package/lib/types/components/radio/Radio.d.ts +16 -1
- package/lib/types/components/radio/Radio.stories.d.ts +16 -1
- package/lib/types/components/radio-group/RadioGroup.d.ts +16 -1
- package/lib/types/components/radio-group/RadioGroup.stories.d.ts +16 -1
- package/lib/types/components/segmented/Segmented.stories.d.ts +16 -1
- package/lib/types/components/select/MultipleSelect.d.ts +16 -1
- package/lib/types/components/select/Select.d.ts +16 -1
- package/lib/types/components/select/Select.stories.d.ts +16 -1
- package/lib/types/components/select-list/SelectList.stories.d.ts +16 -1
- package/lib/types/components/separator/Separator.d.ts +16 -1
- package/lib/types/components/textarea/Textarea.d.ts +17 -2
- package/lib/types/components/toaster/Toaster.d.ts +16 -1
- package/lib/types/components/tooltip/Tooltip.d.ts +16 -1
- package/lib/types/components/tooltip/Tooltip.stories.d.ts +16 -1
- package/lib/types/components/tree/Tree.d.ts +16 -1
- package/lib/types/components/tree/Tree.stories.d.ts +16 -1
- package/lib/types/components/tree/util.d.ts +16 -1
- package/lib/types/components/virtual-list/VirtualList.d.ts +16 -1
- package/lib/types/helper/clsx.d.ts +16 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/locale/ca-ES.d.ts +16 -1
- package/lib/types/locale/es-ES.d.ts +16 -1
- package/lib/types/locale/fa-IR.d.ts +16 -1
- package/lib/types/locale/fr-FR.d.ts +16 -1
- package/lib/types/locale/ja-JP.d.ts +16 -1
- package/lib/types/locale/ko-KR.d.ts +16 -1
- package/lib/types/locale/ru-RU.d.ts +16 -1
- package/lib/types/locale/sk-SK.d.ts +16 -1
- package/lib/types/locale/vi-VN.d.ts +16 -1
- package/lib/types/locale/zh-CN.d.ts +16 -1
- package/lib/types/locale/zh-TW.d.ts +16 -1
- package/lib/umd/index.js +349 -71
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -9
- package/lib/types/components/menu/Menu.d.ts +0 -27
- package/lib/types/components/menu/index.d.ts +0 -17
- package/lib/types/components/menu/menu.stories.d.ts +0 -27
- package/lib/types/type.d.ts +0 -18
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
17
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
3
18
|
type ImageFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
4
19
|
declare const avatarVariants: (props?: ({
|
|
5
20
|
shape?: "circle" | "square" | null | undefined;
|
|
6
21
|
size?: "small" | "middle" | null | undefined;
|
|
7
|
-
} & import(
|
|
22
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
23
|
export interface IAvatarProps extends Omit<VariantProps<typeof avatarVariants>, 'size'> {
|
|
9
24
|
children?: ReactNode;
|
|
10
25
|
className?: string;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { Avatar } from './Avatar';
|
|
3
18
|
declare const meta: Meta<typeof Avatar>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { ReactNode } from 'react';
|
|
2
17
|
export interface IBadgeProps {
|
|
3
18
|
className?: string;
|
|
4
19
|
children: ReactNode;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { Badge } from './Badge';
|
|
3
18
|
declare const meta: Meta<typeof Badge>;
|
|
4
19
|
export default meta;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
17
|
+
import type { ButtonHTMLAttributes } from 'react';
|
|
3
18
|
export declare const buttonVariants: (props?: ({
|
|
4
19
|
variant?: "link" | "text" | "default" | "primary" | "danger" | "ghost" | null | undefined;
|
|
5
20
|
size?: "small" | "middle" | "large" | null | undefined;
|
|
6
|
-
} & import(
|
|
21
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
22
|
export interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
23
|
asChild?: boolean;
|
|
9
24
|
}
|
|
10
|
-
export declare const Button: import(
|
|
25
|
+
export declare const Button: import("react").ForwardRefExoticComponent<IButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { Button } from './Button';
|
|
3
18
|
declare const meta: Meta<typeof Button>;
|
|
4
19
|
export default meta;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { ReactElement } from 'react';
|
|
17
|
+
import type { IButtonProps } from './Button';
|
|
3
18
|
export interface IButtonGroupProps {
|
|
4
19
|
className?: string;
|
|
5
20
|
orientation?: 'horizontal' | 'vertical';
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { ButtonGroup } from './ButtonGroup';
|
|
3
18
|
declare const meta: Meta<typeof ButtonGroup>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { Calendar } from './Calendar';
|
|
3
18
|
declare const meta: Meta<typeof Calendar>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { CascaderList } from './CascaderList';
|
|
3
18
|
declare const meta: Meta<typeof CascaderList>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
17
|
export interface ICheckboxProps {
|
|
3
18
|
children?: ReactNode;
|
|
4
19
|
/**
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { Checkbox } from './Checkbox';
|
|
3
18
|
declare const meta: Meta<typeof Checkbox>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
17
|
export interface ICheckboxGroupProps {
|
|
3
18
|
children: ReactNode[];
|
|
4
19
|
/**
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { CheckboxGroup } from './CheckboxGroup';
|
|
3
18
|
declare const meta: Meta<typeof CheckboxGroup>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { ColorPicker } from './ColorPicker';
|
|
3
18
|
declare const meta: Meta<typeof ColorPicker>;
|
|
4
19
|
export default meta;
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { ReactNode } from 'react';
|
|
2
17
|
export interface IConfigProviderProps {
|
|
3
18
|
children: ReactNode;
|
|
4
19
|
locale?: any;
|
|
5
20
|
mountContainer: HTMLElement | null;
|
|
6
21
|
}
|
|
7
|
-
export declare const ConfigContext: import(
|
|
22
|
+
export declare const ConfigContext: import("react").Context<Omit<IConfigProviderProps, "children">>;
|
|
8
23
|
export declare function ConfigProvider(props: IConfigProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { ConfigProvider } from './ConfigProvider';
|
|
3
18
|
declare const meta: Meta<typeof ConfigProvider>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { ReactNode } from 'react';
|
|
2
17
|
export interface IConfirmProps {
|
|
3
18
|
children: ReactNode;
|
|
4
19
|
/**
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { Confirm } from './Confirm';
|
|
3
18
|
declare const meta: Meta<typeof Confirm>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { DatePicker } from './DatePicker';
|
|
3
18
|
declare const meta: Meta<typeof DatePicker>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { DateRangePicker } from './DateRangePicker';
|
|
3
18
|
declare const meta: Meta<typeof DateRangePicker>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
17
|
export interface IDialogProps {
|
|
3
18
|
children: ReactNode;
|
|
4
19
|
/**
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { Dialog } from './Dialog';
|
|
3
18
|
declare const meta: Meta<typeof Dialog>;
|
|
4
19
|
export default meta;
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { HTMLAttributes } from 'react';
|
|
17
|
+
declare const Dialog: import("react").FC<import("@radix-ui/react-dialog").DialogProps>;
|
|
18
|
+
declare const DialogTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
declare const DialogPortal: import("react").FC<import("@radix-ui/react-dialog").DialogPortalProps>;
|
|
20
|
+
declare const DialogClose: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
declare const DialogOverlay: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
22
|
interface IDialogContentProps {
|
|
8
23
|
closable?: boolean;
|
|
9
24
|
onClickClose?: () => void;
|
|
10
25
|
}
|
|
11
|
-
declare const DialogContent: import(
|
|
26
|
+
declare const DialogContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & IDialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
27
|
declare const DialogHeader: {
|
|
13
28
|
({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
29
|
displayName: string;
|
|
@@ -17,6 +32,6 @@ declare const DialogFooter: {
|
|
|
17
32
|
({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
18
33
|
displayName: string;
|
|
19
34
|
};
|
|
20
|
-
declare const DialogTitle: import(
|
|
21
|
-
declare const DialogDescription: import(
|
|
35
|
+
declare const DialogTitle: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
36
|
+
declare const DialogDescription: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
22
37
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
17
|
interface IDragPosition {
|
|
3
18
|
y: number;
|
|
4
19
|
}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { Meta } from '@storybook/react';
|
|
2
17
|
import { DraggableList } from './DraggableList';
|
|
3
18
|
declare const meta: Meta<typeof DraggableList>;
|
|
4
19
|
export default meta;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
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
|
+
*/
|
|
16
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
17
|
import { PopoverContent } from './PopoverPrimitive';
|
|
3
18
|
export interface IDropdownProps extends ComponentProps<typeof PopoverContent> {
|
|
4
19
|
children: ReactNode;
|