iglooform 2.5.52 → 3.0.0-alpha

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 (512) hide show
  1. package/.dumi/overrides.less +70 -0
  2. package/.dumi/tmp/core/EmptyRoute.tsx +9 -0
  3. package/.dumi/tmp/core/defineApp.ts +17 -0
  4. package/.dumi/tmp/core/exportStaticRuntimePlugin.ts +11 -0
  5. package/.dumi/tmp/core/helmet.ts +10 -0
  6. package/.dumi/tmp/core/helmetContext.ts +4 -0
  7. package/.dumi/tmp/core/history.ts +66 -0
  8. package/.dumi/tmp/core/historyIntelli.ts +132 -0
  9. package/.dumi/tmp/core/plugin.ts +60 -0
  10. package/.dumi/tmp/core/pluginConfig.ts +292 -0
  11. package/.dumi/tmp/core/pluginConfigJoi.d.ts +54 -0
  12. package/.dumi/tmp/core/polyfill.ts +201 -0
  13. package/.dumi/tmp/core/route.tsx +50 -0
  14. package/.dumi/tmp/core/terminal.ts +37 -0
  15. package/.dumi/tmp/dumi/exports.ts +5 -0
  16. package/.dumi/tmp/dumi/locales/config.ts +87 -0
  17. package/.dumi/tmp/dumi/locales/runtime.tsx +39 -0
  18. package/.dumi/tmp/dumi/meta/atoms.ts +4 -0
  19. package/.dumi/tmp/dumi/meta/index.ts +255 -0
  20. package/.dumi/tmp/dumi/meta/runtime.ts +31 -0
  21. package/.dumi/tmp/dumi/meta/tabs.ts +5 -0
  22. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +58 -0
  23. package/.dumi/tmp/dumi/theme/builtins/API.ts +4 -0
  24. package/.dumi/tmp/dumi/theme/builtins/Badge.ts +4 -0
  25. package/.dumi/tmp/dumi/theme/builtins/Container.ts +4 -0
  26. package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +4 -0
  27. package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +4 -0
  28. package/.dumi/tmp/dumi/theme/builtins/Table.ts +4 -0
  29. package/.dumi/tmp/dumi/theme/builtins/Tree.ts +4 -0
  30. package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +4 -0
  31. package/.dumi/tmp/dumi/theme/nprogress.css +59 -0
  32. package/.dumi/tmp/dumi/theme/slots/ColorSwitch.ts +4 -0
  33. package/.dumi/tmp/dumi/theme/slots/Content.ts +4 -0
  34. package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +4 -0
  35. package/.dumi/tmp/dumi/theme/slots/Features.ts +4 -0
  36. package/.dumi/tmp/dumi/theme/slots/Footer.ts +4 -0
  37. package/.dumi/tmp/dumi/theme/slots/Header.ts +4 -0
  38. package/.dumi/tmp/dumi/theme/slots/HeaderExtra.ts +4 -0
  39. package/.dumi/tmp/dumi/theme/slots/Hero.ts +4 -0
  40. package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +4 -0
  41. package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +4 -0
  42. package/.dumi/tmp/dumi/theme/slots/Logo.ts +4 -0
  43. package/.dumi/tmp/dumi/theme/slots/Navbar.ts +4 -0
  44. package/.dumi/tmp/dumi/theme/slots/NavbarExtra.ts +4 -0
  45. package/.dumi/tmp/dumi/theme/slots/NotFound.ts +4 -0
  46. package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +4 -0
  47. package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
  48. package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +4 -0
  49. package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +5 -0
  50. package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +4 -0
  51. package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +4 -0
  52. package/.dumi/tmp/dumi/theme/slots/SocialIcon.ts +4 -0
  53. package/.dumi/tmp/dumi/theme/slots/Toc.ts +4 -0
  54. package/.dumi/tmp/exports.ts +17 -0
  55. package/.dumi/tmp/plugin-antd/runtime.tsx +65 -0
  56. package/.dumi/tmp/plugin-antd/runtimeConfig.d.ts +6 -0
  57. package/.dumi/tmp/plugin-antd/types.d.ts +14 -0
  58. package/.dumi/tmp/plugin-html2sketch/index.ts +35 -0
  59. package/.dumi/tmp/testBrowser.tsx +90 -0
  60. package/.dumi/tmp/umi.ts +106 -0
  61. package/.dumirc.ts +27 -0
  62. package/es/admin-upload/float.d.ts +2 -2
  63. package/es/admin-upload/float.js +30 -42
  64. package/es/admin-upload/index.js +178 -242
  65. package/es/admin-upload/job-list.js +90 -105
  66. package/es/admin-upload/modal.d.ts +2 -2
  67. package/es/admin-upload/modal.js +31 -45
  68. package/es/admin-upload/style/index.js +1 -1
  69. package/es/admin-upload/style/index.less +6 -6
  70. package/es/alert-message/index.js +23 -36
  71. package/es/alert-message/style/index.js +1 -1
  72. package/es/alert-message/style/index.less +1 -1
  73. package/es/amount/index.js +17 -25
  74. package/es/amount/style/index.d.ts +0 -1
  75. package/es/amount/style/index.js +0 -1
  76. package/es/back-top/index.js +18 -32
  77. package/es/back-top/style/index.js +1 -1
  78. package/es/back-top/style/index.less +36 -25
  79. package/es/button/index.js +57 -88
  80. package/es/button/style/index.js +1 -1
  81. package/es/button/style/index.less +159 -109
  82. package/es/card-detail/card-group.d.ts +2 -2
  83. package/es/card-detail/card-group.js +14 -22
  84. package/es/card-detail/card-item.d.ts +2 -2
  85. package/es/card-detail/card-item.js +12 -23
  86. package/es/card-detail/card-page.js +18 -24
  87. package/es/card-detail/card.js +21 -32
  88. package/es/card-detail/index.js +4 -4
  89. package/es/card-detail/style/index.js +1 -1
  90. package/es/card-detail/style/index.less +4 -4
  91. package/es/card-detail/utils.d.ts +2 -2
  92. package/es/card-detail/utils.js +15 -21
  93. package/es/checkbox/index.d.ts +3 -2
  94. package/es/checkbox/index.js +73 -96
  95. package/es/checkbox/style/index.js +1 -1
  96. package/es/checkbox/style/index.less +42 -20
  97. package/es/claim-list/index.d.ts +1 -1
  98. package/es/claim-list/index.js +83 -129
  99. package/es/claim-list/style/index.js +1 -1
  100. package/es/claim-list/style/index.less +14 -8
  101. package/es/confirmation/index.js +29 -47
  102. package/es/confirmation/style/index.d.ts +0 -1
  103. package/es/confirmation/style/index.js +0 -1
  104. package/es/currency-context/style/index.d.ts +0 -1
  105. package/es/currency-context/style/index.js +0 -1
  106. package/es/date-picker/buddhist.js +31 -46
  107. package/es/date-picker/index.d.ts +2 -2
  108. package/es/date-picker/index.js +89 -118
  109. package/es/date-picker/style/index.js +1 -1
  110. package/es/date-picker/style/index.less +43 -22
  111. package/es/declaration/index.js +21 -34
  112. package/es/declaration/style/index.js +1 -1
  113. package/es/declaration/style/index.less +3 -3
  114. package/es/detail-panel/index.d.ts +2 -2
  115. package/es/detail-panel/index.js +48 -67
  116. package/es/detail-panel/style/index.js +1 -1
  117. package/es/detail-panel/style/index.less +3 -3
  118. package/es/documents/index.js +55 -73
  119. package/es/documents/style/index.js +1 -1
  120. package/es/filter/checkBox.d.ts +1 -1
  121. package/es/filter/checkBox.js +43 -64
  122. package/es/filter/customize.d.ts +1 -1
  123. package/es/filter/customize.js +8 -10
  124. package/es/filter/index.d.ts +1 -1
  125. package/es/filter/index.js +261 -359
  126. package/es/filter/radioBox.d.ts +1 -1
  127. package/es/filter/radioBox.js +26 -35
  128. package/es/filter/rangePicker.d.ts +1 -1
  129. package/es/filter/rangePicker.js +64 -83
  130. package/es/filter/style/index.js +1 -1
  131. package/es/filter/style/index.less +11 -11
  132. package/es/form/addable-section/index.js +71 -110
  133. package/es/form/addable-section/style/index.js +1 -1
  134. package/es/form/divider/index.js +11 -18
  135. package/es/form/divider/style/index.js +1 -1
  136. package/es/form/element/index.js +81 -140
  137. package/es/form/element/style/index.js +1 -1
  138. package/es/form/element/style/index.less +5 -5
  139. package/es/form/elements.js +15 -18
  140. package/es/form/hstep/index.js +53 -77
  141. package/es/form/hstep/style/index.js +1 -1
  142. package/es/form/hstep/style/index.less +2 -2
  143. package/es/form/hsteps/index.js +187 -245
  144. package/es/form/hsteps/style/index.js +1 -1
  145. package/es/form/index.js +133 -194
  146. package/es/form/login/index.js +24 -35
  147. package/es/form/login/style/index.js +1 -1
  148. package/es/form/login/style/index.less +1 -1
  149. package/es/form/page/index.js +42 -60
  150. package/es/form/page/style/index.js +1 -1
  151. package/es/form/pages/index.js +102 -139
  152. package/es/form/pages/style/index.js +1 -1
  153. package/es/form/render/index.js +12 -17
  154. package/es/form/render/style/index.js +1 -1
  155. package/es/form/section/index.js +58 -81
  156. package/es/form/section/style/index.js +1 -1
  157. package/es/form/step/index.js +57 -84
  158. package/es/form/step/style/index.js +1 -1
  159. package/es/form/step/style/index.less +3 -3
  160. package/es/form/steps/index.js +129 -174
  161. package/es/form/steps/style/index.js +1 -1
  162. package/es/form/style/index.js +1 -1
  163. package/es/form/style/index.less +1 -1
  164. package/es/form-context.d.ts +1 -1
  165. package/es/form-step-context.d.ts +1 -1
  166. package/es/free-form/addable-section/index.js +79 -137
  167. package/es/free-form/addable-section/style/index.js +1 -1
  168. package/es/free-form/element/index.js +63 -115
  169. package/es/free-form/element/style/index.js +1 -1
  170. package/es/free-form/element/style/index.less +4 -4
  171. package/es/free-form/index.d.ts +2 -2
  172. package/es/free-form/index.js +107 -157
  173. package/es/free-form/page/index.js +106 -144
  174. package/es/free-form/page/style/index.js +1 -1
  175. package/es/free-form/pages/index.js +17 -36
  176. package/es/free-form/pages/style/index.js +1 -1
  177. package/es/free-form/section/index.js +49 -87
  178. package/es/free-form/section/style/index.js +1 -1
  179. package/es/free-form/step/index.js +141 -197
  180. package/es/free-form/step/style/index.js +1 -1
  181. package/es/free-form/step/style/index.less +3 -3
  182. package/es/free-form/steps/index.d.ts +2 -2
  183. package/es/free-form/steps/index.js +37 -60
  184. package/es/free-form/steps/style/index.js +1 -1
  185. package/es/free-form/style/index.js +1 -1
  186. package/es/free-form/style/index.less +1 -1
  187. package/es/global-message/index.d.ts +1 -1
  188. package/es/global-message/index.js +23 -35
  189. package/es/global-message/style/index.js +1 -1
  190. package/es/global-message/style/index.less +4 -0
  191. package/es/home-menu/index.d.ts +1 -1
  192. package/es/home-menu/index.js +46 -63
  193. package/es/home-menu/style/index.js +1 -1
  194. package/es/home-menu/style/index.less +12 -7
  195. package/es/index.js +44 -44
  196. package/es/input/amount.js +28 -44
  197. package/es/input/credit-card.js +40 -78
  198. package/es/input/email.js +13 -16
  199. package/es/input/expiry-date.js +59 -96
  200. package/es/input/index.js +12 -12
  201. package/es/input/input-date.js +48 -88
  202. package/es/input/input-id.js +18 -31
  203. package/es/input/input-number.js +19 -35
  204. package/es/input/input.js +17 -27
  205. package/es/input/otp.d.ts +1 -1
  206. package/es/input/otp.js +51 -79
  207. package/es/input/password.js +15 -19
  208. package/es/input/phone-number.js +31 -50
  209. package/es/input/style/index.js +1 -1
  210. package/es/input/style/index.less +68 -70
  211. package/es/input/text-area.js +31 -55
  212. package/es/layout/defaultFooter.js +38 -43
  213. package/es/layout/defaultHeader.js +11 -16
  214. package/es/layout/footer.js +79 -85
  215. package/es/layout/header.js +61 -94
  216. package/es/layout/index.d.ts +2 -3
  217. package/es/layout/index.js +32 -48
  218. package/es/layout/style/index.js +1 -1
  219. package/es/layout/style/index.less +2 -2
  220. package/es/locale/en-US.js +1 -2
  221. package/es/locale/format-message.js +2 -6
  222. package/es/locale/formatted-message.js +2 -3
  223. package/es/locale/id-ID.js +1 -2
  224. package/es/locale/index.js +4 -4
  225. package/es/locale/locale-context.js +2 -4
  226. package/es/locale/locale-provider.d.ts +2 -1
  227. package/es/locale/locale-provider.js +20 -28
  228. package/es/locale/ms-MY.js +1 -2
  229. package/es/locale/th-TH.js +1 -2
  230. package/es/locale/vi-VN.js +1 -2
  231. package/es/locale/zh-CN.js +1 -2
  232. package/es/locale/zh-TW.js +1 -2
  233. package/es/login-page/index.d.ts +2 -2
  234. package/es/login-page/index.js +24 -29
  235. package/es/login-page/style/index.js +1 -1
  236. package/es/media/index.js +59 -104
  237. package/es/media/media.js +27 -45
  238. package/es/media/preview.js +103 -149
  239. package/es/media/style/index.js +1 -1
  240. package/es/media/style/index.less +6 -6
  241. package/es/mobile-insurer-detail/index.d.ts +1 -1
  242. package/es/mobile-insurer-detail/index.js +52 -59
  243. package/es/mobile-insurer-detail/style/index.js +1 -1
  244. package/es/mobile-insurer-list/index.d.ts +1 -1
  245. package/es/mobile-insurer-list/index.js +34 -37
  246. package/es/mobile-insurer-list/style/index.js +1 -1
  247. package/es/modal/index.d.ts +2 -2
  248. package/es/modal/index.js +136 -154
  249. package/es/modal/style/index.js +1 -1
  250. package/es/modal/style/index.less +59 -51
  251. package/es/platform/index.js +2 -2
  252. package/es/platform/platform-card/index.js +18 -29
  253. package/es/platform/platform-card/style/index.js +1 -1
  254. package/es/platform/switch-platform/index.js +29 -53
  255. package/es/platform/switch-platform/style/index.js +1 -1
  256. package/es/platform/switch-platform/style/index.less +1 -1
  257. package/es/policy-list/index.d.ts +1 -1
  258. package/es/policy-list/index.js +21 -30
  259. package/es/policy-list/policy-card.d.ts +1 -1
  260. package/es/policy-list/policy-card.js +107 -142
  261. package/es/policy-list/style/index.js +1 -1
  262. package/es/policy-list/style/index.less +1 -0
  263. package/es/radio/index.d.ts +2 -1
  264. package/es/radio/index.js +65 -85
  265. package/es/radio/radio-group-with-other.d.ts +3 -2
  266. package/es/radio/radio-group-with-other.js +30 -55
  267. package/es/radio/style/index.js +1 -1
  268. package/es/radio/style/index.less +63 -45
  269. package/es/search-box/index.js +66 -98
  270. package/es/search-box/style/index.js +1 -1
  271. package/es/search-box/style/index.less +2 -2
  272. package/es/select/attached-select.d.ts +3 -3
  273. package/es/select/attached-select.js +67 -107
  274. package/es/select/index.js +3 -3
  275. package/es/select/select.d.ts +3 -3
  276. package/es/select/select.js +33 -50
  277. package/es/select/style/index.js +1 -1
  278. package/es/select/style/index.less +154 -112
  279. package/es/select/time-select.js +64 -108
  280. package/es/status-box/index.d.ts +2 -3
  281. package/es/status-box/index.js +14 -16
  282. package/es/status-box/style/index.js +1 -1
  283. package/es/status-box/style/index.less +2 -2
  284. package/es/table/index.js +119 -168
  285. package/es/table/style/index.js +1 -1
  286. package/es/table/style/index.less +137 -109
  287. package/es/tabs/index.d.ts +4 -3
  288. package/es/tabs/index.js +12 -16
  289. package/es/tabs/style/index.js +1 -1
  290. package/es/types.d.ts +1 -2
  291. package/es/types.js +2 -1
  292. package/es/typography/index.d.ts +2 -1
  293. package/es/typography/index.js +11 -17
  294. package/es/typography/style/index.js +1 -1
  295. package/es/typography/style/index.less +4 -0
  296. package/es/upload/index.js +253 -335
  297. package/es/upload/style/index.js +1 -1
  298. package/es/upload/style/index.less +8 -6
  299. package/es/upload-photo/index.js +321 -450
  300. package/es/upload-photo/media.js +16 -29
  301. package/es/upload-photo/style/index.js +1 -1
  302. package/es/upload-photo/style/index.less +4 -4
  303. package/es/upload-preview/index.js +63 -85
  304. package/es/upload-preview/media.js +42 -77
  305. package/es/upload-preview/style/index.js +1 -1
  306. package/es/upload-preview/style/index.less +1 -1
  307. package/es/utils/form-methods.js +1 -1
  308. package/es/utils/form-utils.d.ts +9 -8
  309. package/es/utils/form-utils.js +162 -260
  310. package/es/utils/option-utils.d.ts +3 -2
  311. package/es/utils/option-utils.js +106 -163
  312. package/es/utils/tools.js +0 -8
  313. package/lib/admin-upload/float.d.ts +2 -2
  314. package/lib/admin-upload/float.js +27 -46
  315. package/lib/admin-upload/index.js +171 -251
  316. package/lib/admin-upload/job-list.js +82 -109
  317. package/lib/admin-upload/modal.d.ts +2 -2
  318. package/lib/admin-upload/modal.js +27 -52
  319. package/lib/admin-upload/style/index.less +6 -6
  320. package/lib/alert-message/index.js +21 -43
  321. package/lib/alert-message/style/index.less +1 -1
  322. package/lib/amount/index.js +15 -31
  323. package/lib/amount/style/index.d.ts +0 -1
  324. package/lib/back-top/index.js +17 -39
  325. package/lib/back-top/style/index.less +36 -25
  326. package/lib/button/index.js +54 -101
  327. package/lib/button/style/index.less +159 -109
  328. package/lib/card-detail/card-group.d.ts +2 -2
  329. package/lib/card-detail/card-group.js +11 -29
  330. package/lib/card-detail/card-item.d.ts +2 -2
  331. package/lib/card-detail/card-item.js +9 -27
  332. package/lib/card-detail/card-page.js +14 -29
  333. package/lib/card-detail/card.js +17 -37
  334. package/lib/card-detail/index.js +0 -5
  335. package/lib/card-detail/style/index.less +4 -4
  336. package/lib/card-detail/utils.d.ts +2 -2
  337. package/lib/card-detail/utils.js +13 -28
  338. package/lib/checkbox/index.d.ts +3 -2
  339. package/lib/checkbox/index.js +64 -107
  340. package/lib/checkbox/style/index.less +42 -20
  341. package/lib/claim-list/index.d.ts +1 -1
  342. package/lib/claim-list/index.js +75 -143
  343. package/lib/claim-list/style/index.less +14 -8
  344. package/lib/confirmation/index.js +22 -50
  345. package/lib/confirmation/style/index.d.ts +0 -1
  346. package/lib/currency-context/index.js +0 -3
  347. package/lib/currency-context/style/index.d.ts +0 -1
  348. package/lib/date-picker/buddhist.js +34 -61
  349. package/lib/date-picker/index.d.ts +2 -2
  350. package/lib/date-picker/index.js +98 -145
  351. package/lib/date-picker/style/index.less +43 -22
  352. package/lib/declaration/index.js +17 -42
  353. package/lib/declaration/style/index.less +3 -3
  354. package/lib/detail-panel/index.d.ts +2 -2
  355. package/lib/detail-panel/index.js +44 -77
  356. package/lib/detail-panel/style/index.less +3 -3
  357. package/lib/documents/index.js +56 -78
  358. package/lib/filter/checkBox.d.ts +1 -1
  359. package/lib/filter/checkBox.js +40 -74
  360. package/lib/filter/customize.d.ts +1 -1
  361. package/lib/filter/customize.js +6 -14
  362. package/lib/filter/index.d.ts +1 -1
  363. package/lib/filter/index.js +258 -382
  364. package/lib/filter/radioBox.d.ts +1 -1
  365. package/lib/filter/radioBox.js +24 -45
  366. package/lib/filter/rangePicker.d.ts +1 -1
  367. package/lib/filter/rangePicker.js +64 -96
  368. package/lib/filter/style/index.less +11 -11
  369. package/lib/form/addable-section/index.js +65 -121
  370. package/lib/form/divider/index.js +9 -24
  371. package/lib/form/element/index.js +73 -156
  372. package/lib/form/element/style/index.less +5 -5
  373. package/lib/form/elements.js +1 -24
  374. package/lib/form/hstep/index.js +44 -87
  375. package/lib/form/hstep/style/index.less +2 -2
  376. package/lib/form/hsteps/index.js +177 -257
  377. package/lib/form/index.js +124 -201
  378. package/lib/form/login/index.js +18 -46
  379. package/lib/form/login/style/index.less +1 -1
  380. package/lib/form/page/index.js +35 -69
  381. package/lib/form/pages/index.js +94 -148
  382. package/lib/form/render/index.js +15 -21
  383. package/lib/form/section/index.js +52 -92
  384. package/lib/form/step/index.js +50 -96
  385. package/lib/form/step/style/index.less +3 -3
  386. package/lib/form/steps/index.js +125 -179
  387. package/lib/form/style/index.less +1 -1
  388. package/lib/form-context.d.ts +1 -1
  389. package/lib/form-context.js +0 -4
  390. package/lib/form-step-context.d.ts +1 -1
  391. package/lib/form-step-context.js +0 -4
  392. package/lib/free-form/addable-section/index.js +73 -148
  393. package/lib/free-form/element/index.js +58 -131
  394. package/lib/free-form/element/style/index.less +4 -4
  395. package/lib/free-form/index.d.ts +2 -2
  396. package/lib/free-form/index.js +104 -164
  397. package/lib/free-form/page/index.js +99 -150
  398. package/lib/free-form/pages/index.js +18 -39
  399. package/lib/free-form/section/index.js +46 -94
  400. package/lib/free-form/step/index.js +135 -209
  401. package/lib/free-form/step/style/index.less +3 -3
  402. package/lib/free-form/steps/index.d.ts +2 -2
  403. package/lib/free-form/steps/index.js +34 -66
  404. package/lib/free-form/style/index.less +1 -1
  405. package/lib/global-message/index.d.ts +1 -1
  406. package/lib/global-message/index.js +22 -40
  407. package/lib/global-message/style/index.less +4 -0
  408. package/lib/home-menu/index.d.ts +1 -1
  409. package/lib/home-menu/index.js +43 -74
  410. package/lib/home-menu/style/index.less +12 -7
  411. package/lib/index.js +0 -50
  412. package/lib/input/amount.js +25 -50
  413. package/lib/input/credit-card.js +37 -85
  414. package/lib/input/email.js +11 -20
  415. package/lib/input/expiry-date.js +54 -102
  416. package/lib/input/index.js +0 -14
  417. package/lib/input/input-date.js +46 -98
  418. package/lib/input/input-id.js +15 -35
  419. package/lib/input/input-number.js +16 -39
  420. package/lib/input/input.js +14 -33
  421. package/lib/input/otp.d.ts +1 -1
  422. package/lib/input/otp.js +47 -87
  423. package/lib/input/password.js +14 -25
  424. package/lib/input/phone-number.js +27 -56
  425. package/lib/input/style/index.less +68 -70
  426. package/lib/input/text-area.js +27 -61
  427. package/lib/layout/defaultFooter.js +33 -49
  428. package/lib/layout/defaultHeader.js +10 -21
  429. package/lib/layout/footer.js +74 -93
  430. package/lib/layout/header.js +56 -110
  431. package/lib/layout/index.d.ts +2 -3
  432. package/lib/layout/index.js +26 -52
  433. package/lib/layout/style/index.less +2 -2
  434. package/lib/locale/en-US.js +1 -3
  435. package/lib/locale/format-message.js +1 -7
  436. package/lib/locale/formatted-message.js +1 -6
  437. package/lib/locale/id-ID.js +1 -3
  438. package/lib/locale/index.js +0 -5
  439. package/lib/locale/locale-context.js +1 -7
  440. package/lib/locale/locale-provider.d.ts +2 -1
  441. package/lib/locale/locale-provider.js +18 -49
  442. package/lib/locale/ms-MY.js +1 -3
  443. package/lib/locale/th-TH.js +1 -3
  444. package/lib/locale/vi-VN.js +1 -3
  445. package/lib/locale/zh-CN.js +1 -3
  446. package/lib/locale/zh-TW.js +1 -3
  447. package/lib/login-page/index.d.ts +2 -2
  448. package/lib/login-page/index.js +22 -34
  449. package/lib/media/index.js +57 -110
  450. package/lib/media/media.js +28 -51
  451. package/lib/media/preview.js +99 -159
  452. package/lib/media/style/index.less +6 -6
  453. package/lib/mobile-insurer-detail/index.d.ts +1 -1
  454. package/lib/mobile-insurer-detail/index.js +46 -62
  455. package/lib/mobile-insurer-list/index.d.ts +1 -1
  456. package/lib/mobile-insurer-list/index.js +30 -42
  457. package/lib/modal/index.d.ts +2 -2
  458. package/lib/modal/index.js +130 -163
  459. package/lib/modal/style/index.less +59 -51
  460. package/lib/platform/index.js +0 -3
  461. package/lib/platform/platform-card/index.js +15 -34
  462. package/lib/platform/switch-platform/index.js +26 -64
  463. package/lib/platform/switch-platform/style/index.less +1 -1
  464. package/lib/policy-list/index.d.ts +1 -1
  465. package/lib/policy-list/index.js +18 -35
  466. package/lib/policy-list/policy-card.d.ts +1 -1
  467. package/lib/policy-list/policy-card.js +101 -152
  468. package/lib/policy-list/style/index.less +1 -0
  469. package/lib/radio/index.d.ts +2 -1
  470. package/lib/radio/index.js +58 -97
  471. package/lib/radio/radio-group-with-other.d.ts +3 -2
  472. package/lib/radio/radio-group-with-other.js +26 -58
  473. package/lib/radio/style/index.less +63 -45
  474. package/lib/search-box/index.js +57 -103
  475. package/lib/search-box/style/index.less +2 -2
  476. package/lib/select/attached-select.d.ts +3 -3
  477. package/lib/select/attached-select.js +59 -118
  478. package/lib/select/index.js +0 -5
  479. package/lib/select/select.d.ts +3 -3
  480. package/lib/select/select.js +29 -61
  481. package/lib/select/style/index.less +154 -112
  482. package/lib/select/time-select.js +58 -115
  483. package/lib/status-box/index.d.ts +2 -3
  484. package/lib/status-box/index.js +12 -19
  485. package/lib/status-box/style/index.less +2 -2
  486. package/lib/table/index.js +115 -196
  487. package/lib/table/style/index.less +137 -109
  488. package/lib/tabs/index.d.ts +4 -3
  489. package/lib/tabs/index.js +11 -23
  490. package/lib/types.d.ts +1 -2
  491. package/lib/types.js +8 -1
  492. package/lib/typography/index.d.ts +2 -1
  493. package/lib/typography/index.js +10 -20
  494. package/lib/typography/style/index.less +4 -0
  495. package/lib/upload/index.js +242 -344
  496. package/lib/upload/style/index.less +8 -6
  497. package/lib/upload-photo/index.js +309 -467
  498. package/lib/upload-photo/media.js +18 -32
  499. package/lib/upload-photo/style/index.less +4 -4
  500. package/lib/upload-preview/index.js +55 -90
  501. package/lib/upload-preview/media.js +36 -87
  502. package/lib/upload-preview/style/index.less +1 -1
  503. package/lib/utils/agent-detect.js +0 -1
  504. package/lib/utils/form-methods.js +1 -1
  505. package/lib/utils/form-utils.d.ts +9 -8
  506. package/lib/utils/form-utils.js +168 -288
  507. package/lib/utils/option-utils.d.ts +3 -2
  508. package/lib/utils/option-utils.js +105 -173
  509. package/lib/utils/tools.js +0 -11
  510. package/package.json +15 -18
  511. package/lib/global.less +0 -63
  512. /package/{es → .dumi}/global.less +0 -0
@@ -0,0 +1,70 @@
1
+ .markdown a {
2
+ color: @primary-color;
3
+
4
+ &:hover {
5
+ color: @purple-medium;
6
+ }
7
+ }
8
+
9
+ .dumi-default-footer a {
10
+ color: @primary-color;
11
+
12
+ &:hover {
13
+ color: @purple-medium;
14
+ }
15
+ }
16
+
17
+ .dumi-default-sidebar > dl > dd > a.active {
18
+ color: @primary-color;
19
+ }
20
+
21
+ .dumi-default-sidebar > dl > dd > a:hover {
22
+ color: @primary-color;
23
+ }
24
+
25
+ .dumi-default-navbar > li > a:hover {
26
+ color: @primary-color;
27
+ }
28
+
29
+ .dumi-default-search-bar-input:focus {
30
+ border-color: @primary-color;
31
+ }
32
+
33
+ .dumi-default-color-switch:hover svg {
34
+ fill: @primary-color;
35
+ }
36
+
37
+ .dumi-default-toc > li > a:hover {
38
+ color: @primary-color;
39
+ }
40
+
41
+ .dumi-default-toc > li > a.active {
42
+ color: @primary-color;
43
+ border-inline-start: 2px solid @primary-color;
44
+ }
45
+
46
+ .dumi-default-header-content {
47
+ padding: 0;
48
+
49
+ .dumi-default-header-left {
50
+ width: 216px;
51
+
52
+ .dumi-default-logo img {
53
+ margin-inline-end: 0;
54
+ }
55
+ }
56
+
57
+ .dumi-default-header-right {
58
+ .dumi-default-navbar > li:not(:last-child) {
59
+ margin-inline-end: 24px;
60
+ }
61
+
62
+ .dumi-default-color-switch {
63
+ display: none;
64
+ }
65
+ }
66
+ }
67
+
68
+ * {
69
+ box-sizing: border-box;
70
+ }
@@ -0,0 +1,9 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import React from 'react';
5
+ import { Outlet, useOutletContext } from 'umi';
6
+ export default function EmptyRoute() {
7
+ const context = useOutletContext();
8
+ return <Outlet context={context} />;
9
+ }
@@ -0,0 +1,17 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import type { IRuntimeConfig as Plugin0 } from '/Users/leemin/Documents/code/iglooform/.dumi/tmp/plugin-antd/runtimeConfig.d'
5
+ interface IDefaultRuntimeConfig {
6
+ onRouteChange?: (props: { routes: any, clientRoutes: any, location: any, action: any, isFirst: boolean }) => void;
7
+ patchRoutes?: (props: { routes: any }) => void;
8
+ patchClientRoutes?: (props: { routes: any }) => void;
9
+ render?: (oldRender: () => void) => void;
10
+ rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
11
+ [key: string]: any;
12
+ }
13
+ export type RuntimeConfig = IDefaultRuntimeConfig & Plugin0
14
+
15
+ export function defineApp(config: RuntimeConfig): RuntimeConfig {
16
+ return config;
17
+ }
@@ -0,0 +1,11 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ export function modifyClientRenderOpts(memo: any) {
5
+ const { history, hydrate } = memo;
6
+
7
+ return {
8
+ ...memo,
9
+ hydrate: hydrate && ![].includes(history.location.pathname),
10
+ };
11
+ }
@@ -0,0 +1,10 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import React from 'react';
5
+ import { HelmetProvider } from '/Users/leemin/Documents/code/iglooform/node_modules/@umijs/renderer-react';
6
+ import { context } from './helmetContext';
7
+
8
+ export const innerProvider = (container) => {
9
+ return React.createElement(HelmetProvider, { context }, container);
10
+ }
@@ -0,0 +1,4 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ export const context = {};
@@ -0,0 +1,66 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import { createHashHistory, createMemoryHistory, createBrowserHistory } from '/Users/leemin/Documents/code/iglooform/node_modules/@umijs/renderer-react';
5
+ import type { UmiHistory } from './historyIntelli';
6
+
7
+ let history: UmiHistory;
8
+ let basename: string = '/';
9
+ export function createHistory(opts: any) {
10
+ let h;
11
+ if (opts.type === 'hash') {
12
+ h = createHashHistory();
13
+ } else if (opts.type === 'memory') {
14
+ h = createMemoryHistory(opts);
15
+ } else {
16
+ h = createBrowserHistory();
17
+ }
18
+ if (opts.basename) {
19
+ basename = opts.basename;
20
+ }
21
+
22
+
23
+ history = {
24
+ ...h,
25
+ push(to, state) {
26
+ h.push(patchTo(to, h), state);
27
+ },
28
+ replace(to, state) {
29
+ h.replace(patchTo(to, h), state);
30
+ },
31
+ get location() {
32
+ return h.location;
33
+ },
34
+ get action() {
35
+ return h.action;
36
+ }
37
+ }
38
+
39
+ return h;
40
+ }
41
+
42
+ // Patch `to` to support basename
43
+ // Refs:
44
+ // https://github.com/remix-run/history/blob/3e9dab4/packages/history/index.ts#L484
45
+ // https://github.com/remix-run/history/blob/dev/docs/api-reference.md#to
46
+ function patchTo(to: any, h: History) {
47
+ if (typeof to === 'string') {
48
+ return `${stripLastSlash(basename)}${to}`;
49
+ } else if (typeof to === 'object') {
50
+
51
+ const currentPathname = h.location.pathname;
52
+
53
+ return {
54
+ ...to,
55
+ pathname: to.pathname? `${stripLastSlash(basename)}${to.pathname}` : currentPathname,
56
+ };
57
+ } else {
58
+ throw new Error(`Unexpected to: ${to}`);
59
+ }
60
+ }
61
+
62
+ function stripLastSlash(path) {
63
+ return path.slice(-1) === '/' ? path.slice(0, -1) : path;
64
+ }
65
+
66
+ export { history };
@@ -0,0 +1,132 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import { getRoutes } from './route'
5
+ import type { History } from '/Users/leemin/Documents/code/iglooform/node_modules/@umijs/renderer-react'
6
+
7
+ type Routes = Awaited<ReturnType<typeof getRoutes>>['routes']
8
+ type AllRoute = Routes[keyof Routes]
9
+ type IsRoot<T extends any> = 'parentId' extends keyof T ? false : true
10
+
11
+ // show `/` in not `layout / wrapper` only
12
+ type GetAllRouteWithoutLayout<Item extends AllRoute> = Item extends any
13
+ ? 'isWrapper' extends keyof Item
14
+ ? never
15
+ : 'isLayout' extends keyof Item
16
+ ? never
17
+ : Item
18
+ : never
19
+ type AllRouteWithoutLayout = GetAllRouteWithoutLayout<AllRoute>
20
+ type IndexRoutePathname = '/' extends AllRouteWithoutLayout['path']
21
+ ? '/'
22
+ : never
23
+
24
+ type GetChildrens<T extends any> = T extends any
25
+ ? IsRoot<T> extends true
26
+ ? never
27
+ : T
28
+ : never
29
+ type Childrens = GetChildrens<AllRoute>
30
+ type Root = Exclude<AllRoute, Childrens>
31
+ type AllIds = AllRoute['id']
32
+
33
+ type GetChildrensByParentId<
34
+ Id extends AllIds,
35
+ Item = AllRoute
36
+ > = Item extends any
37
+ ? 'parentId' extends keyof Item
38
+ ? Item['parentId'] extends Id
39
+ ? Item
40
+ : never
41
+ : never
42
+ : never
43
+
44
+ type RouteObject<
45
+ Id extends AllIds,
46
+ Item = GetChildrensByParentId<Id>
47
+ > = IsNever<Item> extends true
48
+ ? ''
49
+ : Item extends AllRoute
50
+ ? {
51
+ [Key in Item['path'] as TrimSlash<Key>]: UnionMerge<
52
+ RouteObject<Item['id']>
53
+ >
54
+ }
55
+ : never
56
+
57
+ type GetRootRouteObject<Item extends Root> = Item extends Root
58
+ ? {
59
+ [K in Item['path'] as TrimSlash<K>]: UnionMerge<RouteObject<Item['id']>>
60
+ }
61
+ : never
62
+ type MergedResult = UnionMerge<GetRootRouteObject<Root>>
63
+
64
+ // --- patch history types ---
65
+
66
+ type HistoryTo = Parameters<History['push']>['0']
67
+ type HistoryPath = Exclude<HistoryTo, string>
68
+
69
+ type UmiPathname = Path<MergedResult> | (string & {})
70
+ interface UmiPath extends HistoryPath {
71
+ pathname: UmiPathname
72
+ }
73
+ type UmiTo = UmiPathname | UmiPath
74
+
75
+ type UmiPush = (to: UmiTo, state?: any) => void
76
+ type UmiReplace = (to: UmiTo, state?: any) => void
77
+
78
+
79
+ export interface UmiHistory extends History {
80
+ push: UmiPush
81
+ replace: UmiReplace
82
+ }
83
+
84
+ // --- type utils ---
85
+ type TrimLeftSlash<T extends string> = T extends `/${infer R}`
86
+ ? TrimLeftSlash<R>
87
+ : T
88
+ type TrimRightSlash<T extends string> = T extends `${infer R}/`
89
+ ? TrimRightSlash<R>
90
+ : T
91
+ type TrimSlash<T extends string> = TrimLeftSlash<TrimRightSlash<T>>
92
+
93
+ type IsNever<T> = [T] extends [never] ? true : false
94
+ type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B
95
+ ? 1
96
+ : 2
97
+ ? true
98
+ : false
99
+
100
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
101
+ k: infer I
102
+ ) => void
103
+ ? I
104
+ : never
105
+ type UnionMerge<U> = UnionToIntersection<U> extends infer O
106
+ ? { [K in keyof O]: O[K] }
107
+ : never
108
+
109
+ type ExcludeEmptyKey<T> = IsEqual<T, ''> extends true ? never : T
110
+
111
+ type PathConcat<
112
+ TKey extends string,
113
+ TValue,
114
+ N = TrimSlash<TKey>
115
+ > = TValue extends string
116
+ ? ExcludeEmptyKey<N>
117
+ :
118
+ | ExcludeEmptyKey<N>
119
+ | `${N & string}${IsNever<ExcludeEmptyKey<N>> extends true
120
+ ? ''
121
+ : '/'}${UnionPath<TValue>}`
122
+
123
+ type UnionPath<T> = {
124
+ [K in keyof T]-?: PathConcat<K & string, T[K]>
125
+ }[keyof T]
126
+
127
+ type MakeSureLeftSlash<T> = T extends any
128
+ ? `/${TrimRightSlash<T & string>}`
129
+ : never
130
+
131
+ // exclude `/*`, because it always at the top of the IDE tip list
132
+ type Path<T, K = UnionPath<T>> = Exclude<MakeSureLeftSlash<K>, '/*'> | IndexRoutePathname
@@ -0,0 +1,60 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import * as Plugin_0 from '@@/core/exportStaticRuntimePlugin.ts';
5
+ import * as Plugin_1 from '@@/core/helmet.ts';
6
+ import * as Plugin_2 from '@@/dumi/meta/runtime.ts';
7
+ import * as Plugin_3 from '@@/dumi/locales/runtime.tsx';
8
+ import * as Plugin_4 from '/Users/leemin/Documents/code/iglooform/.dumi/tmp/plugin-antd/runtime.tsx';
9
+ import { PluginManager } from 'umi';
10
+
11
+ function __defaultExport (obj) {
12
+ if (obj.default) {
13
+ return typeof obj.default === 'function' ? obj.default() : obj.default
14
+ }
15
+ return obj;
16
+ }
17
+ export function getPlugins() {
18
+ return [
19
+ {
20
+ apply: Plugin_0,
21
+ path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/exportStaticRuntimePlugin.ts',
22
+ },
23
+ {
24
+ apply: Plugin_1,
25
+ path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/helmet.ts',
26
+ },
27
+ {
28
+ apply: Plugin_2,
29
+ path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/meta/runtime.ts',
30
+ },
31
+ {
32
+ apply: Plugin_3,
33
+ path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/locales/runtime.tsx',
34
+ },
35
+ {
36
+ apply: Plugin_4,
37
+ path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/leemin/Documents/code/iglooform/.dumi/tmp/plugin-antd/runtime.tsx',
38
+ },
39
+ ];
40
+ }
41
+
42
+ export function getValidKeys() {
43
+ return ['patchRoutes','patchClientRoutes','modifyContextOpts','modifyClientRenderOpts','rootContainer','innerProvider','i18nProvider','accessProvider','dataflowProvider','outerProvider','render','onRouteChange','modifyCodeSandboxData','modifyStackBlitzData','antd',];
44
+ }
45
+
46
+ let pluginManager = null;
47
+
48
+ export function createPluginManager() {
49
+ pluginManager = PluginManager.create({
50
+ plugins: getPlugins(),
51
+ validKeys: getValidKeys(),
52
+ });
53
+
54
+
55
+ return pluginManager;
56
+ }
57
+
58
+ export function getPluginManager() {
59
+ return pluginManager;
60
+ }
@@ -0,0 +1,292 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import { IConfigFromPluginsJoi } from "./pluginConfigJoi.d";
5
+
6
+ interface IConfigTypes {
7
+ codeSplitting: {
8
+ jsStrategy: "bigVendors" | "depPerChunk" | "granularChunks";
9
+ jsStrategyOptions?: ({
10
+
11
+ } | undefined);
12
+ cssStrategy?: ("mergeAll" | undefined);
13
+ cssStrategyOptions?: ({
14
+
15
+ } | undefined);
16
+ };
17
+ title: string;
18
+ styles: Array<string | {
19
+ src?: (string | undefined);
20
+ } | {
21
+ content?: (string | undefined);
22
+ } | { [x: string]: any }>;
23
+ scripts: Array<string | {
24
+ src?: (string | undefined);
25
+ } | {
26
+ content?: (string | undefined);
27
+ } | { [x: string]: any }>;
28
+ routes: Array<{
29
+ component?: (string | undefined);
30
+ layout?: (false | undefined);
31
+ path?: (string | undefined);
32
+ redirect?: (string | undefined);
33
+ routes?: IConfigTypes['routes'];
34
+ wrappers?: (Array<string> | undefined);
35
+ } | { [x: string]: any }>;
36
+ reactRouter5Compat: boolean | {
37
+
38
+ };
39
+ presets: Array<string>;
40
+ plugins: Array<string>;
41
+ npmClient: "pnpm" | "tnpm" | "cnpm" | "yarn" | "npm";
42
+ mountElementId: string;
43
+ metas: Array<{
44
+ charset?: (string | undefined);
45
+ content?: (string | undefined);
46
+ "http-equiv"?: (string | undefined);
47
+ name?: (string | undefined);
48
+ } | { [x: string]: any }>;
49
+ links: Array<{
50
+ crossorigin?: (string | undefined);
51
+ href?: (string | undefined);
52
+ hreflang?: (string | undefined);
53
+ media?: (string | undefined);
54
+ referrerpolicy?: (string | undefined);
55
+ rel?: (string | undefined);
56
+ sizes?: (any | undefined);
57
+ title?: (any | undefined);
58
+ type?: (any | undefined);
59
+ } | { [x: string]: any }>;
60
+ historyWithQuery: {
61
+
62
+ };
63
+ history: {
64
+ type: "browser" | "hash" | "memory";
65
+ };
66
+ headScripts: Array<string | {
67
+ src?: (string | undefined);
68
+ } | {
69
+ content?: (string | undefined);
70
+ } | { [x: string]: any }>;
71
+ esbuildMinifyIIFE: boolean;
72
+ conventionRoutes: {
73
+ base?: (string | undefined);
74
+ exclude?: (Array<any> | undefined);
75
+ };
76
+ conventionLayout: boolean;
77
+ base: string;
78
+ analyze: {
79
+
80
+ };
81
+ writeToDisk: boolean;
82
+ theme: { [x: string]: any };
83
+ targets: { [x: string]: any };
84
+ svgr: { [x: string]: any };
85
+ svgo: { [x: string]: any } | boolean;
86
+ styleLoader: { [x: string]: any };
87
+ srcTranspilerOptions: {
88
+ esbuild?: ({ [x: string]: any } | undefined);
89
+ swc?: ({ [x: string]: any } | undefined);
90
+ };
91
+ srcTranspiler: "babel" | "esbuild" | "swc" | "none";
92
+ sassLoader: { [x: string]: any };
93
+ runtimePublicPath: {
94
+
95
+ };
96
+ purgeCSS: { [x: string]: any };
97
+ publicPath: string;
98
+ proxy: { [x: string]: any } | Array<any>;
99
+ postcssLoader: { [x: string]: any };
100
+ outputPath: string;
101
+ normalCSSLoaderModules: { [x: string]: any };
102
+ mfsu: {
103
+ cacheDirectory?: (string | undefined);
104
+ chainWebpack?: (((...args: any[]) => unknown) | undefined);
105
+ esbuild?: (boolean | undefined);
106
+ exclude?: (Array<string | any> | undefined);
107
+ include?: (Array<string> | undefined);
108
+ mfName?: (string | undefined);
109
+ remoteAliases?: (Array<string> | undefined);
110
+ remoteName?: (string | undefined);
111
+ runtimePublicPath?: (boolean | undefined);
112
+ shared?: ({ [x: string]: any } | undefined);
113
+ strategy?: ("eager" | "normal" | undefined);
114
+ } | boolean;
115
+ mdx: {
116
+ loader?: (string | undefined);
117
+ loaderOptions?: ({ [x: string]: any } | undefined);
118
+ };
119
+ manifest: {
120
+ basePath?: (string | undefined);
121
+ fileName?: (string | undefined);
122
+ };
123
+ lessLoader: { [x: string]: any };
124
+ jsMinifierOptions: { [x: string]: any };
125
+ jsMinifier: "esbuild" | "swc" | "terser" | "uglifyJs" | "none";
126
+ inlineLimit: number;
127
+ ignoreMomentLocale: boolean;
128
+ https: {
129
+ cert?: (string | undefined);
130
+ hosts?: (Array<string> | undefined);
131
+ http2?: (boolean | undefined);
132
+ key?: (string | undefined);
133
+ };
134
+ hash: boolean;
135
+ forkTSChecker: { [x: string]: any };
136
+ fastRefresh: boolean;
137
+ extraPostCSSPlugins: Array<any>;
138
+ extraBabelPresets: Array<string | Array<any>>;
139
+ extraBabelPlugins: Array<string | Array<any>>;
140
+ extraBabelIncludes: Array<string | any>;
141
+ externals: { [x: string]: any } | string | ((...args: any[]) => unknown);
142
+ esm: {
143
+
144
+ };
145
+ devtool: "cheap-source-map" | "cheap-module-source-map" | "eval" | "eval-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | "source-map" | "hidden-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "inline-source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | boolean;
146
+ depTranspiler: "babel" | "esbuild" | "swc" | "none";
147
+ define: { [x: string]: any };
148
+ deadCode: {
149
+ context?: (string | undefined);
150
+ detectUnusedExport?: (boolean | undefined);
151
+ detectUnusedFiles?: (boolean | undefined);
152
+ exclude?: (Array<string> | undefined);
153
+ failOnHint?: (boolean | undefined);
154
+ patterns?: (Array<string> | undefined);
155
+ };
156
+ cssMinifierOptions: { [x: string]: any };
157
+ cssMinifier: "cssnano" | "esbuild" | "parcelCSS" | "none";
158
+ cssLoaderModules: { [x: string]: any };
159
+ cssLoader: { [x: string]: any };
160
+ copy: Array<{
161
+ from: string;
162
+ to: string;
163
+ } | string>;
164
+ checkDepCssModules?: boolean;
165
+ cacheDirectoryPath: string;
166
+ babelLoaderCustomize: string;
167
+ autoprefixer: { [x: string]: any };
168
+ autoCSSModules: boolean;
169
+ alias: { [x: string]: any };
170
+ crossorigin: boolean | {
171
+ includes?: (Array<any> | undefined);
172
+ };
173
+ esmi: {
174
+ cdnOrigin: string;
175
+ shimUrl?: (string | undefined);
176
+ };
177
+ exportStatic: {
178
+ extraRoutePaths?: (((...args: any[]) => unknown) | Array<string> | undefined);
179
+ };
180
+ favicons: Array<string>;
181
+ helmet: boolean;
182
+ icons: {
183
+ autoInstall?: ({
184
+
185
+ } | undefined);
186
+ defaultComponentConfig?: ({
187
+
188
+ } | undefined);
189
+ alias?: ({
190
+
191
+ } | undefined);
192
+ include?: (Array<string> | undefined);
193
+ };
194
+ mock: {
195
+ exclude?: (Array<string> | undefined);
196
+ include?: (Array<string> | undefined);
197
+ };
198
+ mpa: {
199
+ template?: (string | undefined);
200
+ layout?: (string | undefined);
201
+ getConfigFromEntryFile?: (boolean | undefined);
202
+ entry?: ({
203
+
204
+ } | undefined);
205
+ };
206
+ phantomDependency: {
207
+ exclude?: (Array<string> | undefined);
208
+ };
209
+ polyfill: {
210
+ imports?: (Array<string> | undefined);
211
+ };
212
+ routePrefetch: {
213
+
214
+ };
215
+ terminal: {
216
+
217
+ };
218
+ tmpFiles: boolean;
219
+ clientLoader: {
220
+
221
+ };
222
+ routeProps: {
223
+
224
+ };
225
+ ssr: {
226
+ serverBuildPath?: (string | undefined);
227
+ platform?: (string | undefined);
228
+ builder?: ("esbuild" | "webpack" | undefined);
229
+ };
230
+ lowImport: {
231
+ libs?: (Array<any> | undefined);
232
+ css?: (string | undefined);
233
+ };
234
+ vite: {
235
+
236
+ };
237
+ apiRoute: {
238
+ platform?: (string | undefined);
239
+ };
240
+ monorepoRedirect: boolean | {
241
+ srcDir?: (Array<string> | undefined);
242
+ exclude?: (Array<any> | undefined);
243
+ peerDeps?: (boolean | undefined);
244
+ };
245
+ test: {
246
+
247
+ };
248
+ clickToComponent: {
249
+ /** 默认情况下,点击将默认编辑器为vscode, 你可以设置编辑器 vscode 或者 vscode-insiders */
250
+ editor?: (string | undefined);
251
+ };
252
+ legacy: {
253
+ buildOnly?: (boolean | undefined);
254
+ nodeModulesTransform?: (boolean | undefined);
255
+ checkOutput?: (boolean | undefined);
256
+ };
257
+ /** 设置 babel class-properties 启用 loose
258
+ @doc https://umijs.org/docs/api/config#classpropertiesloose */
259
+ classPropertiesLoose: boolean | {
260
+
261
+ };
262
+ ui: {
263
+
264
+ };
265
+ hmrGuardian: boolean;
266
+ verifyCommit: {
267
+ scope?: (Array<string> | undefined);
268
+ allowEmoji?: (boolean | undefined);
269
+ };
270
+ run: {
271
+ globals?: (Array<string> | undefined);
272
+ };
273
+ antd: {
274
+ configProvider?: ({ [x: string]: any } | undefined);
275
+ dark?: (boolean | undefined);
276
+ compact?: (boolean | undefined);
277
+ import?: (boolean | undefined);
278
+ style?: ("less" | "css" | undefined);
279
+ theme?: ({ [x: string]: any } | undefined);
280
+ appConfig?: ({ [x: string]: any } | undefined);
281
+ momentPicker?: (boolean | undefined);
282
+ styleProvider?: ({ [x: string]: any } | undefined);
283
+ };
284
+ };
285
+
286
+ type PrettifyWithCloseable<T> = {
287
+ [K in keyof T]: T[K] | false;
288
+ } & {};
289
+
290
+ export type IConfigFromPlugins = PrettifyWithCloseable<
291
+ IConfigFromPluginsJoi & Partial<IConfigTypes>
292
+ >;