@refinedev/antd 5.37.3-alpha.0 → 5.37.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/CHANGELOG.md +12 -6
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/breadcrumb/index.d.ts.map +1 -1
- package/dist/components/buttons/types.d.ts +10 -10
- package/dist/components/buttons/types.d.ts.map +1 -1
- package/dist/components/crud/types.d.ts +5 -4
- package/dist/components/crud/types.d.ts.map +1 -1
- package/dist/components/fields/date/index.d.ts.map +1 -1
- package/dist/components/fields/email/index.d.ts.map +1 -1
- package/dist/components/fields/number/index.d.ts.map +1 -1
- package/dist/components/fields/text/index.d.ts.map +1 -1
- package/dist/components/fields/types.d.ts +10 -10
- package/dist/components/fields/types.d.ts.map +1 -1
- package/dist/components/fields/url/index.d.ts.map +1 -1
- package/dist/components/layout/header/index.d.ts.map +1 -1
- package/dist/components/layout/sider/index.d.ts.map +1 -1
- package/dist/components/pageHeader/index.d.ts +2 -2
- package/dist/components/pageHeader/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/login/index.d.ts +1 -1
- package/dist/components/pages/auth/components/login/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/register/index.d.ts +1 -1
- package/dist/components/pages/auth/components/register/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.ts +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/index.d.ts +1 -1
- package/dist/components/pages/auth/index.d.ts.map +1 -1
- package/dist/components/pages/error/index.d.ts.map +1 -1
- package/dist/components/pages/login/index.d.ts.map +1 -1
- package/dist/components/pages/ready/index.d.ts.map +1 -1
- package/dist/components/table/components/filterDropdown/index.d.ts +1 -1
- package/dist/components/table/components/filterDropdown/index.d.ts.map +1 -1
- package/dist/components/themedLayout/header/index.d.ts.map +1 -1
- package/dist/components/themedLayout/sider/index.d.ts.map +1 -1
- package/dist/components/themedLayout/title/index.d.ts.map +1 -1
- 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/title/index.d.ts.map +1 -1
- package/dist/components/themedLayoutV2/types.d.ts +1 -1
- package/dist/components/themedLayoutV2/types.d.ts.map +1 -1
- package/dist/components/undoableNotification/index.d.ts +1 -1
- package/dist/components/undoableNotification/index.d.ts.map +1 -1
- package/dist/definitions/themes/index.d.ts +2 -2
- package/dist/definitions/themes/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/hooks/fields/useCheckboxGroup/index.d.ts +3 -2
- package/dist/hooks/fields/useCheckboxGroup/index.d.ts.map +1 -1
- package/dist/hooks/fields/useRadioGroup/index.d.ts +3 -2
- package/dist/hooks/fields/useRadioGroup/index.d.ts.map +1 -1
- package/dist/hooks/fields/useSelect/index.d.ts +1 -1
- package/dist/hooks/fields/useSelect/index.d.ts.map +1 -1
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts +2 -2
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts.map +1 -1
- package/dist/hooks/form/useForm.d.ts +2 -2
- package/dist/hooks/form/useForm.d.ts.map +1 -1
- package/dist/hooks/form/useModalForm/useModalForm.d.ts +4 -4
- package/dist/hooks/form/useModalForm/useModalForm.d.ts.map +1 -1
- package/dist/hooks/form/useStepsForm/useStepsForm.d.ts +3 -3
- package/dist/hooks/form/useStepsForm/useStepsForm.d.ts.map +1 -1
- package/dist/hooks/list/useSimpleList/useSimpleList.d.ts +2 -2
- package/dist/hooks/list/useSimpleList/useSimpleList.d.ts.map +1 -1
- package/dist/hooks/modal/useModal/index.d.ts +2 -2
- package/dist/hooks/modal/useModal/index.d.ts.map +1 -1
- package/dist/hooks/table/useEditableTable/useEditableTable.d.ts +2 -2
- package/dist/hooks/table/useEditableTable/useEditableTable.d.ts.map +1 -1
- package/dist/hooks/table/useTable/paginationLink.d.ts +2 -2
- package/dist/hooks/table/useTable/paginationLink.d.ts.map +1 -1
- package/dist/hooks/table/useTable/useTable.d.ts +2 -2
- package/dist/hooks/table/useTable/useTable.d.ts.map +1 -1
- package/dist/hooks/useFileUploadState/index.d.ts +1 -1
- package/dist/hooks/useFileUploadState/index.d.ts.map +1 -1
- package/dist/hooks/useSiderVisible/index.d.ts +1 -1
- package/dist/hooks/useSiderVisible/index.d.ts.map +1 -1
- package/dist/hooks/useThemedLayoutContext/index.d.ts +1 -1
- package/dist/hooks/useThemedLayoutContext/index.d.ts.map +1 -1
- package/dist/iife/index.js +70 -2
- package/dist/iife/index.js.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces/field.d.ts +1 -1
- package/dist/interfaces/field.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +3 -3
- package/dist/interfaces/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/autoSaveIndicator/index.tsx +2 -1
- package/src/components/fields/date/index.tsx +4 -2
- package/src/components/fields/email/index.tsx +4 -2
- package/src/components/fields/number/index.tsx +4 -2
- package/src/components/fields/text/index.tsx +3 -1
- package/src/components/fields/url/index.tsx +4 -2
- package/src/components/layout/header/index.tsx +3 -2
- package/src/components/layout/sider/index.tsx +4 -2
- package/src/components/pageHeader/index.tsx +1 -1
- package/src/components/pages/auth/components/forgotPassword/index.tsx +8 -5
- package/src/components/pages/auth/components/login/index.tsx +10 -7
- package/src/components/pages/auth/components/register/index.tsx +12 -9
- package/src/components/pages/auth/components/updatePassword/index.tsx +6 -3
- package/src/components/pages/error/index.tsx +4 -2
- package/src/components/pages/login/index.tsx +5 -4
- package/src/components/pages/ready/index.tsx +3 -3
- package/src/components/table/components/filterDropdown/index.tsx +0 -2
- package/src/components/themedLayout/header/index.tsx +5 -4
- package/src/components/themedLayout/sider/index.tsx +6 -3
- package/src/components/themedLayout/title/index.tsx +10 -8
- package/src/components/themedLayoutV2/header/index.tsx +5 -4
- package/src/components/themedLayoutV2/sider/index.tsx +6 -3
- package/src/components/themedLayoutV2/title/index.tsx +10 -8
- package/src/hooks/table/useTable/useTable.ts +0 -2
- package/coverage/clover.xml +0 -2005
- package/coverage/coverage-final.json +0 -97
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -1331
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/components/breadcrumb/index.html +0 -116
- package/coverage/lcov-report/src/components/breadcrumb/index.tsx.html +0 -325
- package/coverage/lcov-report/src/components/buttons/clone/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/clone/index.tsx.html +0 -397
- package/coverage/lcov-report/src/components/buttons/create/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/create/index.tsx.html +0 -397
- package/coverage/lcov-report/src/components/buttons/delete/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/delete/index.tsx.html +0 -463
- package/coverage/lcov-report/src/components/buttons/edit/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/edit/index.tsx.html +0 -400
- package/coverage/lcov-report/src/components/buttons/export/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/export/index.tsx.html +0 -181
- package/coverage/lcov-report/src/components/buttons/import/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/import/index.tsx.html +0 -193
- package/coverage/lcov-report/src/components/buttons/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/index.ts.html +0 -118
- package/coverage/lcov-report/src/components/buttons/list/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/list/index.tsx.html +0 -451
- package/coverage/lcov-report/src/components/buttons/refresh/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/refresh/index.tsx.html +0 -268
- package/coverage/lcov-report/src/components/buttons/save/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/save/index.tsx.html +0 -181
- package/coverage/lcov-report/src/components/buttons/show/index.html +0 -116
- package/coverage/lcov-report/src/components/buttons/show/index.tsx.html +0 -397
- package/coverage/lcov-report/src/components/crud/create/index.html +0 -116
- package/coverage/lcov-report/src/components/crud/create/index.tsx.html +0 -514
- package/coverage/lcov-report/src/components/crud/edit/index.html +0 -116
- package/coverage/lcov-report/src/components/crud/edit/index.tsx.html +0 -766
- package/coverage/lcov-report/src/components/crud/index.html +0 -116
- package/coverage/lcov-report/src/components/crud/index.ts.html +0 -103
- package/coverage/lcov-report/src/components/crud/list/index.html +0 -116
- package/coverage/lcov-report/src/components/crud/list/index.tsx.html +0 -424
- package/coverage/lcov-report/src/components/crud/show/index.html +0 -116
- package/coverage/lcov-report/src/components/crud/show/index.tsx.html +0 -724
- package/coverage/lcov-report/src/components/fields/boolean/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/boolean/index.tsx.html +0 -163
- package/coverage/lcov-report/src/components/fields/date/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/date/index.tsx.html +0 -184
- package/coverage/lcov-report/src/components/fields/email/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/email/index.tsx.html +0 -145
- package/coverage/lcov-report/src/components/fields/file/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/file/index.tsx.html +0 -148
- package/coverage/lcov-report/src/components/fields/image/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/image/index.tsx.html +0 -136
- package/coverage/lcov-report/src/components/fields/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/index.ts.html +0 -118
- package/coverage/lcov-report/src/components/fields/markdown/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/markdown/index.tsx.html +0 -133
- package/coverage/lcov-report/src/components/fields/number/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/number/index.tsx.html +0 -193
- package/coverage/lcov-report/src/components/fields/tag/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/tag/index.tsx.html +0 -124
- package/coverage/lcov-report/src/components/fields/text/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/text/index.tsx.html +0 -130
- package/coverage/lcov-report/src/components/fields/url/index.html +0 -116
- package/coverage/lcov-report/src/components/fields/url/index.tsx.html +0 -157
- package/coverage/lcov-report/src/components/index.html +0 -116
- package/coverage/lcov-report/src/components/index.ts.html +0 -163
- package/coverage/lcov-report/src/components/layout/header/index.html +0 -116
- package/coverage/lcov-report/src/components/layout/header/index.tsx.html +0 -190
- package/coverage/lcov-report/src/components/layout/index.html +0 -116
- package/coverage/lcov-report/src/components/layout/index.tsx.html +0 -220
- package/coverage/lcov-report/src/components/layout/sider/index.html +0 -131
- package/coverage/lcov-report/src/components/layout/sider/index.tsx.html +0 -928
- package/coverage/lcov-report/src/components/layout/sider/styles.ts.html +0 -112
- package/coverage/lcov-report/src/components/layout/title/index.html +0 -116
- package/coverage/lcov-report/src/components/layout/title/index.tsx.html +0 -229
- package/coverage/lcov-report/src/components/pageHeader/index.html +0 -116
- package/coverage/lcov-report/src/components/pageHeader/index.tsx.html +0 -241
- package/coverage/lcov-report/src/components/pages/auth/components/forgotPassword/index.html +0 -116
- package/coverage/lcov-report/src/components/pages/auth/components/forgotPassword/index.tsx.html +0 -727
- package/coverage/lcov-report/src/components/pages/auth/components/index.html +0 -131
- package/coverage/lcov-report/src/components/pages/auth/components/index.tsx.html +0 -97
- package/coverage/lcov-report/src/components/pages/auth/components/login/index.html +0 -116
- package/coverage/lcov-report/src/components/pages/auth/components/login/index.tsx.html +0 -958
- package/coverage/lcov-report/src/components/pages/auth/components/register/index.html +0 -116
- package/coverage/lcov-report/src/components/pages/auth/components/register/index.tsx.html +0 -874
- package/coverage/lcov-report/src/components/pages/auth/components/styles.ts.html +0 -175
- package/coverage/lcov-report/src/components/pages/auth/components/updatePassword/index.html +0 -116
- package/coverage/lcov-report/src/components/pages/auth/components/updatePassword/index.tsx.html +0 -694
- package/coverage/lcov-report/src/components/pages/auth/index.html +0 -116
- package/coverage/lcov-report/src/components/pages/auth/index.tsx.html +0 -208
- package/coverage/lcov-report/src/components/pages/error/index.html +0 -116
- package/coverage/lcov-report/src/components/pages/error/index.tsx.html +0 -316
- package/coverage/lcov-report/src/components/pages/index.html +0 -116
- package/coverage/lcov-report/src/components/pages/index.tsx.html +0 -103
- package/coverage/lcov-report/src/components/pages/login/index.html +0 -131
- package/coverage/lcov-report/src/components/pages/login/index.tsx.html +0 -601
- package/coverage/lcov-report/src/components/pages/login/styles.ts.html +0 -160
- package/coverage/lcov-report/src/components/pages/ready/index.html +0 -116
- package/coverage/lcov-report/src/components/pages/ready/index.tsx.html +0 -373
- package/coverage/lcov-report/src/components/pages/welcome/index.html +0 -116
- package/coverage/lcov-report/src/components/pages/welcome/index.tsx.html +0 -115
- package/coverage/lcov-report/src/components/table/components/filterDropdown/index.html +0 -116
- package/coverage/lcov-report/src/components/table/components/filterDropdown/index.tsx.html +0 -421
- package/coverage/lcov-report/src/components/table/components/index.html +0 -116
- package/coverage/lcov-report/src/components/table/components/index.ts.html +0 -88
- package/coverage/lcov-report/src/components/table/index.html +0 -116
- package/coverage/lcov-report/src/components/table/index.ts.html +0 -88
- package/coverage/lcov-report/src/components/themedLayout/header/index.html +0 -116
- package/coverage/lcov-report/src/components/themedLayout/header/index.tsx.html +0 -226
- package/coverage/lcov-report/src/components/themedLayout/index.html +0 -116
- package/coverage/lcov-report/src/components/themedLayout/index.tsx.html +0 -217
- package/coverage/lcov-report/src/components/themedLayout/sider/index.html +0 -131
- package/coverage/lcov-report/src/components/themedLayout/sider/index.tsx.html +0 -1045
- package/coverage/lcov-report/src/components/themedLayout/sider/styles.ts.html +0 -112
- package/coverage/lcov-report/src/components/themedLayout/title/index.html +0 -116
- package/coverage/lcov-report/src/components/themedLayout/title/index.tsx.html +0 -349
- package/coverage/lcov-report/src/components/themedLayoutV2/header/index.html +0 -116
- package/coverage/lcov-report/src/components/themedLayoutV2/header/index.tsx.html +0 -256
- package/coverage/lcov-report/src/components/themedLayoutV2/index.html +0 -116
- package/coverage/lcov-report/src/components/themedLayoutV2/index.tsx.html +0 -226
- package/coverage/lcov-report/src/components/themedLayoutV2/sider/index.html +0 -131
- package/coverage/lcov-report/src/components/themedLayoutV2/sider/index.tsx.html +0 -1132
- package/coverage/lcov-report/src/components/themedLayoutV2/sider/styles.ts.html +0 -112
- package/coverage/lcov-report/src/components/themedLayoutV2/title/index.html +0 -116
- package/coverage/lcov-report/src/components/themedLayoutV2/title/index.tsx.html +0 -340
- package/coverage/lcov-report/src/components/undoableNotification/index.html +0 -116
- package/coverage/lcov-report/src/components/undoableNotification/index.tsx.html +0 -223
- package/coverage/lcov-report/src/contexts/index.html +0 -116
- package/coverage/lcov-report/src/contexts/index.ts.html +0 -97
- package/coverage/lcov-report/src/contexts/themedLayoutContext/index.html +0 -116
- package/coverage/lcov-report/src/contexts/themedLayoutContext/index.tsx.html +0 -178
- package/coverage/lcov-report/src/definitions/table/index.html +0 -116
- package/coverage/lcov-report/src/definitions/table/index.ts.html +0 -424
- package/coverage/lcov-report/src/definitions/upload/index.html +0 -116
- package/coverage/lcov-report/src/definitions/upload/index.ts.html +0 -172
- package/coverage/lcov-report/src/hooks/fields/index.html +0 -116
- package/coverage/lcov-report/src/hooks/fields/index.ts.html +0 -94
- package/coverage/lcov-report/src/hooks/fields/useCheckboxGroup/index.html +0 -116
- package/coverage/lcov-report/src/hooks/fields/useCheckboxGroup/index.ts.html +0 -361
- package/coverage/lcov-report/src/hooks/fields/useRadioGroup/index.html +0 -116
- package/coverage/lcov-report/src/hooks/fields/useRadioGroup/index.ts.html +0 -361
- package/coverage/lcov-report/src/hooks/fields/useSelect/index.html +0 -116
- package/coverage/lcov-report/src/hooks/fields/useSelect/index.ts.html +0 -238
- package/coverage/lcov-report/src/hooks/form/index.html +0 -131
- package/coverage/lcov-report/src/hooks/form/index.ts.html +0 -136
- package/coverage/lcov-report/src/hooks/form/useDrawerForm/index.html +0 -131
- package/coverage/lcov-report/src/hooks/form/useDrawerForm/index.ts.html +0 -103
- package/coverage/lcov-report/src/hooks/form/useDrawerForm/useDrawerForm.ts.html +0 -964
- package/coverage/lcov-report/src/hooks/form/useForm.ts.html +0 -718
- package/coverage/lcov-report/src/hooks/form/useModalForm/index.html +0 -131
- package/coverage/lcov-report/src/hooks/form/useModalForm/index.ts.html +0 -100
- package/coverage/lcov-report/src/hooks/form/useModalForm/useModalForm.ts.html +0 -1090
- package/coverage/lcov-report/src/hooks/form/useStepsForm/index.html +0 -131
- package/coverage/lcov-report/src/hooks/form/useStepsForm/index.ts.html +0 -100
- package/coverage/lcov-report/src/hooks/form/useStepsForm/useStepsForm.ts.html +0 -517
- package/coverage/lcov-report/src/hooks/import/index.html +0 -116
- package/coverage/lcov-report/src/hooks/import/index.tsx.html +0 -487
- package/coverage/lcov-report/src/hooks/index.html +0 -116
- package/coverage/lcov-report/src/hooks/index.ts.html +0 -109
- package/coverage/lcov-report/src/hooks/list/index.html +0 -116
- package/coverage/lcov-report/src/hooks/list/index.ts.html +0 -88
- package/coverage/lcov-report/src/hooks/list/useSimpleList/index.html +0 -131
- package/coverage/lcov-report/src/hooks/list/useSimpleList/index.ts.html +0 -88
- package/coverage/lcov-report/src/hooks/list/useSimpleList/useSimpleList.ts.html +0 -775
- package/coverage/lcov-report/src/hooks/modal/index.html +0 -116
- package/coverage/lcov-report/src/hooks/modal/index.ts.html +0 -88
- package/coverage/lcov-report/src/hooks/modal/useModal/index.html +0 -116
- package/coverage/lcov-report/src/hooks/modal/useModal/index.tsx.html +0 -214
- package/coverage/lcov-report/src/hooks/table/index.html +0 -116
- package/coverage/lcov-report/src/hooks/table/index.ts.html +0 -91
- package/coverage/lcov-report/src/hooks/table/useEditableTable/index.html +0 -131
- package/coverage/lcov-report/src/hooks/table/useEditableTable/index.ts.html +0 -88
- package/coverage/lcov-report/src/hooks/table/useEditableTable/useEditableTable.ts.html +0 -466
- package/coverage/lcov-report/src/hooks/table/useTable/index.html +0 -146
- package/coverage/lcov-report/src/hooks/table/useTable/index.ts.html +0 -88
- package/coverage/lcov-report/src/hooks/table/useTable/paginationLink.tsx.html +0 -166
- package/coverage/lcov-report/src/hooks/table/useTable/useTable.ts.html +0 -889
- package/coverage/lcov-report/src/hooks/useFileUploadState/index.html +0 -116
- package/coverage/lcov-report/src/hooks/useFileUploadState/index.ts.html +0 -187
- package/coverage/lcov-report/src/hooks/useSiderVisible/index.html +0 -116
- package/coverage/lcov-report/src/hooks/useSiderVisible/index.ts.html +0 -151
- package/coverage/lcov-report/src/providers/notificationProvider/index.html +0 -116
- package/coverage/lcov-report/src/providers/notificationProvider/index.tsx.html +0 -208
- package/coverage/lcov.info +0 -5292
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/interfaces/field.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/interfaces/field.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU,CAAC,CAAC,IAAI;IACxB,KAAK,EAAE,CAAC,CAAC;CACZ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IResourceItem } from "@refinedev/core";
|
|
2
|
-
export type BaseRecord = {
|
|
2
|
+
export declare type BaseRecord = {
|
|
3
3
|
id?: string;
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
};
|
|
@@ -7,10 +7,10 @@ export interface Option {
|
|
|
7
7
|
label: string;
|
|
8
8
|
value: string;
|
|
9
9
|
}
|
|
10
|
-
export type ITreeMenu = IMenuItem & {
|
|
10
|
+
export declare type ITreeMenu = IMenuItem & {
|
|
11
11
|
children: ITreeMenu[];
|
|
12
12
|
};
|
|
13
|
-
export type IMenuItem = IResourceItem & {
|
|
13
|
+
export declare type IMenuItem = IResourceItem & {
|
|
14
14
|
key: string;
|
|
15
15
|
route: string;
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,oBAAY,UAAU,GAAG;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AACF,MAAM,WAAW,MAAM;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,SAAS,GAAG,SAAS,GAAG;IAChC,QAAQ,EAAE,SAAS,EAAE,CAAC;CACzB,CAAC;AAEF,oBAAY,SAAS,GAAG,aAAa,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinedev/antd",
|
|
3
|
-
"version": "5.37.3
|
|
3
|
+
"version": "5.37.3",
|
|
4
4
|
"description": "refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": [
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@refinedev/cli": "^2.16.
|
|
29
|
+
"@refinedev/cli": "^2.16.23",
|
|
30
30
|
"@refinedev/ui-tests": "^1.14.1",
|
|
31
|
-
"@refinedev/core": "^4.
|
|
31
|
+
"@refinedev/core": "^4.47.0",
|
|
32
32
|
"@esbuild-plugins/node-resolve": "^0.1.4",
|
|
33
33
|
"@testing-library/jest-dom": "^5.16.4",
|
|
34
34
|
"@testing-library/react": "^13.1.1",
|
|
@@ -21,11 +21,13 @@ export const DateField: React.FC<DateFieldProps> = ({
|
|
|
21
21
|
|
|
22
22
|
const defaultLocale = dayjs.locale();
|
|
23
23
|
|
|
24
|
+
const { Text } = Typography;
|
|
25
|
+
|
|
24
26
|
return (
|
|
25
|
-
<
|
|
27
|
+
<Text {...rest}>
|
|
26
28
|
{dayjs(value)
|
|
27
29
|
.locale(locales || defaultLocale)
|
|
28
30
|
.format(dateFormat)}
|
|
29
|
-
</
|
|
31
|
+
</Text>
|
|
30
32
|
);
|
|
31
33
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Typography } from "antd";
|
|
3
3
|
|
|
4
|
+
const { Link } = Typography;
|
|
5
|
+
|
|
4
6
|
import { EmailFieldProps } from "../types";
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -11,8 +13,8 @@ import { EmailFieldProps } from "../types";
|
|
|
11
13
|
*/
|
|
12
14
|
export const EmailField: React.FC<EmailFieldProps> = ({ value, ...rest }) => {
|
|
13
15
|
return (
|
|
14
|
-
<
|
|
16
|
+
<Link href={`mailto:${value}`} {...rest}>
|
|
15
17
|
{value}
|
|
16
|
-
</
|
|
18
|
+
</Link>
|
|
17
19
|
);
|
|
18
20
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Typography } from "antd";
|
|
3
3
|
|
|
4
|
+
const { Text } = Typography;
|
|
5
|
+
|
|
4
6
|
function toLocaleStringSupportsOptions() {
|
|
5
7
|
return !!(
|
|
6
8
|
typeof Intl == "object" &&
|
|
@@ -25,10 +27,10 @@ export const NumberField: React.FC<NumberFieldProps> = ({
|
|
|
25
27
|
const number = Number(value);
|
|
26
28
|
|
|
27
29
|
return (
|
|
28
|
-
<
|
|
30
|
+
<Text {...rest}>
|
|
29
31
|
{toLocaleStringSupportsOptions()
|
|
30
32
|
? number.toLocaleString(locale, options)
|
|
31
33
|
: number}
|
|
32
|
-
</
|
|
34
|
+
</Text>
|
|
33
35
|
);
|
|
34
36
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Typography } from "antd";
|
|
3
3
|
|
|
4
|
+
const { Text } = Typography;
|
|
5
|
+
|
|
4
6
|
import { TextFieldProps } from "../types";
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -9,5 +11,5 @@ import { TextFieldProps } from "../types";
|
|
|
9
11
|
* @see {@link https://refine.dev/docs/api-reference/antd/components/fields/text} for more details.
|
|
10
12
|
*/
|
|
11
13
|
export const TextField: React.FC<TextFieldProps> = ({ value, ...rest }) => {
|
|
12
|
-
return <
|
|
14
|
+
return <Text {...rest}>{value}</Text>;
|
|
13
15
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Typography } from "antd";
|
|
3
3
|
|
|
4
|
+
const { Link } = Typography;
|
|
5
|
+
|
|
4
6
|
import { UrlFieldProps } from "../types";
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -15,8 +17,8 @@ export const UrlField: React.FC<UrlFieldProps> = ({
|
|
|
15
17
|
...rest
|
|
16
18
|
}) => {
|
|
17
19
|
return (
|
|
18
|
-
<
|
|
20
|
+
<Link href={value} {...rest}>
|
|
19
21
|
{children ?? value}
|
|
20
|
-
</
|
|
22
|
+
</Link>
|
|
21
23
|
);
|
|
22
24
|
};
|
|
@@ -2,6 +2,7 @@ import { useActiveAuthProvider, useGetIdentity } from "@refinedev/core";
|
|
|
2
2
|
import { Avatar, Layout as AntdLayout, Space, Typography } from "antd";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { RefineLayoutHeaderProps } from "../types";
|
|
5
|
+
const { Text } = Typography;
|
|
5
6
|
|
|
6
7
|
export const Header: React.FC<RefineLayoutHeaderProps> = () => {
|
|
7
8
|
const authProvider = useActiveAuthProvider();
|
|
@@ -23,9 +24,9 @@ export const Header: React.FC<RefineLayoutHeaderProps> = () => {
|
|
|
23
24
|
>
|
|
24
25
|
<Space style={{ marginLeft: "8px" }}>
|
|
25
26
|
{user?.name && (
|
|
26
|
-
<
|
|
27
|
+
<Text style={{ color: "white" }} strong>
|
|
27
28
|
{user.name}
|
|
28
|
-
</
|
|
29
|
+
</Text>
|
|
29
30
|
)}
|
|
30
31
|
{user?.avatar && <Avatar src={user?.avatar} alt={user?.name} />}
|
|
31
32
|
</Space>
|
|
@@ -28,6 +28,8 @@ import { Title as DefaultTitle } from "@components";
|
|
|
28
28
|
import { drawerButtonStyles } from "./styles";
|
|
29
29
|
import { RefineLayoutSiderProps } from "../types";
|
|
30
30
|
|
|
31
|
+
const { SubMenu } = Menu;
|
|
32
|
+
|
|
31
33
|
export const Sider: React.FC<RefineLayoutSiderProps> = ({
|
|
32
34
|
Title: TitleFromProps,
|
|
33
35
|
render,
|
|
@@ -80,13 +82,13 @@ export const Sider: React.FC<RefineLayoutSiderProps> = ({
|
|
|
80
82
|
resource: item,
|
|
81
83
|
}}
|
|
82
84
|
>
|
|
83
|
-
<
|
|
85
|
+
<SubMenu
|
|
84
86
|
key={item.key}
|
|
85
87
|
icon={icon ?? <UnorderedListOutlined />}
|
|
86
88
|
title={label}
|
|
87
89
|
>
|
|
88
90
|
{renderTreeView(children, selectedKey)}
|
|
89
|
-
</
|
|
91
|
+
</SubMenu>
|
|
90
92
|
</CanAccess>
|
|
91
93
|
);
|
|
92
94
|
}
|
|
@@ -2,7 +2,7 @@ import React, { FC } from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
PageHeader as AntdPageHeader,
|
|
4
4
|
PageHeaderProps as AntdPageHeaderProps,
|
|
5
|
-
} from "@ant-design/pro-layout
|
|
5
|
+
} from "@ant-design/pro-layout";
|
|
6
6
|
import { Button, Typography } from "antd";
|
|
7
7
|
import { ArrowLeftOutlined } from "@ant-design/icons";
|
|
8
8
|
import { RefinePageHeaderClassNames } from "@refinedev/ui-types";
|
|
@@ -40,6 +40,9 @@ type ResetPassworProps = ForgotPasswordPageProps<
|
|
|
40
40
|
FormProps
|
|
41
41
|
>;
|
|
42
42
|
|
|
43
|
+
const { Text, Title } = Typography;
|
|
44
|
+
const { useToken } = theme;
|
|
45
|
+
|
|
43
46
|
/**
|
|
44
47
|
* **refine** has forgot password page form which is served on `/forgot-password` route when the `authProvider` configuration is provided.
|
|
45
48
|
*
|
|
@@ -53,7 +56,7 @@ export const ForgotPasswordPage: React.FC<ResetPassworProps> = ({
|
|
|
53
56
|
formProps,
|
|
54
57
|
title,
|
|
55
58
|
}) => {
|
|
56
|
-
const { token } =
|
|
59
|
+
const { token } = useToken();
|
|
57
60
|
const [form] = Form.useForm<ForgotPasswordFormTypes>();
|
|
58
61
|
const translate = useTranslate();
|
|
59
62
|
const routerType = useRouterType();
|
|
@@ -80,7 +83,7 @@ export const ForgotPasswordPage: React.FC<ResetPassworProps> = ({
|
|
|
80
83
|
);
|
|
81
84
|
|
|
82
85
|
const CardTitle = (
|
|
83
|
-
<
|
|
86
|
+
<Title
|
|
84
87
|
level={3}
|
|
85
88
|
style={{
|
|
86
89
|
color: token.colorPrimaryTextHover,
|
|
@@ -88,7 +91,7 @@ export const ForgotPasswordPage: React.FC<ResetPassworProps> = ({
|
|
|
88
91
|
}}
|
|
89
92
|
>
|
|
90
93
|
{translate("pages.forgotPassword.title", "Forgot your password?")}
|
|
91
|
-
</
|
|
94
|
+
</Title>
|
|
92
95
|
);
|
|
93
96
|
const CardContent = (
|
|
94
97
|
<Card
|
|
@@ -141,7 +144,7 @@ export const ForgotPasswordPage: React.FC<ResetPassworProps> = ({
|
|
|
141
144
|
}}
|
|
142
145
|
>
|
|
143
146
|
{loginLink ?? (
|
|
144
|
-
<
|
|
147
|
+
<Text
|
|
145
148
|
style={{
|
|
146
149
|
fontSize: 12,
|
|
147
150
|
marginLeft: "auto",
|
|
@@ -160,7 +163,7 @@ export const ForgotPasswordPage: React.FC<ResetPassworProps> = ({
|
|
|
160
163
|
>
|
|
161
164
|
{translate("pages.login.signin", "Sign in")}
|
|
162
165
|
</ActiveLink>
|
|
163
|
-
</
|
|
166
|
+
</Text>
|
|
164
167
|
)}
|
|
165
168
|
</div>
|
|
166
169
|
<Form.Item
|
|
@@ -33,6 +33,9 @@ import {
|
|
|
33
33
|
} from "../styles";
|
|
34
34
|
import { ThemedTitleV2 } from "@components";
|
|
35
35
|
|
|
36
|
+
const { Text, Title } = Typography;
|
|
37
|
+
const { useToken } = theme;
|
|
38
|
+
|
|
36
39
|
type LoginProps = LoginPageProps<LayoutProps, CardProps, FormProps>;
|
|
37
40
|
/**
|
|
38
41
|
* **refine** has a default login page form which is served on `/login` route when the `authProvider` configuration is provided.
|
|
@@ -51,7 +54,7 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
51
54
|
title,
|
|
52
55
|
hideForm,
|
|
53
56
|
}) => {
|
|
54
|
-
const { token } =
|
|
57
|
+
const { token } = useToken();
|
|
55
58
|
const [form] = Form.useForm<LoginFormTypes>();
|
|
56
59
|
const translate = useTranslate();
|
|
57
60
|
const routerType = useRouterType();
|
|
@@ -80,7 +83,7 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
80
83
|
);
|
|
81
84
|
|
|
82
85
|
const CardTitle = (
|
|
83
|
-
<
|
|
86
|
+
<Title
|
|
84
87
|
level={3}
|
|
85
88
|
style={{
|
|
86
89
|
color: token.colorPrimaryTextHover,
|
|
@@ -88,7 +91,7 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
88
91
|
}}
|
|
89
92
|
>
|
|
90
93
|
{translate("pages.login.title", "Sign in to your account")}
|
|
91
|
-
</
|
|
94
|
+
</Title>
|
|
92
95
|
);
|
|
93
96
|
|
|
94
97
|
const renderProviders = () => {
|
|
@@ -121,13 +124,13 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
121
124
|
})}
|
|
122
125
|
{!hideForm && (
|
|
123
126
|
<Divider>
|
|
124
|
-
<
|
|
127
|
+
<Text
|
|
125
128
|
style={{
|
|
126
129
|
color: token.colorTextLabel,
|
|
127
130
|
}}
|
|
128
131
|
>
|
|
129
132
|
{translate("pages.login.divider", "or")}
|
|
130
|
-
</
|
|
133
|
+
</Text>
|
|
131
134
|
</Divider>
|
|
132
135
|
)}
|
|
133
136
|
</>
|
|
@@ -259,7 +262,7 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
259
262
|
marginTop: hideForm ? 16 : 8,
|
|
260
263
|
}}
|
|
261
264
|
>
|
|
262
|
-
<
|
|
265
|
+
<Text style={{ fontSize: 12 }}>
|
|
263
266
|
{translate(
|
|
264
267
|
"pages.login.buttons.noAccount",
|
|
265
268
|
"Don’t have an account?",
|
|
@@ -273,7 +276,7 @@ export const LoginPage: React.FC<LoginProps> = ({
|
|
|
273
276
|
>
|
|
274
277
|
{translate("pages.login.signup", "Sign up")}
|
|
275
278
|
</ActiveLink>
|
|
276
|
-
</
|
|
279
|
+
</Text>
|
|
277
280
|
</div>
|
|
278
281
|
)}
|
|
279
282
|
</Card>
|
|
@@ -32,6 +32,9 @@ import {
|
|
|
32
32
|
} from "../styles";
|
|
33
33
|
import { ThemedTitleV2 } from "@components";
|
|
34
34
|
|
|
35
|
+
const { Text, Title } = Typography;
|
|
36
|
+
const { useToken } = theme;
|
|
37
|
+
|
|
35
38
|
type RegisterProps = RegisterPageProps<LayoutProps, CardProps, FormProps>;
|
|
36
39
|
/**
|
|
37
40
|
* **refine** has register page form which is served on `/register` route when the `authProvider` configuration is provided.
|
|
@@ -48,7 +51,7 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
48
51
|
title,
|
|
49
52
|
hideForm,
|
|
50
53
|
}) => {
|
|
51
|
-
const { token } =
|
|
54
|
+
const { token } = useToken();
|
|
52
55
|
const [form] = Form.useForm<RegisterFormTypes>();
|
|
53
56
|
const translate = useTranslate();
|
|
54
57
|
const routerType = useRouterType();
|
|
@@ -77,7 +80,7 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
77
80
|
);
|
|
78
81
|
|
|
79
82
|
const CardTitle = (
|
|
80
|
-
<
|
|
83
|
+
<Title
|
|
81
84
|
level={3}
|
|
82
85
|
style={{
|
|
83
86
|
color: token.colorPrimaryTextHover,
|
|
@@ -85,7 +88,7 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
85
88
|
}}
|
|
86
89
|
>
|
|
87
90
|
{translate("pages.register.title", "Sign up for your account")}
|
|
88
|
-
</
|
|
91
|
+
</Title>
|
|
89
92
|
);
|
|
90
93
|
|
|
91
94
|
const renderProviders = () => {
|
|
@@ -118,13 +121,13 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
118
121
|
})}
|
|
119
122
|
{!hideForm && (
|
|
120
123
|
<Divider>
|
|
121
|
-
<
|
|
124
|
+
<Text
|
|
122
125
|
style={{
|
|
123
126
|
color: token.colorTextLabel,
|
|
124
127
|
}}
|
|
125
128
|
>
|
|
126
129
|
{translate("pages.login.divider", "or")}
|
|
127
|
-
</
|
|
130
|
+
</Text>
|
|
128
131
|
</Divider>
|
|
129
132
|
)}
|
|
130
133
|
</>
|
|
@@ -197,7 +200,7 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
197
200
|
}}
|
|
198
201
|
>
|
|
199
202
|
{loginLink ?? (
|
|
200
|
-
<
|
|
203
|
+
<Text
|
|
201
204
|
style={{
|
|
202
205
|
fontSize: 12,
|
|
203
206
|
marginLeft: "auto",
|
|
@@ -216,7 +219,7 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
216
219
|
>
|
|
217
220
|
{translate("pages.login.signin", "Sign in")}
|
|
218
221
|
</ActiveLink>
|
|
219
|
-
</
|
|
222
|
+
</Text>
|
|
220
223
|
)}
|
|
221
224
|
</div>
|
|
222
225
|
<Form.Item
|
|
@@ -245,7 +248,7 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
245
248
|
marginTop: hideForm ? 16 : 8,
|
|
246
249
|
}}
|
|
247
250
|
>
|
|
248
|
-
<
|
|
251
|
+
<Text
|
|
249
252
|
style={{
|
|
250
253
|
fontSize: 12,
|
|
251
254
|
}}
|
|
@@ -263,7 +266,7 @@ export const RegisterPage: React.FC<RegisterProps> = ({
|
|
|
263
266
|
>
|
|
264
267
|
{translate("pages.login.signin", "Sign in")}
|
|
265
268
|
</ActiveLink>
|
|
266
|
-
</
|
|
269
|
+
</Text>
|
|
267
270
|
</div>
|
|
268
271
|
)}
|
|
269
272
|
</Card>
|
|
@@ -29,6 +29,9 @@ import {
|
|
|
29
29
|
} from "../styles";
|
|
30
30
|
import { ThemedTitleV2 } from "@components";
|
|
31
31
|
|
|
32
|
+
const { Title } = Typography;
|
|
33
|
+
const { useToken } = theme;
|
|
34
|
+
|
|
32
35
|
type UpdatePasswordProps = UpdatePasswordPageProps<
|
|
33
36
|
LayoutProps,
|
|
34
37
|
CardProps,
|
|
@@ -47,7 +50,7 @@ export const UpdatePasswordPage: React.FC<UpdatePasswordProps> = ({
|
|
|
47
50
|
formProps,
|
|
48
51
|
title,
|
|
49
52
|
}) => {
|
|
50
|
-
const { token } =
|
|
53
|
+
const { token } = useToken();
|
|
51
54
|
const [form] = Form.useForm<UpdatePasswordFormTypes>();
|
|
52
55
|
const translate = useTranslate();
|
|
53
56
|
const authProvider = useActiveAuthProvider();
|
|
@@ -71,7 +74,7 @@ export const UpdatePasswordPage: React.FC<UpdatePasswordProps> = ({
|
|
|
71
74
|
);
|
|
72
75
|
|
|
73
76
|
const CardTitle = (
|
|
74
|
-
<
|
|
77
|
+
<Title
|
|
75
78
|
level={3}
|
|
76
79
|
style={{
|
|
77
80
|
color: token.colorPrimaryTextHover,
|
|
@@ -79,7 +82,7 @@ export const UpdatePasswordPage: React.FC<UpdatePasswordProps> = ({
|
|
|
79
82
|
}}
|
|
80
83
|
>
|
|
81
84
|
{translate("pages.updatePassword.title", "Set New Password")}
|
|
82
|
-
</
|
|
85
|
+
</Title>
|
|
83
86
|
);
|
|
84
87
|
|
|
85
88
|
const CardContent = (
|
|
@@ -5,6 +5,8 @@ import { Button, Result, Typography, Space, Tooltip } from "antd";
|
|
|
5
5
|
import { InfoCircleOutlined } from "@ant-design/icons";
|
|
6
6
|
import { useNavigation, useTranslate } from "@refinedev/core";
|
|
7
7
|
|
|
8
|
+
const { Text } = Typography;
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* When the app is navigated to a non-existent route, refine shows a default error page.
|
|
10
12
|
* A custom error component can be used for this error page.
|
|
@@ -44,12 +46,12 @@ export const ErrorComponent: React.FC<RefineErrorPageProps> = () => {
|
|
|
44
46
|
extra={
|
|
45
47
|
<Space direction="vertical" size="large">
|
|
46
48
|
<Space>
|
|
47
|
-
<
|
|
49
|
+
<Text>
|
|
48
50
|
{translate(
|
|
49
51
|
"pages.error.404",
|
|
50
52
|
"Sorry, the page you visited does not exist.",
|
|
51
53
|
)}
|
|
52
|
-
</
|
|
54
|
+
</Text>
|
|
53
55
|
{errorMessage && (
|
|
54
56
|
<Tooltip title={errorMessage}>
|
|
55
57
|
<InfoCircleOutlined data-testid="error-component-tooltip" />
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
imageContainer,
|
|
21
21
|
} from "./styles";
|
|
22
22
|
|
|
23
|
+
const { Text, Title } = Typography;
|
|
23
24
|
export interface ILoginForm {
|
|
24
25
|
username: string;
|
|
25
26
|
password: string;
|
|
@@ -42,9 +43,9 @@ export const LoginPage: React.FC<LoginPageProps> = () => {
|
|
|
42
43
|
});
|
|
43
44
|
|
|
44
45
|
const CardTitle = (
|
|
45
|
-
<
|
|
46
|
+
<Title level={3} style={titleStyles}>
|
|
46
47
|
{translate("pages.login.title", "Sign in your account")}
|
|
47
|
-
</
|
|
48
|
+
</Title>
|
|
48
49
|
);
|
|
49
50
|
|
|
50
51
|
return (
|
|
@@ -149,7 +150,7 @@ export const LoginPage: React.FC<LoginPageProps> = () => {
|
|
|
149
150
|
</Button>
|
|
150
151
|
</Form>
|
|
151
152
|
<div style={{ marginTop: 8 }}>
|
|
152
|
-
<
|
|
153
|
+
<Text style={{ fontSize: 12 }}>
|
|
153
154
|
{translate(
|
|
154
155
|
"pages.login.noAccount",
|
|
155
156
|
"Don’t have an account?",
|
|
@@ -160,7 +161,7 @@ export const LoginPage: React.FC<LoginPageProps> = () => {
|
|
|
160
161
|
"Sign up",
|
|
161
162
|
)}
|
|
162
163
|
</a>
|
|
163
|
-
</
|
|
164
|
+
</Text>
|
|
164
165
|
</div>
|
|
165
166
|
</Card>
|
|
166
167
|
</div>
|
|
@@ -33,6 +33,8 @@ const styles: { [key: string]: React.CSSProperties } = {
|
|
|
33
33
|
},
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
const { Title } = Typography;
|
|
37
|
+
|
|
36
38
|
/**
|
|
37
39
|
* **refine** shows a default ready page on root route when no `resources` is passed to the `<Refine>` component as a property.
|
|
38
40
|
*
|
|
@@ -47,9 +49,7 @@ export const ReadyPage: React.FC<RefineReadyPageProps> = () => {
|
|
|
47
49
|
src="https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg"
|
|
48
50
|
alt="Refine Logo"
|
|
49
51
|
/>
|
|
50
|
-
<
|
|
51
|
-
Welcome on board
|
|
52
|
-
</Typography.Title>
|
|
52
|
+
<Title style={styles.title}>Welcome on board</Title>
|
|
53
53
|
<p style={styles.p1}>Your configuration is completed.</p>
|
|
54
54
|
<p style={styles.p2}>
|
|
55
55
|
Now you can get started by adding your resources to the{" "}
|
|
@@ -83,8 +83,6 @@ export const FilterDropdown: React.FC<FilterDropdownProps> = (props) => {
|
|
|
83
83
|
const childrenWithProps = React.Children.map(children, (child) => {
|
|
84
84
|
if (React.isValidElement(child)) {
|
|
85
85
|
return React.cloneElement(child, {
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
87
|
-
// @ts-ignore
|
|
88
86
|
onChange,
|
|
89
87
|
value: mappedValue(value),
|
|
90
88
|
});
|
|
@@ -3,11 +3,14 @@ import { Layout as AntdLayout, Typography, Avatar, Space, theme } from "antd";
|
|
|
3
3
|
import { useActiveAuthProvider, useGetIdentity } from "@refinedev/core";
|
|
4
4
|
import { RefineThemedLayoutHeaderProps } from "../types";
|
|
5
5
|
|
|
6
|
+
const { Text } = Typography;
|
|
7
|
+
const { useToken } = theme;
|
|
8
|
+
|
|
6
9
|
/**
|
|
7
10
|
* @deprecated It is recommended to use the improved `ThemedLayoutV2`. Review migration guidelines. https://refine.dev/docs/api-reference/antd/components/antd-themed-layout/#migrate-themedlayout-to-themedlayoutv2
|
|
8
11
|
*/
|
|
9
12
|
export const ThemedHeader: React.FC<RefineThemedLayoutHeaderProps> = () => {
|
|
10
|
-
const { token } =
|
|
13
|
+
const { token } = useToken();
|
|
11
14
|
|
|
12
15
|
const authProvider = useActiveAuthProvider();
|
|
13
16
|
const { data: user } = useGetIdentity({
|
|
@@ -33,9 +36,7 @@ export const ThemedHeader: React.FC<RefineThemedLayoutHeaderProps> = () => {
|
|
|
33
36
|
>
|
|
34
37
|
<Space>
|
|
35
38
|
<Space size="middle">
|
|
36
|
-
{user?.name &&
|
|
37
|
-
<Typography.Text strong>{user.name}</Typography.Text>
|
|
38
|
-
)}
|
|
39
|
+
{user?.name && <Text strong>{user.name}</Text>}
|
|
39
40
|
{user?.avatar && (
|
|
40
41
|
<Avatar src={user?.avatar} alt={user?.name} />
|
|
41
42
|
)}
|
|
@@ -29,6 +29,9 @@ import { drawerButtonStyles } from "./styles";
|
|
|
29
29
|
import { RefineThemedLayoutSiderProps } from "../types";
|
|
30
30
|
import { ThemedTitle } from "@components";
|
|
31
31
|
|
|
32
|
+
const { SubMenu } = Menu;
|
|
33
|
+
const { useToken } = theme;
|
|
34
|
+
|
|
32
35
|
/**
|
|
33
36
|
* @deprecated It is recommended to use the improved `ThemedLayoutV2`. Review migration guidelines. https://refine.dev/docs/api-reference/antd/components/antd-themed-layout/#migrate-themedlayout-to-themedlayoutv2
|
|
34
37
|
*/
|
|
@@ -37,7 +40,7 @@ export const ThemedSider: React.FC<RefineThemedLayoutSiderProps> = ({
|
|
|
37
40
|
render,
|
|
38
41
|
meta,
|
|
39
42
|
}) => {
|
|
40
|
-
const { token } =
|
|
43
|
+
const { token } = useToken();
|
|
41
44
|
|
|
42
45
|
const [collapsed, setCollapsed] = useState<boolean>(false);
|
|
43
46
|
const [drawerOpen, setDrawerOpen] = useState<boolean>(false);
|
|
@@ -86,13 +89,13 @@ export const ThemedSider: React.FC<RefineThemedLayoutSiderProps> = ({
|
|
|
86
89
|
resource: item,
|
|
87
90
|
}}
|
|
88
91
|
>
|
|
89
|
-
<
|
|
92
|
+
<SubMenu
|
|
90
93
|
key={item.key}
|
|
91
94
|
icon={icon ?? <UnorderedListOutlined />}
|
|
92
95
|
title={label}
|
|
93
96
|
>
|
|
94
97
|
{renderTreeView(children, selectedKey)}
|
|
95
|
-
</
|
|
98
|
+
</SubMenu>
|
|
96
99
|
</CanAccess>
|
|
97
100
|
);
|
|
98
101
|
}
|