iglooform 3.4.0 → 3.4.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 (298) hide show
  1. package/.dumi/tmp/core/EmptyRoute.d.ts +1 -0
  2. package/.dumi/tmp/core/defineApp.d.ts +22 -0
  3. package/.dumi/tmp/core/defineApp.ts +1 -1
  4. package/.dumi/tmp/core/exportStaticRuntimePlugin.d.ts +1 -0
  5. package/.dumi/tmp/core/helmet.d.ts +3 -0
  6. package/.dumi/tmp/core/helmet.ts +1 -1
  7. package/.dumi/tmp/core/helmetContext.d.ts +1 -0
  8. package/.dumi/tmp/core/history.d.ts +4 -0
  9. package/.dumi/tmp/core/history.ts +1 -1
  10. package/.dumi/tmp/core/historyIntelli.d.ts +50 -0
  11. package/.dumi/tmp/core/historyIntelli.ts +1 -1
  12. package/.dumi/tmp/core/plugin.d.ts +25 -0
  13. package/.dumi/tmp/core/plugin.ts +2 -2
  14. package/.dumi/tmp/core/pluginConfig.d.ts +315 -0
  15. package/.dumi/tmp/core/polyfill.d.ts +198 -0
  16. package/.dumi/tmp/core/polyfill.ts +197 -197
  17. package/.dumi/tmp/core/route.d.ts +230 -0
  18. package/.dumi/tmp/core/route.tsx +33 -33
  19. package/.dumi/tmp/core/terminal.d.ts +14 -0
  20. package/.dumi/tmp/dumi/exports.d.ts +2 -0
  21. package/.dumi/tmp/dumi/exports.ts +1 -1
  22. package/.dumi/tmp/dumi/locales/config.d.ts +90 -0
  23. package/.dumi/tmp/dumi/locales/runtime.d.ts +2 -0
  24. package/.dumi/tmp/dumi/locales/runtime.tsx +2 -2
  25. package/.dumi/tmp/dumi/meta/atoms.d.ts +1 -0
  26. package/.dumi/tmp/dumi/meta/index.d.ts +203 -0
  27. package/.dumi/tmp/dumi/meta/index.ts +33 -33
  28. package/.dumi/tmp/dumi/meta/runtime.d.ts +3 -0
  29. package/.dumi/tmp/dumi/meta/runtime.ts +1 -1
  30. package/.dumi/tmp/dumi/meta/tabs.d.ts +1 -0
  31. package/.dumi/tmp/dumi/theme/ContextWrapper.d.ts +1 -0
  32. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +1 -1
  33. package/.dumi/tmp/dumi/theme/builtins/API.d.ts +1 -0
  34. package/.dumi/tmp/dumi/theme/builtins/API.ts +1 -1
  35. package/.dumi/tmp/dumi/theme/builtins/Badge.d.ts +1 -0
  36. package/.dumi/tmp/dumi/theme/builtins/Badge.ts +1 -1
  37. package/.dumi/tmp/dumi/theme/builtins/Container.d.ts +1 -0
  38. package/.dumi/tmp/dumi/theme/builtins/Container.ts +1 -1
  39. package/.dumi/tmp/dumi/theme/builtins/Previewer.d.ts +1 -0
  40. package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +1 -1
  41. package/.dumi/tmp/dumi/theme/builtins/SourceCode.d.ts +1 -0
  42. package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +1 -1
  43. package/.dumi/tmp/dumi/theme/builtins/Table.d.ts +1 -0
  44. package/.dumi/tmp/dumi/theme/builtins/Table.ts +1 -1
  45. package/.dumi/tmp/dumi/theme/builtins/Tree.d.ts +1 -0
  46. package/.dumi/tmp/dumi/theme/builtins/Tree.ts +1 -1
  47. package/.dumi/tmp/dumi/theme/layouts/DocLayout.d.ts +1 -0
  48. package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +1 -1
  49. package/.dumi/tmp/dumi/theme/loading.d.ts +4 -0
  50. package/.dumi/tmp/dumi/theme/loading.tsx +1 -1
  51. package/.dumi/tmp/dumi/theme/slots/ColorSwitch.d.ts +1 -0
  52. package/.dumi/tmp/dumi/theme/slots/ColorSwitch.ts +1 -1
  53. package/.dumi/tmp/dumi/theme/slots/Content.d.ts +1 -0
  54. package/.dumi/tmp/dumi/theme/slots/Content.ts +1 -1
  55. package/.dumi/tmp/dumi/theme/slots/ContentFooter.d.ts +1 -0
  56. package/.dumi/tmp/dumi/theme/slots/ContentFooter.ts +1 -1
  57. package/.dumi/tmp/dumi/theme/slots/ContentTabs.d.ts +1 -0
  58. package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +1 -1
  59. package/.dumi/tmp/dumi/theme/slots/Features.d.ts +1 -0
  60. package/.dumi/tmp/dumi/theme/slots/Features.ts +1 -1
  61. package/.dumi/tmp/dumi/theme/slots/Footer.d.ts +1 -0
  62. package/.dumi/tmp/dumi/theme/slots/Footer.ts +1 -1
  63. package/.dumi/tmp/dumi/theme/slots/Header.d.ts +1 -0
  64. package/.dumi/tmp/dumi/theme/slots/Header.ts +1 -1
  65. package/.dumi/tmp/dumi/theme/slots/HeaderExtra.d.ts +1 -0
  66. package/.dumi/tmp/dumi/theme/slots/HeaderExtra.ts +1 -1
  67. package/.dumi/tmp/dumi/theme/slots/Hero.d.ts +1 -0
  68. package/.dumi/tmp/dumi/theme/slots/Hero.ts +1 -1
  69. package/.dumi/tmp/dumi/theme/slots/HeroTitle.d.ts +1 -0
  70. package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +1 -1
  71. package/.dumi/tmp/dumi/theme/slots/LangSwitch.d.ts +1 -0
  72. package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +1 -1
  73. package/.dumi/tmp/dumi/theme/slots/Logo.d.ts +1 -0
  74. package/.dumi/tmp/dumi/theme/slots/Logo.ts +1 -1
  75. package/.dumi/tmp/dumi/theme/slots/Navbar.d.ts +1 -0
  76. package/.dumi/tmp/dumi/theme/slots/Navbar.ts +1 -1
  77. package/.dumi/tmp/dumi/theme/slots/NavbarExtra.d.ts +1 -0
  78. package/.dumi/tmp/dumi/theme/slots/NavbarExtra.ts +1 -1
  79. package/.dumi/tmp/dumi/theme/slots/NotFound.d.ts +1 -0
  80. package/.dumi/tmp/dumi/theme/slots/NotFound.ts +1 -1
  81. package/.dumi/tmp/dumi/theme/slots/PreviewerActions.d.ts +1 -0
  82. package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +1 -1
  83. package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.d.ts +1 -0
  84. package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +1 -1
  85. package/.dumi/tmp/dumi/theme/slots/RtlSwitch.d.ts +1 -0
  86. package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +1 -1
  87. package/.dumi/tmp/dumi/theme/slots/SearchBar.d.ts +2 -0
  88. package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +2 -2
  89. package/.dumi/tmp/dumi/theme/slots/SearchResult.d.ts +1 -0
  90. package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +1 -1
  91. package/.dumi/tmp/dumi/theme/slots/Sidebar.d.ts +1 -0
  92. package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +1 -1
  93. package/.dumi/tmp/dumi/theme/slots/SocialIcon.d.ts +1 -0
  94. package/.dumi/tmp/dumi/theme/slots/SocialIcon.ts +1 -1
  95. package/.dumi/tmp/dumi/theme/slots/Toc.d.ts +1 -0
  96. package/.dumi/tmp/dumi/theme/slots/Toc.ts +1 -1
  97. package/.dumi/tmp/exports.d.ts +11 -0
  98. package/.dumi/tmp/exports.ts +5 -5
  99. package/.dumi/tmp/plugin-antd/runtime.d.ts +1 -0
  100. package/.dumi/tmp/plugin-html2sketch/index.d.ts +1 -0
  101. package/.dumi/tmp/testBrowser.d.ts +10 -0
  102. package/.dumi/tmp/testBrowser.tsx +3 -3
  103. package/.dumi/tmp/umi.d.ts +4 -0
  104. package/.dumi/tmp/umi.ts +4 -4
  105. package/es/admin-amount/style/index.d.ts +0 -0
  106. package/es/admin-upload/style/index.d.ts +1 -0
  107. package/es/alert-message/style/index.d.ts +1 -0
  108. package/es/babel-plugin-import-option.d.ts +7 -0
  109. package/es/back-top/index.d.ts +5 -0
  110. package/es/back-top/style/index.d.ts +1 -0
  111. package/es/button/style/index.d.ts +1 -0
  112. package/es/card-detail/style/index.d.ts +1 -0
  113. package/es/checkbox/style/index.d.ts +1 -0
  114. package/es/claim-list/style/index.d.ts +1 -0
  115. package/es/config-provider.d.ts +9 -0
  116. package/es/confirmation/style/index.d.ts +1 -0
  117. package/es/currency-context/index.d.ts +8 -0
  118. package/es/currency-context/style/index.d.ts +0 -0
  119. package/es/date-picker/style/index.d.ts +1 -0
  120. package/es/declaration/style/index.d.ts +1 -0
  121. package/es/detail-panel/style/index.d.ts +1 -0
  122. package/es/documents/style/index.d.ts +1 -0
  123. package/es/filter/style/index.d.ts +1 -0
  124. package/es/form/addable-section/style/index.d.ts +1 -0
  125. package/es/form/divider/style/index.d.ts +1 -0
  126. package/es/form/element/style/index.d.ts +1 -0
  127. package/es/form/hstep/style/index.d.ts +1 -0
  128. package/es/form/hsteps/style/index.d.ts +1 -0
  129. package/es/form/login/style/index.d.ts +1 -0
  130. package/es/form/messages.d.ts +48 -0
  131. package/es/form/page/style/index.d.ts +1 -0
  132. package/es/form/pages/style/index.d.ts +1 -0
  133. package/es/form/render/style/index.d.ts +1 -0
  134. package/es/form/section/style/index.d.ts +1 -0
  135. package/es/form/step/style/index.d.ts +1 -0
  136. package/es/form/steps/style/index.d.ts +1 -0
  137. package/es/form/style/index.d.ts +1 -0
  138. package/es/free-form/addable-section/style/index.d.ts +1 -0
  139. package/es/free-form/element/style/index.d.ts +1 -0
  140. package/es/free-form/messages.d.ts +48 -0
  141. package/es/free-form/page/style/index.d.ts +1 -0
  142. package/es/free-form/pages/style/index.d.ts +1 -0
  143. package/es/free-form/section/style/index.d.ts +1 -0
  144. package/es/free-form/step/style/index.d.ts +1 -0
  145. package/es/free-form/steps/style/index.d.ts +1 -0
  146. package/es/free-form/style/index.d.ts +1 -0
  147. package/es/home-menu/style/index.d.ts +1 -0
  148. package/es/input/style/amount/index.d.ts +2 -0
  149. package/es/input/style/index.d.ts +2 -0
  150. package/es/input/style/input-date/index.d.ts +2 -0
  151. package/es/input/style/otp/index.d.ts +2 -0
  152. package/es/input/style/phone-number/index.d.ts +2 -0
  153. package/es/input/style/text-area/index.d.ts +2 -0
  154. package/es/layout/defaultHeader.d.ts +4 -0
  155. package/es/layout/style/index.d.ts +1 -0
  156. package/es/locale/en-US.d.ts +2 -0
  157. package/es/locale/format-message.d.ts +10 -0
  158. package/es/locale/formatted-message.d.ts +6 -0
  159. package/es/locale/id-ID.d.ts +2 -0
  160. package/es/locale/index.d.ts +4 -0
  161. package/es/locale/locale-context.d.ts +12 -0
  162. package/es/locale/locale-provider.d.ts +13 -0
  163. package/es/locale/ms-MY.d.ts +2 -0
  164. package/es/locale/th-TH.d.ts +2 -0
  165. package/es/locale/vi-VN.d.ts +2 -0
  166. package/es/locale/zh-CN.d.ts +2 -0
  167. package/es/locale/zh-TW.d.ts +2 -0
  168. package/es/login-page/index.d.ts +7 -0
  169. package/es/login-page/style/index.d.ts +1 -0
  170. package/es/media/file-icon.d.ts +9 -0
  171. package/es/media/style/index.d.ts +1 -0
  172. package/es/message/style/index.d.ts +1 -0
  173. package/es/mobile-insurer-detail/style/index.d.ts +1 -0
  174. package/es/mobile-insurer-list/style/index.d.ts +1 -0
  175. package/es/modal/style/index.d.ts +1 -0
  176. package/es/ocr/micro-blink/style/index.d.ts +1 -0
  177. package/es/platform/index.d.ts +2 -0
  178. package/es/platform/platform-card/index.d.ts +12 -0
  179. package/es/platform/platform-card/style/index.d.ts +1 -0
  180. package/es/platform/switch-platform/index.d.ts +12 -0
  181. package/es/platform/switch-platform/style/index.d.ts +1 -0
  182. package/es/policy-list/style/index.d.ts +1 -0
  183. package/es/radio/style/index.d.ts +1 -0
  184. package/es/search-box/style/index.d.ts +1 -0
  185. package/es/select/style/index.d.ts +1 -0
  186. package/es/status-box/style/index.d.ts +1 -0
  187. package/es/table/style/index.d.ts +1 -0
  188. package/es/tabs/index.d.ts +15 -0
  189. package/es/tabs/style/index.d.ts +1 -0
  190. package/es/typography/style/index.d.ts +1 -0
  191. package/es/upload/style/index.d.ts +1 -0
  192. package/es/upload-photo/index.js +15 -4
  193. package/es/upload-photo/media.d.ts +7 -0
  194. package/es/upload-photo/style/index.d.ts +1 -0
  195. package/es/upload-preview/style/index.d.ts +1 -0
  196. package/es/utils/agent-detect.d.ts +1 -0
  197. package/es/utils/tools.d.ts +5 -0
  198. package/es/utils/useAsyncEffect.d.ts +3 -0
  199. package/lib/admin-amount/style/index.d.ts +0 -0
  200. package/lib/admin-upload/style/index.d.ts +1 -0
  201. package/lib/alert-message/style/index.d.ts +1 -0
  202. package/lib/babel-plugin-import-option.d.ts +7 -0
  203. package/lib/back-top/index.d.ts +5 -0
  204. package/lib/back-top/style/index.d.ts +1 -0
  205. package/lib/button/style/index.d.ts +1 -0
  206. package/lib/card-detail/style/index.d.ts +1 -0
  207. package/lib/checkbox/style/index.d.ts +1 -0
  208. package/lib/claim-list/style/index.d.ts +1 -0
  209. package/lib/config-provider.d.ts +9 -0
  210. package/lib/confirmation/style/index.d.ts +1 -0
  211. package/lib/currency-context/index.d.ts +8 -0
  212. package/lib/currency-context/style/index.d.ts +0 -0
  213. package/lib/date-picker/style/index.d.ts +1 -0
  214. package/lib/declaration/style/index.d.ts +1 -0
  215. package/lib/detail-panel/style/index.d.ts +1 -0
  216. package/lib/documents/style/index.d.ts +1 -0
  217. package/lib/filter/style/index.d.ts +1 -0
  218. package/lib/form/addable-section/style/index.d.ts +1 -0
  219. package/lib/form/divider/style/index.d.ts +1 -0
  220. package/lib/form/element/style/index.d.ts +1 -0
  221. package/lib/form/hstep/style/index.d.ts +1 -0
  222. package/lib/form/hsteps/style/index.d.ts +1 -0
  223. package/lib/form/login/style/index.d.ts +1 -0
  224. package/lib/form/messages.d.ts +48 -0
  225. package/lib/form/page/style/index.d.ts +1 -0
  226. package/lib/form/pages/style/index.d.ts +1 -0
  227. package/lib/form/render/style/index.d.ts +1 -0
  228. package/lib/form/section/style/index.d.ts +1 -0
  229. package/lib/form/step/style/index.d.ts +1 -0
  230. package/lib/form/steps/style/index.d.ts +1 -0
  231. package/lib/form/style/index.d.ts +1 -0
  232. package/lib/free-form/addable-section/style/index.d.ts +1 -0
  233. package/lib/free-form/element/style/index.d.ts +1 -0
  234. package/lib/free-form/messages.d.ts +48 -0
  235. package/lib/free-form/page/style/index.d.ts +1 -0
  236. package/lib/free-form/pages/style/index.d.ts +1 -0
  237. package/lib/free-form/section/style/index.d.ts +1 -0
  238. package/lib/free-form/step/style/index.d.ts +1 -0
  239. package/lib/free-form/steps/style/index.d.ts +1 -0
  240. package/lib/free-form/style/index.d.ts +1 -0
  241. package/lib/home-menu/style/index.d.ts +1 -0
  242. package/lib/input/style/amount/index.d.ts +2 -0
  243. package/lib/input/style/index.d.ts +2 -0
  244. package/lib/input/style/input-date/index.d.ts +2 -0
  245. package/lib/input/style/otp/index.d.ts +2 -0
  246. package/lib/input/style/phone-number/index.d.ts +2 -0
  247. package/lib/input/style/text-area/index.d.ts +2 -0
  248. package/lib/layout/defaultHeader.d.ts +4 -0
  249. package/lib/layout/style/index.d.ts +1 -0
  250. package/lib/locale/en-US.d.ts +2 -0
  251. package/lib/locale/format-message.d.ts +10 -0
  252. package/lib/locale/formatted-message.d.ts +6 -0
  253. package/lib/locale/id-ID.d.ts +2 -0
  254. package/lib/locale/index.d.ts +4 -0
  255. package/lib/locale/locale-context.d.ts +12 -0
  256. package/lib/locale/locale-provider.d.ts +13 -0
  257. package/lib/locale/ms-MY.d.ts +2 -0
  258. package/lib/locale/th-TH.d.ts +2 -0
  259. package/lib/locale/vi-VN.d.ts +2 -0
  260. package/lib/locale/zh-CN.d.ts +2 -0
  261. package/lib/locale/zh-TW.d.ts +2 -0
  262. package/lib/login-page/index.d.ts +7 -0
  263. package/lib/login-page/style/index.d.ts +1 -0
  264. package/lib/media/file-icon.d.ts +9 -0
  265. package/lib/media/style/index.d.ts +1 -0
  266. package/lib/message/style/index.d.ts +1 -0
  267. package/lib/mobile-insurer-detail/style/index.d.ts +1 -0
  268. package/lib/mobile-insurer-list/style/index.d.ts +1 -0
  269. package/lib/modal/style/index.d.ts +1 -0
  270. package/lib/ocr/micro-blink/style/index.d.ts +1 -0
  271. package/lib/platform/index.d.ts +2 -0
  272. package/lib/platform/platform-card/index.d.ts +12 -0
  273. package/lib/platform/platform-card/style/index.d.ts +1 -0
  274. package/lib/platform/switch-platform/index.d.ts +12 -0
  275. package/lib/platform/switch-platform/style/index.d.ts +1 -0
  276. package/lib/policy-list/style/index.d.ts +1 -0
  277. package/lib/radio/style/index.d.ts +1 -0
  278. package/lib/search-box/style/index.d.ts +1 -0
  279. package/lib/select/style/index.d.ts +1 -0
  280. package/lib/status-box/style/index.d.ts +1 -0
  281. package/lib/table/style/index.d.ts +1 -0
  282. package/lib/tabs/index.d.ts +15 -0
  283. package/lib/tabs/style/index.d.ts +1 -0
  284. package/lib/typography/style/index.d.ts +1 -0
  285. package/lib/upload/style/index.d.ts +1 -0
  286. package/lib/upload-photo/index.js +15 -4
  287. package/lib/upload-photo/media.d.ts +7 -0
  288. package/lib/upload-photo/style/index.d.ts +1 -0
  289. package/lib/upload-preview/style/index.d.ts +1 -0
  290. package/lib/utils/agent-detect.d.ts +1 -0
  291. package/lib/utils/tools.d.ts +5 -0
  292. package/lib/utils/useAsyncEffect.d.ts +3 -0
  293. package/package.json +1 -1
  294. package/yarn-error.log +16168 -0
  295. package/es/upload-photo/index.d.ts +0 -28
  296. package/es/utils/form-utils.d.ts +0 -79
  297. package/lib/upload-photo/index.d.ts +0 -28
  298. package/lib/utils/form-utils.d.ts +0 -79
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import './style';
3
+ interface Props {
4
+ platforms: (string | {
5
+ name: string;
6
+ key: string;
7
+ })[];
8
+ currentPlatform: string;
9
+ onChange: (platform: string) => any;
10
+ }
11
+ declare const SwitchPlatform: FC<Props>;
12
+ export default SwitchPlatform;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { TabsProps } from 'antd';
3
+ import './style';
4
+ interface IglooTabsProps extends TabsProps {
5
+ }
6
+ export declare const TabPane: React.FC<import("antd").TabPaneProps>;
7
+ /**
8
+ * Tab
9
+ * @param {*} 所有antd的tabs
10
+ */
11
+ declare function Tabs(props: IglooTabsProps): import("react/jsx-runtime").JSX.Element;
12
+ declare namespace Tabs {
13
+ var TabPane: React.FC<import("antd").TabPaneProps>;
14
+ }
15
+ export default Tabs;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -199,11 +199,22 @@ var UploadPhoto = function UploadPhoto(props) {
199
199
  return setFiles(_files);
200
200
  });
201
201
  };
202
-
203
- // 有初始值的处理 (不是初始化)
204
202
  useEffect(function () {
205
- if (Array.isArray(value) && value.length && files.length === 0) {
206
- mapFilesFromValue(value);
203
+ if (Array.isArray(value) && value.length) {
204
+ // 比较当前 value 和 files 中的 url,如果不一致则重新映射
205
+ var currentUrls = files.map(function (f) {
206
+ return f.url;
207
+ }).filter(Boolean);
208
+ var newUrls = value;
209
+
210
+ // 如果 URL 数组不匹配,重新映射
211
+ if (JSON.stringify(currentUrls.sort()) !== JSON.stringify(newUrls.sort())) {
212
+ mapFilesFromValue(newUrls);
213
+ }
214
+ } else if (!value && files.length > 0) {
215
+ // 如果外部清空了值,也清空内部状态
216
+ setFiles([]);
217
+ setMasks([]);
207
218
  }
208
219
  }, [value]);
209
220
  useEffect(function () {
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ declare const MediaItem: FC<{
3
+ type: string;
4
+ src: string;
5
+ className: any;
6
+ }>;
7
+ export default MediaItem;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ export declare function isMobileAgent(): boolean;
@@ -0,0 +1,5 @@
1
+ export declare const parseFileSize: (size: number) => string;
2
+ export declare function classifyType(mimeType: string): string;
3
+ export declare const downloadByUrl: (filename: string, url: string) => void;
4
+ export declare const getFileNameByUrl: (fileUrl: string) => string;
5
+ export declare const getResourceContentType: (resourceUrl: string) => Promise<string | undefined>;
@@ -0,0 +1,3 @@
1
+ import type { DependencyList } from 'react';
2
+ declare function useAsyncEffect(effect: () => AsyncGenerator<void, void, void> | Promise<void>, deps?: DependencyList): void;
3
+ export default useAsyncEffect;
File without changes
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ libraryName: string;
3
+ libraryDirectory: string;
4
+ style: boolean;
5
+ customName: (name: string) => string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import './style';
3
+ import { BackTopProps } from 'antd';
4
+ declare const BackToTop: FC<BackTopProps>;
5
+ export default BackToTop;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,9 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ConfigProviderProps } from 'antd/es/config-provider';
3
+ export declare let staticAntdConfig: ConfigProviderProps;
4
+ declare const ConfigProvider: FC<{
5
+ currentLang: string;
6
+ config?: ConfigProviderProps;
7
+ children?: ReactNode;
8
+ }>;
9
+ export default ConfigProvider;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface CurrencyMethod {
3
+ exchange: (value: any) => any;
4
+ exchangeBack: (value: any) => any;
5
+ currentCurrency: string;
6
+ }
7
+ declare const _default: import("react").Context<CurrencyMethod>;
8
+ export default _default;
File without changes
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,48 @@
1
+ declare const messages: {
2
+ default: string;
3
+ required: string;
4
+ enum: string;
5
+ whitespace: string;
6
+ date: {
7
+ format: string;
8
+ parse: string;
9
+ invalid: string;
10
+ };
11
+ types: {
12
+ string: string;
13
+ method: string;
14
+ array: string;
15
+ object: string;
16
+ number: string;
17
+ date: string;
18
+ boolean: string;
19
+ integer: string;
20
+ float: string;
21
+ regexp: string;
22
+ email: string;
23
+ url: string;
24
+ hex: string;
25
+ };
26
+ string: {
27
+ len: string;
28
+ min: string;
29
+ max: string;
30
+ range: string;
31
+ };
32
+ number: {
33
+ len: string;
34
+ min: string;
35
+ max: string;
36
+ range: string;
37
+ };
38
+ array: {
39
+ len: string;
40
+ min: string;
41
+ max: string;
42
+ range: string;
43
+ };
44
+ pattern: {
45
+ mismatch: string;
46
+ };
47
+ };
48
+ export default messages;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,48 @@
1
+ declare const messages: {
2
+ default: string;
3
+ required: string;
4
+ enum: string;
5
+ whitespace: string;
6
+ date: {
7
+ format: string;
8
+ parse: string;
9
+ invalid: string;
10
+ };
11
+ types: {
12
+ string: string;
13
+ method: string;
14
+ array: string;
15
+ object: string;
16
+ number: string;
17
+ date: string;
18
+ boolean: string;
19
+ integer: string;
20
+ float: string;
21
+ regexp: string;
22
+ email: string;
23
+ url: string;
24
+ hex: string;
25
+ };
26
+ string: {
27
+ len: string;
28
+ min: string;
29
+ max: string;
30
+ range: string;
31
+ };
32
+ number: {
33
+ len: string;
34
+ min: string;
35
+ max: string;
36
+ range: string;
37
+ };
38
+ array: {
39
+ len: string;
40
+ min: string;
41
+ max: string;
42
+ range: string;
43
+ };
44
+ pattern: {
45
+ mismatch: string;
46
+ };
47
+ };
48
+ export default messages;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import './default-input.less';
2
+ import './common.less';
@@ -0,0 +1,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../index';
2
+ import './index.less';
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import './style';
3
+ declare const DefaultHeader: FC<any>;
4
+ export default DefaultHeader;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,10 @@
1
+ export declare let staticLang: {
2
+ current: string;
3
+ };
4
+ declare const formatMessage: (props: {
5
+ id: string;
6
+ values?: {
7
+ [key: string]: any;
8
+ } | undefined;
9
+ }) => any;
10
+ export default formatMessage;
@@ -0,0 +1,6 @@
1
+ export default function (props: {
2
+ id: string;
3
+ values?: {
4
+ [key: string]: any;
5
+ };
6
+ }): any;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,4 @@
1
+ export { default as LocaleProvider } from './locale-provider';
2
+ export { default as LocaleContext } from './locale-context';
3
+ export { default as FormattedMessage } from './formatted-message';
4
+ export { default as staticFormatMessage } from './format-message';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface LocaleContextType {
3
+ formatMessage: (propr: {
4
+ id: string;
5
+ values?: {
6
+ [key: string]: any;
7
+ };
8
+ }) => any;
9
+ currentLang: string;
10
+ }
11
+ declare const _default: import("react").Context<LocaleContextType>;
12
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ConfigProviderProps } from 'antd/es/config-provider';
3
+ export declare const locales: {
4
+ [key: string]: {
5
+ [id: string]: string;
6
+ };
7
+ };
8
+ declare const LocaleProvider: FC<{
9
+ currentLang: string;
10
+ antdConfig?: ConfigProviderProps;
11
+ children?: ReactNode;
12
+ }>;
13
+ export default LocaleProvider;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,2 @@
1
+ declare const messages: any;
2
+ export default messages;
@@ -0,0 +1,7 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import './style';
3
+ interface Props {
4
+ showAppStore?: boolean;
5
+ }
6
+ declare const LoginPage: FC<PropsWithChildren<Props>>;
7
+ export default LoginPage;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,9 @@
1
+ import type { FC } from 'react';
2
+ import './style/file-icon.less';
3
+ type Props = {
4
+ type: string;
5
+ onDownloadClick?: () => void;
6
+ disabledDownload?: boolean;
7
+ };
8
+ declare const FileIcon: FC<Props>;
9
+ export default FileIcon;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ export { default as PlatformCard } from './platform-card';
2
+ export { default as SwitchPlatform } from './switch-platform';
@@ -0,0 +1,12 @@
1
+ import { FC, CSSProperties } from 'react';
2
+ import './style';
3
+ declare const PlatformCard: FC<{
4
+ platform: string | {
5
+ name: string;
6
+ key: string;
7
+ };
8
+ onClick: any;
9
+ className?: any;
10
+ style?: CSSProperties;
11
+ }>;
12
+ export default PlatformCard;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import './style';
3
+ interface Props {
4
+ platforms: (string | {
5
+ name: string;
6
+ key: string;
7
+ })[];
8
+ currentPlatform: string;
9
+ onChange: (platform: string) => any;
10
+ }
11
+ declare const SwitchPlatform: FC<Props>;
12
+ export default SwitchPlatform;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { TabsProps } from 'antd';
3
+ import './style';
4
+ interface IglooTabsProps extends TabsProps {
5
+ }
6
+ export declare const TabPane: React.FC<import("antd").TabPaneProps>;
7
+ /**
8
+ * Tab
9
+ * @param {*} 所有antd的tabs
10
+ */
11
+ declare function Tabs(props: IglooTabsProps): import("react/jsx-runtime").JSX.Element;
12
+ declare namespace Tabs {
13
+ var TabPane: React.FC<import("antd").TabPaneProps>;
14
+ }
15
+ export default Tabs;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';