Skip to content

Commit 817c13d

Browse files
authored
feat(modal): modal support draggable/resize (#544)
* feat(modal): modal support draggable * feat(modal): modal support resizable * test(modal): add unit tests * chore: update deps * feat(modal): make modal's maskClosable to false as default * feat(modal): update modal * docs(modal): update doc
1 parent f8f005d commit 817c13d

File tree

16 files changed

+790
-34
lines changed

16 files changed

+790
-34
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"@types/lodash-es": "^4.17.12",
8484
"@types/react": "^18.0.0",
8585
"@types/react-syntax-highlighter": "~15.5.13",
86+
"@types/react-resizable": "^3.0.8",
8687
"@types/shortid": "^0.0.31",
8788
"@types/showdown": "^1.9.0",
8889
"@types/testing-library__jest-dom": "^5.14.5",
@@ -125,6 +126,7 @@
125126
"react-syntax-highlighter": "~15.5.0",
126127
"remark-gfm": "~3.0.1",
127128
"react-draggable": "~4.4.6",
129+
"react-resizable": "^3.0.5",
128130
"shortid": "^2.2.16",
129131
"showdown": "^1.9.0"
130132
},

pnpm-lock.yaml

Lines changed: 32 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Handler Component should match snapshot 1`] = `
4+
<DocumentFragment>
5+
<div
6+
class="dt-modal-resize-handle handle-x"
7+
data-testid="handler"
8+
/>
9+
</DocumentFragment>
10+
`;

0 commit comments

Comments
 (0)