@univerjs/design 0.5.2 → 0.5.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/design",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "private": false,
5
5
  "description": "UI component library for building exceptional Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -54,10 +54,11 @@
54
54
  "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0"
55
55
  },
56
56
  "dependencies": {
57
+ "@radix-ui/react-tooltip": "^1.1.6",
57
58
  "@rc-component/color-picker": "^2.0.1",
58
59
  "@rc-component/trigger": "^2.2.5",
59
60
  "@types/react-mentions": "^4.4.0",
60
- "@univerjs/icons": "^0.2.8",
61
+ "@univerjs/icons": "^0.2.10",
61
62
  "clsx": "^2.1.1",
62
63
  "dayjs": "^1.11.13",
63
64
  "rc-dialog": "^9.6.0",
@@ -69,47 +70,28 @@
69
70
  "rc-segmented": "^2.5.0",
70
71
  "rc-select": "^14.16.3",
71
72
  "rc-textarea": "^1.8.2",
72
- "rc-tooltip": "^6.2.1",
73
73
  "rc-util": "^5.43.0",
74
74
  "rc-virtual-list": "^3.15.0",
75
75
  "react-draggable": "^4.4.6",
76
76
  "react-grid-layout": "^1.5.0",
77
77
  "react-mentions": "^4.4.10",
78
78
  "react-transition-group": "^4.4.5",
79
- "tailwind-merge": "^2.5.5"
79
+ "tailwind-merge": "^2.6.0"
80
80
  },
81
81
  "devDependencies": {
82
- "@testing-library/react": "^16.0.1",
82
+ "@testing-library/react": "^16.1.0",
83
83
  "@types/react-grid-layout": "^1.3.5",
84
84
  "@types/react-transition-group": "^4.4.11",
85
85
  "less": "^4.2.1",
86
86
  "postcss": "^8.4.49",
87
87
  "react": "18.3.1",
88
88
  "react-dom": "18.3.1",
89
- "tailwindcss": "^3.4.16",
89
+ "tailwindcss-animate": "^1.0.7",
90
90
  "typescript": "^5.7.2",
91
- "vite": "^6.0.3",
91
+ "vite": "^6.0.6",
92
92
  "vitest": "^2.1.8",
93
- "@univerjs-infra/shared": "0.5.2",
94
- "@univerjs/core": "0.5.2"
95
- },
96
- "space": {
97
- ".": {
98
- "import": "./lib/es/index.js",
99
- "require": "./lib/cjs/index.js",
100
- "types": "./lib/types/index.d.ts"
101
- },
102
- "./*": {
103
- "import": "./lib/es/*",
104
- "require": "./lib/cjs/*",
105
- "types": "./lib/types/index.d.ts"
106
- },
107
- "./locale/*": {
108
- "import": "./lib/es/locale/*.js",
109
- "require": "./lib/cjs/locale/*.js",
110
- "types": "./lib/types/locale/*.d.ts"
111
- },
112
- "./lib/*": "./lib/*"
93
+ "@univerjs-infra/shared": "0.5.3",
94
+ "@univerjs/core": "0.5.3"
113
95
  },
114
96
  "scripts": {
115
97
  "test": "vitest run",
@@ -1,48 +0,0 @@
1
- import { TextAreaProps } from 'rc-textarea';
2
- import { default as React } from 'react';
3
- export interface ITextareaProps extends Pick<TextAreaProps, 'onFocus' | 'onBlur'> {
4
- /**
5
- * Whether the input is autoFocus
6
- * @default false
7
- */
8
- autoFocus?: boolean;
9
- /**
10
- * The input class name
11
- */
12
- className?: string;
13
- /**
14
- * The input affix wrapper style
15
- */
16
- style?: React.CSSProperties;
17
- /**
18
- * The input affix wrapper style
19
- */
20
- autoSize?: boolean | {
21
- minRows?: number;
22
- maxRows?: number;
23
- };
24
- /**
25
- * The input placeholder
26
- */
27
- placeholder?: string;
28
- /**
29
- * The input content value
30
- */
31
- value?: string;
32
- /**
33
- * Whether the input is disabled
34
- * @default false
35
- */
36
- disabled?: boolean;
37
- /**
38
- * Callback when user press a key
39
- * @param e
40
- */
41
- onKeyDown?: React.KeyboardEventHandler;
42
- /**
43
- * Callback when user input
44
- * @param value
45
- */
46
- onChange?: (value: string) => void;
47
- }
48
- export declare function Textarea(props: ITextareaProps): React.JSX.Element;
@@ -1,11 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { default as React } from 'react';
3
- import { Textarea } from './Textarea';
4
- declare const meta: Meta<typeof Textarea>;
5
- export default meta;
6
- export declare const TextareaBasic: {
7
- render(): React.JSX.Element;
8
- };
9
- export declare const TextareaDisabled: {
10
- render(): React.JSX.Element;
11
- };
@@ -1,16 +0,0 @@
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
- */
16
- export {};
@@ -1,16 +0,0 @@
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
- */
16
- export { type ITextareaProps, Textarea } from './Textarea';
@@ -1,3 +0,0 @@
1
- import { BuildInPlacements } from '@rc-component/trigger';
2
- export declare const placements: BuildInPlacements;
3
- export default placements;