@refinedev/antd 5.13.2 → 5.16.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/CHANGELOG.md +195 -0
- package/dist/components/themedLayoutV2/header/index.d.ts.map +1 -1
- package/dist/components/themedLayoutV2/sider/index.d.ts.map +1 -1
- package/dist/components/themedLayoutV2/types.d.ts +4 -1
- package/dist/components/themedLayoutV2/types.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/hooks/form/useModalForm/useModalForm.d.ts +6 -3
- package/dist/hooks/form/useModalForm/useModalForm.d.ts.map +1 -1
- package/dist/hooks/table/useEditableTable/useEditableTable.d.ts +7 -2
- package/dist/hooks/table/useEditableTable/useEditableTable.d.ts.map +1 -1
- package/dist/iife/index.js +6 -6
- package/dist/iife/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/themedLayoutV2/header/index.tsx +7 -2
- package/src/components/themedLayoutV2/sider/index.tsx +94 -73
- package/src/components/themedLayoutV2/types.ts +5 -1
- package/src/hooks/form/useDrawerForm/useDrawerForm.ts +14 -14
- package/src/hooks/form/useModalForm/useModalForm.ts +46 -17
- package/src/hooks/table/useEditableTable/useEditableTable.ts +26 -10
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,200 @@
|
|
1
1
|
# @pankod/refine-antd
|
2
2
|
|
3
|
+
## 5.16.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#4272](https://github.com/refinedev/refine/pull/4272) [`420d2442741`](https://github.com/refinedev/refine/commit/420d2442741d211561dd48c72bcb143ee5f44e9e) Thanks [@salihozdemir](https://github.com/salihozdemir)! - feat: added the `fixed` prop to the `<ThemedSiderV2/>` to allow the sider to be fixed
|
8
|
+
|
9
|
+
The prop is optional and defaults to `false`. You can see the usage as follows:
|
10
|
+
|
11
|
+
```tsx
|
12
|
+
import { Refine } from "@refinedev/core";
|
13
|
+
import { ThemedLayoutV2, ThemedSiderV2 } from "@refinedev/antd";
|
14
|
+
|
15
|
+
const App: React.FC = () => {
|
16
|
+
return (
|
17
|
+
<Refine
|
18
|
+
...
|
19
|
+
>
|
20
|
+
<ThemedLayoutV2 Sider={() => <ThemedSiderV2 fixed />}>
|
21
|
+
{/* ... */}
|
22
|
+
</ThemedLayoutV2>
|
23
|
+
</Refine>
|
24
|
+
);
|
25
|
+
};
|
26
|
+
```
|
27
|
+
|
28
|
+
- [#4278](https://github.com/refinedev/refine/pull/4278) [`b14f2ad8a70`](https://github.com/refinedev/refine/commit/b14f2ad8a700d5ae157f437a8f610481d88ae09b) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - feat: added `autoSubmitClose` prop to `useEditableTable`.
|
29
|
+
Now you can choose whether to close the table's row after submitting the form or not.
|
30
|
+
|
31
|
+
```tsx
|
32
|
+
const editableTable = useEditableTable({
|
33
|
+
autoSubmitClose: false,
|
34
|
+
});
|
35
|
+
```
|
36
|
+
|
37
|
+
### Patch Changes
|
38
|
+
|
39
|
+
- [#4267](https://github.com/refinedev/refine/pull/4267) [`5e128c76c16`](https://github.com/refinedev/refine/commit/5e128c76c162cb01822c283e567003a5b6ce62f8) Thanks [@yildirayunlu](https://github.com/yildirayunlu)! - fix: `onFinish` prop override on `useDrawerForm` and `useModalForm` hook
|
40
|
+
|
41
|
+
When override `onFinish` prop using the `useDrawerForm` and `useModalForm` hooks, the modal not close after submit the form.
|
42
|
+
|
43
|
+
- [#4277](https://github.com/refinedev/refine/pull/4277) [`7172c1b42d2`](https://github.com/refinedev/refine/commit/7172c1b42d26ade22780527892ce26ceef15c838) Thanks [@salihozdemir](https://github.com/salihozdemir)! - fix: renamed the `<ThemedHeaderV2/>` prop `isSticky` to `sticky`
|
44
|
+
|
45
|
+
To provide backwards compatibility, the old prop name is still supported, but it is deprecated and will be removed in the next major version.
|
46
|
+
|
47
|
+
Example:
|
48
|
+
|
49
|
+
```tsx
|
50
|
+
import { Refine } from "@refinedev/core";
|
51
|
+
import { ThemedLayoutV2, ThemedHeaderV2 } from "@refinedev/antd"; // or @refinedev/chakra-ui, @refinedev/mui, @refinedev/mantine
|
52
|
+
|
53
|
+
const App: React.FC = () => {
|
54
|
+
return (
|
55
|
+
<Refine
|
56
|
+
...
|
57
|
+
>
|
58
|
+
<ThemedLayoutV2
|
59
|
+
Header={() => <ThemedHeaderV2 sticky />}
|
60
|
+
>
|
61
|
+
{/* ... */}
|
62
|
+
</ThemedLayoutV2>
|
63
|
+
</Refine>
|
64
|
+
);
|
65
|
+
};
|
66
|
+
```
|
67
|
+
|
68
|
+
## 5.15.0
|
69
|
+
|
70
|
+
### Minor Changes
|
71
|
+
|
72
|
+
- [#4272](https://github.com/refinedev/refine/pull/4272) [`420d2442741`](https://github.com/refinedev/refine/commit/420d2442741d211561dd48c72bcb143ee5f44e9e) Thanks [@salihozdemir](https://github.com/salihozdemir)! - feat: added the `fixed` prop to the `<ThemedSiderV2/>` to allow the sider to be fixed
|
73
|
+
|
74
|
+
The prop is optional and defaults to `false`. You can see the usage as follows:
|
75
|
+
|
76
|
+
```tsx
|
77
|
+
import { Refine } from "@refinedev/core";
|
78
|
+
import { ThemedLayoutV2, ThemedSiderV2 } from "@refinedev/antd";
|
79
|
+
|
80
|
+
const App: React.FC = () => {
|
81
|
+
return (
|
82
|
+
<Refine
|
83
|
+
...
|
84
|
+
>
|
85
|
+
<ThemedLayoutV2 Sider={() => <ThemedSiderV2 fixed />}>
|
86
|
+
{/* ... */}
|
87
|
+
</ThemedLayoutV2>
|
88
|
+
</Refine>
|
89
|
+
);
|
90
|
+
};
|
91
|
+
```
|
92
|
+
|
93
|
+
- [#4278](https://github.com/refinedev/refine/pull/4278) [`b14f2ad8a70`](https://github.com/refinedev/refine/commit/b14f2ad8a700d5ae157f437a8f610481d88ae09b) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - feat: added `autoSubmitClose` prop to `useEditableTable`.
|
94
|
+
Now you can choose whether to close the table's row after submitting the form or not.
|
95
|
+
|
96
|
+
```tsx
|
97
|
+
const editableTable = useEditableTable({
|
98
|
+
autoSubmitClose: false,
|
99
|
+
});
|
100
|
+
```
|
101
|
+
|
102
|
+
### Patch Changes
|
103
|
+
|
104
|
+
- [#4267](https://github.com/refinedev/refine/pull/4267) [`5e128c76c16`](https://github.com/refinedev/refine/commit/5e128c76c162cb01822c283e567003a5b6ce62f8) Thanks [@yildirayunlu](https://github.com/yildirayunlu)! - fix: `onFinish` prop override on `useDrawerForm` and `useModalForm` hook
|
105
|
+
|
106
|
+
When override `onFinish` prop using the `useDrawerForm` and `useModalForm` hooks, the modal not close after submit the form.
|
107
|
+
|
108
|
+
- [#4277](https://github.com/refinedev/refine/pull/4277) [`7172c1b42d2`](https://github.com/refinedev/refine/commit/7172c1b42d26ade22780527892ce26ceef15c838) Thanks [@salihozdemir](https://github.com/salihozdemir)! - fix: renamed the `<ThemedHeaderV2/>` prop `isSticky` to `sticky`
|
109
|
+
|
110
|
+
To provide backwards compatibility, the old prop name is still supported, but it is deprecated and will be removed in the next major version.
|
111
|
+
|
112
|
+
Example:
|
113
|
+
|
114
|
+
```tsx
|
115
|
+
import { Refine } from "@refinedev/core";
|
116
|
+
import { ThemedLayoutV2, ThemedHeaderV2 } from "@refinedev/antd"; // or @refinedev/chakra-ui, @refinedev/mui, @refinedev/mantine
|
117
|
+
|
118
|
+
const App: React.FC = () => {
|
119
|
+
return (
|
120
|
+
<Refine
|
121
|
+
...
|
122
|
+
>
|
123
|
+
<ThemedLayoutV2
|
124
|
+
Header={() => <ThemedHeaderV2 sticky />}
|
125
|
+
>
|
126
|
+
{/* ... */}
|
127
|
+
</ThemedLayoutV2>
|
128
|
+
</Refine>
|
129
|
+
);
|
130
|
+
};
|
131
|
+
```
|
132
|
+
|
133
|
+
## 5.14.0
|
134
|
+
|
135
|
+
### Minor Changes
|
136
|
+
|
137
|
+
- [#4272](https://github.com/refinedev/refine/pull/4272) [`420d2442741`](https://github.com/refinedev/refine/commit/420d2442741d211561dd48c72bcb143ee5f44e9e) Thanks [@salihozdemir](https://github.com/salihozdemir)! - feat: added the `fixed` prop to the `<ThemedSiderV2/>` to allow the sider to be fixed
|
138
|
+
|
139
|
+
The prop is optional and defaults to `false`. You can see the usage as follows:
|
140
|
+
|
141
|
+
```tsx
|
142
|
+
import { Refine } from "@refinedev/core";
|
143
|
+
import { ThemedLayoutV2, ThemedSiderV2 } from "@refinedev/antd";
|
144
|
+
|
145
|
+
const App: React.FC = () => {
|
146
|
+
return (
|
147
|
+
<Refine
|
148
|
+
...
|
149
|
+
>
|
150
|
+
<ThemedLayoutV2 Sider={() => <ThemedSiderV2 fixed />}>
|
151
|
+
{/* ... */}
|
152
|
+
</ThemedLayoutV2>
|
153
|
+
</Refine>
|
154
|
+
);
|
155
|
+
};
|
156
|
+
```
|
157
|
+
|
158
|
+
- [#4278](https://github.com/refinedev/refine/pull/4278) [`b14f2ad8a70`](https://github.com/refinedev/refine/commit/b14f2ad8a700d5ae157f437a8f610481d88ae09b) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - feat: added `autoSubmitClose` prop to `useEditableTable`.
|
159
|
+
Now you can choose whether to close the table's row after submitting the form or not.
|
160
|
+
|
161
|
+
```tsx
|
162
|
+
const editableTable = useEditableTable({
|
163
|
+
autoSubmitClose: false,
|
164
|
+
});
|
165
|
+
```
|
166
|
+
|
167
|
+
### Patch Changes
|
168
|
+
|
169
|
+
- [#4267](https://github.com/refinedev/refine/pull/4267) [`5e128c76c16`](https://github.com/refinedev/refine/commit/5e128c76c162cb01822c283e567003a5b6ce62f8) Thanks [@yildirayunlu](https://github.com/yildirayunlu)! - fix: `onFinish` prop override on `useDrawerForm` and `useModalForm` hook
|
170
|
+
|
171
|
+
When override `onFinish` prop using the `useDrawerForm` and `useModalForm` hooks, the modal not close after submit the form.
|
172
|
+
|
173
|
+
- [#4277](https://github.com/refinedev/refine/pull/4277) [`7172c1b42d2`](https://github.com/refinedev/refine/commit/7172c1b42d26ade22780527892ce26ceef15c838) Thanks [@salihozdemir](https://github.com/salihozdemir)! - fix: renamed the `<ThemedHeaderV2/>` prop `isSticky` to `sticky`
|
174
|
+
|
175
|
+
To provide backwards compatibility, the old prop name is still supported, but it is deprecated and will be removed in the next major version.
|
176
|
+
|
177
|
+
Example:
|
178
|
+
|
179
|
+
```tsx
|
180
|
+
import { Refine } from "@refinedev/core";
|
181
|
+
import { ThemedLayoutV2, ThemedHeaderV2 } from "@refinedev/antd"; // or @refinedev/chakra-ui, @refinedev/mui, @refinedev/mantine
|
182
|
+
|
183
|
+
const App: React.FC = () => {
|
184
|
+
return (
|
185
|
+
<Refine
|
186
|
+
...
|
187
|
+
>
|
188
|
+
<ThemedLayoutV2
|
189
|
+
Header={() => <ThemedHeaderV2 sticky />}
|
190
|
+
>
|
191
|
+
{/* ... */}
|
192
|
+
</ThemedLayoutV2>
|
193
|
+
</Refine>
|
194
|
+
);
|
195
|
+
};
|
196
|
+
```
|
197
|
+
|
3
198
|
## 5.13.2
|
4
199
|
|
5
200
|
### Patch Changes
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/themedLayoutV2/header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/themedLayoutV2/header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAK3D,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CA4CpE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/themedLayoutV2/sider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4B1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAO1D,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/themedLayoutV2/sider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4B1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAO1D,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAyTlE,CAAC"}
|
@@ -1,3 +1,6 @@
|
|
1
|
-
import type { RefineThemedLayoutV2SiderProps, RefineThemedLayoutV2HeaderProps, RefineThemedLayoutV2Props, RefineLayoutThemedTitleProps } from "@refinedev/ui-types";
|
1
|
+
import type { RefineThemedLayoutV2SiderProps as BaseRefineThemedLayoutV2SiderProps, RefineThemedLayoutV2HeaderProps, RefineThemedLayoutV2Props, RefineLayoutThemedTitleProps } from "@refinedev/ui-types";
|
2
|
+
declare type RefineThemedLayoutV2SiderProps = BaseRefineThemedLayoutV2SiderProps & {
|
3
|
+
fixed?: boolean;
|
4
|
+
};
|
2
5
|
export type { RefineLayoutThemedTitleProps, RefineThemedLayoutV2SiderProps, RefineThemedLayoutV2HeaderProps, RefineThemedLayoutV2Props, };
|
3
6
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/themedLayoutV2/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,8BAA8B,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/themedLayoutV2/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,8BAA8B,IAAI,kCAAkC,EACpE,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC/B,MAAM,qBAAqB,CAAC;AAE7B,aAAK,8BAA8B,GAAG,kCAAkC,GAAG;IACvE,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,YAAY,EACR,4BAA4B,EAC5B,8BAA8B,EAC9B,+BAA+B,EAC/B,yBAAyB,GAC5B,CAAC"}
|