@kdcloudjs/kdesign 1.7.0 → 1.7.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.
Files changed (200) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/default-theme.js +4 -5
  3. package/dist/kdesign-complete.less +328 -35
  4. package/dist/kdesign.css +543 -30
  5. package/dist/kdesign.css.map +1 -1
  6. package/dist/kdesign.js +58633 -40500
  7. package/dist/kdesign.js.map +1 -1
  8. package/dist/kdesign.min.css +3 -3
  9. package/dist/kdesign.min.js +9 -9
  10. package/dist/kdesign.min.js.map +1 -1
  11. package/es/alert/style/index.css +2 -0
  12. package/es/anchor/style/index.css +2 -0
  13. package/es/avatar/style/index.css +2 -0
  14. package/es/badge/style/index.css +2 -0
  15. package/es/base-data/style/index.css +2 -0
  16. package/es/button/style/index.css +2 -0
  17. package/es/card/style/index.css +2 -0
  18. package/es/carousel/style/index.css +2 -0
  19. package/es/cascader/style/index.css +2 -0
  20. package/es/checkbox/style/index.css +2 -0
  21. package/es/city-picker/style/index.css +2 -0
  22. package/es/collapse/style/index.css +2 -0
  23. package/es/color-picker/color-picker-panel.d.ts +4 -0
  24. package/es/color-picker/color-picker-panel.js +239 -0
  25. package/es/color-picker/color-picker.d.ts +4 -0
  26. package/es/color-picker/color-picker.js +201 -0
  27. package/es/color-picker/constant/colorTypes.d.ts +4 -0
  28. package/es/color-picker/constant/colorTypes.js +13 -0
  29. package/es/color-picker/constant/defaultColor.d.ts +1 -0
  30. package/es/color-picker/constant/defaultColor.js +1 -0
  31. package/es/color-picker/constant/systemPresetColor.d.ts +1 -0
  32. package/es/color-picker/constant/systemPresetColor.js +1 -0
  33. package/es/color-picker/index.d.ts +3 -0
  34. package/es/color-picker/index.js +3 -0
  35. package/es/color-picker/interface.d.ts +64 -0
  36. package/es/color-picker/interface.js +3 -0
  37. package/es/color-picker/style/css.js +2 -0
  38. package/es/color-picker/style/index.css +317 -0
  39. package/es/color-picker/style/index.d.ts +2 -0
  40. package/es/color-picker/style/index.js +2 -0
  41. package/es/color-picker/style/index.less +253 -0
  42. package/es/color-picker/style/mixin.less +5 -0
  43. package/es/color-picker/style/token.less +22 -0
  44. package/es/color-picker/utils/colorFormat.d.ts +18 -0
  45. package/es/color-picker/utils/colorFormat.js +153 -0
  46. package/es/color-picker/utils/convertLetters.d.ts +1 -0
  47. package/es/color-picker/utils/convertLetters.js +12 -0
  48. package/es/color-picker/utils/hooks/useOnClickOutside.d.ts +2 -0
  49. package/es/color-picker/utils/hooks/useOnClickOutside.js +16 -0
  50. package/es/color-picker/utils/validateColor.d.ts +1 -0
  51. package/es/color-picker/utils/validateColor.js +24 -0
  52. package/es/config-provider/compDefaultProps.d.ts +12 -0
  53. package/es/config-provider/compDefaultProps.js +12 -0
  54. package/es/date-picker/style/index.css +2 -0
  55. package/es/drawer/style/index.css +2 -0
  56. package/es/dropdown/style/index.css +2 -0
  57. package/es/empty/style/index.css +2 -0
  58. package/es/filter/style/index.css +2 -0
  59. package/es/form/style/index.css +2 -0
  60. package/es/grid/style/index.css +2 -0
  61. package/es/icon/style/index.css +2 -0
  62. package/es/image/style/index.css +2 -0
  63. package/es/image-cropper/style/index.css +2 -0
  64. package/es/index.d.ts +1 -0
  65. package/es/index.js +2 -1
  66. package/es/input/style/index.css +2 -0
  67. package/es/input-number/style/index.css +2 -0
  68. package/es/layout/style/index.css +2 -0
  69. package/es/link/style/index.css +2 -0
  70. package/es/locale/locale.d.ts +4 -0
  71. package/es/locale/locale.js +6 -4
  72. package/es/locale/zh-CN.d.ts +1 -0
  73. package/es/locale/zh-CN.js +1 -0
  74. package/es/menu/style/index.css +2 -0
  75. package/es/message/style/index.css +2 -0
  76. package/es/modal/style/index.css +2 -0
  77. package/es/notification/style/index.css +2 -0
  78. package/es/pagination/style/index.css +116 -29
  79. package/es/pagination/style/index.less +38 -29
  80. package/es/popconfirm/style/index.css +2 -0
  81. package/es/progress/style/index.css +2 -0
  82. package/es/radio/style/index.css +2 -0
  83. package/es/rate/style/index.css +2 -0
  84. package/es/search/style/index.css +2 -0
  85. package/es/select/style/index.css +2 -0
  86. package/es/slider/style/index.css +2 -0
  87. package/es/space/style/index.css +2 -0
  88. package/es/spin/style/index.css +2 -0
  89. package/es/split-panel/style/index.css +2 -0
  90. package/es/stepper/style/index.css +2 -0
  91. package/es/steps/style/index.css +2 -0
  92. package/es/style/index.css +2 -0
  93. package/es/style/themes/default.less +10 -6
  94. package/es/switch/style/index.css +2 -0
  95. package/es/table/style/index.css +2 -0
  96. package/es/tabs/style/index.css +2 -0
  97. package/es/tag/style/index.css +2 -0
  98. package/es/timeline/style/index.css +2 -0
  99. package/es/tooltip/style/index.css +2 -0
  100. package/es/transfer/style/index.css +2 -0
  101. package/es/tree/style/index.css +2 -0
  102. package/es/tree-select/style/index.css +2 -0
  103. package/es/typography/style/index.css +2 -0
  104. package/es/upload/style/index.css +2 -0
  105. package/lib/alert/style/index.css +2 -0
  106. package/lib/anchor/style/index.css +2 -0
  107. package/lib/avatar/style/index.css +2 -0
  108. package/lib/badge/style/index.css +2 -0
  109. package/lib/base-data/style/index.css +2 -0
  110. package/lib/button/style/index.css +2 -0
  111. package/lib/card/style/index.css +2 -0
  112. package/lib/carousel/style/index.css +2 -0
  113. package/lib/cascader/style/index.css +2 -0
  114. package/lib/checkbox/style/index.css +2 -0
  115. package/lib/city-picker/style/index.css +2 -0
  116. package/lib/collapse/style/index.css +2 -0
  117. package/lib/color-picker/color-picker-panel.d.ts +4 -0
  118. package/lib/color-picker/color-picker-panel.js +253 -0
  119. package/lib/color-picker/color-picker.d.ts +4 -0
  120. package/lib/color-picker/color-picker.js +214 -0
  121. package/lib/color-picker/constant/colorTypes.d.ts +4 -0
  122. package/lib/color-picker/constant/colorTypes.js +20 -0
  123. package/lib/color-picker/constant/defaultColor.d.ts +1 -0
  124. package/lib/color-picker/constant/defaultColor.js +8 -0
  125. package/lib/color-picker/constant/systemPresetColor.d.ts +1 -0
  126. package/lib/color-picker/constant/systemPresetColor.js +8 -0
  127. package/lib/color-picker/index.d.ts +3 -0
  128. package/lib/color-picker/index.js +27 -0
  129. package/lib/color-picker/interface.d.ts +64 -0
  130. package/lib/color-picker/interface.js +11 -0
  131. package/lib/color-picker/style/css.js +4 -0
  132. package/lib/color-picker/style/index.css +317 -0
  133. package/lib/color-picker/style/index.d.ts +2 -0
  134. package/lib/color-picker/style/index.js +4 -0
  135. package/lib/color-picker/style/index.less +253 -0
  136. package/lib/color-picker/style/mixin.less +5 -0
  137. package/lib/color-picker/style/token.less +22 -0
  138. package/lib/color-picker/utils/colorFormat.d.ts +18 -0
  139. package/lib/color-picker/utils/colorFormat.js +166 -0
  140. package/lib/color-picker/utils/convertLetters.d.ts +1 -0
  141. package/lib/color-picker/utils/convertLetters.js +18 -0
  142. package/lib/color-picker/utils/hooks/useOnClickOutside.d.ts +2 -0
  143. package/lib/color-picker/utils/hooks/useOnClickOutside.js +23 -0
  144. package/lib/color-picker/utils/validateColor.d.ts +1 -0
  145. package/lib/color-picker/utils/validateColor.js +30 -0
  146. package/lib/config-provider/compDefaultProps.d.ts +12 -0
  147. package/lib/config-provider/compDefaultProps.js +12 -0
  148. package/lib/date-picker/style/index.css +2 -0
  149. package/lib/drawer/style/index.css +2 -0
  150. package/lib/dropdown/style/index.css +2 -0
  151. package/lib/empty/style/index.css +2 -0
  152. package/lib/filter/style/index.css +2 -0
  153. package/lib/form/style/index.css +2 -0
  154. package/lib/grid/style/index.css +2 -0
  155. package/lib/icon/style/index.css +2 -0
  156. package/lib/image/style/index.css +2 -0
  157. package/lib/image-cropper/style/index.css +2 -0
  158. package/lib/index.d.ts +1 -0
  159. package/lib/index.js +7 -0
  160. package/lib/input/style/index.css +2 -0
  161. package/lib/input-number/style/index.css +2 -0
  162. package/lib/layout/style/index.css +2 -0
  163. package/lib/link/style/index.css +2 -0
  164. package/lib/locale/locale.d.ts +4 -0
  165. package/lib/locale/locale.js +6 -4
  166. package/lib/locale/zh-CN.d.ts +1 -0
  167. package/lib/locale/zh-CN.js +1 -0
  168. package/lib/menu/style/index.css +2 -0
  169. package/lib/message/style/index.css +2 -0
  170. package/lib/modal/style/index.css +2 -0
  171. package/lib/notification/style/index.css +2 -0
  172. package/lib/pagination/style/index.css +116 -29
  173. package/lib/pagination/style/index.less +38 -29
  174. package/lib/popconfirm/style/index.css +2 -0
  175. package/lib/progress/style/index.css +2 -0
  176. package/lib/radio/style/index.css +2 -0
  177. package/lib/rate/style/index.css +2 -0
  178. package/lib/search/style/index.css +2 -0
  179. package/lib/select/style/index.css +2 -0
  180. package/lib/slider/style/index.css +2 -0
  181. package/lib/space/style/index.css +2 -0
  182. package/lib/spin/style/index.css +2 -0
  183. package/lib/split-panel/style/index.css +2 -0
  184. package/lib/stepper/style/index.css +2 -0
  185. package/lib/steps/style/index.css +2 -0
  186. package/lib/style/components.less +1 -0
  187. package/lib/style/index.css +2 -0
  188. package/lib/style/themes/default.less +10 -6
  189. package/lib/switch/style/index.css +2 -0
  190. package/lib/table/style/index.css +2 -0
  191. package/lib/tabs/style/index.css +2 -0
  192. package/lib/tag/style/index.css +2 -0
  193. package/lib/timeline/style/index.css +2 -0
  194. package/lib/tooltip/style/index.css +2 -0
  195. package/lib/transfer/style/index.css +2 -0
  196. package/lib/tree/style/index.css +2 -0
  197. package/lib/tree-select/style/index.css +2 -0
  198. package/lib/typography/style/index.css +2 -0
  199. package/lib/upload/style/index.css +2 -0
  200. package/package.json +5 -1
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
@@ -56,6 +56,8 @@
56
56
  /* ----------- Transfer ——————---- end */
57
57
  /* ----------- DatePicker ——————---- start */
58
58
  /* ----------- DatePicker ——————---- end */
59
+ /* ----------- ColorPicker ——————---- start */
60
+ /* ----------- ColorPicker ——————---- end */
59
61
  /* ----------- Tree ——————---- start */
60
62
  /* ----------- Tree ——————---- end */
61
63
  /* ----------- Alert ——————---- start */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [
@@ -83,10 +83,12 @@
83
83
  "axios": "^0.21.1",
84
84
  "big.js": "^6.0.2",
85
85
  "classnames": "^2.2.6",
86
+ "color": "^4.2.3",
86
87
  "copy-to-clipboard": "^3.3.1",
87
88
  "cropperjs": "^1.5.12",
88
89
  "date-fns": "2.28.0",
89
90
  "lodash": "^4.17.20",
91
+ "react-color": "^2.19.3",
90
92
  "react-draggable": "^4.4.3",
91
93
  "react-popper": "^2.2.3",
92
94
  "resize-observer-polyfill": "^1.5.1",
@@ -106,12 +108,14 @@
106
108
  "@types/babel__traverse": "7.17.1",
107
109
  "@types/big.js": "^6.0.0",
108
110
  "@types/classnames": "^2.2.10",
111
+ "@types/color": "^3.0.3",
109
112
  "@types/enzyme": "^3.10.7",
110
113
  "@types/jest": "^26.0.14",
111
114
  "@types/jest-image-snapshot": "^4.1.0",
112
115
  "@types/lodash": "ts3.9",
113
116
  "@types/puppeteer": "^3.0.2",
114
117
  "@types/react": "^16.9.21",
118
+ "@types/react-color": "^3.0.6",
115
119
  "@types/react-dom": "^16.9.5",
116
120
  "@types/responselike": "ts3.9",
117
121
  "@typescript-eslint/eslint-plugin": "^3.0.0",