linkmore-design 1.0.62 → 1.0.63

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 (314) hide show
  1. package/dist/AutoComplete/demos/basic.d.ts +3 -0
  2. package/dist/AutoComplete/index.d.ts +30 -0
  3. package/dist/AutoComplete/style/index.d.ts +1 -0
  4. package/dist/Avatar/demos/basic.d.ts +2 -0
  5. package/dist/Avatar/index.d.ts +3 -0
  6. package/dist/Avatar/style/index.d.ts +1 -0
  7. package/dist/Breadcrumb/demos/basic.d.ts +2 -0
  8. package/dist/Breadcrumb/demos/basic1.d.ts +2 -0
  9. package/dist/Breadcrumb/index.d.ts +4 -0
  10. package/dist/Breadcrumb/style/index.d.ts +1 -0
  11. package/dist/CardTable/utils.d.ts +1 -1
  12. package/dist/Col/demos/basic.d.ts +2 -0
  13. package/dist/Col/index.d.ts +3 -0
  14. package/dist/Col/style/index.d.ts +1 -0
  15. package/dist/Form/index.d.ts +1 -1
  16. package/dist/Grid/RowContext.d.ts +8 -0
  17. package/dist/Grid/col.d.ts +28 -0
  18. package/dist/Grid/demos/basic.d.ts +2 -0
  19. package/dist/Grid/hooks/useBreakpoint.d.ts +3 -0
  20. package/dist/Grid/index.d.ts +11 -0
  21. package/dist/Grid/row.d.ts +14 -0
  22. package/dist/Grid/style/index.d.ts +1 -0
  23. package/dist/Layout/demos/basic.d.ts +2 -0
  24. package/dist/Layout/index.d.ts +4 -0
  25. package/dist/Layout/style/index.d.ts +1 -0
  26. package/dist/LmEditTable/EditTable.d.ts +2 -0
  27. package/dist/LmEditTable/demos/colsort.d.ts +2 -0
  28. package/dist/LmEditTable/demos/size.d.ts +2 -0
  29. package/dist/LmEditTable/sortableBoxCol.d.ts +5 -0
  30. package/dist/LmEditTable/sortableItemCol.d.ts +1 -0
  31. package/dist/LmFilter/components/CustomSelectFilter.d.ts +4 -0
  32. package/dist/LmFilter/filterFns/index.d.ts +27 -17
  33. package/dist/LmFilter/utils.d.ts +2 -0
  34. package/dist/PageHeader/demos/basic.d.ts +2 -0
  35. package/dist/PageHeader/index.d.ts +24 -0
  36. package/dist/PageHeader/style/index.d.ts +1 -0
  37. package/dist/Popover/demos/basic.d.ts +2 -0
  38. package/dist/Popover/demos/basic1.d.ts +2 -0
  39. package/dist/Popover/index.d.ts +11 -0
  40. package/dist/Popover/style/index.d.ts +1 -0
  41. package/dist/Row/demos/basic.d.ts +2 -0
  42. package/dist/Row/index.d.ts +3 -0
  43. package/dist/Row/style/index.d.ts +1 -0
  44. package/dist/Tooltip/index.d.ts +43 -1
  45. package/dist/Typography/Base/Ellipsis.d.ts +14 -0
  46. package/dist/Typography/Base/EllipsisTooltip.d.ts +13 -0
  47. package/dist/Typography/Base/index.d.ts +54 -0
  48. package/dist/Typography/Editable.d.ts +20 -0
  49. package/dist/Typography/Link.d.ts +7 -0
  50. package/dist/Typography/Paragraph.d.ts +7 -0
  51. package/dist/Typography/Text.d.ts +8 -0
  52. package/dist/Typography/Title.d.ts +9 -0
  53. package/dist/Typography/Typography.d.ts +11 -0
  54. package/dist/Typography/demos/basic.d.ts +2 -0
  55. package/dist/Typography/hooks/useMergedConfig.d.ts +1 -0
  56. package/dist/Typography/hooks/useUpdatedEffect.d.ts +3 -0
  57. package/dist/Typography/index.d.ts +15 -0
  58. package/dist/Typography/style/index.d.ts +1 -0
  59. package/dist/_util/colors.d.ts +5 -0
  60. package/dist/_util/getRenderPropValue.d.ts +3 -0
  61. package/dist/_util/hooks/useFlexGapSupport.d.ts +2 -0
  62. package/dist/_util/hooks/useForceUpdate.d.ts +2 -0
  63. package/dist/_util/placements.d.ts +16 -0
  64. package/dist/_util/responsiveObserve.d.ts +21 -0
  65. package/dist/_util/styleChecker.d.ts +4 -0
  66. package/dist/_util/transButton.d.ts +9 -0
  67. package/dist/index.d.ts +14 -0
  68. package/dist/index.umd.js +17359 -8951
  69. package/dist/index.umd.min.js +6 -6
  70. package/es/AutoComplete/index.d.ts +30 -0
  71. package/es/AutoComplete/index.js +101 -0
  72. package/es/AutoComplete/style/index.css +505 -0
  73. package/es/AutoComplete/style/index.d.ts +1 -0
  74. package/es/AutoComplete/style/index.js +1 -0
  75. package/es/Avatar/index.d.ts +3 -0
  76. package/es/Avatar/index.js +3 -0
  77. package/es/Avatar/style/index.css +505 -0
  78. package/es/Avatar/style/index.d.ts +1 -0
  79. package/es/Avatar/style/index.js +1 -0
  80. package/es/Breadcrumb/index.d.ts +4 -0
  81. package/es/Breadcrumb/index.js +3 -0
  82. package/es/Breadcrumb/style/index.css +505 -0
  83. package/es/Breadcrumb/style/index.d.ts +1 -0
  84. package/es/Breadcrumb/style/index.js +1 -0
  85. package/es/Col/README.md.old +22 -0
  86. package/es/Col/index.d.ts +3 -0
  87. package/es/Col/index.js +2 -0
  88. package/es/Col/style/index.css +505 -0
  89. package/es/Col/style/index.d.ts +1 -0
  90. package/es/Col/style/index.js +1 -0
  91. package/es/Form/index.d.ts +1 -1
  92. package/es/Form/style/index.css +14 -14
  93. package/es/Grid/RowContext.d.ts +8 -0
  94. package/es/Grid/RowContext.js +3 -0
  95. package/es/Grid/col.d.ts +28 -0
  96. package/es/Grid/col.js +112 -0
  97. package/es/Grid/hooks/useBreakpoint.d.ts +3 -0
  98. package/es/Grid/hooks/useBreakpoint.js +24 -0
  99. package/es/Grid/index.d.ts +11 -0
  100. package/es/Grid/index.js +14 -0
  101. package/es/Grid/row.d.ts +14 -0
  102. package/es/Grid/row.js +142 -0
  103. package/es/Grid/style/index.css +505 -0
  104. package/es/Grid/style/index.d.ts +1 -0
  105. package/es/Grid/style/index.js +1 -0
  106. package/es/Layout/index.d.ts +4 -0
  107. package/es/Layout/index.js +3 -0
  108. package/es/Layout/style/index.css +505 -0
  109. package/es/Layout/style/index.d.ts +1 -0
  110. package/es/Layout/style/index.js +1 -0
  111. package/es/LmEditTable/EditTable.d.ts +2 -0
  112. package/es/LmEditTable/EditTable.js +170 -52
  113. package/es/LmEditTable/sortableBoxCol.d.ts +5 -0
  114. package/es/LmEditTable/sortableBoxCol.js +13 -0
  115. package/es/LmEditTable/sortableItemCol.d.ts +1 -0
  116. package/es/LmEditTable/sortableItemCol.js +48 -0
  117. package/es/LmFilter/{icon_placeholder.png → assets/empty.png} +0 -0
  118. package/es/LmFilter/clearFilter/index.js +3 -5
  119. package/es/LmFilter/complexFilter/drawer.js +24 -4
  120. package/es/LmFilter/components/CheckboxFilter.js +1 -1
  121. package/es/LmFilter/components/CustomSelectFilter.js +128 -0
  122. package/es/LmFilter/components/EmptyFilter.js +2 -2
  123. package/es/LmFilter/components/SelectFilter.js +1 -1
  124. package/es/LmFilter/customFilter/index.js +75 -2
  125. package/es/LmFilter/filterFns/index.js +181 -66
  126. package/es/LmFilter/style/style.css +49 -5
  127. package/es/LmFilter/utils.js +34 -0
  128. package/es/LmFilter/wrapper/FilterRoot.js +16 -48
  129. package/es/PageHeader/index.d.ts +24 -0
  130. package/es/PageHeader/index.js +169 -0
  131. package/es/PageHeader/style/index.css +505 -0
  132. package/es/PageHeader/style/index.d.ts +1 -0
  133. package/es/PageHeader/style/index.js +1 -0
  134. package/es/Popover/index.d.ts +11 -0
  135. package/es/Popover/index.js +63 -0
  136. package/es/Popover/style/index.css +505 -0
  137. package/es/Popover/style/index.d.ts +1 -0
  138. package/es/Popover/style/index.js +1 -0
  139. package/es/Row/README.md.old +22 -0
  140. package/es/Row/index.d.ts +3 -0
  141. package/es/Row/index.js +2 -0
  142. package/es/Row/style/index.css +505 -0
  143. package/es/Row/style/index.d.ts +1 -0
  144. package/es/Row/style/index.js +1 -0
  145. package/es/Tooltip/index.d.ts +43 -1
  146. package/es/Tooltip/index.js +236 -1
  147. package/es/Typography/Base/Ellipsis.d.ts +14 -0
  148. package/es/Typography/Base/Ellipsis.js +197 -0
  149. package/es/Typography/Base/EllipsisTooltip.d.ts +13 -0
  150. package/es/Typography/Base/EllipsisTooltip.js +23 -0
  151. package/es/Typography/Base/index.d.ts +54 -0
  152. package/es/Typography/Base/index.js +509 -0
  153. package/es/Typography/Editable.d.ts +20 -0
  154. package/es/Typography/Editable.js +117 -0
  155. package/es/Typography/Link.d.ts +7 -0
  156. package/es/Typography/Link.js +43 -0
  157. package/es/Typography/Paragraph.d.ts +7 -0
  158. package/es/Typography/Paragraph.js +12 -0
  159. package/es/Typography/Text.d.ts +8 -0
  160. package/es/Typography/Text.js +41 -0
  161. package/es/Typography/Title.d.ts +9 -0
  162. package/es/Typography/Title.js +41 -0
  163. package/es/Typography/Typography.d.ts +11 -0
  164. package/es/Typography/Typography.js +61 -0
  165. package/es/Typography/hooks/useMergedConfig.d.ts +1 -0
  166. package/es/Typography/hooks/useMergedConfig.js +8 -0
  167. package/es/Typography/hooks/useUpdatedEffect.d.ts +3 -0
  168. package/es/Typography/hooks/useUpdatedEffect.js +13 -0
  169. package/es/Typography/index.d.ts +15 -0
  170. package/es/Typography/index.js +14 -0
  171. package/es/Typography/style/index.css +505 -0
  172. package/es/Typography/style/index.d.ts +1 -0
  173. package/es/Typography/style/index.js +1 -0
  174. package/es/_util/colors.d.ts +5 -0
  175. package/es/_util/colors.js +4 -0
  176. package/es/_util/getRenderPropValue.d.ts +3 -0
  177. package/es/_util/getRenderPropValue.js +13 -0
  178. package/es/_util/hooks/useFlexGapSupport.d.ts +2 -0
  179. package/es/_util/hooks/useFlexGapSupport.js +14 -0
  180. package/es/_util/hooks/useForceUpdate.d.ts +2 -0
  181. package/es/_util/hooks/useForceUpdate.js +11 -0
  182. package/es/_util/placements.d.ts +16 -0
  183. package/es/_util/placements.js +87 -0
  184. package/es/_util/responsiveObserve.d.ts +21 -0
  185. package/es/_util/responsiveObserve.js +66 -0
  186. package/es/_util/styleChecker.d.ts +4 -0
  187. package/es/_util/styleChecker.js +31 -0
  188. package/es/_util/transButton.d.ts +9 -0
  189. package/es/_util/transButton.js +73 -0
  190. package/es/index.d.ts +14 -0
  191. package/es/index.js +8 -1
  192. package/lib/AutoComplete/index.d.ts +30 -0
  193. package/lib/AutoComplete/index.js +125 -0
  194. package/lib/AutoComplete/style/index.css +505 -0
  195. package/lib/AutoComplete/style/index.d.ts +1 -0
  196. package/lib/AutoComplete/style/index.js +3 -0
  197. package/lib/Avatar/index.d.ts +3 -0
  198. package/lib/Avatar/index.js +15 -0
  199. package/lib/Avatar/style/index.css +505 -0
  200. package/lib/Avatar/style/index.d.ts +1 -0
  201. package/lib/Avatar/style/index.js +3 -0
  202. package/lib/Breadcrumb/index.d.ts +4 -0
  203. package/lib/Breadcrumb/index.js +15 -0
  204. package/lib/Breadcrumb/style/index.css +505 -0
  205. package/lib/Breadcrumb/style/index.d.ts +1 -0
  206. package/lib/Breadcrumb/style/index.js +3 -0
  207. package/lib/Col/README.md.old +22 -0
  208. package/lib/Col/index.d.ts +3 -0
  209. package/lib/Col/index.js +11 -0
  210. package/lib/Col/style/index.css +505 -0
  211. package/lib/Col/style/index.d.ts +1 -0
  212. package/lib/Col/style/index.js +3 -0
  213. package/lib/Form/index.d.ts +1 -1
  214. package/lib/Form/style/index.css +14 -14
  215. package/lib/Grid/RowContext.d.ts +8 -0
  216. package/lib/Grid/RowContext.js +12 -0
  217. package/lib/Grid/col.d.ts +28 -0
  218. package/lib/Grid/col.js +128 -0
  219. package/lib/Grid/hooks/useBreakpoint.d.ts +3 -0
  220. package/lib/Grid/hooks/useBreakpoint.js +37 -0
  221. package/lib/Grid/index.d.ts +11 -0
  222. package/lib/Grid/index.js +45 -0
  223. package/lib/Grid/row.d.ts +14 -0
  224. package/lib/Grid/row.js +164 -0
  225. package/lib/Grid/style/index.css +505 -0
  226. package/lib/Grid/style/index.d.ts +1 -0
  227. package/lib/Grid/style/index.js +3 -0
  228. package/lib/Layout/index.d.ts +4 -0
  229. package/lib/Layout/index.js +15 -0
  230. package/lib/Layout/style/index.css +505 -0
  231. package/lib/Layout/style/index.d.ts +1 -0
  232. package/lib/Layout/style/index.js +3 -0
  233. package/lib/LmEditTable/EditTable.d.ts +2 -0
  234. package/lib/LmEditTable/EditTable.js +171 -53
  235. package/lib/LmEditTable/sortableBoxCol.d.ts +5 -0
  236. package/lib/LmEditTable/sortableBoxCol.js +24 -0
  237. package/lib/LmEditTable/sortableItemCol.d.ts +1 -0
  238. package/lib/LmEditTable/sortableItemCol.js +61 -0
  239. package/lib/LmFilter/{icon_placeholder.png → assets/empty.png} +0 -0
  240. package/lib/LmFilter/clearFilter/index.js +3 -5
  241. package/lib/LmFilter/complexFilter/drawer.js +24 -4
  242. package/lib/LmFilter/components/CheckboxFilter.js +1 -1
  243. package/lib/LmFilter/components/CustomSelectFilter.js +128 -0
  244. package/lib/LmFilter/components/EmptyFilter.js +2 -2
  245. package/lib/LmFilter/components/SelectFilter.js +1 -1
  246. package/lib/LmFilter/customFilter/index.js +75 -2
  247. package/lib/LmFilter/filterFns/index.js +181 -66
  248. package/lib/LmFilter/style/style.css +49 -5
  249. package/lib/LmFilter/utils.js +34 -0
  250. package/lib/LmFilter/wrapper/FilterRoot.js +16 -48
  251. package/lib/PageHeader/index.d.ts +24 -0
  252. package/lib/PageHeader/index.js +194 -0
  253. package/lib/PageHeader/style/index.css +505 -0
  254. package/lib/PageHeader/style/index.d.ts +1 -0
  255. package/lib/PageHeader/style/index.js +3 -0
  256. package/lib/Popover/index.d.ts +11 -0
  257. package/lib/Popover/index.js +81 -0
  258. package/lib/Popover/style/index.css +505 -0
  259. package/lib/Popover/style/index.d.ts +1 -0
  260. package/lib/Popover/style/index.js +3 -0
  261. package/lib/Row/README.md.old +22 -0
  262. package/lib/Row/index.d.ts +3 -0
  263. package/lib/Row/index.js +11 -0
  264. package/lib/Row/style/index.css +505 -0
  265. package/lib/Row/style/index.d.ts +1 -0
  266. package/lib/Row/style/index.js +3 -0
  267. package/lib/Tooltip/index.d.ts +43 -1
  268. package/lib/Tooltip/index.js +247 -1
  269. package/lib/Typography/Base/Ellipsis.d.ts +14 -0
  270. package/lib/Typography/Base/Ellipsis.js +212 -0
  271. package/lib/Typography/Base/EllipsisTooltip.d.ts +13 -0
  272. package/lib/Typography/Base/EllipsisTooltip.js +36 -0
  273. package/lib/Typography/Base/index.d.ts +54 -0
  274. package/lib/Typography/Base/index.js +545 -0
  275. package/lib/Typography/Editable.d.ts +20 -0
  276. package/lib/Typography/Editable.js +137 -0
  277. package/lib/Typography/Link.d.ts +7 -0
  278. package/lib/Typography/Link.js +58 -0
  279. package/lib/Typography/Paragraph.d.ts +7 -0
  280. package/lib/Typography/Paragraph.js +26 -0
  281. package/lib/Typography/Text.d.ts +8 -0
  282. package/lib/Typography/Text.js +57 -0
  283. package/lib/Typography/Title.d.ts +9 -0
  284. package/lib/Typography/Title.js +58 -0
  285. package/lib/Typography/Typography.d.ts +11 -0
  286. package/lib/Typography/Typography.js +77 -0
  287. package/lib/Typography/hooks/useMergedConfig.d.ts +1 -0
  288. package/lib/Typography/hooks/useMergedConfig.js +21 -0
  289. package/lib/Typography/hooks/useUpdatedEffect.d.ts +3 -0
  290. package/lib/Typography/hooks/useUpdatedEffect.js +24 -0
  291. package/lib/Typography/index.d.ts +15 -0
  292. package/lib/Typography/index.js +31 -0
  293. package/lib/Typography/style/index.css +505 -0
  294. package/lib/Typography/style/index.d.ts +1 -0
  295. package/lib/Typography/style/index.js +3 -0
  296. package/lib/_util/colors.d.ts +5 -0
  297. package/lib/_util/colors.js +14 -0
  298. package/lib/_util/getRenderPropValue.d.ts +3 -0
  299. package/lib/_util/getRenderPropValue.js +22 -0
  300. package/lib/_util/hooks/useFlexGapSupport.d.ts +2 -0
  301. package/lib/_util/hooks/useFlexGapSupport.js +30 -0
  302. package/lib/_util/hooks/useForceUpdate.d.ts +2 -0
  303. package/lib/_util/hooks/useForceUpdate.js +24 -0
  304. package/lib/_util/placements.d.ts +16 -0
  305. package/lib/_util/placements.js +98 -0
  306. package/lib/_util/responsiveObserve.d.ts +21 -0
  307. package/lib/_util/responsiveObserve.js +79 -0
  308. package/lib/_util/styleChecker.d.ts +4 -0
  309. package/lib/_util/styleChecker.js +52 -0
  310. package/lib/_util/transButton.d.ts +9 -0
  311. package/lib/_util/transButton.js +87 -0
  312. package/lib/index.d.ts +14 -0
  313. package/lib/index.js +57 -1
  314. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * TODO: 4.0
3
+ *
4
+ * - Remove `dataSource`
5
+ * - `size` not work with customizeInput
6
+ * - CustomizeInput not feedback `ENTER` key since accessibility enhancement
7
+ */
8
+ import type { BaseSelectRef } from 'rc-select';
9
+ import * as React from 'react';
10
+ import type { BaseOptionType, DefaultOptionType, InternalSelectProps } from 'antd/es/select';
11
+ import type { InputStatus } from '../_util/statusUtils';
12
+ import { AutoComplete as AntdAutoComplete } from 'antd';
13
+ export interface DataSourceItemObject {
14
+ value: string;
15
+ text: string;
16
+ }
17
+ export declare type DataSourceItemType = DataSourceItemObject | React.ReactNode;
18
+ export interface AutoCompleteProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'inputIcon' | 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
19
+ dataSource?: DataSourceItemType[];
20
+ status?: InputStatus;
21
+ }
22
+ declare const RefAutoComplete: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: AutoCompleteProps<ValueType, OptionType> & {
23
+ children?: React.ReactNode;
24
+ } & {
25
+ ref?: React.Ref<BaseSelectRef>;
26
+ }) => React.ReactElement) & {
27
+ Option: import("rc-select/lib/Option").OptionFC;
28
+ AntdAutoComplete: typeof AntdAutoComplete;
29
+ };
30
+ export default RefAutoComplete;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,3 @@
1
+ import { Avatar } from 'antd';
2
+ export type { AvatarProps } from 'antd';
3
+ export default Avatar;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,4 @@
1
+ import { Breadcrumb } from 'antd';
2
+ import type { BreadcrumbItemProps, BreadcrumbProps } from 'antd';
3
+ export type { BreadcrumbItemProps, BreadcrumbProps };
4
+ export default Breadcrumb;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -1,3 +1,3 @@
1
1
  export function getResizeColumnCount({ width: totalWidth }: {
2
2
  width: any;
3
- }, colWidth: any): 4 | 5 | 6 | 7 | 3 | 2;
3
+ }, colWidth: any): 2 | 3 | 4 | 5 | 6 | 7;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,3 @@
1
+ import { Col, ColProps, ColSize } from '../Grid';
2
+ export type { ColProps, ColSize };
3
+ export default Col;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -7,7 +7,7 @@ export interface LmFormProps extends FormProps {
7
7
  responsive?: Boolean;
8
8
  }
9
9
  export interface LmFormItemProps extends FormItemProps {
10
- useStatus: any;
10
+ useStatus?: any;
11
11
  errorPlacement?: string;
12
12
  }
13
13
  declare const Reform: <Values = any>(props: FormProps<Values> & {
@@ -0,0 +1,8 @@
1
+ import type { Context } from 'react';
2
+ export interface RowContextState {
3
+ gutter?: [number, number];
4
+ wrap?: boolean;
5
+ supportFlexGap?: boolean;
6
+ }
7
+ declare const RowContext: Context<RowContextState>;
8
+ export default RowContext;
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ declare type ColSpanType = number | string;
3
+ declare type FlexType = number | 'none' | 'auto' | string;
4
+ export interface ColSize {
5
+ flex?: FlexType;
6
+ span?: ColSpanType;
7
+ order?: ColSpanType;
8
+ offset?: ColSpanType;
9
+ push?: ColSpanType;
10
+ pull?: ColSpanType;
11
+ }
12
+ export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
13
+ flex?: FlexType;
14
+ span?: ColSpanType;
15
+ order?: ColSpanType;
16
+ offset?: ColSpanType;
17
+ push?: ColSpanType;
18
+ pull?: ColSpanType;
19
+ xs?: ColSpanType | ColSize;
20
+ sm?: ColSpanType | ColSize;
21
+ md?: ColSpanType | ColSize;
22
+ lg?: ColSpanType | ColSize;
23
+ xl?: ColSpanType | ColSize;
24
+ xxl?: ColSpanType | ColSize;
25
+ prefixCls?: string;
26
+ }
27
+ declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
28
+ export default Col;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,3 @@
1
+ import type { ScreenMap } from '../../_util/responsiveObserve';
2
+ declare function useBreakpoint(refreshOnChange?: boolean): ScreenMap;
3
+ export default useBreakpoint;
@@ -0,0 +1,11 @@
1
+ import Col from './col';
2
+ import Row from './row';
3
+ declare function useBreakpoint(): Partial<Record<import("../_util/responsiveObserve").Breakpoint, boolean>>;
4
+ export type { ColProps, ColSize } from './col';
5
+ export type { RowProps } from './row';
6
+ export { Row, Col };
7
+ export { Grid as AntdGrid } from 'antd';
8
+ declare const _default: {
9
+ useBreakpoint: typeof useBreakpoint;
10
+ };
11
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import type { Breakpoint } from '../_util/responsiveObserve';
3
+ declare const RowAligns: ["top", "middle", "bottom", "stretch"];
4
+ declare const RowJustify: ["start", "end", "center", "space-around", "space-between", "space-evenly"];
5
+ export declare type Gutter = number | undefined | Partial<Record<Breakpoint, number>>;
6
+ export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ gutter?: Gutter | [Gutter, Gutter];
8
+ align?: typeof RowAligns[number];
9
+ justify?: typeof RowJustify[number];
10
+ prefixCls?: string;
11
+ wrap?: boolean;
12
+ }
13
+ declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
14
+ export default Row;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,4 @@
1
+ import { Layout } from 'antd';
2
+ import type { LayoutProps, SiderProps } from 'antd';
3
+ export type { LayoutProps, SiderProps };
4
+ export default Layout;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -11,6 +11,8 @@ interface ILmEditTable extends TableProps<any> {
11
11
  useQuickOpetate?: boolean;
12
12
  sortOpen?: boolean;
13
13
  size?: TableProps<any>['size'];
14
+ colSortOpen?: boolean;
15
+ filterChange?: (data: TableProps<any>['columns']) => void;
14
16
  }
15
17
  interface ILmColumns extends TableColumnType<any> {
16
18
  editable?: 'input' | 'number' | 'inputRange' | 'date' | 'select' | 'multiple' | 'checkbox' | 'radio' | 'switch' | 'upload' | 'operate' | 'lm_edit_opetate' | 'render';
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const SortableBox: ({ items, children }: {
2
+ items: any;
3
+ children: any;
4
+ }) => JSX.Element;
5
+ export default SortableBox;
@@ -0,0 +1 @@
1
+ export default function SortableItem(props: any): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default CustomSelect;
2
+ declare function CustomSelect({ instance }: {
3
+ instance: any;
4
+ }): JSX.Element;
@@ -1,22 +1,32 @@
1
- export default CoreOptions;
2
- declare function CoreOptions({ state, dispatch, props }: {
1
+ export function initLocalization(props: any): {
2
+ basicFilter: any;
3
+ basicQuery: {};
4
+ };
5
+ export default useCoreOptions;
6
+ declare function useCoreOptions({ state, dispatch, props }: {
3
7
  state: any;
4
8
  dispatch: any;
5
9
  props: any;
6
10
  }): {
7
- onQuery: ({ basicFilter, complexFilter, basicQuery, type }: {
8
- basicFilter: any;
9
- complexFilter: any;
10
- basicQuery: any;
11
- type: any;
12
- }) => void;
13
- getState: () => any;
14
- getBasicFilter: () => any;
15
- getFilterValue: ({ field, type }: {
16
- field: any;
17
- type: any;
18
- }) => any;
19
- setFilterValue: (itemValue: any, item: any) => void;
20
- setFilterFieldValue: (field: any, value: any) => void;
21
- setLocalization: (localization?: any) => void;
11
+ CoreMethods: {
12
+ onQuery: ({ basicFilter, complexFilter, basicQuery, type }?: any) => void;
13
+ };
14
+ RefMethods: {
15
+ getState: () => any;
16
+ getBasicFilter: () => any;
17
+ getFilterValue: ({ field, type }: any) => any;
18
+ getFilterQuery: (originData?: any) => {
19
+ basicFilter: {};
20
+ filterQuery: {
21
+ filters: {
22
+ conditions: any[];
23
+ }[];
24
+ };
25
+ type: string;
26
+ };
27
+ setFilterValue: (itemValue: any, item: any) => void;
28
+ setFilterFieldValue: (field: any, value: any) => void;
29
+ setLocalization: (localization?: any) => void;
30
+ onClearChange: () => void;
31
+ };
22
32
  };
@@ -7,3 +7,5 @@ export function getRanges(): {
7
7
  近一年: string[];
8
8
  };
9
9
  export function getFlatItem(filterValues: any, originArr: any, type?: string): any[];
10
+ export function getFilterShow(basicFilter: any, dataSource: any): {};
11
+ export function getFilterShowQuery(basicQuery: any, dataSource: any): any[];
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import type { AvatarProps } from '../Avatar';
3
+ import type { BreadcrumbProps } from '../Breadcrumb';
4
+ import Breadcrumb from '../Breadcrumb';
5
+ import type { TagType } from 'antd/es/tag';
6
+ export interface PageHeaderProps {
7
+ backIcon?: React.ReactNode;
8
+ prefixCls?: string;
9
+ title?: React.ReactNode;
10
+ subTitle?: React.ReactNode;
11
+ style?: React.CSSProperties;
12
+ breadcrumb?: BreadcrumbProps | React.ReactElement<typeof Breadcrumb>;
13
+ breadcrumbRender?: (props: PageHeaderProps, defaultDom: React.ReactNode) => React.ReactNode;
14
+ tags?: React.ReactElement<TagType> | React.ReactElement<TagType>[];
15
+ footer?: React.ReactNode;
16
+ extra?: React.ReactNode;
17
+ avatar?: AvatarProps;
18
+ onBack?: (e?: React.MouseEvent<HTMLDivElement>) => void;
19
+ className?: string;
20
+ ghost?: boolean;
21
+ children?: React.ReactNode;
22
+ }
23
+ declare const PageHeader: React.FC<PageHeaderProps>;
24
+ export default PageHeader;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import type { AbstractTooltipProps } from '../Tooltip';
3
+ import type { RenderFunction } from '../_util/getRenderPropValue';
4
+ export interface PopoverProps extends AbstractTooltipProps {
5
+ title?: React.ReactNode | RenderFunction;
6
+ content?: React.ReactNode | RenderFunction;
7
+ /** @private Used For Popconfirm. Safe to remove. */
8
+ _overlay?: React.ReactNode;
9
+ }
10
+ declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, keyof PopoverProps> & React.RefAttributes<unknown>>;
11
+ export default Popover;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,3 @@
1
+ import { Row, RowProps } from '../Grid';
2
+ export { RowProps };
3
+ export default Row;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -1,2 +1,44 @@
1
- import { Tooltip } from 'antd';
1
+ import type { placements as Placements } from 'rc-tooltip/lib/placements';
2
+ import type { TooltipProps as RcTooltipProps } from 'rc-tooltip/lib/Tooltip';
3
+ import * as React from 'react';
4
+ import type { PresetColorType } from '../_util/colors';
5
+ import { AdjustOverflow, PlacementsConfig } from '../_util/placements';
6
+ import type { LiteralUnion } from '../_util/type';
7
+ export type { AdjustOverflow, PlacementsConfig };
8
+ export declare type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
9
+ export interface TooltipAlignConfig {
10
+ points?: [string, string];
11
+ offset?: [number | string, number | string];
12
+ targetOffset?: [number | string, number | string];
13
+ overflow?: {
14
+ adjustX: boolean;
15
+ adjustY: boolean;
16
+ };
17
+ useCssRight?: boolean;
18
+ useCssBottom?: boolean;
19
+ useCssTransform?: boolean;
20
+ }
21
+ export interface AbstractTooltipProps extends Partial<Omit<RcTooltipProps, 'children'>> {
22
+ style?: React.CSSProperties;
23
+ className?: string;
24
+ color?: LiteralUnion<PresetColorType, string>;
25
+ placement?: TooltipPlacement;
26
+ builtinPlacements?: typeof Placements;
27
+ openClassName?: string;
28
+ arrowPointAtCenter?: boolean;
29
+ autoAdjustOverflow?: boolean | AdjustOverflow;
30
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
31
+ children?: React.ReactNode;
32
+ }
33
+ export declare type RenderFunction = () => React.ReactNode;
34
+ export interface TooltipPropsWithOverlay extends AbstractTooltipProps {
35
+ title?: React.ReactNode | RenderFunction;
36
+ overlay?: React.ReactNode | RenderFunction;
37
+ }
38
+ export interface TooltipPropsWithTitle extends AbstractTooltipProps {
39
+ title: React.ReactNode | RenderFunction;
40
+ overlay?: React.ReactNode | RenderFunction;
41
+ }
42
+ export declare type TooltipProps = TooltipPropsWithTitle | TooltipPropsWithOverlay;
43
+ declare const Tooltip: React.ForwardRefExoticComponent<Pick<TooltipProps, string | number | symbol> & React.RefAttributes<unknown>>;
2
44
  export default Tooltip;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export interface EllipsisProps {
3
+ enabledMeasure?: boolean;
4
+ text?: React.ReactNode;
5
+ width: number;
6
+ rows: number;
7
+ children: (cutChildren: React.ReactNode[], needEllipsis: boolean) => React.ReactNode;
8
+ onEllipsis: (isEllipsis: boolean) => void;
9
+ }
10
+ declare const Ellipsis: {
11
+ ({ enabledMeasure, children, text, width, rows, onEllipsis }: EllipsisProps): JSX.Element;
12
+ displayName: string;
13
+ };
14
+ export default Ellipsis;
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import type { TooltipProps } from '../../Tooltip';
3
+ export interface EllipsisTooltipProps {
4
+ tooltipProps?: TooltipProps;
5
+ enabledEllipsis: boolean;
6
+ isEllipsis?: boolean;
7
+ children: React.ReactElement;
8
+ }
9
+ declare const EllipsisTooltip: {
10
+ ({ enabledEllipsis, isEllipsis, children, tooltipProps, }: EllipsisTooltipProps): JSX.Element;
11
+ displayName: string;
12
+ };
13
+ export default EllipsisTooltip;
@@ -0,0 +1,54 @@
1
+ import type { AutoSizeType } from 'rc-textarea/lib/ResizableTextArea';
2
+ import * as React from 'react';
3
+ import type { TooltipProps } from '../../Tooltip';
4
+ import type { TypographyProps } from '../Typography';
5
+ export declare type BaseType = 'secondary' | 'success' | 'warning' | 'danger';
6
+ interface CopyConfig {
7
+ text?: string;
8
+ onCopy?: (event?: React.MouseEvent<HTMLDivElement>) => void;
9
+ icon?: React.ReactNode;
10
+ tooltips?: boolean | React.ReactNode;
11
+ format?: 'text/plain' | 'text/html';
12
+ }
13
+ interface EditConfig {
14
+ editing?: boolean;
15
+ icon?: React.ReactNode;
16
+ tooltip?: boolean | React.ReactNode;
17
+ onStart?: () => void;
18
+ onChange?: (value: string) => void;
19
+ onCancel?: () => void;
20
+ onEnd?: () => void;
21
+ maxLength?: number;
22
+ autoSize?: boolean | AutoSizeType;
23
+ triggerType?: ('icon' | 'text')[];
24
+ enterIcon?: React.ReactNode;
25
+ }
26
+ export interface EllipsisConfig {
27
+ rows?: number;
28
+ expandable?: boolean;
29
+ suffix?: string;
30
+ symbol?: React.ReactNode;
31
+ onExpand?: React.MouseEventHandler<HTMLElement>;
32
+ onEllipsis?: (ellipsis: boolean) => void;
33
+ tooltip?: React.ReactNode | TooltipProps;
34
+ }
35
+ export interface BlockProps extends TypographyProps {
36
+ title?: string;
37
+ editable?: boolean | EditConfig;
38
+ copyable?: boolean | CopyConfig;
39
+ type?: BaseType;
40
+ disabled?: boolean;
41
+ ellipsis?: boolean | EllipsisConfig;
42
+ code?: boolean;
43
+ mark?: boolean;
44
+ underline?: boolean;
45
+ delete?: boolean;
46
+ strong?: boolean;
47
+ keyboard?: boolean;
48
+ italic?: boolean;
49
+ }
50
+ interface InternalBlockProps extends BlockProps {
51
+ component: string;
52
+ }
53
+ declare const Base: React.ForwardRefExoticComponent<InternalBlockProps & React.RefAttributes<unknown>>;
54
+ export default Base;
@@ -0,0 +1,20 @@
1
+ import type { AutoSizeType } from 'rc-textarea/lib/ResizableTextArea';
2
+ import * as React from 'react';
3
+ import type { DirectionType } from 'antd/es/config-provider';
4
+ interface EditableProps {
5
+ prefixCls?: string;
6
+ value: string;
7
+ ['aria-label']?: string;
8
+ onSave: (value: string) => void;
9
+ onCancel: () => void;
10
+ onEnd?: () => void;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ direction?: DirectionType;
14
+ maxLength?: number;
15
+ autoSize?: boolean | AutoSizeType;
16
+ enterIcon?: React.ReactNode;
17
+ component?: string;
18
+ }
19
+ declare const Editable: React.FC<EditableProps>;
20
+ export default Editable;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import type { BlockProps } from './Base';
3
+ export interface LinkProps extends BlockProps, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'type'> {
4
+ ellipsis?: boolean;
5
+ }
6
+ declare const _default: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import type { BlockProps } from './Base';
3
+ export interface ParagraphProps extends BlockProps {
4
+ onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
5
+ }
6
+ declare const _default: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLDivElement>>;
7
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import type { BlockProps, EllipsisConfig } from './Base';
3
+ export interface TextProps extends BlockProps {
4
+ ellipsis?: boolean | Omit<EllipsisConfig, 'expandable' | 'rows' | 'onExpand'>;
5
+ onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
6
+ }
7
+ declare const _default: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
8
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import type { BlockProps } from './Base';
3
+ declare const TITLE_ELE_LIST: [1, 2, 3, 4, 5];
4
+ export declare type TitleProps = Omit<BlockProps & {
5
+ level?: typeof TITLE_ELE_LIST[number];
6
+ onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
7
+ }, 'strong'>;
8
+ declare const _default: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
9
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export interface TypographyProps {
3
+ id?: string;
4
+ prefixCls?: string;
5
+ className?: string;
6
+ style?: React.CSSProperties;
7
+ children?: React.ReactNode;
8
+ ['aria-label']?: string;
9
+ }
10
+ declare const ExportTypography: React.FC<TypographyProps>;
11
+ export default ExportTypography;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1 @@
1
+ export default function useMergedConfig<Target>(propConfig: any, templateConfig?: Target): [boolean, Target];
@@ -0,0 +1,3 @@
1
+ /** Similar with `useEffect` but only trigger after mounted */
2
+ declare const _default: (callback: () => void, conditions: any[]) => void;
3
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import Link from './Link';
2
+ import Paragraph from './Paragraph';
3
+ import Text from './Text';
4
+ import Title from './Title';
5
+ import OriginTypography from './Typography';
6
+ import { Typography as AntdTypography } from 'antd';
7
+ export declare type TypographyProps = typeof OriginTypography & {
8
+ Text: typeof Text;
9
+ Link: typeof Link;
10
+ Title: typeof Title;
11
+ Paragraph: typeof Paragraph;
12
+ AntdTypography: typeof AntdTypography;
13
+ };
14
+ declare const Typography: TypographyProps;
15
+ export default Typography;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ import type { ElementOf } from './type';
2
+ export declare const PresetStatusColorTypes: ["success", "processing", "error", "default", "warning"];
3
+ export declare const PresetColorTypes: ["pink", "red", "yellow", "orange", "cyan", "green", "blue", "purple", "geekblue", "magenta", "volcano", "gold", "lime"];
4
+ export declare type PresetColorType = ElementOf<typeof PresetColorTypes>;
5
+ export declare type PresetStatusColorType = ElementOf<typeof PresetStatusColorTypes>;
@@ -0,0 +1,3 @@
1
+ import type * as React from 'react';
2
+ export declare type RenderFunction = () => React.ReactNode;
3
+ export declare const getRenderPropValue: (propValue?: React.ReactNode | RenderFunction) => React.ReactNode;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => boolean;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export default function useForceUpdate(): React.DispatchWithoutAction;
@@ -0,0 +1,16 @@
1
+ export interface AdjustOverflow {
2
+ adjustX?: 0 | 1;
3
+ adjustY?: 0 | 1;
4
+ }
5
+ export interface PlacementsConfig {
6
+ arrowWidth?: number;
7
+ horizontalArrowShift?: number;
8
+ verticalArrowShift?: number;
9
+ arrowPointAtCenter?: boolean;
10
+ autoAdjustOverflow?: boolean | AdjustOverflow;
11
+ }
12
+ export declare function getOverflowOptions(autoAdjustOverflow?: boolean | AdjustOverflow): {
13
+ adjustX: number;
14
+ adjustY: number;
15
+ };
16
+ export default function getPlacements(config: PlacementsConfig): BuildInPlacements;