doui-react 1.0.2 → 2.0.1
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/es/api/component/common.d.ts +2 -2
- package/es/api/component/common.js +3 -0
- package/es/api/component/global-style.d.ts +0 -1
- package/es/api/component/global-style.js +2 -3
- package/es/api/component/react-dom.js +9 -21
- package/es/button/component/index.js +8 -9
- package/es/button/type/index.d.ts +3 -7
- package/es/checkbox/type/index.d.ts +1 -1
- package/es/date-picker/component/index.js +13 -17
- package/es/date-picker/type/index.d.ts +5 -14
- package/es/form/component/constant.js +2 -2
- package/es/form/component/form-item-map.d.ts +2 -1
- package/es/form/component/form-item-map.js +2 -1
- package/es/form/component/form-item.js +1 -3
- package/es/form/component/form-list.d.ts +2 -2
- package/es/form/component/utils.d.ts +35 -25
- package/es/form/component/utils.js +2 -2
- package/es/form/style/form-item.d.ts +1 -1
- package/es/form/style/form-item.js +4 -11
- package/es/form/style/index.js +2 -2
- package/es/form/type/form-item.d.ts +5 -6
- package/es/form/type/form-list.d.ts +2 -2
- package/es/form/type/index.d.ts +3 -3
- package/es/grid/component/pagination.d.ts +72 -15
- package/es/hooks/hook/use-fetch.js +5 -12
- package/es/icon/hook/index.d.ts +195 -190
- package/es/input/component/number.d.ts +1 -1
- package/es/input/component/number.js +8 -30
- package/es/input/component/utils.d.ts +0 -1
- package/es/input/component/utils.js +0 -3
- package/es/input/type/index.d.ts +3 -3
- package/es/modal-prompt/component/utils.js +2 -1
- package/es/modal-prompt/type/index.d.ts +2 -2
- package/es/open-modal/component/footer.d.ts +1 -1
- package/es/open-modal/component/footer.js +2 -4
- package/es/open-modal/component/index.js +16 -1
- package/es/open-modal/component/modal.js +14 -6
- package/es/open-modal/component/utils.js +2 -6
- package/es/open-modal/hook/use-modal.js +1 -1
- package/es/open-modal/style/index.js +1 -2
- package/es/open-modal/style/wrap.js +1 -1
- package/es/open-modal/type/index.d.ts +6 -1
- package/es/radio/component/abstract-box.d.ts +72 -100
- package/es/radio/component/abstract-box.js +1 -5
- package/es/radio/component/use-radio.d.ts +7 -5
- package/es/radio/component/utils.js +1 -1
- package/es/radio/type/index.d.ts +2 -2
- package/es/select/component/use-select-options.d.ts +1 -1
- package/es/select/component/use-select-options.js +5 -2
- package/es/select/component/use-select.js +4 -7
- package/es/select/component/utils.d.ts +1 -2
- package/es/select/type/index.d.ts +3 -2
- package/es/stack/style/index.d.ts +2 -1
- package/es/switch/type/index.d.ts +2 -2
- package/es/table/component/action-button.js +0 -1
- package/es/table/component/filter.d.ts +1 -1
- package/es/table/component/filter.js +1 -1
- package/es/table/component/sort.d.ts +1 -1
- package/es/table/component/time.js +2 -2
- package/es/table/component/utils.d.ts +3 -77
- package/es/table/component/utils.js +1 -3
- package/es/table/hook/search.d.ts +1 -1
- package/es/table/hook/search.js +8 -6
- package/es/table/type/action.d.ts +2 -7
- package/es/table/type/column.d.ts +3 -3
- package/es/tabs/component/utils.d.ts +8 -8
- package/es/tabs/type/index.d.ts +1 -1
- package/es/text/component/index.js +15 -16
- package/es/text/component/use-text.d.ts +3 -2
- package/es/text/component/use-text.js +12 -19
- package/es/text/component/utils.d.ts +1 -1
- package/es/text/style/index.js +1 -1
- package/es/text/type/index.d.ts +2 -2
- package/es/tooltip/component/index.d.ts +30 -20
- package/es/tooltip/component/index.js +6 -2
- package/es/tooltip/type/index.d.ts +1 -1
- package/es/tree/component/index.d.ts +1 -1
- package/es/tree/style/index.js +1 -1
- package/es/tree-select/component/use-tree-select.js +4 -4
- package/es/tree-select/style/index.js +1 -1
- package/es/virtual-list/type/index.d.ts +1 -1
- package/lib/api/component/common.d.ts +2 -2
- package/lib/api/component/common.js +3 -0
- package/lib/api/component/global-style.d.ts +0 -1
- package/lib/api/component/global-style.js +3 -4
- package/lib/api/component/react-dom.js +9 -21
- package/lib/button/component/index.js +8 -9
- package/lib/button/type/index.d.ts +3 -7
- package/lib/checkbox/type/index.d.ts +1 -1
- package/lib/date-picker/component/index.js +13 -17
- package/lib/date-picker/type/index.d.ts +5 -14
- package/lib/form/component/constant.js +2 -2
- package/lib/form/component/form-item-map.d.ts +2 -1
- package/lib/form/component/form-item-map.js +2 -1
- package/lib/form/component/form-item.js +1 -3
- package/lib/form/component/form-list.d.ts +2 -2
- package/lib/form/component/utils.d.ts +35 -25
- package/lib/form/component/utils.js +2 -2
- package/lib/form/style/form-item.d.ts +1 -1
- package/lib/form/style/form-item.js +4 -11
- package/lib/form/style/index.js +1 -1
- package/lib/form/type/form-item.d.ts +5 -6
- package/lib/form/type/form-list.d.ts +2 -2
- package/lib/form/type/index.d.ts +3 -3
- package/lib/grid/component/pagination.d.ts +72 -15
- package/lib/hooks/hook/use-fetch.js +5 -12
- package/lib/icon/hook/index.d.ts +195 -190
- package/lib/input/component/number.d.ts +1 -1
- package/lib/input/component/number.js +7 -28
- package/lib/input/component/utils.d.ts +0 -1
- package/lib/input/component/utils.js +0 -4
- package/lib/input/type/index.d.ts +3 -3
- package/lib/modal-prompt/component/utils.js +2 -1
- package/lib/modal-prompt/type/index.d.ts +2 -2
- package/lib/open-modal/component/footer.d.ts +1 -1
- package/lib/open-modal/component/footer.js +2 -4
- package/lib/open-modal/component/index.js +17 -1
- package/lib/open-modal/component/modal.js +12 -4
- package/lib/open-modal/component/utils.js +2 -6
- package/lib/open-modal/hook/use-modal.js +1 -1
- package/lib/open-modal/style/index.js +1 -2
- package/lib/open-modal/style/wrap.js +1 -1
- package/lib/open-modal/type/index.d.ts +6 -1
- package/lib/radio/component/abstract-box.d.ts +72 -100
- package/lib/radio/component/abstract-box.js +1 -5
- package/lib/radio/component/use-radio.d.ts +7 -5
- package/lib/radio/component/utils.js +1 -1
- package/lib/radio/type/index.d.ts +2 -2
- package/lib/select/component/use-select-options.d.ts +1 -1
- package/lib/select/component/use-select-options.js +5 -2
- package/lib/select/component/use-select.js +4 -7
- package/lib/select/component/utils.d.ts +1 -2
- package/lib/select/type/index.d.ts +3 -2
- package/lib/stack/style/index.d.ts +2 -1
- package/lib/switch/type/index.d.ts +2 -2
- package/lib/table/component/action-button.js +0 -1
- package/lib/table/component/filter.d.ts +1 -1
- package/lib/table/component/filter.js +1 -1
- package/lib/table/component/sort.d.ts +1 -1
- package/lib/table/component/time.js +2 -2
- package/lib/table/component/utils.d.ts +3 -77
- package/lib/table/component/utils.js +1 -3
- package/lib/table/hook/search.d.ts +1 -1
- package/lib/table/hook/search.js +8 -6
- package/lib/table/type/action.d.ts +2 -7
- package/lib/table/type/column.d.ts +3 -3
- package/lib/tabs/component/utils.d.ts +8 -8
- package/lib/tabs/type/index.d.ts +1 -1
- package/lib/text/component/index.js +15 -16
- package/lib/text/component/use-text.d.ts +3 -2
- package/lib/text/component/use-text.js +11 -18
- package/lib/text/component/utils.d.ts +1 -1
- package/lib/text/style/index.js +1 -1
- package/lib/text/type/index.d.ts +2 -2
- package/lib/tooltip/component/index.d.ts +30 -20
- package/lib/tooltip/component/index.js +6 -2
- package/lib/tooltip/type/index.d.ts +1 -1
- package/lib/tree/component/index.d.ts +1 -1
- package/lib/tree/style/index.js +1 -1
- package/lib/tree-select/component/use-tree-select.js +4 -4
- package/lib/tree-select/style/index.js +1 -1
- package/lib/virtual-list/type/index.d.ts +1 -1
- package/package.json +10 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doui-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "A React UI library based on Ant Design",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "father build",
|
|
15
|
-
"build:docs": "dumi build",
|
|
16
15
|
"build:all": "npm-run-all build build:docs",
|
|
16
|
+
"build:docs": "dumi build",
|
|
17
17
|
"dev": "PORT=3060 dumi dev",
|
|
18
18
|
"lint": "yarn lint:es && yarn lint:css && tsc --noEmit && father doctor",
|
|
19
19
|
"lint:css": "stylelint \".dumi/**/*.less\" --allow-empty-input",
|
|
20
20
|
"lint:es": "eslint \"{src,__tests__,.dumi/theme}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
21
|
-
"setup": "husky && dumi setup && patch-package",
|
|
22
21
|
"prepare": "if [ -z \"$SKIP_PREPARE\" ]; then yarn setup; fi",
|
|
23
22
|
"prepublishOnly": "yarn lint && yarn build",
|
|
24
23
|
"preview:docs": "dumi preview --port 3060",
|
|
24
|
+
"setup": "husky && dumi setup && patch-package",
|
|
25
25
|
"test": "jest --coverage"
|
|
26
26
|
},
|
|
27
27
|
"lint-staged": {
|
|
@@ -42,15 +42,14 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ant-design/icons": "^
|
|
45
|
+
"@ant-design/icons": "^5.6.1",
|
|
46
46
|
"@babel/runtime": "^7.26.0",
|
|
47
47
|
"@emotion/css": "^11.13.5",
|
|
48
48
|
"@emotion/react": "^11.11.1",
|
|
49
|
+
"dayjs": "^1.11.13",
|
|
49
50
|
"delay": "^5.0.0",
|
|
50
51
|
"lodash": "^4.17.21",
|
|
51
52
|
"match-path-parser": "^8.2.2",
|
|
52
|
-
"moment": "^2.30.1",
|
|
53
|
-
"moment-timezone": "^0.5.47",
|
|
54
53
|
"query-string": "^7.1.3",
|
|
55
54
|
"rc-resize-observer": "^1.4.3",
|
|
56
55
|
"react-copy-to-clipboard": "^5.1.0",
|
|
@@ -82,9 +81,9 @@
|
|
|
82
81
|
"@types/he": "^1.2.3",
|
|
83
82
|
"@types/jest": "^29",
|
|
84
83
|
"@types/lodash": "^4.14.195",
|
|
85
|
-
"@types/react": "^
|
|
84
|
+
"@types/react": "^18.2.27",
|
|
86
85
|
"@types/react-copy-to-clipboard": "^5.0.7",
|
|
87
|
-
"@types/react-dom": "^
|
|
86
|
+
"@types/react-dom": "^18.2.12",
|
|
88
87
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
89
88
|
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
90
89
|
"@typescript-eslint/parser": "^8.20.0",
|
|
@@ -92,9 +91,7 @@
|
|
|
92
91
|
"@umijs/test": "^4",
|
|
93
92
|
"@utopia/eslint-config-react": "^0.0.13",
|
|
94
93
|
"@utopia/prettier-config-base": "^0.0.13",
|
|
95
|
-
"antd": "~4",
|
|
96
94
|
"cross-env": "^7",
|
|
97
|
-
"dayjs": "^1.11.13",
|
|
98
95
|
"dumi": "2.4.17",
|
|
99
96
|
"eslint": "^8.23.0",
|
|
100
97
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
@@ -126,8 +123,8 @@
|
|
|
126
123
|
"rc-footer": "0.6.8",
|
|
127
124
|
"rc-util": "^5.41.0",
|
|
128
125
|
"re-resizable": "^6.11.0",
|
|
129
|
-
"react": "^
|
|
130
|
-
"react-dom": "^
|
|
126
|
+
"react": "^18.2.0",
|
|
127
|
+
"react-dom": "^18.2.0",
|
|
131
128
|
"react-intersection-observer": "^9.8.2",
|
|
132
129
|
"react-typed": "^2.0.12",
|
|
133
130
|
"stylelint": "^14.9.1",
|
|
@@ -137,7 +134,7 @@
|
|
|
137
134
|
"typescript": "^5"
|
|
138
135
|
},
|
|
139
136
|
"peerDependencies": {
|
|
140
|
-
"antd": "^
|
|
137
|
+
"antd": "^5",
|
|
141
138
|
"react": ">=16.9.0",
|
|
142
139
|
"react-dom": ">=16.9.0"
|
|
143
140
|
},
|