linkmore-design 1.0.62 → 1.0.66

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 (386) hide show
  1. package/README.md +1 -1
  2. package/dist/Approval/demos/basic.d.ts +2 -0
  3. package/dist/Approval/index.d.ts +24 -0
  4. package/dist/Approval/style/index.d.ts +1 -0
  5. package/dist/AutoComplete/demos/basic.d.ts +3 -0
  6. package/dist/AutoComplete/index.d.ts +30 -0
  7. package/dist/AutoComplete/style/index.d.ts +1 -0
  8. package/dist/Avatar/demos/basic.d.ts +2 -0
  9. package/dist/Avatar/index.d.ts +3 -0
  10. package/dist/Avatar/style/index.d.ts +1 -0
  11. package/dist/Breadcrumb/demos/basic.d.ts +2 -0
  12. package/dist/Breadcrumb/demos/basic1.d.ts +2 -0
  13. package/dist/Breadcrumb/index.d.ts +4 -0
  14. package/dist/Breadcrumb/style/index.d.ts +1 -0
  15. package/dist/CardTable/utils.d.ts +1 -1
  16. package/dist/Col/demos/basic.d.ts +2 -0
  17. package/dist/Col/index.d.ts +3 -0
  18. package/dist/Col/style/index.d.ts +1 -0
  19. package/dist/Form/index.d.ts +1 -1
  20. package/dist/Grid/RowContext.d.ts +8 -0
  21. package/dist/Grid/col.d.ts +28 -0
  22. package/dist/Grid/demos/basic.d.ts +2 -0
  23. package/dist/Grid/hooks/useBreakpoint.d.ts +3 -0
  24. package/dist/Grid/index.d.ts +11 -0
  25. package/dist/Grid/row.d.ts +14 -0
  26. package/dist/Grid/style/index.d.ts +1 -0
  27. package/dist/Layout/demos/basic.d.ts +2 -0
  28. package/dist/Layout/index.d.ts +4 -0
  29. package/dist/Layout/style/index.d.ts +1 -0
  30. package/dist/LmEditTable/EditTable.d.ts +4 -1
  31. package/dist/LmEditTable/demos/colsort.d.ts +2 -0
  32. package/dist/LmEditTable/demos/size.d.ts +2 -0
  33. package/dist/LmEditTable/sortableBoxCol.d.ts +5 -0
  34. package/dist/LmEditTable/sortableItemCol.d.ts +1 -0
  35. package/dist/LmFilter/components/CustomSelectFilter.d.ts +4 -0
  36. package/dist/LmFilter/customFilter/drawer.d.ts +4 -0
  37. package/dist/LmFilter/customFilter/saveModal.d.ts +4 -0
  38. package/dist/LmFilter/customFilter/valueDrawer.d.ts +4 -0
  39. package/dist/LmFilter/filterFns/index.d.ts +35 -17
  40. package/dist/LmFilter/utils.d.ts +2 -0
  41. package/dist/Mentions/demos/basic.d.ts +2 -0
  42. package/dist/Mentions/index.d.ts +3 -0
  43. package/dist/Mentions/style/index.d.ts +1 -0
  44. package/dist/PageHeader/demos/basic.d.ts +2 -0
  45. package/dist/PageHeader/index.d.ts +24 -0
  46. package/dist/PageHeader/style/index.d.ts +1 -0
  47. package/dist/Popover/demos/basic.d.ts +2 -0
  48. package/dist/Popover/demos/basic1.d.ts +2 -0
  49. package/dist/Popover/index.d.ts +11 -0
  50. package/dist/Popover/style/index.d.ts +1 -0
  51. package/dist/Rate/demos/basic.d.ts +2 -0
  52. package/dist/Rate/index.d.ts +3 -0
  53. package/dist/Rate/style/index.d.ts +1 -0
  54. package/dist/Row/demos/basic.d.ts +2 -0
  55. package/dist/Row/index.d.ts +3 -0
  56. package/dist/Row/style/index.d.ts +1 -0
  57. package/dist/Steps/demos/basic.d.ts +2 -0
  58. package/dist/Steps/index.d.ts +3 -0
  59. package/dist/Steps/style/index.d.ts +1 -0
  60. package/dist/Tooltip/index.d.ts +43 -1
  61. package/dist/Typography/Base/Ellipsis.d.ts +14 -0
  62. package/dist/Typography/Base/EllipsisTooltip.d.ts +13 -0
  63. package/dist/Typography/Base/index.d.ts +54 -0
  64. package/dist/Typography/Editable.d.ts +20 -0
  65. package/dist/Typography/Link.d.ts +7 -0
  66. package/dist/Typography/Paragraph.d.ts +7 -0
  67. package/dist/Typography/Text.d.ts +8 -0
  68. package/dist/Typography/Title.d.ts +9 -0
  69. package/dist/Typography/Typography.d.ts +11 -0
  70. package/dist/Typography/demos/basic.d.ts +2 -0
  71. package/dist/Typography/hooks/useMergedConfig.d.ts +1 -0
  72. package/dist/Typography/hooks/useUpdatedEffect.d.ts +3 -0
  73. package/dist/Typography/index.d.ts +15 -0
  74. package/dist/Typography/style/index.d.ts +1 -0
  75. package/dist/_util/colors.d.ts +5 -0
  76. package/dist/_util/getRenderPropValue.d.ts +3 -0
  77. package/dist/_util/hooks/useFlexGapSupport.d.ts +2 -0
  78. package/dist/_util/hooks/useForceUpdate.d.ts +2 -0
  79. package/dist/_util/placements.d.ts +16 -0
  80. package/dist/_util/responsiveObserve.d.ts +21 -0
  81. package/dist/_util/styleChecker.d.ts +4 -0
  82. package/dist/_util/transButton.d.ts +9 -0
  83. package/dist/index.d.ts +14 -0
  84. package/dist/index.umd.js +17449 -8958
  85. package/dist/index.umd.min.js +6 -6
  86. package/es/Approval/index.d.ts +24 -0
  87. package/es/Approval/index.js +210 -0
  88. package/es/Approval/style/index.css +592 -0
  89. package/es/Approval/style/index.d.ts +1 -0
  90. package/es/Approval/style/index.js +1 -0
  91. package/es/AutoComplete/index.d.ts +30 -0
  92. package/es/AutoComplete/index.js +101 -0
  93. package/es/AutoComplete/style/index.css +505 -0
  94. package/es/AutoComplete/style/index.d.ts +1 -0
  95. package/es/AutoComplete/style/index.js +1 -0
  96. package/es/Avatar/index.d.ts +3 -0
  97. package/es/Avatar/index.js +3 -0
  98. package/es/Avatar/style/index.css +505 -0
  99. package/es/Avatar/style/index.d.ts +1 -0
  100. package/es/Avatar/style/index.js +1 -0
  101. package/es/Breadcrumb/index.d.ts +4 -0
  102. package/es/Breadcrumb/index.js +3 -0
  103. package/es/Breadcrumb/style/index.css +505 -0
  104. package/es/Breadcrumb/style/index.d.ts +1 -0
  105. package/es/Breadcrumb/style/index.js +1 -0
  106. package/es/Col/README.md.old +22 -0
  107. package/es/Col/index.d.ts +3 -0
  108. package/es/Col/index.js +2 -0
  109. package/es/Col/style/index.css +505 -0
  110. package/es/Col/style/index.d.ts +1 -0
  111. package/es/Col/style/index.js +1 -0
  112. package/es/EditTable/README.md.old +66 -0
  113. package/es/Form/container.js +17 -1
  114. package/es/Form/index.d.ts +1 -1
  115. package/es/Form/index.js +5 -2
  116. package/es/Form/style/index.css +32 -17
  117. package/es/Grid/RowContext.d.ts +8 -0
  118. package/es/Grid/RowContext.js +3 -0
  119. package/es/Grid/col.d.ts +28 -0
  120. package/es/Grid/col.js +112 -0
  121. package/es/Grid/hooks/useBreakpoint.d.ts +3 -0
  122. package/es/Grid/hooks/useBreakpoint.js +24 -0
  123. package/es/Grid/index.d.ts +11 -0
  124. package/es/Grid/index.js +14 -0
  125. package/es/Grid/row.d.ts +14 -0
  126. package/es/Grid/row.js +142 -0
  127. package/es/Grid/style/index.css +505 -0
  128. package/es/Grid/style/index.d.ts +1 -0
  129. package/es/Grid/style/index.js +1 -0
  130. package/es/Layout/index.d.ts +4 -0
  131. package/es/Layout/index.js +3 -0
  132. package/es/Layout/style/index.css +505 -0
  133. package/es/Layout/style/index.d.ts +1 -0
  134. package/es/Layout/style/index.js +1 -0
  135. package/es/LmEditTable/EditTable.d.ts +4 -1
  136. package/es/LmEditTable/EditTable.js +241 -59
  137. package/es/LmEditTable/sortableBoxCol.d.ts +5 -0
  138. package/es/LmEditTable/sortableBoxCol.js +13 -0
  139. package/es/LmEditTable/sortableItemCol.d.ts +1 -0
  140. package/es/LmEditTable/sortableItemCol.js +48 -0
  141. package/es/LmFilter/{icon_placeholder.png → assets/empty.png} +0 -0
  142. package/es/LmFilter/clearFilter/index.js +3 -5
  143. package/es/LmFilter/complexFilter/drawer.js +26 -9
  144. package/es/LmFilter/components/CheckboxFilter.js +1 -1
  145. package/es/LmFilter/components/CustomSelectFilter.js +139 -0
  146. package/es/LmFilter/components/EmptyFilter.js +2 -2
  147. package/es/LmFilter/components/SelectFilter.js +15 -6
  148. package/es/LmFilter/components/index.js +9 -2
  149. package/es/LmFilter/customFilter/drawer.js +427 -0
  150. package/es/LmFilter/customFilter/index.js +107 -2
  151. package/es/LmFilter/customFilter/saveModal.js +187 -0
  152. package/es/LmFilter/customFilter/valueDrawer.js +238 -0
  153. package/es/LmFilter/filterFns/index.js +316 -70
  154. package/es/LmFilter/style/{style.css → index.css} +61 -6
  155. package/es/LmFilter/style/index.js +1 -1
  156. package/es/LmFilter/utils.js +34 -0
  157. package/es/LmFilter/wrapper/FilterRoot.js +63 -49
  158. package/es/Mentions/index.d.ts +3 -0
  159. package/es/Mentions/index.js +3 -0
  160. package/es/Mentions/style/index.css +505 -0
  161. package/es/Mentions/style/index.d.ts +1 -0
  162. package/es/Mentions/style/index.js +1 -0
  163. package/es/PageHeader/index.d.ts +24 -0
  164. package/es/PageHeader/index.js +169 -0
  165. package/es/PageHeader/style/index.css +505 -0
  166. package/es/PageHeader/style/index.d.ts +1 -0
  167. package/es/PageHeader/style/index.js +1 -0
  168. package/es/Popover/index.d.ts +11 -0
  169. package/es/Popover/index.js +63 -0
  170. package/es/Popover/style/index.css +505 -0
  171. package/es/Popover/style/index.d.ts +1 -0
  172. package/es/Popover/style/index.js +1 -0
  173. package/es/Rate/index.d.ts +3 -0
  174. package/es/Rate/index.js +3 -0
  175. package/es/Rate/style/index.css +505 -0
  176. package/es/Rate/style/index.d.ts +1 -0
  177. package/es/Rate/style/index.js +1 -0
  178. package/es/Row/README.md.old +22 -0
  179. package/es/Row/index.d.ts +3 -0
  180. package/es/Row/index.js +2 -0
  181. package/es/Row/style/index.css +505 -0
  182. package/es/Row/style/index.d.ts +1 -0
  183. package/es/Row/style/index.js +1 -0
  184. package/es/Steps/index.d.ts +3 -0
  185. package/es/Steps/index.js +3 -0
  186. package/es/Steps/style/index.css +505 -0
  187. package/es/Steps/style/index.d.ts +1 -0
  188. package/es/Steps/style/index.js +1 -0
  189. package/es/Tooltip/index.d.ts +43 -1
  190. package/es/Tooltip/index.js +236 -1
  191. package/es/Typography/Base/Ellipsis.d.ts +14 -0
  192. package/es/Typography/Base/Ellipsis.js +197 -0
  193. package/es/Typography/Base/EllipsisTooltip.d.ts +13 -0
  194. package/es/Typography/Base/EllipsisTooltip.js +23 -0
  195. package/es/Typography/Base/index.d.ts +54 -0
  196. package/es/Typography/Base/index.js +509 -0
  197. package/es/Typography/Editable.d.ts +20 -0
  198. package/es/Typography/Editable.js +117 -0
  199. package/es/Typography/Link.d.ts +7 -0
  200. package/es/Typography/Link.js +43 -0
  201. package/es/Typography/Paragraph.d.ts +7 -0
  202. package/es/Typography/Paragraph.js +12 -0
  203. package/es/Typography/Text.d.ts +8 -0
  204. package/es/Typography/Text.js +41 -0
  205. package/es/Typography/Title.d.ts +9 -0
  206. package/es/Typography/Title.js +41 -0
  207. package/es/Typography/Typography.d.ts +11 -0
  208. package/es/Typography/Typography.js +61 -0
  209. package/es/Typography/hooks/useMergedConfig.d.ts +1 -0
  210. package/es/Typography/hooks/useMergedConfig.js +8 -0
  211. package/es/Typography/hooks/useUpdatedEffect.d.ts +3 -0
  212. package/es/Typography/hooks/useUpdatedEffect.js +13 -0
  213. package/es/Typography/index.d.ts +15 -0
  214. package/es/Typography/index.js +14 -0
  215. package/es/Typography/style/index.css +505 -0
  216. package/es/Typography/style/index.d.ts +1 -0
  217. package/es/Typography/style/index.js +1 -0
  218. package/es/_util/colors.d.ts +5 -0
  219. package/es/_util/colors.js +4 -0
  220. package/es/_util/getRenderPropValue.d.ts +3 -0
  221. package/es/_util/getRenderPropValue.js +13 -0
  222. package/es/_util/hooks/useFlexGapSupport.d.ts +2 -0
  223. package/es/_util/hooks/useFlexGapSupport.js +14 -0
  224. package/es/_util/hooks/useForceUpdate.d.ts +2 -0
  225. package/es/_util/hooks/useForceUpdate.js +11 -0
  226. package/es/_util/placements.d.ts +16 -0
  227. package/es/_util/placements.js +87 -0
  228. package/es/_util/responsiveObserve.d.ts +21 -0
  229. package/es/_util/responsiveObserve.js +66 -0
  230. package/es/_util/styleChecker.d.ts +4 -0
  231. package/es/_util/styleChecker.js +31 -0
  232. package/es/_util/transButton.d.ts +9 -0
  233. package/es/_util/transButton.js +73 -0
  234. package/es/index.d.ts +14 -0
  235. package/es/index.js +8 -1
  236. package/lib/Approval/index.d.ts +24 -0
  237. package/lib/Approval/index.js +223 -0
  238. package/lib/Approval/style/index.css +592 -0
  239. package/lib/Approval/style/index.d.ts +1 -0
  240. package/lib/Approval/style/index.js +3 -0
  241. package/lib/AutoComplete/index.d.ts +30 -0
  242. package/lib/AutoComplete/index.js +125 -0
  243. package/lib/AutoComplete/style/index.css +505 -0
  244. package/lib/AutoComplete/style/index.d.ts +1 -0
  245. package/lib/AutoComplete/style/index.js +3 -0
  246. package/lib/Avatar/index.d.ts +3 -0
  247. package/lib/Avatar/index.js +15 -0
  248. package/lib/Avatar/style/index.css +505 -0
  249. package/lib/Avatar/style/index.d.ts +1 -0
  250. package/lib/Avatar/style/index.js +3 -0
  251. package/lib/Breadcrumb/index.d.ts +4 -0
  252. package/lib/Breadcrumb/index.js +15 -0
  253. package/lib/Breadcrumb/style/index.css +505 -0
  254. package/lib/Breadcrumb/style/index.d.ts +1 -0
  255. package/lib/Breadcrumb/style/index.js +3 -0
  256. package/lib/Col/README.md.old +22 -0
  257. package/lib/Col/index.d.ts +3 -0
  258. package/lib/Col/index.js +11 -0
  259. package/lib/Col/style/index.css +505 -0
  260. package/lib/Col/style/index.d.ts +1 -0
  261. package/lib/Col/style/index.js +3 -0
  262. package/lib/EditTable/README.md.old +66 -0
  263. package/lib/Form/container.js +17 -1
  264. package/lib/Form/index.d.ts +1 -1
  265. package/lib/Form/index.js +5 -2
  266. package/lib/Form/style/index.css +32 -17
  267. package/lib/Grid/RowContext.d.ts +8 -0
  268. package/lib/Grid/RowContext.js +12 -0
  269. package/lib/Grid/col.d.ts +28 -0
  270. package/lib/Grid/col.js +128 -0
  271. package/lib/Grid/hooks/useBreakpoint.d.ts +3 -0
  272. package/lib/Grid/hooks/useBreakpoint.js +37 -0
  273. package/lib/Grid/index.d.ts +11 -0
  274. package/lib/Grid/index.js +45 -0
  275. package/lib/Grid/row.d.ts +14 -0
  276. package/lib/Grid/row.js +164 -0
  277. package/lib/Grid/style/index.css +505 -0
  278. package/lib/Grid/style/index.d.ts +1 -0
  279. package/lib/Grid/style/index.js +3 -0
  280. package/lib/Layout/index.d.ts +4 -0
  281. package/lib/Layout/index.js +15 -0
  282. package/lib/Layout/style/index.css +505 -0
  283. package/lib/Layout/style/index.d.ts +1 -0
  284. package/lib/Layout/style/index.js +3 -0
  285. package/lib/LmEditTable/EditTable.d.ts +4 -1
  286. package/lib/LmEditTable/EditTable.js +242 -60
  287. package/lib/LmEditTable/sortableBoxCol.d.ts +5 -0
  288. package/lib/LmEditTable/sortableBoxCol.js +24 -0
  289. package/lib/LmEditTable/sortableItemCol.d.ts +1 -0
  290. package/lib/LmEditTable/sortableItemCol.js +61 -0
  291. package/lib/LmFilter/{icon_placeholder.png → assets/empty.png} +0 -0
  292. package/lib/LmFilter/clearFilter/index.js +3 -5
  293. package/lib/LmFilter/complexFilter/drawer.js +26 -9
  294. package/lib/LmFilter/components/CheckboxFilter.js +1 -1
  295. package/lib/LmFilter/components/CustomSelectFilter.js +139 -0
  296. package/lib/LmFilter/components/EmptyFilter.js +2 -2
  297. package/lib/LmFilter/components/SelectFilter.js +15 -6
  298. package/lib/LmFilter/components/index.js +9 -2
  299. package/lib/LmFilter/customFilter/drawer.js +427 -0
  300. package/lib/LmFilter/customFilter/index.js +107 -2
  301. package/lib/LmFilter/customFilter/saveModal.js +187 -0
  302. package/lib/LmFilter/customFilter/valueDrawer.js +238 -0
  303. package/lib/LmFilter/filterFns/index.js +316 -70
  304. package/lib/LmFilter/style/{style.css → index.css} +61 -6
  305. package/lib/LmFilter/style/index.js +1 -1
  306. package/lib/LmFilter/utils.js +34 -0
  307. package/lib/LmFilter/wrapper/FilterRoot.js +63 -49
  308. package/lib/Mentions/index.d.ts +3 -0
  309. package/lib/Mentions/index.js +15 -0
  310. package/lib/Mentions/style/index.css +505 -0
  311. package/lib/Mentions/style/index.d.ts +1 -0
  312. package/lib/Mentions/style/index.js +3 -0
  313. package/lib/PageHeader/index.d.ts +24 -0
  314. package/lib/PageHeader/index.js +194 -0
  315. package/lib/PageHeader/style/index.css +505 -0
  316. package/lib/PageHeader/style/index.d.ts +1 -0
  317. package/lib/PageHeader/style/index.js +3 -0
  318. package/lib/Popover/index.d.ts +11 -0
  319. package/lib/Popover/index.js +81 -0
  320. package/lib/Popover/style/index.css +505 -0
  321. package/lib/Popover/style/index.d.ts +1 -0
  322. package/lib/Popover/style/index.js +3 -0
  323. package/lib/Rate/index.d.ts +3 -0
  324. package/lib/Rate/index.js +15 -0
  325. package/lib/Rate/style/index.css +505 -0
  326. package/lib/Rate/style/index.d.ts +1 -0
  327. package/lib/Rate/style/index.js +3 -0
  328. package/lib/Row/README.md.old +22 -0
  329. package/lib/Row/index.d.ts +3 -0
  330. package/lib/Row/index.js +11 -0
  331. package/lib/Row/style/index.css +505 -0
  332. package/lib/Row/style/index.d.ts +1 -0
  333. package/lib/Row/style/index.js +3 -0
  334. package/lib/Steps/index.d.ts +3 -0
  335. package/lib/Steps/index.js +15 -0
  336. package/lib/Steps/style/index.css +505 -0
  337. package/lib/Steps/style/index.d.ts +1 -0
  338. package/lib/Steps/style/index.js +3 -0
  339. package/lib/Tooltip/index.d.ts +43 -1
  340. package/lib/Tooltip/index.js +247 -1
  341. package/lib/Typography/Base/Ellipsis.d.ts +14 -0
  342. package/lib/Typography/Base/Ellipsis.js +212 -0
  343. package/lib/Typography/Base/EllipsisTooltip.d.ts +13 -0
  344. package/lib/Typography/Base/EllipsisTooltip.js +36 -0
  345. package/lib/Typography/Base/index.d.ts +54 -0
  346. package/lib/Typography/Base/index.js +545 -0
  347. package/lib/Typography/Editable.d.ts +20 -0
  348. package/lib/Typography/Editable.js +137 -0
  349. package/lib/Typography/Link.d.ts +7 -0
  350. package/lib/Typography/Link.js +58 -0
  351. package/lib/Typography/Paragraph.d.ts +7 -0
  352. package/lib/Typography/Paragraph.js +26 -0
  353. package/lib/Typography/Text.d.ts +8 -0
  354. package/lib/Typography/Text.js +57 -0
  355. package/lib/Typography/Title.d.ts +9 -0
  356. package/lib/Typography/Title.js +58 -0
  357. package/lib/Typography/Typography.d.ts +11 -0
  358. package/lib/Typography/Typography.js +77 -0
  359. package/lib/Typography/hooks/useMergedConfig.d.ts +1 -0
  360. package/lib/Typography/hooks/useMergedConfig.js +21 -0
  361. package/lib/Typography/hooks/useUpdatedEffect.d.ts +3 -0
  362. package/lib/Typography/hooks/useUpdatedEffect.js +24 -0
  363. package/lib/Typography/index.d.ts +15 -0
  364. package/lib/Typography/index.js +31 -0
  365. package/lib/Typography/style/index.css +505 -0
  366. package/lib/Typography/style/index.d.ts +1 -0
  367. package/lib/Typography/style/index.js +3 -0
  368. package/lib/_util/colors.d.ts +5 -0
  369. package/lib/_util/colors.js +14 -0
  370. package/lib/_util/getRenderPropValue.d.ts +3 -0
  371. package/lib/_util/getRenderPropValue.js +22 -0
  372. package/lib/_util/hooks/useFlexGapSupport.d.ts +2 -0
  373. package/lib/_util/hooks/useFlexGapSupport.js +30 -0
  374. package/lib/_util/hooks/useForceUpdate.d.ts +2 -0
  375. package/lib/_util/hooks/useForceUpdate.js +24 -0
  376. package/lib/_util/placements.d.ts +16 -0
  377. package/lib/_util/placements.js +98 -0
  378. package/lib/_util/responsiveObserve.d.ts +21 -0
  379. package/lib/_util/responsiveObserve.js +79 -0
  380. package/lib/_util/styleChecker.d.ts +4 -0
  381. package/lib/_util/styleChecker.js +52 -0
  382. package/lib/_util/transButton.d.ts +9 -0
  383. package/lib/_util/transButton.js +87 -0
  384. package/lib/index.d.ts +14 -0
  385. package/lib/index.js +57 -1
  386. package/package.json +2 -2
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = getPlacements;
7
+ exports.getOverflowOptions = getOverflowOptions;
8
+
9
+ var _placements = require("rc-tooltip/lib/placements");
10
+
11
+ var autoAdjustOverflowEnabled = {
12
+ adjustX: 1,
13
+ adjustY: 1
14
+ };
15
+ var autoAdjustOverflowDisabled = {
16
+ adjustX: 0,
17
+ adjustY: 0
18
+ };
19
+ var targetOffset = [0, 0];
20
+
21
+ function getOverflowOptions(autoAdjustOverflow) {
22
+ if (typeof autoAdjustOverflow === 'boolean') {
23
+ return autoAdjustOverflow ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;
24
+ }
25
+
26
+ return Object.assign(Object.assign({}, autoAdjustOverflowDisabled), autoAdjustOverflow);
27
+ }
28
+
29
+ function getPlacements(config) {
30
+ var _config$arrowWidth = config.arrowWidth,
31
+ arrowWidth = _config$arrowWidth === void 0 ? 4 : _config$arrowWidth,
32
+ _config$horizontalArr = config.horizontalArrowShift,
33
+ horizontalArrowShift = _config$horizontalArr === void 0 ? 16 : _config$horizontalArr,
34
+ _config$verticalArrow = config.verticalArrowShift,
35
+ verticalArrowShift = _config$verticalArrow === void 0 ? 8 : _config$verticalArrow,
36
+ autoAdjustOverflow = config.autoAdjustOverflow,
37
+ arrowPointAtCenter = config.arrowPointAtCenter;
38
+ var placementMap = {
39
+ left: {
40
+ points: ['cr', 'cl'],
41
+ offset: [-4, 0]
42
+ },
43
+ right: {
44
+ points: ['cl', 'cr'],
45
+ offset: [4, 0]
46
+ },
47
+ top: {
48
+ points: ['bc', 'tc'],
49
+ offset: [0, -4]
50
+ },
51
+ bottom: {
52
+ points: ['tc', 'bc'],
53
+ offset: [0, 4]
54
+ },
55
+ topLeft: {
56
+ points: ['bl', 'tc'],
57
+ offset: [-(horizontalArrowShift + arrowWidth), -4]
58
+ },
59
+ leftTop: {
60
+ points: ['tr', 'cl'],
61
+ offset: [-4, -(verticalArrowShift + arrowWidth)]
62
+ },
63
+ topRight: {
64
+ points: ['br', 'tc'],
65
+ offset: [horizontalArrowShift + arrowWidth, -4]
66
+ },
67
+ rightTop: {
68
+ points: ['tl', 'cr'],
69
+ offset: [4, -(verticalArrowShift + arrowWidth)]
70
+ },
71
+ bottomRight: {
72
+ points: ['tr', 'bc'],
73
+ offset: [horizontalArrowShift + arrowWidth, 4]
74
+ },
75
+ rightBottom: {
76
+ points: ['bl', 'cr'],
77
+ offset: [4, verticalArrowShift + arrowWidth]
78
+ },
79
+ bottomLeft: {
80
+ points: ['tl', 'bc'],
81
+ offset: [-(horizontalArrowShift + arrowWidth), 4]
82
+ },
83
+ leftBottom: {
84
+ points: ['br', 'cl'],
85
+ offset: [-4, verticalArrowShift + arrowWidth]
86
+ }
87
+ };
88
+ Object.keys(placementMap).forEach(function (key) {
89
+ placementMap[key] = arrowPointAtCenter ? Object.assign(Object.assign({}, placementMap[key]), {
90
+ overflow: getOverflowOptions(autoAdjustOverflow),
91
+ targetOffset: targetOffset
92
+ }) : Object.assign(Object.assign({}, _placements.placements[key]), {
93
+ overflow: getOverflowOptions(autoAdjustOverflow)
94
+ });
95
+ placementMap[key].ignoreShake = true;
96
+ });
97
+ return placementMap;
98
+ }
@@ -0,0 +1,21 @@
1
+ export declare type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
2
+ export declare type BreakpointMap = Record<Breakpoint, string>;
3
+ export declare type ScreenMap = Partial<Record<Breakpoint, boolean>>;
4
+ export declare type ScreenSizeMap = Partial<Record<Breakpoint, number>>;
5
+ export declare const responsiveArray: Breakpoint[];
6
+ export declare const responsiveMap: BreakpointMap;
7
+ declare type SubscribeFunc = (screens: ScreenMap) => void;
8
+ declare const responsiveObserve: {
9
+ matchHandlers: {
10
+ [prop: string]: {
11
+ mql: MediaQueryList;
12
+ listener: (this: MediaQueryList, ev: MediaQueryListEvent) => any;
13
+ };
14
+ };
15
+ dispatch(pointMap: ScreenMap): boolean;
16
+ subscribe(func: SubscribeFunc): number;
17
+ unsubscribe(token: number): void;
18
+ unregister(): void;
19
+ register(): void;
20
+ };
21
+ export default responsiveObserve;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.responsiveMap = exports.responsiveArray = exports.default = void 0;
9
+
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+
12
+ var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
13
+ exports.responsiveArray = responsiveArray;
14
+ var responsiveMap = {
15
+ xs: '(max-width: 575px)',
16
+ sm: '(min-width: 576px)',
17
+ md: '(min-width: 768px)',
18
+ lg: '(min-width: 992px)',
19
+ xl: '(min-width: 1200px)',
20
+ xxl: '(min-width: 1600px)'
21
+ };
22
+ exports.responsiveMap = responsiveMap;
23
+ var subscribers = new Map();
24
+ var subUid = -1;
25
+ var screens = {};
26
+ var responsiveObserve = {
27
+ matchHandlers: {},
28
+ dispatch: function dispatch(pointMap) {
29
+ screens = pointMap;
30
+ subscribers.forEach(function (func) {
31
+ return func(screens);
32
+ });
33
+ return subscribers.size >= 1;
34
+ },
35
+ subscribe: function subscribe(func) {
36
+ if (!subscribers.size) this.register();
37
+ subUid += 1;
38
+ subscribers.set(subUid, func);
39
+ func(screens);
40
+ return subUid;
41
+ },
42
+ unsubscribe: function unsubscribe(token) {
43
+ subscribers.delete(token);
44
+ if (!subscribers.size) this.unregister();
45
+ },
46
+ unregister: function unregister() {
47
+ var _this = this;
48
+
49
+ Object.keys(responsiveMap).forEach(function (screen) {
50
+ var matchMediaQuery = responsiveMap[screen];
51
+ var handler = _this.matchHandlers[matchMediaQuery];
52
+ handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
53
+ });
54
+ subscribers.clear();
55
+ },
56
+ register: function register() {
57
+ var _this2 = this;
58
+
59
+ Object.keys(responsiveMap).forEach(function (screen) {
60
+ var matchMediaQuery = responsiveMap[screen];
61
+
62
+ var listener = function listener(_ref) {
63
+ var matches = _ref.matches;
64
+
65
+ _this2.dispatch(Object.assign(Object.assign({}, screens), (0, _defineProperty2.default)({}, screen, matches)));
66
+ };
67
+
68
+ var mql = window.matchMedia(matchMediaQuery);
69
+ mql.addListener(listener);
70
+ _this2.matchHandlers[matchMediaQuery] = {
71
+ mql: mql,
72
+ listener: listener
73
+ };
74
+ listener(mql);
75
+ });
76
+ }
77
+ };
78
+ var _default = responsiveObserve;
79
+ exports.default = _default;
@@ -0,0 +1,4 @@
1
+ import { isStyleSupport } from 'rc-util/lib/Dom/styleChecker';
2
+ export declare const canUseDocElement: () => HTMLElement;
3
+ export { isStyleSupport };
4
+ export declare const detectFlexGapSupported: () => boolean;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.detectFlexGapSupported = exports.canUseDocElement = void 0;
9
+ Object.defineProperty(exports, "isStyleSupport", {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return _styleChecker.isStyleSupport;
13
+ }
14
+ });
15
+
16
+ var _canUseDom = _interopRequireDefault(require("rc-util/lib/Dom/canUseDom"));
17
+
18
+ var _styleChecker = require("rc-util/lib/Dom/styleChecker");
19
+
20
+ var canUseDocElement = function canUseDocElement() {
21
+ return (0, _canUseDom.default)() && window.document.documentElement;
22
+ };
23
+
24
+ exports.canUseDocElement = canUseDocElement;
25
+ var flexGapSupported;
26
+
27
+ var detectFlexGapSupported = function detectFlexGapSupported() {
28
+ if (!canUseDocElement()) {
29
+ return false;
30
+ }
31
+
32
+ if (flexGapSupported !== undefined) {
33
+ return flexGapSupported;
34
+ } // create flex container with row-gap set
35
+
36
+
37
+ var flex = document.createElement('div');
38
+ flex.style.display = 'flex';
39
+ flex.style.flexDirection = 'column';
40
+ flex.style.rowGap = '1px'; // create two, elements inside it
41
+
42
+ flex.appendChild(document.createElement('div'));
43
+ flex.appendChild(document.createElement('div')); // append to the DOM (needed to obtain scrollHeight)
44
+
45
+ document.body.appendChild(flex);
46
+ flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap
47
+
48
+ document.body.removeChild(flex);
49
+ return flexGapSupported;
50
+ };
51
+
52
+ exports.detectFlexGapSupported = detectFlexGapSupported;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ interface TransButtonProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
4
+ noStyle?: boolean;
5
+ autoFocus?: boolean;
6
+ disabled?: boolean;
7
+ }
8
+ declare const TransButton: React.ForwardRefExoticComponent<TransButtonProps & React.RefAttributes<HTMLDivElement>>;
9
+ export default TransButton;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = void 0;
11
+
12
+ var _KeyCode = _interopRequireDefault(require("rc-util/lib/KeyCode"));
13
+
14
+ var React = _interopRequireWildcard(require("react"));
15
+
16
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
17
+ var t = {};
18
+
19
+ for (var p in s) {
20
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
21
+ }
22
+
23
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
24
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
28
+ /**
29
+ * Wrap of sub component which need use as Button capacity (like Icon component).
30
+ *
31
+ * This helps accessibility reader to tread as a interactive button to operation.
32
+ */
33
+
34
+
35
+ var inlineStyle = {
36
+ border: 0,
37
+ background: 'transparent',
38
+ padding: 0,
39
+ lineHeight: 'inherit',
40
+ display: 'inline-block'
41
+ };
42
+ var TransButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
43
+ var onKeyDown = function onKeyDown(event) {
44
+ var keyCode = event.keyCode;
45
+
46
+ if (keyCode === _KeyCode.default.ENTER) {
47
+ event.preventDefault();
48
+ }
49
+ };
50
+
51
+ var onKeyUp = function onKeyUp(event) {
52
+ var keyCode = event.keyCode;
53
+ var onClick = props.onClick;
54
+
55
+ if (keyCode === _KeyCode.default.ENTER && onClick) {
56
+ onClick();
57
+ }
58
+ };
59
+
60
+ var style = props.style,
61
+ noStyle = props.noStyle,
62
+ disabled = props.disabled,
63
+ restProps = __rest(props, ["style", "noStyle", "disabled"]);
64
+
65
+ var mergedStyle = {};
66
+
67
+ if (!noStyle) {
68
+ mergedStyle = Object.assign({}, inlineStyle);
69
+ }
70
+
71
+ if (disabled) {
72
+ mergedStyle.pointerEvents = 'none';
73
+ }
74
+
75
+ mergedStyle = Object.assign(Object.assign({}, mergedStyle), style);
76
+ return /*#__PURE__*/React.createElement("div", Object.assign({
77
+ role: "button",
78
+ tabIndex: 0,
79
+ ref: ref
80
+ }, restProps, {
81
+ onKeyDown: onKeyDown,
82
+ onKeyUp: onKeyUp,
83
+ style: mergedStyle
84
+ }));
85
+ });
86
+ var _default = TransButton;
87
+ exports.default = _default;
package/lib/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export { default as CustomTableOption } from './CustomTableOption';
45
45
  export { default as Upload } from './Upload';
46
46
  export type { UploadProps, UploadFile, RcFile } from './Upload';
47
47
  export { default as Tooltip } from './Tooltip';
48
+ export type { TooltipProps } from './Tooltip';
48
49
  export { default as Form } from './Form';
49
50
  export { default as Spin } from './Spin';
50
51
  export { default as LmEditTable } from './LmEditTable';
@@ -52,3 +53,16 @@ export { default as List } from './List';
52
53
  export { default as LMQuickMenu } from './QuickMenu';
53
54
  export { default as DatePicker } from './DatePicker';
54
55
  export type { DatePickerProps, MonthPickerProps, WeekPickerProps, RangePickerProps } from './DatePicker';
56
+ export { default as Popover } from './Popover';
57
+ export type { PopoverProps } from './Popover';
58
+ export { default as Typography } from './Typography';
59
+ export type { TypographyProps } from './Typography';
60
+ export { default as AutoComplete } from './AutoComplete';
61
+ export type { AutoCompleteProps } from './AutoComplete';
62
+ export { default as Grid } from './Grid';
63
+ export { default as Row } from './Row';
64
+ export type { RowProps } from './Row';
65
+ export { default as Col } from './Col';
66
+ export type { ColProps } from './Col';
67
+ export { default as Layout } from './Layout';
68
+ export type { LayoutProps, SiderProps } from './Layout';
package/lib/index.js CHANGED
@@ -5,6 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ Object.defineProperty(exports, "AutoComplete", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _AutoComplete.default;
12
+ }
13
+ });
8
14
  Object.defineProperty(exports, "Button", {
9
15
  enumerable: true,
10
16
  get: function get() {
@@ -41,6 +47,12 @@ Object.defineProperty(exports, "CkFilter", {
41
47
  return _CkFilter.default;
42
48
  }
43
49
  });
50
+ Object.defineProperty(exports, "Col", {
51
+ enumerable: true,
52
+ get: function get() {
53
+ return _Col.default;
54
+ }
55
+ });
44
56
  Object.defineProperty(exports, "CustomTableOption", {
45
57
  enumerable: true,
46
58
  get: function get() {
@@ -101,6 +113,12 @@ Object.defineProperty(exports, "Form", {
101
113
  return _Form.default;
102
114
  }
103
115
  });
116
+ Object.defineProperty(exports, "Grid", {
117
+ enumerable: true,
118
+ get: function get() {
119
+ return _Grid.default;
120
+ }
121
+ });
104
122
  Object.defineProperty(exports, "Icon", {
105
123
  enumerable: true,
106
124
  get: function get() {
@@ -143,6 +161,12 @@ Object.defineProperty(exports, "LMQuickMenu", {
143
161
  return _QuickMenu.default;
144
162
  }
145
163
  });
164
+ Object.defineProperty(exports, "Layout", {
165
+ enumerable: true,
166
+ get: function get() {
167
+ return _Layout.default;
168
+ }
169
+ });
146
170
  Object.defineProperty(exports, "LeftTable", {
147
171
  enumerable: true,
148
172
  get: function get() {
@@ -209,6 +233,12 @@ Object.defineProperty(exports, "PopTable", {
209
233
  return _PopTable.default;
210
234
  }
211
235
  });
236
+ Object.defineProperty(exports, "Popover", {
237
+ enumerable: true,
238
+ get: function get() {
239
+ return _Popover.default;
240
+ }
241
+ });
212
242
  Object.defineProperty(exports, "ProTable", {
213
243
  enumerable: true,
214
244
  get: function get() {
@@ -221,6 +251,12 @@ Object.defineProperty(exports, "Radio", {
221
251
  return _Radio.default;
222
252
  }
223
253
  });
254
+ Object.defineProperty(exports, "Row", {
255
+ enumerable: true,
256
+ get: function get() {
257
+ return _Row.default;
258
+ }
259
+ });
224
260
  Object.defineProperty(exports, "Select", {
225
261
  enumerable: true,
226
262
  get: function get() {
@@ -281,6 +317,12 @@ Object.defineProperty(exports, "Tree", {
281
317
  return _Tree.default;
282
318
  }
283
319
  });
320
+ Object.defineProperty(exports, "Typography", {
321
+ enumerable: true,
322
+ get: function get() {
323
+ return _Typography.default;
324
+ }
325
+ });
284
326
  Object.defineProperty(exports, "Upload", {
285
327
  enumerable: true,
286
328
  get: function get() {
@@ -412,4 +454,18 @@ var _List = _interopRequireDefault(require("./List"));
412
454
 
413
455
  var _QuickMenu = _interopRequireDefault(require("./QuickMenu"));
414
456
 
415
- var _DatePicker = _interopRequireDefault(require("./DatePicker"));
457
+ var _DatePicker = _interopRequireDefault(require("./DatePicker"));
458
+
459
+ var _Popover = _interopRequireDefault(require("./Popover"));
460
+
461
+ var _Typography = _interopRequireDefault(require("./Typography"));
462
+
463
+ var _AutoComplete = _interopRequireDefault(require("./AutoComplete"));
464
+
465
+ var _Grid = _interopRequireDefault(require("./Grid"));
466
+
467
+ var _Row = _interopRequireDefault(require("./Row"));
468
+
469
+ var _Col = _interopRequireDefault(require("./Col"));
470
+
471
+ var _Layout = _interopRequireDefault(require("./Layout"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkmore-design",
3
- "version": "1.0.62",
3
+ "version": "1.0.66",
4
4
  "author": {
5
5
  "name": "nowthen",
6
6
  "email": "rnlvwyx@gmail.com"
@@ -35,7 +35,7 @@
35
35
  "create": "node ./config/main.js",
36
36
  "dumi": "dumi dev",
37
37
  "dumi:build": "dumi build",
38
- "pub": "npm run build && npm verion patch && npm publish"
38
+ "pub": "npm run build && npm version patch && npm publish"
39
39
  },
40
40
  "lint-staged": {
41
41
  "gitDir": "../",