@univerjs/design 0.6.10 → 0.7.0-beta.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 +162 -101
- package/lib/es/index.js +16634 -16218
- package/lib/index.css +1 -1
- package/lib/index.js +16634 -16218
- package/lib/types/components/button/Button.d.ts +1 -1
- package/lib/types/components/button/ButtonGroup.d.ts +8 -0
- package/lib/types/components/button/ButtonGroup.stories.d.ts +7 -0
- package/lib/types/components/button/index.d.ts +1 -0
- package/lib/types/components/dialog/Dialog.d.ts +15 -20
- package/lib/types/components/dialog/DialogPrimitive.d.ts +22 -0
- package/lib/types/components/dropdown/Dropdown.d.ts +2 -3
- package/lib/types/components/dropdown/index.d.ts +1 -1
- package/lib/types/components/dropdown-menu/DropdownMenu.d.ts +3 -2
- package/lib/types/components/dropdown-menu/DropdownMenuPrimitive.d.ts +6 -2
- package/lib/types/components/dropdown-menu/index.d.ts +1 -1
- package/lib/types/components/input/Input.d.ts +3 -1
- package/lib/types/components/input/Input.stories.d.ts +6 -0
- package/lib/types/components/input-number/InputNumber.d.ts +1 -0
- package/lib/types/components/kbd/Kbd.d.ts +20 -0
- package/lib/types/components/kbd/Kbd.stories.d.ts +7 -0
- package/lib/types/components/{select → kbd}/index.d.ts +1 -1
- package/lib/types/components/menu/Menu.d.ts +4 -0
- package/lib/types/components/select/LegacySelect.d.ts +44 -0
- package/lib/types/components/select/Select.d.ts +16 -18
- package/lib/types/components/toaster/Toaster.d.ts +5 -0
- package/lib/types/index.d.ts +7 -5
- package/lib/umd/index.js +165 -104
- package/package.json +12 -12
- package/lib/types/components/design-token/Palette.stories.d.ts +0 -8
- package/lib/types/components/side-menu/index.d.ts +0 -41
- package/lib/types/components/side-menu/side-menu.stories.d.ts +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UI component library for building exceptional Univer.",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -54,25 +54,25 @@
|
|
|
54
54
|
"react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@radix-ui/react-
|
|
58
|
-
"@radix-ui/react-
|
|
59
|
-
"@radix-ui/react-
|
|
57
|
+
"@radix-ui/react-dialog": "^1.1.11",
|
|
58
|
+
"@radix-ui/react-dropdown-menu": "^2.1.12",
|
|
59
|
+
"@radix-ui/react-popover": "^1.1.11",
|
|
60
|
+
"@radix-ui/react-separator": "^1.1.4",
|
|
60
61
|
"@radix-ui/react-slot": "^1.2.0",
|
|
61
|
-
"@radix-ui/react-tooltip": "^1.2.
|
|
62
|
+
"@radix-ui/react-tooltip": "^1.2.4",
|
|
62
63
|
"@rc-component/trigger": "^2.2.6",
|
|
63
|
-
"@univerjs/icons": "^0.3.
|
|
64
|
+
"@univerjs/icons": "^0.3.22",
|
|
64
65
|
"class-variance-authority": "^0.7.1",
|
|
65
66
|
"clsx": "^2.1.1",
|
|
66
67
|
"dayjs": "^1.11.13",
|
|
67
|
-
"rc-dialog": "^9.6.0",
|
|
68
68
|
"rc-dropdown": "^4.2.1",
|
|
69
69
|
"rc-menu": "^9.16.0",
|
|
70
70
|
"rc-picker": "^4.9.0",
|
|
71
71
|
"rc-select": "^14.16.4",
|
|
72
72
|
"rc-virtual-list": "^3.16.1",
|
|
73
|
-
"react-draggable": "^4.4.6",
|
|
74
73
|
"react-grid-layout": "^1.5.1",
|
|
75
74
|
"react-transition-group": "^4.4.5",
|
|
75
|
+
"sonner": "^2.0.3",
|
|
76
76
|
"tailwind-merge": "^3.2.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"tailwindcss": "^3.4.17",
|
|
87
87
|
"tailwindcss-animate": "^1.0.7",
|
|
88
88
|
"typescript": "^5.8.3",
|
|
89
|
-
"vite": "^6.3.
|
|
90
|
-
"vitest": "^3.1.
|
|
91
|
-
"@univerjs-infra/shared": "0.
|
|
92
|
-
"@univerjs/core": "0.
|
|
89
|
+
"vite": "^6.3.3",
|
|
90
|
+
"vitest": "^3.1.2",
|
|
91
|
+
"@univerjs-infra/shared": "0.7.0-beta.0",
|
|
92
|
+
"@univerjs/core": "0.7.0-beta.0"
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
|
95
95
|
"test": "vitest run",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export default meta;
|
|
4
|
-
interface IProps {
|
|
5
|
-
theme: Record<string, string>;
|
|
6
|
-
}
|
|
7
|
-
export declare function Palette(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const Playground: StoryObj;
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
export interface ISideMenuItem {
|
|
17
|
-
text: string;
|
|
18
|
-
level: number;
|
|
19
|
-
id: string;
|
|
20
|
-
isTitle?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface ISideMenuProps {
|
|
23
|
-
menus?: ISideMenuItem[];
|
|
24
|
-
onClick?: (menu: ISideMenuItem) => void;
|
|
25
|
-
className?: string;
|
|
26
|
-
style?: React.CSSProperties;
|
|
27
|
-
mode?: 'float' | 'side-bar';
|
|
28
|
-
maxHeight: number;
|
|
29
|
-
activeId?: string;
|
|
30
|
-
open?: boolean;
|
|
31
|
-
onOpenChange?: (open: boolean) => void;
|
|
32
|
-
maxWidth?: number;
|
|
33
|
-
wrapperClass?: string;
|
|
34
|
-
wrapperStyle?: React.CSSProperties;
|
|
35
|
-
iconClass?: string;
|
|
36
|
-
iconStyle?: React.CSSProperties;
|
|
37
|
-
}
|
|
38
|
-
export interface ISideMenuInstance {
|
|
39
|
-
scrollTo: (id: string) => void;
|
|
40
|
-
}
|
|
41
|
-
export declare const SideMenu: import('react').ForwardRefExoticComponent<ISideMenuProps & import('react').RefAttributes<ISideMenuInstance>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { SideMenu } from './index';
|
|
3
|
-
declare const meta: Meta<typeof SideMenu>;
|
|
4
|
-
export default meta;
|
|
5
|
-
export declare const SideMenuBasic: {
|
|
6
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export declare const EmptySideMenu: {
|
|
9
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
};
|
|
11
|
-
export declare const CustomStyledSideMenu: {
|
|
12
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
};
|
|
14
|
-
export declare const MultiLevelSideMenu: {
|
|
15
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
};
|