@univerjs/design
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -48,2 +48,9 @@ /** | ||
/** | ||
* The default position of the dialog. | ||
*/ | ||
defaultPosition?: { | ||
x: number; | ||
y: number; | ||
}; | ||
/** | ||
* Whether the dialog should be destroyed on close. | ||
@@ -54,2 +61,7 @@ * @default false | ||
/** | ||
* Whether the dialog should preserve its position on destroy. | ||
* @default false | ||
*/ | ||
preservePositionOnDestroy?: boolean; | ||
/** | ||
* The footer of the dialog. | ||
@@ -56,0 +68,0 @@ */ |
@@ -24,1 +24,4 @@ /** | ||
}; | ||
export declare const DialogDraggable: { | ||
render(): React.JSX.Element; | ||
}; |
{ | ||
"name": "@univerjs/design", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"private": false, | ||
@@ -61,3 +61,3 @@ "description": "UI component library for building exceptional Univer.", | ||
"@rc-component/trigger": "^1.18.3", | ||
"@univerjs/icons": "^0.1.28", | ||
"@univerjs/icons": "^0.1.30", | ||
"rc-dialog": "^9.3.4", | ||
@@ -87,3 +87,3 @@ "rc-dropdown": "^4.1.0", | ||
"vitest": "^1.3.1", | ||
"@univerjs/shared": "0.1.1" | ||
"@univerjs/shared": "0.1.2" | ||
}, | ||
@@ -90,0 +90,0 @@ "scripts": { |
@@ -8,4 +8,12 @@ # @univerjs/design | ||
> UI component library for building exceptional Univer. | ||
To ensure better consistency in the UI of Univer plugins and to reduce the effort required for custom development, we provide some fundamental design guidelines and components. | ||
The components are developed using React and less, and you can find out more information by visiting the [component library website](https://univer-design.vercel.app). | ||
 | ||
:::note | ||
If you only need to extend the toolbar, right-click menu, and so on, you can directly use the extension interfaces provided by `@univerjs/ui` without implementing the UI yourself. For more information, please refer to [Extending UI](/en-us/guides/extend/ui). | ||
::: | ||
## Usage | ||
@@ -16,3 +24,7 @@ | ||
```shell | ||
npm i @univerjs/design | ||
# Using npm | ||
npm install @univerjs/design | ||
# Using pnpm | ||
pnpm add @univerjs/design | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1138069
17318
29
Updated@univerjs/icons@^0.1.30