@refinedev/antd 5.46.3 → 5.47.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 +17 -0
- package/dist/components/themedLayoutV2/sider/index.d.cts.map +1 -1
- package/dist/components/themedLayoutV2/sider/index.d.ts.map +1 -1
- package/dist/hooks/drawer/useDrawer/index.d.cts +8 -0
- package/dist/hooks/drawer/useDrawer/index.d.cts.map +1 -1
- package/dist/hooks/drawer/useDrawer/index.d.mts +8 -0
- package/dist/hooks/drawer/useDrawer/index.d.mts.map +8 -0
- package/dist/hooks/drawer/useDrawer/index.d.ts +8 -0
- package/dist/hooks/drawer/useDrawer/index.d.ts.map +1 -1
- package/dist/hooks/index.d.cts +1 -0
- package/dist/hooks/index.d.cts.map +1 -1
- package/dist/hooks/index.d.mts +1 -0
- package/dist/hooks/index.d.mts.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/themedLayoutV2/sider/index.tsx +8 -1
- package/src/hooks/drawer/useDrawer/index.tsx +8 -0
- package/src/hooks/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @refinedev/antd
|
|
2
2
|
|
|
3
|
+
## 5.47.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#6880](https://github.com/refinedev/refine/pull/6880) [`2b4c2082b2e07f6c5afa514c4beeb7abc4082ea2`](https://github.com/refinedev/refine/commit/2b4c2082b2e07f6c5afa514c4beeb7abc4082ea2) Thanks [@arndom](https://github.com/arndom)! - - Add `siderItemsAreCollapsed` prop to all `Sider` components to set default expanded/collapsed nested sider items.
|
|
8
|
+
|
|
9
|
+
- UI packages: AntDesign, Manitine, Charka-UI, Material-UI
|
|
10
|
+
- Add documentation for this addition
|
|
11
|
+
|
|
12
|
+
[Resolves #6721](https://github.com/refinedev/refine/issues/6721)
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#6958](https://github.com/refinedev/refine/pull/6958) [`b447eb36f4e18da63493a1cbd7ad0792eea792e3`](https://github.com/refinedev/refine/commit/b447eb36f4e18da63493a1cbd7ad0792eea792e3) Thanks [@arndom](https://github.com/arndom)! - - Export `useDrawer`out of antd package.
|
|
17
|
+
|
|
18
|
+
[Resolves #6944](https://github.com/refinedev/refine/issues/6944)
|
|
19
|
+
|
|
3
20
|
## 5.46.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/themedLayoutV2/sider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAoC1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAI/D,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,KAAqB,MAAM,OAAO,CAAC;AAoC1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAI/D,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA6TlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/themedLayoutV2/sider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAoC1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAI/D,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,KAAqB,MAAM,OAAO,CAAC;AAoC1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAI/D,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA6TlE,CAAC"}
|
|
@@ -4,7 +4,15 @@ export type useDrawerReturnType = {
|
|
|
4
4
|
drawerProps: DrawerProps;
|
|
5
5
|
} & Omit<useModalReturnType, "visible">;
|
|
6
6
|
export type useDrawerProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Default props for Ant Design {@link https://ant.design/components/drawer/ `<Drawer>`} component.
|
|
9
|
+
*/
|
|
7
10
|
drawerProps?: DrawerProps;
|
|
8
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* By using `useDrawer` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/drawer/ `<Drawer>`} component.
|
|
14
|
+
*
|
|
15
|
+
* @see {@link https://refine.dev/docs/ui-integrations/ant-design/hooks/use-drawer} for more details.
|
|
16
|
+
*/
|
|
9
17
|
export declare const useDrawer: ({ drawerProps, }?: useDrawerProps) => useDrawerReturnType;
|
|
10
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/drawer/useDrawer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,WAAW,CAAC;CAC1B,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,SAAS,sBAEnB,cAAc,KAAQ,mBAiBxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/drawer/useDrawer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,WAAW,CAAC;CAC1B,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,sBAEnB,cAAc,KAAQ,mBAiBxB,CAAC"}
|
|
@@ -4,7 +4,15 @@ export type useDrawerReturnType = {
|
|
|
4
4
|
drawerProps: DrawerProps;
|
|
5
5
|
} & Omit<useModalReturnType, "visible">;
|
|
6
6
|
export type useDrawerProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Default props for Ant Design {@link https://ant.design/components/drawer/ `<Drawer>`} component.
|
|
9
|
+
*/
|
|
7
10
|
drawerProps?: DrawerProps;
|
|
8
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* By using `useDrawer` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/drawer/ `<Drawer>`} component.
|
|
14
|
+
*
|
|
15
|
+
* @see {@link https://refine.dev/docs/ui-integrations/ant-design/hooks/use-drawer} for more details.
|
|
16
|
+
*/
|
|
9
17
|
export declare const useDrawer: ({ drawerProps, }?: useDrawerProps) => useDrawerReturnType;
|
|
10
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,7 +4,15 @@ export type useDrawerReturnType = {
|
|
|
4
4
|
drawerProps: DrawerProps;
|
|
5
5
|
} & Omit<useModalReturnType, "visible">;
|
|
6
6
|
export type useDrawerProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Default props for Ant Design {@link https://ant.design/components/drawer/ `<Drawer>`} component.
|
|
9
|
+
*/
|
|
7
10
|
drawerProps?: DrawerProps;
|
|
8
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* By using `useDrawer` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/drawer/ `<Drawer>`} component.
|
|
14
|
+
*
|
|
15
|
+
* @see {@link https://refine.dev/docs/ui-integrations/ant-design/hooks/use-drawer} for more details.
|
|
16
|
+
*/
|
|
9
17
|
export declare const useDrawer: ({ drawerProps, }?: useDrawerProps) => useDrawerReturnType;
|
|
10
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,7 +4,15 @@ export type useDrawerReturnType = {
|
|
|
4
4
|
drawerProps: DrawerProps;
|
|
5
5
|
} & Omit<useModalReturnType, "visible">;
|
|
6
6
|
export type useDrawerProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Default props for Ant Design {@link https://ant.design/components/drawer/ `<Drawer>`} component.
|
|
9
|
+
*/
|
|
7
10
|
drawerProps?: DrawerProps;
|
|
8
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* By using `useDrawer` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/drawer/ `<Drawer>`} component.
|
|
14
|
+
*
|
|
15
|
+
* @see {@link https://refine.dev/docs/ui-integrations/ant-design/hooks/use-drawer} for more details.
|
|
16
|
+
*/
|
|
9
17
|
export declare const useDrawer: ({ drawerProps, }?: useDrawerProps) => useDrawerReturnType;
|
|
10
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/drawer/useDrawer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,WAAW,CAAC;CAC1B,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,SAAS,sBAEnB,cAAc,KAAQ,mBAiBxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/drawer/useDrawer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,WAAW,CAAC;CAC1B,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,sBAEnB,cAAc,KAAQ,mBAiBxB,CAAC"}
|
package/dist/hooks/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC"}
|
package/dist/hooks/index.d.mts
CHANGED
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC"}
|