@rc-component/cascader 1.0.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/LICENSE.md +9 -0
- package/README.md +300 -0
- package/assets/index.less +3 -0
- package/assets/list.less +106 -0
- package/assets/panel.less +7 -0
- package/assets/select.less +3 -0
- package/es/Cascader.d.ts +88 -0
- package/es/Cascader.js +230 -0
- package/es/OptionList/CacheContent.d.ts +7 -0
- package/es/OptionList/CacheContent.js +8 -0
- package/es/OptionList/Checkbox.d.ts +10 -0
- package/es/OptionList/Checkbox.js +24 -0
- package/es/OptionList/Column.d.ts +21 -0
- package/es/OptionList/Column.js +175 -0
- package/es/OptionList/List.d.ts +6 -0
- package/es/OptionList/List.js +216 -0
- package/es/OptionList/index.d.ts +4 -0
- package/es/OptionList/index.js +13 -0
- package/es/OptionList/useActive.d.ts +6 -0
- package/es/OptionList/useActive.js +26 -0
- package/es/OptionList/useKeyboard.d.ts +10 -0
- package/es/OptionList/useKeyboard.js +165 -0
- package/es/Panel.d.ts +5 -0
- package/es/Panel.js +116 -0
- package/es/context.d.ts +21 -0
- package/es/context.js +3 -0
- package/es/hooks/useDisplayValues.d.ts +10 -0
- package/es/hooks/useDisplayValues.js +44 -0
- package/es/hooks/useEntities.d.ts +10 -0
- package/es/hooks/useEntities.js +35 -0
- package/es/hooks/useMissingValues.d.ts +3 -0
- package/es/hooks/useMissingValues.js +17 -0
- package/es/hooks/useOptions.d.ts +9 -0
- package/es/hooks/useOptions.js +20 -0
- package/es/hooks/useSearchConfig.d.ts +2 -0
- package/es/hooks/useSearchConfig.js +27 -0
- package/es/hooks/useSearchOptions.d.ts +4 -0
- package/es/hooks/useSearchOptions.js +63 -0
- package/es/hooks/useSelect.d.ts +4 -0
- package/es/hooks/useSelect.js +49 -0
- package/es/hooks/useValues.d.ts +9 -0
- package/es/hooks/useValues.js +21 -0
- package/es/index.d.ts +5 -0
- package/es/index.js +4 -0
- package/es/utils/commonUtil.d.ts +18 -0
- package/es/utils/commonUtil.js +69 -0
- package/es/utils/treeUtil.d.ts +9 -0
- package/es/utils/treeUtil.js +35 -0
- package/es/utils/warningPropsUtil.d.ts +4 -0
- package/es/utils/warningPropsUtil.js +29 -0
- package/lib/Cascader.d.ts +88 -0
- package/lib/Cascader.js +239 -0
- package/lib/OptionList/CacheContent.d.ts +7 -0
- package/lib/OptionList/CacheContent.js +16 -0
- package/lib/OptionList/Checkbox.d.ts +10 -0
- package/lib/OptionList/Checkbox.js +33 -0
- package/lib/OptionList/Column.d.ts +21 -0
- package/lib/OptionList/Column.js +185 -0
- package/lib/OptionList/List.d.ts +6 -0
- package/lib/OptionList/List.js +224 -0
- package/lib/OptionList/index.d.ts +4 -0
- package/lib/OptionList/index.js +22 -0
- package/lib/OptionList/useActive.d.ts +6 -0
- package/lib/OptionList/useActive.js +34 -0
- package/lib/OptionList/useKeyboard.d.ts +10 -0
- package/lib/OptionList/useKeyboard.js +175 -0
- package/lib/Panel.d.ts +5 -0
- package/lib/Panel.js +125 -0
- package/lib/context.d.ts +21 -0
- package/lib/context.js +11 -0
- package/lib/hooks/useDisplayValues.d.ts +10 -0
- package/lib/hooks/useDisplayValues.js +53 -0
- package/lib/hooks/useEntities.d.ts +10 -0
- package/lib/hooks/useEntities.js +44 -0
- package/lib/hooks/useMissingValues.d.ts +3 -0
- package/lib/hooks/useMissingValues.js +25 -0
- package/lib/hooks/useOptions.d.ts +9 -0
- package/lib/hooks/useOptions.js +29 -0
- package/lib/hooks/useSearchConfig.d.ts +2 -0
- package/lib/hooks/useSearchConfig.js +36 -0
- package/lib/hooks/useSearchOptions.d.ts +4 -0
- package/lib/hooks/useSearchOptions.js +71 -0
- package/lib/hooks/useSelect.d.ts +4 -0
- package/lib/hooks/useSelect.js +55 -0
- package/lib/hooks/useValues.d.ts +9 -0
- package/lib/hooks/useValues.js +29 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +16 -0
- package/lib/utils/commonUtil.d.ts +18 -0
- package/lib/utils/commonUtil.js +83 -0
- package/lib/utils/treeUtil.d.ts +9 -0
- package/lib/utils/treeUtil.js +42 -0
- package/lib/utils/warningPropsUtil.d.ts +4 -0
- package/lib/utils/warningPropsUtil.js +37 -0
- package/package.json +88 -0
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rc-component/cascader",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "cascade select ui component for react",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"react-component",
|
|
8
|
+
"react-cascader",
|
|
9
|
+
"react-select",
|
|
10
|
+
"select",
|
|
11
|
+
"cascade",
|
|
12
|
+
"cascader"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/react-component/cascader",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/react-component/cascader/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/react-component/cascader.git"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": "afc163@gmail.com",
|
|
24
|
+
"main": "./lib/index",
|
|
25
|
+
"module": "./es/index",
|
|
26
|
+
"files": [
|
|
27
|
+
"lib",
|
|
28
|
+
"es",
|
|
29
|
+
"assets/*.css",
|
|
30
|
+
"assets/*.less"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "dumi build",
|
|
34
|
+
"compile": "father build",
|
|
35
|
+
"coverage": "father test --coverage",
|
|
36
|
+
"deploy": "UMI_ENV=gh npm run build && gh-pages -d dist",
|
|
37
|
+
"lint": "eslint src/ examples/ --ext .tsx,.ts,.jsx,.jsx",
|
|
38
|
+
"now-build": "npm run build",
|
|
39
|
+
"prepublishOnly": "npm run compile && rc-np",
|
|
40
|
+
"lint:tsc": "tsc -p tsconfig.json --noEmit",
|
|
41
|
+
"start": "dumi dev",
|
|
42
|
+
"test": "rc-test"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@rc-component/select": "~1.0.0",
|
|
46
|
+
"@rc-component/util": "^1.2.1",
|
|
47
|
+
"classnames": "^2.3.1",
|
|
48
|
+
"rc-tree": "~5.13.1"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@rc-component/father-plugin": "^2.0.2",
|
|
52
|
+
"@rc-component/np": "^1.0.3",
|
|
53
|
+
"@rc-component/trigger": "^3.0.0",
|
|
54
|
+
"@testing-library/react": "^12.1.5",
|
|
55
|
+
"@types/classnames": "^2.2.6",
|
|
56
|
+
"@types/enzyme": "^3.1.15",
|
|
57
|
+
"@types/jest": "^29.4.0",
|
|
58
|
+
"@types/react": "^17.0.38",
|
|
59
|
+
"@types/react-dom": "^18.0.11",
|
|
60
|
+
"@types/warning": "^3.0.0",
|
|
61
|
+
"@umijs/fabric": "^4.0.0",
|
|
62
|
+
"array-tree-filter": "^3.0.2",
|
|
63
|
+
"cheerio": "1.0.0-rc.12",
|
|
64
|
+
"core-js": "^3.40.0",
|
|
65
|
+
"cross-env": "^7.0.0",
|
|
66
|
+
"dumi": "^2.1.10",
|
|
67
|
+
"enzyme": "^3.3.0",
|
|
68
|
+
"enzyme-adapter-react-16": "^1.15.6",
|
|
69
|
+
"enzyme-to-json": "^3.2.1",
|
|
70
|
+
"eslint": "^8.54.0",
|
|
71
|
+
"eslint-plugin-jest": "^28.8.3",
|
|
72
|
+
"eslint-plugin-unicorn": "^52.0.0",
|
|
73
|
+
"father": "^4.0.0",
|
|
74
|
+
"gh-pages": "^6.1.1",
|
|
75
|
+
"glob": "^7.1.6",
|
|
76
|
+
"less": "^4.2.0",
|
|
77
|
+
"prettier": "^3.1.0",
|
|
78
|
+
"rc-field-form": "^1.44.0",
|
|
79
|
+
"rc-test": "^7.1.2",
|
|
80
|
+
"react": "^16.0.0",
|
|
81
|
+
"react-dom": "^16.0.0",
|
|
82
|
+
"typescript": "^5.3.2"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"react": ">=16.9.0",
|
|
86
|
+
"react-dom": ">=16.9.0"
|
|
87
|
+
}
|
|
88
|
+
}
|