@hi-ui/hiui 3.9.0-rc.8 → 4.0.0-beta.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 (544) hide show
  1. package/README.md +5 -79
  2. package/lib/cjs/index.js +576 -0
  3. package/lib/cjs/index.js.map +1 -0
  4. package/lib/esm/index.js +66 -0
  5. package/lib/esm/index.js.map +1 -0
  6. package/lib/types/index.d.ts +56 -0
  7. package/package.json +101 -184
  8. package/CHANGELOG.md +0 -330
  9. package/es/_util/EventEmitter.js +0 -56
  10. package/es/_util/SwitchVersion.js +0 -40
  11. package/es/_util/depreactedPropsCompat.js +0 -58
  12. package/es/_util/deprecatedPropsCheck.js +0 -21
  13. package/es/_util/index.js +0 -31
  14. package/es/_util/warning.js +0 -19
  15. package/es/alert/Alert.js +0 -129
  16. package/es/alert/__tests__/index.test.js +0 -84
  17. package/es/alert/index.d.ts +0 -18
  18. package/es/alert/index.js +0 -20
  19. package/es/alert/style/index.css +0 -1
  20. package/es/alert/style/index.js +0 -3
  21. package/es/badge/Badge.js +0 -94
  22. package/es/badge/__tests__/index.test.js +0 -82
  23. package/es/badge/index.d.ts +0 -15
  24. package/es/badge/index.js +0 -22
  25. package/es/badge/style/index.css +0 -1
  26. package/es/badge/style/index.js +0 -3
  27. package/es/base-css/index.js +0 -3
  28. package/es/base-css/style/index.css +0 -1
  29. package/es/base-css/style/index.js +0 -3
  30. package/es/breadcrumb/__tests__/index.test.js +0 -61
  31. package/es/breadcrumb/index.d.ts +0 -19
  32. package/es/breadcrumb/index.js +0 -72
  33. package/es/breadcrumb/style/index.css +0 -1
  34. package/es/breadcrumb/style/index.js +0 -3
  35. package/es/button/Button.js +0 -158
  36. package/es/button/ButtonGroup.js +0 -63
  37. package/es/button/IconLoading.js +0 -27
  38. package/es/button/__tests__/index.test.js +0 -221
  39. package/es/button/index.d.ts +0 -26
  40. package/es/button/index.js +0 -19
  41. package/es/button/style/index.css +0 -1
  42. package/es/button/style/index.js +0 -3
  43. package/es/card/CoverCard.js +0 -41
  44. package/es/card/NormalCard.js +0 -46
  45. package/es/card/SimpleCard.js +0 -32
  46. package/es/card/__tests__/index.test.js +0 -180
  47. package/es/card/index.d.ts +0 -18
  48. package/es/card/index.js +0 -75
  49. package/es/card/style/index.css +0 -1
  50. package/es/card/style/index.js +0 -3
  51. package/es/carousel/__tests__/index.test.js +0 -104
  52. package/es/carousel/index.d.ts +0 -13
  53. package/es/carousel/index.js +0 -242
  54. package/es/carousel/style/index.css +0 -1
  55. package/es/carousel/style/index.js +0 -3
  56. package/es/cascader/Cascader.js +0 -530
  57. package/es/cascader/Menu.js +0 -147
  58. package/es/cascader/__tests__/index.test.js +0 -393
  59. package/es/cascader/img/empty.png +0 -0
  60. package/es/cascader/index.d.ts +0 -36
  61. package/es/cascader/index.js +0 -15
  62. package/es/cascader/style/cascader.css +0 -1
  63. package/es/cascader/style/index.js +0 -5
  64. package/es/cascader/style/menu.css +0 -1
  65. package/es/cascader/utils.js +0 -216
  66. package/es/charts/hi-echarts-theme-default.json +0 -502
  67. package/es/charts/index.d.ts +0 -12
  68. package/es/charts/index.js +0 -32
  69. package/es/checkbox/Checkbox.js +0 -145
  70. package/es/checkbox/Group.js +0 -198
  71. package/es/checkbox/__tests__/index.test.js +0 -226
  72. package/es/checkbox/checkbox-legacy/Base.js +0 -216
  73. package/es/checkbox/checkbox-legacy/CheckBox.js +0 -161
  74. package/es/checkbox/checkbox-legacy/common.js +0 -47
  75. package/es/checkbox/checkbox-legacy/index.js +0 -15
  76. package/es/checkbox/checkbox-legacy/style/index.css +0 -1
  77. package/es/checkbox/checkbox-legacy/style/index.js +0 -3
  78. package/es/checkbox/index.d.ts +0 -35
  79. package/es/checkbox/index.js +0 -38
  80. package/es/checkbox/style/index.css +0 -1
  81. package/es/checkbox/style/index.js +0 -3
  82. package/es/collapse/Panel.js +0 -135
  83. package/es/collapse/__tests__/index.test.js +0 -111
  84. package/es/collapse/index.d.ts +0 -24
  85. package/es/collapse/index.js +0 -197
  86. package/es/collapse/style/index.css +0 -1
  87. package/es/collapse/style/index.js +0 -3
  88. package/es/context/index.d.ts +0 -3
  89. package/es/context/index.js +0 -120
  90. package/es/counter/Counter.js +0 -369
  91. package/es/counter/__tests__/index.test.js +0 -134
  92. package/es/counter/counter-legacy/index.js +0 -271
  93. package/es/counter/index.d.ts +0 -13
  94. package/es/counter/index.js +0 -29
  95. package/es/counter/style/index.css +0 -1
  96. package/es/counter/style/index.js +0 -3
  97. package/es/date-picker/BasePicker.js +0 -325
  98. package/es/date-picker/TimePicker.d.ts +0 -23
  99. package/es/date-picker/TimePicker.js +0 -211
  100. package/es/date-picker/__tests__/index.test.js +0 -957
  101. package/es/date-picker/components/Calender.js +0 -274
  102. package/es/date-picker/components/Header.js +0 -98
  103. package/es/date-picker/components/Input.js +0 -103
  104. package/es/date-picker/components/Panel.js +0 -145
  105. package/es/date-picker/components/PickerIcon.js +0 -33
  106. package/es/date-picker/components/RangePanel.js +0 -353
  107. package/es/date-picker/components/Root.js +0 -128
  108. package/es/date-picker/components/Time.js +0 -258
  109. package/es/date-picker/components/TimeList.js +0 -193
  110. package/es/date-picker/components/TimePanel.js +0 -67
  111. package/es/date-picker/components/TimePeriodPanel.js +0 -78
  112. package/es/date-picker/constants.js +0 -54
  113. package/es/date-picker/context.js +0 -15
  114. package/es/date-picker/hooks/index.js +0 -47
  115. package/es/date-picker/hooks/useAltData.js +0 -112
  116. package/es/date-picker/hooks/useCalenderData.js +0 -371
  117. package/es/date-picker/hooks/useDate.js +0 -46
  118. package/es/date-picker/hooks/useFormat.js +0 -27
  119. package/es/date-picker/hooks/usePlaceholder.js +0 -43
  120. package/es/date-picker/hooks/useTimePeriodData.js +0 -29
  121. package/es/date-picker/index.d.ts +0 -61
  122. package/es/date-picker/index.js +0 -31
  123. package/es/date-picker/style/index.css +0 -1
  124. package/es/date-picker/style/index.js +0 -3
  125. package/es/date-picker/style/timepicker.css +0 -1
  126. package/es/date-picker/style/timepicker.js +0 -3
  127. package/es/date-picker/toLunar.js +0 -172
  128. package/es/date-picker/utils.js +0 -347
  129. package/es/drawer/index.d.ts +0 -18
  130. package/es/drawer/index.js +0 -133
  131. package/es/drawer/style/index.css +0 -1
  132. package/es/drawer/style/index.js +0 -3
  133. package/es/dropdown/Dropdown.js +0 -239
  134. package/es/dropdown/DropdownButton.js +0 -105
  135. package/es/dropdown/DropdownMenu.js +0 -119
  136. package/es/dropdown/DropdownMenuItem.js +0 -176
  137. package/es/dropdown/__tests__/index.test.js +0 -313
  138. package/es/dropdown/index.d.ts +0 -29
  139. package/es/dropdown/index.js +0 -88
  140. package/es/dropdown/style/index.css +0 -1
  141. package/es/dropdown/style/index.js +0 -3
  142. package/es/dropdown/tests/index.test.js +0 -76
  143. package/es/dropdown/utils.js +0 -35
  144. package/es/ficon/index.js +0 -56
  145. package/es/ficon/style/_fa/font-awesome.css +0 -1
  146. package/es/ficon/style/fonts/FontAwesome.otf +0 -0
  147. package/es/ficon/style/fonts/fontawesome-webfont.eot +0 -0
  148. package/es/ficon/style/fonts/fontawesome-webfont.svg +0 -2671
  149. package/es/ficon/style/fonts/fontawesome-webfont.ttf +0 -0
  150. package/es/ficon/style/fonts/fontawesome-webfont.woff +0 -0
  151. package/es/ficon/style/fonts/fontawesome-webfont.woff2 +0 -0
  152. package/es/ficon/style/index.css +0 -1
  153. package/es/ficon/style/index.js +0 -3
  154. package/es/filter/index.d.ts +0 -18
  155. package/es/filter/index.js +0 -146
  156. package/es/filter/style/index.css +0 -1
  157. package/es/filter/style/index.js +0 -3
  158. package/es/form/Form.js +0 -425
  159. package/es/form/FormContext.js +0 -15
  160. package/es/form/FormReducer.js +0 -144
  161. package/es/form/Item.js +0 -557
  162. package/es/form/List.js +0 -127
  163. package/es/form/Reset.js +0 -41
  164. package/es/form/SchemaForm.js +0 -129
  165. package/es/form/Submit.js +0 -39
  166. package/es/form/__tests__/index.test.js +0 -575
  167. package/es/form/form-legacy/form-v2/Form.js +0 -175
  168. package/es/form/form-legacy/form-v2/Item.js +0 -283
  169. package/es/form/form-legacy/form-v2/__tests__/index.test.js +0 -575
  170. package/es/form/form-legacy/form-v2/index.js +0 -27
  171. package/es/form/form-legacy/form-v2/style/index.css +0 -1
  172. package/es/form/form-legacy/form-v2/style/index.js +0 -3
  173. package/es/form/hooks/useForm.js +0 -48
  174. package/es/form/hooks/useFormInstance.js +0 -46
  175. package/es/form/index.d.ts +0 -80
  176. package/es/form/index.js +0 -47
  177. package/es/form/style/index.css +0 -1
  178. package/es/form/style/index.js +0 -3
  179. package/es/form/test.js +0 -52
  180. package/es/form/utils.js +0 -77
  181. package/es/grid/__tests__/index.test.js +0 -100
  182. package/es/grid/index.d.ts +0 -38
  183. package/es/grid/index.js +0 -178
  184. package/es/grid/style/index.css +0 -1
  185. package/es/grid/style/index.js +0 -3
  186. package/es/hi-base-table/index.d.ts +0 -675
  187. package/es/hi-base-table/index.js +0 -226
  188. package/es/hi-base-table/style/hiui-basetable-theme.css +0 -1
  189. package/es/hi-base-table/style/index.js +0 -3
  190. package/es/hi-request/axios.d.ts +0 -5
  191. package/es/hi-request/axios.js +0 -40
  192. package/es/hi-request/download.d.ts +0 -5
  193. package/es/hi-request/download.js +0 -30
  194. package/es/hi-request/index.d.ts +0 -4
  195. package/es/hi-request/index.js +0 -4
  196. package/es/hi-request/jsonp.d.ts +0 -5
  197. package/es/hi-request/jsonp.js +0 -66
  198. package/es/hi-request/mixin.d.ts +0 -3
  199. package/es/hi-request/mixin.js +0 -42
  200. package/es/hi-request/type.d.ts +0 -69
  201. package/es/hi-request/type.js +0 -0
  202. package/es/hi-request/upload.d.ts +0 -5
  203. package/es/hi-request/upload.js +0 -23
  204. package/es/hi-request/utils.d.ts +0 -1
  205. package/es/hi-request/utils.js +0 -3
  206. package/es/icon/iconfont.js +0 -48
  207. package/es/icon/index.d.ts +0 -13
  208. package/es/icon/index.js +0 -101
  209. package/es/icon/style/index.css +0 -1
  210. package/es/icon/style/index.js +0 -3
  211. package/es/index.d.ts +0 -95
  212. package/es/index.js +0 -58
  213. package/es/input/Input.js +0 -420
  214. package/es/input/__tests__/index.test.js +0 -377
  215. package/es/input/index.d.ts +0 -27
  216. package/es/input/index.js +0 -44
  217. package/es/input/input-legacy/index.js +0 -349
  218. package/es/input/input-legacy/util.js +0 -176
  219. package/es/input/style/index.css +0 -1
  220. package/es/input/style/index.js +0 -5
  221. package/es/input/util.js +0 -191
  222. package/es/lib/withDragDropContext.js +0 -16
  223. package/es/list/IconText.js +0 -40
  224. package/es/list/Item.js +0 -63
  225. package/es/list/index.d.ts +0 -30
  226. package/es/list/index.js +0 -159
  227. package/es/list/style/index.css +0 -1
  228. package/es/list/style/index.js +0 -3
  229. package/es/loading/Loading.js +0 -185
  230. package/es/loading/__tests__/index.test.js +0 -110
  231. package/es/loading/index.d.ts +0 -24
  232. package/es/loading/index.js +0 -18
  233. package/es/loading/style/index.css +0 -1
  234. package/es/loading/style/index.js +0 -3
  235. package/es/locales/en-US.js +0 -138
  236. package/es/locales/index.js +0 -25
  237. package/es/locales/zh-CN.js +0 -141
  238. package/es/locales/zh-Hant-HK.js +0 -141
  239. package/es/locales/zh-Hant-TW.js +0 -141
  240. package/es/menu/Item.js +0 -100
  241. package/es/menu/Menu.js +0 -420
  242. package/es/menu/SubMenu.js +0 -218
  243. package/es/menu/Title.js +0 -84
  244. package/es/menu/__tests__/index.test.js +0 -275
  245. package/es/menu/index.d.ts +0 -26
  246. package/es/menu/index.js +0 -24
  247. package/es/menu/style/index.css +0 -1
  248. package/es/menu/style/index.js +0 -3
  249. package/es/message/__tests__/index.test.js +0 -71
  250. package/es/message/index.d.ts +0 -18
  251. package/es/message/index.js +0 -70
  252. package/es/message/style/index.css +0 -1
  253. package/es/message/style/index.js +0 -5
  254. package/es/modal/__tests__/index.test.js +0 -178
  255. package/es/modal/index.d.ts +0 -33
  256. package/es/modal/index.js +0 -312
  257. package/es/modal/style/index.css +0 -1
  258. package/es/modal/style/index.js +0 -3
  259. package/es/notice/Notice.js +0 -138
  260. package/es/notice/NoticeContainer.js +0 -109
  261. package/es/notice/__tests__/index.test.js +0 -174
  262. package/es/notice/index.js +0 -66
  263. package/es/notice/style/index.css +0 -1
  264. package/es/notice/style/index.js +0 -5
  265. package/es/notification/HandleNotification/index.js +0 -220
  266. package/es/notification/HandleNotification/style/index.css +0 -1
  267. package/es/notification/HandleNotification/style/index.js +0 -5
  268. package/es/notification/__tests__/index.test.js +0 -114
  269. package/es/notification/index.d.ts +0 -25
  270. package/es/notification/index.js +0 -87
  271. package/es/notification/style/index.css +0 -1
  272. package/es/notification/style/index.js +0 -5
  273. package/es/pagination/Pager.js +0 -57
  274. package/es/pagination/Pagination.js +0 -538
  275. package/es/pagination/__tests__/index.test.js +0 -244
  276. package/es/pagination/index.d.ts +0 -20
  277. package/es/pagination/index.js +0 -18
  278. package/es/pagination/style/index.css +0 -1
  279. package/es/pagination/style/index.js +0 -5
  280. package/es/popover/__tests__/index.test.js +0 -152
  281. package/es/popover/index.d.ts +0 -14
  282. package/es/popover/index.js +0 -220
  283. package/es/popover/style/index.css +0 -1
  284. package/es/popover/style/index.js +0 -3
  285. package/es/popper/Overlay.js +0 -246
  286. package/es/popper/Portal.js +0 -42
  287. package/es/popper/index.js +0 -90
  288. package/es/popper/style/index.css +0 -1
  289. package/es/popper/style/index.js +0 -3
  290. package/es/popper/utils/popper.js +0 -311
  291. package/es/popper/utils/positionUtils.js +0 -314
  292. package/es/popper/utils/useClickOutside.js +0 -37
  293. package/es/popper/utils/useWaitForDOMRef.js +0 -56
  294. package/es/preview/index.d.ts +0 -16
  295. package/es/preview/index.js +0 -442
  296. package/es/preview/style/index.css +0 -1
  297. package/es/preview/style/index.js +0 -3
  298. package/es/progress/BarProgress.js +0 -157
  299. package/es/progress/CircleProgress.js +0 -49
  300. package/es/progress/DashboardProgress.js +0 -60
  301. package/es/progress/Progress.js +0 -111
  302. package/es/progress/__tests__/index.test.js +0 -131
  303. package/es/progress/index.d.ts +0 -18
  304. package/es/progress/index.js +0 -15
  305. package/es/progress/style/index.css +0 -1
  306. package/es/progress/style/index.js +0 -3
  307. package/es/radio/Group.js +0 -280
  308. package/es/radio/Radio.js +0 -167
  309. package/es/radio/__tests__/index.test.js +0 -128
  310. package/es/radio/index.d.ts +0 -32
  311. package/es/radio/index.js +0 -31
  312. package/es/radio/radio-legacy/__test__/index.test.js +0 -79
  313. package/es/radio/radio-legacy/index.js +0 -218
  314. package/es/radio/radio-legacy/style/index.css +0 -1
  315. package/es/radio/radio-legacy/style/index.js +0 -3
  316. package/es/radio/style/index.css +0 -1
  317. package/es/radio/style/index.js +0 -3
  318. package/es/rate/Icons.js +0 -294
  319. package/es/rate/Rate.js +0 -316
  320. package/es/rate/__tests__/index.test.js +0 -124
  321. package/es/rate/index.d.ts +0 -22
  322. package/es/rate/index.js +0 -15
  323. package/es/rate/style/index.css +0 -1
  324. package/es/rate/style/index.js +0 -3
  325. package/es/rich-text-editor/index.d.ts +0 -8
  326. package/es/rich-text-editor/index.js +0 -67
  327. package/es/rich-text-editor/style/index.css +0 -1
  328. package/es/rich-text-editor/style/index.js +0 -9
  329. package/es/search/index.d.ts +0 -23
  330. package/es/search/index.js +0 -264
  331. package/es/search/searchDropdown.js +0 -111
  332. package/es/search/style/index.css +0 -1
  333. package/es/search/style/index.js +0 -3
  334. package/es/select/MultipleInput.js +0 -163
  335. package/es/select/Select.js +0 -775
  336. package/es/select/SelectDropdown.js +0 -341
  337. package/es/select/SelectInput.js +0 -31
  338. package/es/select/SingleInput.js +0 -94
  339. package/es/select/__tests__/index.test.js +0 -505
  340. package/es/select/common.js +0 -19
  341. package/es/select/index.d.ts +0 -65
  342. package/es/select/index.js +0 -32
  343. package/es/select/select-legacy/select-v1/Option.js +0 -81
  344. package/es/select/select-legacy/select-v1/Select.js +0 -706
  345. package/es/select/select-legacy/select-v1/SelectDropdown.js +0 -160
  346. package/es/select/select-legacy/select-v1/SelectInput.js +0 -308
  347. package/es/select/select-legacy/select-v1/common.js +0 -19
  348. package/es/select/select-legacy/select-v1/index.js +0 -16
  349. package/es/select/select-legacy/select-v2/Select.js +0 -756
  350. package/es/select/select-legacy/select-v2/SelectDropdown.js +0 -322
  351. package/es/select/select-legacy/select-v2/SelectInput.js +0 -331
  352. package/es/select/select-legacy/select-v2/__tests__/index.test.js +0 -505
  353. package/es/select/select-legacy/select-v2/common.js +0 -19
  354. package/es/select/select-legacy/select-v2/index.js +0 -15
  355. package/es/select/select-legacy/select-v2/style/index.css +0 -1
  356. package/es/select/select-legacy/select-v2/style/index.js +0 -9
  357. package/es/select/select-legacy/select-v2/style/select-dropdown.css +0 -1
  358. package/es/select/select-legacy/select-v2/style/select-input.css +0 -1
  359. package/es/select/style/index.css +0 -1
  360. package/es/select/style/index.js +0 -9
  361. package/es/select/style/select-dropdown.css +0 -1
  362. package/es/select/style/select-input.css +0 -1
  363. package/es/select/utils.js +0 -72
  364. package/es/select-tree/SelectTreeHook.js +0 -788
  365. package/es/select-tree/components/Trigger.js +0 -85
  366. package/es/select-tree/components/tree/LoadingIcon.js +0 -38
  367. package/es/select-tree/components/tree/NavTree.js +0 -229
  368. package/es/select-tree/components/tree/TreeNode.js +0 -167
  369. package/es/select-tree/components/tree/context.js +0 -15
  370. package/es/select-tree/components/tree/index.js +0 -80
  371. package/es/select-tree/components/tree/style/index.css +0 -1
  372. package/es/select-tree/components/tree/style/index.js +0 -3
  373. package/es/select-tree/components/tree/util.js +0 -621
  374. package/es/select-tree/index.d.ts +0 -47
  375. package/es/select-tree/index.js +0 -15
  376. package/es/select-tree/keyEvents.js +0 -121
  377. package/es/select-tree/style/index.css +0 -1
  378. package/es/select-tree/style/index.js +0 -3
  379. package/es/slider/index.d.ts +0 -22
  380. package/es/slider/index.js +0 -491
  381. package/es/slider/style/index.css +0 -1
  382. package/es/slider/style/index.js +0 -3
  383. package/es/stepper/Stepper.js +0 -158
  384. package/es/stepper/__tests__/index.test.js +0 -161
  385. package/es/stepper/index.d.ts +0 -16
  386. package/es/stepper/index.js +0 -33
  387. package/es/stepper/style/index.css +0 -1
  388. package/es/stepper/style/index.js +0 -3
  389. package/es/style/icon/diyIcon.css +0 -1
  390. package/es/style/icon/index.css +0 -1
  391. package/es/switch/__tests__/index.test.js +0 -68
  392. package/es/switch/index.d.ts +0 -13
  393. package/es/switch/index.js +0 -21
  394. package/es/switch/style/index.css +0 -1
  395. package/es/switch/style/index.js +0 -3
  396. package/es/switch/switch-legacy/__tests__/index.test.js +0 -68
  397. package/es/switch/switch-legacy/index.js +0 -128
  398. package/es/switch/switch-legacy/style/index.css +0 -1
  399. package/es/switch/switch-legacy/style/index.js +0 -3
  400. package/es/switch/switch.js +0 -76
  401. package/es/table/AdvanceHeader/CustomFilter.js +0 -73
  402. package/es/table/AdvanceHeader/Sorter.js +0 -72
  403. package/es/table/AdvanceHeader/index.js +0 -41
  404. package/es/table/AdvanceHeader/select/index.js +0 -720
  405. package/es/table/AdvanceHeader/select/style/index.css +0 -1
  406. package/es/table/AdvanceHeader/select/style/index.js +0 -5
  407. package/es/table/AdvanceHeader/style/index.css +0 -1
  408. package/es/table/AdvanceHeader/style/index.js +0 -3
  409. package/es/table/BodyTable.js +0 -261
  410. package/es/table/Cell.js +0 -193
  411. package/es/table/ColumnMenu.js +0 -148
  412. package/es/table/Expandcol.js +0 -48
  413. package/es/table/HeaderTable.js +0 -359
  414. package/es/table/Indent.js +0 -27
  415. package/es/table/LoadingIcon.js +0 -38
  416. package/es/table/Row.js +0 -261
  417. package/es/table/SettingMenu.js +0 -205
  418. package/es/table/Table.js +0 -697
  419. package/es/table/context.js +0 -15
  420. package/es/table/hooks/useClickOutside.js +0 -23
  421. package/es/table/index.d.ts +0 -108
  422. package/es/table/index.js +0 -21
  423. package/es/table/style/Table.css +0 -1
  424. package/es/table/style/index.css +0 -1
  425. package/es/table/style/index.js +0 -3
  426. package/es/table/style/reset.css +0 -1
  427. package/es/table/style/variable.css +0 -0
  428. package/es/table/table-legacy/table-v2/Body.js +0 -298
  429. package/es/table/table-legacy/table-v2/ClickOuterside.js +0 -99
  430. package/es/table/table-legacy/table-v2/Footer.js +0 -174
  431. package/es/table/table-legacy/table-v2/Header.js +0 -319
  432. package/es/table/table-legacy/table-v2/TableContent.js +0 -105
  433. package/es/table/table-legacy/table-v2/__tests__/index.test.js +0 -129
  434. package/es/table/table-legacy/table-v2/checkbox/index.js +0 -98
  435. package/es/table/table-legacy/table-v2/checkbox/style/index.css +0 -1
  436. package/es/table/table-legacy/table-v2/checkbox/style/index.js +0 -3
  437. package/es/table/table-legacy/table-v2/index.js +0 -1466
  438. package/es/table/table-legacy/table-v2/menu/index.js +0 -110
  439. package/es/table/table-legacy/table-v2/prefix.js +0 -20
  440. package/es/table/table-legacy/table-v2/style/Table.css +0 -1
  441. package/es/table/table-legacy/table-v2/style/index.css +0 -1
  442. package/es/table/table-legacy/table-v2/style/index.js +0 -3
  443. package/es/table/table-legacy/table-v2/tool.js +0 -129
  444. package/es/table/util.js +0 -320
  445. package/es/tabs/ItemDropdown.js +0 -158
  446. package/es/tabs/TabItem.js +0 -116
  447. package/es/tabs/TabPane.js +0 -64
  448. package/es/tabs/Tabs.js +0 -576
  449. package/es/tabs/__tests__/index.test.js +0 -333
  450. package/es/tabs/hooks/useTabItems.js +0 -77
  451. package/es/tabs/hooks/useTranslate.js +0 -71
  452. package/es/tabs/index.d.ts +0 -47
  453. package/es/tabs/index.js +0 -38
  454. package/es/tabs/style/animate.css +0 -1
  455. package/es/tabs/style/index.css +0 -1
  456. package/es/tabs/style/index.js +0 -3
  457. package/es/tabs/tabs-legacy/ItemDropdown.js +0 -166
  458. package/es/tabs/tabs-legacy/TabPane.js +0 -74
  459. package/es/tabs/tabs-legacy/Tabs.js +0 -295
  460. package/es/tabs/tabs-legacy/index.js +0 -18
  461. package/es/tabs/tabs-legacy/style/index.css +0 -1
  462. package/es/tabs/tabs-legacy/style/index.js +0 -3
  463. package/es/tag/TagGroup.js +0 -235
  464. package/es/tag/TagItem.js +0 -116
  465. package/es/tag/__tests__/index.test.js +0 -46
  466. package/es/tag/index.d.ts +0 -32
  467. package/es/tag/index.js +0 -18
  468. package/es/tag/style/index.css +0 -1
  469. package/es/tag/style/index.js +0 -3
  470. package/es/timeline/__tests__/index.test.js +0 -198
  471. package/es/timeline/index.d.ts +0 -18
  472. package/es/timeline/index.js +0 -264
  473. package/es/timeline/style/index.css +0 -1
  474. package/es/timeline/style/index.js +0 -3
  475. package/es/tooltip/__tests__/index.test.js +0 -170
  476. package/es/tooltip/index.d.ts +0 -19
  477. package/es/tooltip/index.js +0 -210
  478. package/es/tooltip/style/index.css +0 -1
  479. package/es/tooltip/style/index.js +0 -3
  480. package/es/transfer/Item.js +0 -192
  481. package/es/transfer/Transfer.js +0 -562
  482. package/es/transfer/__tests__/index.test.js +0 -210
  483. package/es/transfer/img/switch.png +0 -0
  484. package/es/transfer/img/warning.png +0 -0
  485. package/es/transfer/index.d.ts +0 -25
  486. package/es/transfer/index.js +0 -16
  487. package/es/transfer/style/index.css +0 -1
  488. package/es/transfer/style/index.js +0 -3
  489. package/es/tree/BaseTree.js +0 -209
  490. package/es/tree/IconLoading.js +0 -38
  491. package/es/tree/Switcher.js +0 -42
  492. package/es/tree/Tree.js +0 -610
  493. package/es/tree/TreeNode.js +0 -326
  494. package/es/tree/context.js +0 -15
  495. package/es/tree/customTreeNode.js +0 -140
  496. package/es/tree/hooks/useCheckable.js +0 -153
  497. package/es/tree/hooks/useClickOutside.js +0 -26
  498. package/es/tree/hooks/useExpand.js +0 -46
  499. package/es/tree/hooks/useFlatData.js +0 -61
  500. package/es/tree/hooks/useSelect.js +0 -47
  501. package/es/tree/index.d.ts +0 -67
  502. package/es/tree/index.js +0 -21
  503. package/es/tree/style/index.css +0 -1
  504. package/es/tree/style/index.js +0 -3
  505. package/es/tree/tree-legacy/tree-v1/Tree.js +0 -333
  506. package/es/tree/tree-legacy/tree-v1/TreeDivider.js +0 -25
  507. package/es/tree/tree-legacy/tree-v1/TreeItem.js +0 -329
  508. package/es/tree/tree-legacy/tree-v1/TreeNode.js +0 -715
  509. package/es/tree/tree-legacy/tree-v1/index.js +0 -13
  510. package/es/tree/tree-legacy/tree-v1/style/index.css +0 -1
  511. package/es/tree/tree-legacy/tree-v1/style/index.js +0 -3
  512. package/es/tree/tree-legacy/tree-v1/util.js +0 -434
  513. package/es/tree/tree-legacy/tree-v2/IconLoading.js +0 -38
  514. package/es/tree/tree-legacy/tree-v2/Modal.js +0 -71
  515. package/es/tree/tree-legacy/tree-v2/Tree.js +0 -347
  516. package/es/tree/tree-legacy/tree-v2/TreeDivider.js +0 -25
  517. package/es/tree/tree-legacy/tree-v2/TreeItem.js +0 -439
  518. package/es/tree/tree-legacy/tree-v2/TreeNode.js +0 -909
  519. package/es/tree/tree-legacy/tree-v2/__tests__/index.test.js +0 -603
  520. package/es/tree/tree-legacy/tree-v2/index.js +0 -20
  521. package/es/tree/tree-legacy/tree-v2/style/index.css +0 -1
  522. package/es/tree/tree-legacy/tree-v2/style/index.js +0 -3
  523. package/es/tree/tree-legacy/tree-v2/util.js +0 -195
  524. package/es/tree/util.js +0 -131
  525. package/es/upload/AvatarUpload.js +0 -293
  526. package/es/upload/DragUpload.js +0 -194
  527. package/es/upload/FileSelect.js +0 -47
  528. package/es/upload/NormalUpload.js +0 -146
  529. package/es/upload/PictureListUpload.js +0 -147
  530. package/es/upload/PictureUpload.js +0 -233
  531. package/es/upload/Preview.js +0 -441
  532. package/es/upload/__tests__/index.test.js +0 -760
  533. package/es/upload/hooks/useUpload.js +0 -274
  534. package/es/upload/index.d.ts +0 -42
  535. package/es/upload/index.js +0 -44
  536. package/es/upload/request.js +0 -118
  537. package/es/upload/style/index.css +0 -1
  538. package/es/upload/style/index.js +0 -5
  539. package/es/upload/style/preview.css +0 -1
  540. package/es/upload/style/preview.js +0 -3
  541. package/es/upload/util.js +0 -55
  542. package/es/watermark/index.d.ts +0 -12
  543. package/es/watermark/index.js +0 -110
  544. package/es/watermark/watermark.js +0 -252
@@ -1,333 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
6
-
7
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
8
-
9
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
10
-
11
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
-
13
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
-
15
- var _react = _interopRequireDefault(require("react"));
16
-
17
- var _enzyme = require("enzyme");
18
-
19
- var _index = _interopRequireDefault(require("../index"));
20
-
21
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
22
-
23
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
24
-
25
- function trigger(elem, event) {
26
- var myEvent = document.createEvent('Event'); // 初始化这个事件对象,为它提高需要的“特性”
27
-
28
- myEvent.initEvent(event, true, true); //执行事件
29
-
30
- elem.dispatchEvent(myEvent);
31
- }
32
-
33
- describe('Tabs', function () {
34
- var panes = [{
35
- tabTitle: '我的订单',
36
- tabId: 'tabId-1'
37
- }, {
38
- tabTitle: '团购订单',
39
- tabId: 'tabId-2',
40
- closeable: false
41
- }, {
42
- tabTitle: '以旧换新订单',
43
- tabId: 'tabId-3',
44
- disabled: true
45
- }, {
46
- tabTitle: '以旧换新订单4',
47
- tabId: 'tabId-4'
48
- }, {
49
- tabTitle: '以旧换新订单5',
50
- tabId: 'tabId-5'
51
- }, {
52
- tabTitle: '购买资格',
53
- tabId: 'tabId-6',
54
- disabled: true
55
- }];
56
- describe('PropTypes', function () {
57
- it('defaultActiveId', function () {
58
- var wrapperDefult = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
59
- defaultActiveId: "tabId-2",
60
- placement: "horizontal"
61
- }, panes.map(function (pane, index) {
62
- return /*#__PURE__*/_react["default"].createElement(_index["default"].Pane, {
63
- tabTitle: pane.tabTitle,
64
- tabId: pane.tabId,
65
- closeable: pane.closeable,
66
- key: index
67
- }, /*#__PURE__*/_react["default"].createElement("div", {
68
- style: {
69
- padding: '16px'
70
- }
71
- }, pane.tabTitle));
72
- })));
73
- expect(wrapperDefult.find('.hi-tabs--card')).toHaveLength(1);
74
- expect(wrapperDefult.find('.hi-tabs--horizontal')).toHaveLength(1);
75
- expect(wrapperDefult.find('.hi-tabs__item').at(1).hasClass('hi-tabs__item--active')).toBeTruthy();
76
- wrapperDefult.find('.hi-tabs__item').at(0).simulate('click');
77
- expect(wrapperDefult.find('.hi-tabs__item--active')).toHaveLength(1);
78
- expect(wrapperDefult.find('.hi-tabs__item').at(0).hasClass('hi-tabs__item--active')).toBeTruthy();
79
- wrapperDefult.unmount();
80
- });
81
- it('placement', function () {
82
- var wrapperVertical = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
83
- defaultActiveId: "tabId-2",
84
- placement: "vertical"
85
- }, panes.map(function (pane, index) {
86
- return /*#__PURE__*/_react["default"].createElement(_index["default"].Pane, {
87
- tabTitle: pane.tabTitle,
88
- tabId: pane.tabId,
89
- closeable: pane.closeable,
90
- key: index
91
- }, /*#__PURE__*/_react["default"].createElement("div", {
92
- style: {
93
- padding: '16px'
94
- }
95
- }, pane.tabTitle));
96
- })));
97
- expect(wrapperVertical.find('.hi-tabs--card')).toHaveLength(1);
98
- expect(wrapperVertical.find('.hi-tabs--vertical')).toHaveLength(1);
99
- wrapperVertical.unmount();
100
- });
101
- it('max', function () {
102
- var max = 4;
103
- var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
104
- placement: "horizontal",
105
- max: max
106
- }, panes.map(function (pane, index) {
107
- return /*#__PURE__*/_react["default"].createElement(_index["default"].Pane, {
108
- tabTitle: pane.tabTitle,
109
- tabId: pane.tabId,
110
- closeable: pane.closeable,
111
- disabled: pane.disabled,
112
- key: index
113
- }, /*#__PURE__*/_react["default"].createElement("div", {
114
- style: {
115
- padding: '16px'
116
- }
117
- }, pane.tabTitle));
118
- })));
119
- expect(wrapper.find('.hi-tabs-dropdown')).toHaveLength(1);
120
- expect(document.querySelectorAll('.hi-popper__container')).toHaveLength(0);
121
- wrapper.find('.hi-tabs-dropdown__toggle').simulate('click');
122
- expect(document.querySelectorAll('.hi-popper__container')).toHaveLength(1);
123
- trigger(document.querySelectorAll('.hi-tabs-dropdown__item')[0], 'click');
124
- expect(document.querySelectorAll('.hi-popper__container--hide')).toHaveLength(1);
125
- wrapper.find('.hi-tabs-dropdown__toggle').simulate('click');
126
- expect(document.querySelectorAll('.hi-tabs-dropdown__item')).toHaveLength(2);
127
- expect(document.querySelectorAll('.hi-popper__container--hide')).toHaveLength(0);
128
- trigger(document.querySelectorAll('.hi-tabs-dropdown__item')[1], 'click');
129
- expect(document.querySelectorAll('.hi-popper__container--hide')).toHaveLength(1);
130
- wrapper.find('.hi-tabs-dropdown__toggle').simulate('click');
131
- expect(document.querySelectorAll('.hi-popper__container--hide')).toHaveLength(0);
132
- trigger(document, 'click');
133
- expect(document.querySelectorAll('.hi-popper__container--hide')).toHaveLength(1);
134
- wrapper.unmount();
135
- });
136
- it('type', function () {
137
- var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
138
- placement: "horizontal",
139
- type: "desc"
140
- }, panes.map(function (pane, index) {
141
- return /*#__PURE__*/_react["default"].createElement(_index["default"].Pane, {
142
- tabTitle: pane.tabTitle,
143
- tabId: pane.tabId,
144
- closeable: pane.closeable,
145
- key: index
146
- }, /*#__PURE__*/_react["default"].createElement("div", {
147
- style: {
148
- padding: '16px'
149
- }
150
- }, pane.tabTitle));
151
- })));
152
- expect(wrapper.find('.hi-tabs--desc')).toHaveLength(1);
153
- wrapper.unmount();
154
- });
155
- it('editable', function () {
156
- var editableWrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
157
- type: "editable",
158
- activeId: "tabId-1"
159
- }, panes.map(function (pane, index) {
160
- return /*#__PURE__*/_react["default"].createElement(_index["default"].Pane, {
161
- tabTitle: pane.tabTitle,
162
- tabId: pane.tabId,
163
- closeable: true,
164
- key: index
165
- }, /*#__PURE__*/_react["default"].createElement("div", {
166
- style: {
167
- padding: '16px'
168
- }
169
- }, pane.tabTitle));
170
- })));
171
- expect(editableWrapper.find('.hi-tabs--editable')).toHaveLength(1);
172
- editableWrapper.find('.icon-close').at(0).simulate('click');
173
- expect(editableWrapper.find('.hi-tabs__item')).toHaveLength(11);
174
- });
175
- it('activeId', function () {
176
- var EditableTabs = /*#__PURE__*/function (_React$Component) {
177
- (0, _inherits2["default"])(EditableTabs, _React$Component);
178
-
179
- var _super = _createSuper(EditableTabs);
180
-
181
- function EditableTabs() {
182
- var _this;
183
-
184
- (0, _classCallCheck2["default"])(this, EditableTabs);
185
- _this = _super.call(this);
186
- _this.state = {
187
- tabId: 'tabId-1',
188
- panes: [{
189
- tabTitle: '团购订单',
190
- tabId: 'tabId-1'
191
- }, {
192
- tabTitle: '团购订单2',
193
- tabId: 'tabId-2'
194
- }]
195
- };
196
- return _this;
197
- }
198
-
199
- (0, _createClass2["default"])(EditableTabs, [{
200
- key: "onEdit",
201
- value: function onEdit(action, index, tabId) {
202
- this["".concat(action, "Tab")](index, tabId);
203
- }
204
- }, {
205
- key: "addTab",
206
- value: function addTab() {
207
- var panes = this.state.panes;
208
- this.setState({
209
- panes: panes.concat([{
210
- tabTitle: "\u65B0\u589E\u6807\u7B7E".concat(panes.length + 1),
211
- tabId: "tabId-".concat(panes.length + 1)
212
- }])
213
- });
214
- }
215
- }, {
216
- key: "deleteTab",
217
- value: function deleteTab(index, tabId) {
218
- var panes = this.state.panes.slice();
219
- panes.splice(index, 1);
220
- this.setState({
221
- panes: panes
222
- });
223
- }
224
- }, {
225
- key: "render",
226
- value: function render() {
227
- return /*#__PURE__*/_react["default"].createElement(_index["default"], {
228
- type: "editable",
229
- activeId: this.state.tabId,
230
- onTabClick: function onTabClick(tab, e) {
231
- return void 0;
232
- },
233
- onEdit: this.onEdit.bind(this)
234
- }, this.state.panes.map(function (pane, index) {
235
- return /*#__PURE__*/_react["default"].createElement(_index["default"].Pane, {
236
- tabTitle: pane.tabTitle,
237
- tabId: pane.tabId,
238
- closeable: true,
239
- key: index
240
- }, /*#__PURE__*/_react["default"].createElement("div", {
241
- style: {
242
- padding: '16px'
243
- }
244
- }, pane.tabTitle));
245
- }));
246
- }
247
- }]);
248
- return EditableTabs;
249
- }(_react["default"].Component);
250
-
251
- var editableWrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(EditableTabs, null));
252
- expect(editableWrapper.find('.hi-tabs--editable')).toHaveLength(1);
253
- editableWrapper.setState({
254
- tabId: 'tabId-2'
255
- });
256
- editableWrapper.find('.icon-close').at(1).simulate('click');
257
- expect(editableWrapper.find('.hi-tabs__item').at(0).hasClass('hi-tabs__item--active')).toBeTruthy();
258
- editableWrapper.find('.icon-close').at(0).simulate('click');
259
- editableWrapper.setState({
260
- panes: [{
261
- tabTitle: '团购订单4',
262
- tabId: 'tabId-4',
263
- closeable: false
264
- }]
265
- });
266
- expect(editableWrapper.find('.icon-close')).toHaveLength(1);
267
- editableWrapper.find('.hi-tabs__add .icon-plus').simulate('click');
268
- expect(editableWrapper.find('.icon-close')).toHaveLength(2);
269
- });
270
- });
271
- describe('ItemDropdown', function () {
272
- it('activeId', function () {
273
- var EditableTabs = /*#__PURE__*/function (_React$Component2) {
274
- (0, _inherits2["default"])(EditableTabs, _React$Component2);
275
-
276
- var _super2 = _createSuper(EditableTabs);
277
-
278
- function EditableTabs() {
279
- var _this2;
280
-
281
- (0, _classCallCheck2["default"])(this, EditableTabs);
282
- _this2 = _super2.call(this);
283
- _this2.state = {
284
- tabId: 'tabId-1',
285
- panes: [{
286
- tabTitle: '团购订单',
287
- tabId: 'tabId-1'
288
- }, {
289
- tabTitle: '团购订单2',
290
- tabId: 'tabId-2'
291
- }, {
292
- tabTitle: '团购订单3',
293
- tabId: 'tabId-3'
294
- }, {
295
- tabTitle: '团购订单4',
296
- tabId: 'tabId-4'
297
- }]
298
- };
299
- return _this2;
300
- }
301
-
302
- (0, _createClass2["default"])(EditableTabs, [{
303
- key: "render",
304
- value: function render() {
305
- return /*#__PURE__*/_react["default"].createElement(_index["default"], {
306
- activeId: this.state.tabId,
307
- max: 2
308
- }, this.state.panes.map(function (pane, index) {
309
- return /*#__PURE__*/_react["default"].createElement(_index["default"].Pane, {
310
- tabTitle: pane.tabTitle,
311
- tabId: pane.tabId,
312
- closeable: true,
313
- key: index
314
- }, /*#__PURE__*/_react["default"].createElement("div", {
315
- style: {
316
- padding: '16px'
317
- }
318
- }, pane.tabTitle));
319
- }));
320
- }
321
- }]);
322
- return EditableTabs;
323
- }(_react["default"].Component);
324
-
325
- var wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(EditableTabs, null));
326
- expect(wrapper.find('.hi-tabs--card')).toHaveLength(1);
327
- wrapper.setState({
328
- tabId: 'tabId-2'
329
- });
330
- expect(wrapper.find('.hi-tabs-dropdown__toggle-title').text()).toEqual('更多');
331
- });
332
- });
333
- });
@@ -1,77 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports["default"] = void 0;
11
-
12
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
-
14
- var _react = _interopRequireWildcard(require("react"));
15
-
16
- var useTabItems = function useTabItems(_ref) {
17
- var children = _ref.children,
18
- max = _ref.max,
19
- type = _ref.type,
20
- placement = _ref.placement,
21
- canScroll = _ref.canScroll;
22
-
23
- var _useState = (0, _react.useState)([]),
24
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
25
- showTabItems = _useState2[0],
26
- setShowTabItems = _useState2[1];
27
-
28
- var _useState3 = (0, _react.useState)([]),
29
- _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
30
- hiddenTabItems = _useState4[0],
31
- setHiddenTabItems = _useState4[1];
32
-
33
- (0, _react.useEffect)(function () {
34
- var show = [];
35
- var hidden = [];
36
-
37
- _react["default"].Children.map(children, function (child) {
38
- if (child) {
39
- var _child$props = child.props,
40
- tabTitle = _child$props.tabTitle,
41
- tabId = _child$props.tabId,
42
- tabDesc = _child$props.tabDesc,
43
- disabled = _child$props.disabled,
44
- _child$props$closeabl = _child$props.closeable,
45
- closeable = _child$props$closeabl === void 0 ? true : _child$props$closeabl,
46
- animation = _child$props.animation;
47
- var item = {
48
- tabTitle: tabTitle,
49
- tabId: tabId,
50
- tabDesc: tabDesc,
51
- disabled: disabled,
52
- closeable: closeable,
53
- animation: animation
54
- };
55
-
56
- if ((type === 'card' || type === 'line') && placement === 'horizontal' && show.length >= max && !canScroll) {
57
- // 卡片式标签超过max时,其余标签的隐藏
58
- hidden.push(item);
59
- } else {
60
- show.push(item);
61
- }
62
- }
63
- });
64
-
65
- setHiddenTabItems(hidden);
66
- setShowTabItems(show);
67
- }, [children, max]);
68
- return {
69
- showTabItems: showTabItems,
70
- hiddenTabItems: hiddenTabItems,
71
- setShowTabItems: setShowTabItems,
72
- setHiddenTabItems: setHiddenTabItems
73
- };
74
- };
75
-
76
- var _default = useTabItems;
77
- exports["default"] = _default;
@@ -1,71 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports["default"] = void 0;
11
-
12
- var _react = _interopRequireWildcard(require("react"));
13
-
14
- var _icon = _interopRequireDefault(require("../../icon"));
15
-
16
- var useTranslate = function useTranslate(_ref) {
17
- var elementRef = _ref.elementRef,
18
- canScroll = _ref.canScroll,
19
- prefixCls = _ref.prefixCls;
20
- // 左移
21
- var translateLeft = (0, _react.useCallback)(function () {
22
- var container = elementRef.current;
23
- var width = container.scrollWidth;
24
- var transX = Number(document.defaultView.getComputedStyle(container, null).transform.split(',')[4]);
25
-
26
- if (Math.abs(transX) > width / 3) {
27
- transX += width / 3;
28
- } else {
29
- transX += Math.abs(transX);
30
- }
31
-
32
- container.style.transform = 'translateX(' + transX + 'px)';
33
- }, [elementRef.current]); // 右移
34
-
35
- var translateRight = (0, _react.useCallback)(function () {
36
- var container = elementRef.current;
37
- var width = container.scrollWidth;
38
- var clientWidth = container.clientWidth;
39
- var transX = Number(document.defaultView.getComputedStyle(container, null).transform.split(',')[4]);
40
- var srcollWidth;
41
-
42
- if (width / 3 > width - clientWidth) {
43
- srcollWidth = width - clientWidth;
44
- } else {
45
- srcollWidth = width / 3;
46
- }
47
-
48
- if (Math.abs(transX) + clientWidth + srcollWidth > width) {
49
- transX = width - clientWidth - Math.abs(transX) + Math.abs(transX);
50
- } else {
51
- transX = Math.abs(transX - srcollWidth);
52
- }
53
-
54
- container.style.transform = 'translateX(-' + transX + 'px)';
55
- }, [elementRef.current]);
56
- return {
57
- leftBtn: canScroll && /*#__PURE__*/_react["default"].createElement(_icon["default"], {
58
- name: "left",
59
- className: "".concat(prefixCls, "__scroll__icon"),
60
- onClick: translateLeft
61
- }),
62
- rightBtn: canScroll && /*#__PURE__*/_react["default"].createElement(_icon["default"], {
63
- name: "right",
64
- className: "".concat(prefixCls, "__scroll__icon"),
65
- onClick: translateRight
66
- })
67
- };
68
- };
69
-
70
- var _default = useTranslate;
71
- exports["default"] = _default;
@@ -1,47 +0,0 @@
1
- import React from "react"
2
-
3
- export type TabsItem = {
4
- tabTitle: string | JSX.Element
5
- tabDesc: string | JSX.Element
6
- tabId: string | number
7
- closeable: boolean
8
- disabled: boolean
9
- animation: boolean
10
- newIndex?: number
11
- }
12
- export interface TabsProps {
13
- type?: 'desc' | 'card' | 'button' | 'editable' | 'line'
14
- placement?: 'vertical' | 'horizontal'
15
- defaultActiveId?: string | number
16
- activeId?: string | number
17
- max?: number
18
- canScroll?: boolean
19
- draggable?: boolean
20
- style?: React.CSSProperties
21
- className?: string
22
- onTabClick?: (tabKey: string | number, event: React.MouseEvent) => void
23
- onEdit?: (action: 'add' | 'delete', index: number, tabKey: string | number) => void
24
- onDragStart?: (dragNode: TabsItem) => void
25
- onDropEnd?: (dragNode: TabsItem, dropNode: TabsItem) => void
26
- onDrop?: (dragNode: TabsItem, dropNode: TabsItem) => void
27
- onAdd?: () => void
28
- onDelete?: (deleteNode: TabsItem, index: number) => void
29
- onBeforeDelete?: (deleteNode: TabsItem) => void
30
- }
31
- export interface TabsPaneProps {
32
- tabTitle: string | JSX.Element
33
- tabDesc?: string | JSX.Element
34
- tabId: string | number
35
- closeable?: boolean
36
- disabled?: boolean
37
- animation?: boolean
38
- style?: React.CSSProperties
39
- className?: string
40
- }
41
- declare class Pane extends React.Component<TabsPaneProps, any> {
42
- }
43
- declare class Tabs extends React.Component<TabsProps, any> {
44
- static Pane = Pane
45
- }
46
- export default Tabs
47
-
package/es/tabs/index.js DELETED
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _Tabs = _interopRequireDefault(require("./Tabs"));
15
-
16
- var _TabPane = _interopRequireDefault(require("./TabPane"));
17
-
18
- require("./style/index");
19
-
20
- var _index2 = _interopRequireDefault(require("./tabs-legacy/index"));
21
-
22
- var VTabs = function VTabs(_ref) {
23
- var legacy = _ref.legacy,
24
- props = (0, _objectWithoutProperties2["default"])(_ref, ["legacy"]);
25
- var WrapperComponent = legacy ? _index2["default"] : _Tabs["default"];
26
- return /*#__PURE__*/_react["default"].createElement(WrapperComponent, props);
27
- };
28
-
29
- var VTabPane = function VTabPane(_ref2) {
30
- var legacy = _ref2.legacy,
31
- props = (0, _objectWithoutProperties2["default"])(_ref2, ["legacy"]);
32
- var WrapperComponent = legacy ? _index2["default"].Pane : _TabPane["default"];
33
- return /*#__PURE__*/_react["default"].createElement(WrapperComponent, props);
34
- };
35
-
36
- VTabs.Pane = VTabPane;
37
- var _default = VTabs;
38
- exports["default"] = _default;
@@ -1 +0,0 @@
1
- .hi-tabs .hi-tabs__drag-up{-webkit-animation:dragup ease 0.2s 1;animation:dragup ease 0.2s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs .hi-tabs__drag-down{-webkit-animation:dragdown ease 0.2s 1;animation:dragdown ease 0.2s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs .hi-tabs__drag-left{-webkit-animation:dragleft ease 0.2s 1;animation:dragleft ease 0.2s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs .hi-tabs__drag-right{-webkit-animation:dragright ease 0.2s 1;animation:dragright ease 0.2s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs .hi-tabs__tab-items-enter{-webkit-box-sizing:border-box;box-sizing:border-box;opacity:0;-webkit-transition:all 300ms linear;transition:all 300ms linear}.hi-tabs .hi-tabs__tab-items-enter-active{opacity:1;-webkit-transition:all 300ms linear;transition:all 300ms linear}.hi-tabs .hi-tabs__tab-items-exit{opacity:1;-webkit-transition:all 300ms linear;transition:all 300ms linear}.hi-tabs .hi-tabs__tab-items-exit-active{opacity:0;-webkit-transition:all 300ms linear;transition:all 300ms linear}.hi-tabs-pane__slide-right{-webkit-animation:slideRight linear 300ms 1;animation:slideRight linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-left{-webkit-animation:slideLeft linear 300ms 1;animation:slideLeft linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-right-leave{-webkit-animation:slideRightLeave linear 300ms 1;animation:slideRightLeave linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-left-leave{-webkit-animation:slideLeftLeave linear 300ms 1;animation:slideLeftLeave linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-top{-webkit-animation:slideTop linear 300ms 1;animation:slideTop linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-bottom{-webkit-animation:slideBottom linear 300ms 1;animation:slideBottom linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-top-leave{-webkit-animation:slideTopLeave linear 300ms 1;animation:slideTopLeave linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-bottom-leave{-webkit-animation:slideBottomLeave linear 300ms 1;animation:slideBottomLeave linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideRight{from{right:-100%}to{right:0}}@keyframes slideRight{from{right:-100%}to{right:0}}@-webkit-keyframes slideLeft{from{left:-100%}to{left:0}}@keyframes slideLeft{from{left:-100%}to{left:0}}@-webkit-keyframes slideRightLeave{from{left:0%;opacity:1}to{left:-100%;opacity:0}}@keyframes slideRightLeave{from{left:0%;opacity:1}to{left:-100%;opacity:0}}@-webkit-keyframes slideLeftLeave{from{right:0;opacity:1}to{right:-100%;opacity:0}}@keyframes slideLeftLeave{from{right:0;opacity:1}to{right:-100%;opacity:0}}@-webkit-keyframes slideTop{from{top:-100%}to{top:0}}@keyframes slideTop{from{top:-100%}to{top:0}}@-webkit-keyframes slideBottom{from{bottom:-100%}to{bottom:0}}@keyframes slideBottom{from{bottom:-100%}to{bottom:0}}@-webkit-keyframes slideTopLeave{from{bottom:0%;opacity:1}to{bottom:-100%;opacity:0}}@keyframes slideTopLeave{from{bottom:0%;opacity:1}to{bottom:-100%;opacity:0}}@-webkit-keyframes slideBottomLeave{from{top:0;opacity:1}to{top:-100%;opacity:0}}@keyframes slideBottomLeave{from{top:0;opacity:1}to{top:-100%;opacity:0}}@-webkit-keyframes dragup{from{margin-top:0}to{margin-top:48px}}@keyframes dragup{from{margin-top:0}to{margin-top:48px}}@-webkit-keyframes dragdown{from{margin-bottom:0;margin-top:48px}to{margin-bottom:48px;margin-top:0}}@keyframes dragdown{from{margin-bottom:0;margin-top:48px}to{margin-bottom:48px;margin-top:0}}@-webkit-keyframes dragleft{from{margin-left:0}to{margin-left:90px}}@keyframes dragleft{from{margin-left:0}to{margin-left:90px}}@-webkit-keyframes dragright{from{margin-right:0}to{margin-right:90px}}@keyframes dragright{from{margin-right:0}to{margin-right:90px}}
@@ -1 +0,0 @@
1
- .hi-tabs .hi-tabs__drag-up{-webkit-animation:dragup ease 0.2s 1;animation:dragup ease 0.2s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs .hi-tabs__drag-down{-webkit-animation:dragdown ease 0.2s 1;animation:dragdown ease 0.2s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs .hi-tabs__drag-left{-webkit-animation:dragleft ease 0.2s 1;animation:dragleft ease 0.2s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs .hi-tabs__drag-right{-webkit-animation:dragright ease 0.2s 1;animation:dragright ease 0.2s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs .hi-tabs__tab-items-enter{-webkit-box-sizing:border-box;box-sizing:border-box;opacity:0;-webkit-transition:all 300ms linear;transition:all 300ms linear}.hi-tabs .hi-tabs__tab-items-enter-active{opacity:1;-webkit-transition:all 300ms linear;transition:all 300ms linear}.hi-tabs .hi-tabs__tab-items-exit{opacity:1;-webkit-transition:all 300ms linear;transition:all 300ms linear}.hi-tabs .hi-tabs__tab-items-exit-active{opacity:0;-webkit-transition:all 300ms linear;transition:all 300ms linear}.hi-tabs-pane__slide-right{-webkit-animation:slideRight linear 300ms 1;animation:slideRight linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-left{-webkit-animation:slideLeft linear 300ms 1;animation:slideLeft linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-right-leave{-webkit-animation:slideRightLeave linear 300ms 1;animation:slideRightLeave linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-left-leave{-webkit-animation:slideLeftLeave linear 300ms 1;animation:slideLeftLeave linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-top{-webkit-animation:slideTop linear 300ms 1;animation:slideTop linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-bottom{-webkit-animation:slideBottom linear 300ms 1;animation:slideBottom linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-top-leave{-webkit-animation:slideTopLeave linear 300ms 1;animation:slideTopLeave linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.hi-tabs-pane__slide-bottom-leave{-webkit-animation:slideBottomLeave linear 300ms 1;animation:slideBottomLeave linear 300ms 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideRight{from{right:-100%}to{right:0}}@keyframes slideRight{from{right:-100%}to{right:0}}@-webkit-keyframes slideLeft{from{left:-100%}to{left:0}}@keyframes slideLeft{from{left:-100%}to{left:0}}@-webkit-keyframes slideRightLeave{from{left:0%;opacity:1}to{left:-100%;opacity:0}}@keyframes slideRightLeave{from{left:0%;opacity:1}to{left:-100%;opacity:0}}@-webkit-keyframes slideLeftLeave{from{right:0;opacity:1}to{right:-100%;opacity:0}}@keyframes slideLeftLeave{from{right:0;opacity:1}to{right:-100%;opacity:0}}@-webkit-keyframes slideTop{from{top:-100%}to{top:0}}@keyframes slideTop{from{top:-100%}to{top:0}}@-webkit-keyframes slideBottom{from{bottom:-100%}to{bottom:0}}@keyframes slideBottom{from{bottom:-100%}to{bottom:0}}@-webkit-keyframes slideTopLeave{from{bottom:0%;opacity:1}to{bottom:-100%;opacity:0}}@keyframes slideTopLeave{from{bottom:0%;opacity:1}to{bottom:-100%;opacity:0}}@-webkit-keyframes slideBottomLeave{from{top:0;opacity:1}to{top:-100%;opacity:0}}@keyframes slideBottomLeave{from{top:0;opacity:1}to{top:-100%;opacity:0}}@-webkit-keyframes dragup{from{margin-top:0}to{margin-top:48px}}@keyframes dragup{from{margin-top:0}to{margin-top:48px}}@-webkit-keyframes dragdown{from{margin-bottom:0;margin-top:48px}to{margin-bottom:48px;margin-top:0}}@keyframes dragdown{from{margin-bottom:0;margin-top:48px}to{margin-bottom:48px;margin-top:0}}@-webkit-keyframes dragleft{from{margin-left:0}to{margin-left:90px}}@keyframes dragleft{from{margin-left:0}to{margin-left:90px}}@-webkit-keyframes dragright{from{margin-right:0}to{margin-right:90px}}@keyframes dragright{from{margin-right:0}to{margin-right:90px}}.hi-tabs .hi-tabs__header{position:relative;font-size:14px;color:var(--color-black)}.hi-tabs .hi-tabs__item{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;cursor:pointer;border:1px solid transparent;-webkit-transition:all 300ms;transition:all 300ms}.hi-tabs .hi-tabs__item:focus{outline:none;color:var(--color-primary)}.hi-tabs .hi-tabs__item--disabled{color:var(--color-gray-50) !important;cursor:not-allowed}.hi-tabs .hi-tabs__item{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hi-tabs .hi-tabs__item--active{-webkit-box-flex:0;-ms-flex:none;flex:none}.hi-tabs .hi-tabs__item--flex1{-webkit-box-flex:1;-ms-flex:1;flex:1}.hi-tabs .hi-tabs__item .hi-icon:not(.icon-close){margin-right:4px}.hi-tabs .hi-tabs__add{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:24px;height:24px;color:var(--color-gray-70);border-radius:2px;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:16px}.hi-tabs .hi-tabs__item-close{margin-left:8px;font-size:16px}.hi-tabs__content{overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1}.hi-tabs--card .hi-tabs__header .hi-tabs__nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.hi-tabs--card .hi-tabs__header .hi-tabs__item{height:48px;line-height:46px;padding:0 16px;-webkit-box-sizing:border-box;box-sizing:border-box}.hi-tabs--card .hi-tabs__header .hi-tabs__item:hover{color:var(--color-primary)}.hi-tabs--card .hi-tabs__header .hi-tabs__item--active{border:1px solid var(--color-gray-20);border-radius:2px;color:var(--color-primary)}.hi-tabs--card.hi-tabs--horizontal .hi-tabs__nav{margin-bottom:-1px}.hi-tabs--card.hi-tabs--horizontal .hi-tabs__header{border-bottom:1px solid var(--color-gray-20)}.hi-tabs--card.hi-tabs--horizontal .hi-tabs__item--active{border-bottom-color:var(--color-white)}.hi-tabs.hi-tabs--line:not(.hi-tabs--vertical) .hi-tabs__item:first-of-type{padding-left:0}.hi-tabs--card.hi-tabs--vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.hi-tabs--card.hi-tabs--vertical .hi-tabs__header{-webkit-box-flex:0;-ms-flex:none;flex:none;display:inline-block;border-right:1px solid var(--color-gray-20)}.hi-tabs--card.hi-tabs--vertical .hi-tabs__nav{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-right:-1px}.hi-tabs--card.hi-tabs--vertical .hi-tabs__item{border-top-left-radius:4px;border-bottom-left-radius:4px}.hi-tabs--card.hi-tabs--vertical .hi-tabs__item--active{border-right-color:var(--color-white)}.hi-tabs--editable .hi-tabs__header{border-bottom:1px solid var(--color-gray-20)}.hi-tabs--editable .hi-tabs__header .hi-tabs__nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden;margin-bottom:-1px;margin-right:40px;min-height:40px}.hi-tabs--editable .hi-tabs__header .hi-tabs__item{height:40px;line-height:40px;margin-right:4px;padding:0 8px;background:var(--color-gray-10);border-radius:2px 2px 0 0;border:1px solid var(--color-gray-20);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition:all 200ms;transition:all 200ms}.hi-tabs--editable .hi-tabs__header .hi-tabs__item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.hi-tabs--editable .hi-tabs__header .hi-tabs__item:last-child{margin-right:0}.hi-tabs--editable .hi-tabs__header .hi-tabs__item:hover:not(.hi-tabs__item--active){background-color:var(--color-gray-20)}.hi-tabs--editable .hi-tabs__header .hi-tabs__item--active{background-color:var(--color-white);border-bottom-color:var(--color-white);color:var(--color-primary);-webkit-box-flex:0;-ms-flex:none;flex:none}.hi-tabs--editable .hi-tabs__header .hi-tabs__add{right:4px;bottom:12px}.hi-tabs--desc .hi-tabs__header .hi-tabs__nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden}.hi-tabs--desc .hi-tabs__header .hi-tabs__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:16px 20px;text-align:center;border:1px solid var(--color-gray-20);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--color-white)}.hi-tabs--desc .hi-tabs__header .hi-tabs__item:not(:first-child){margin-left:-1px}.hi-tabs--desc .hi-tabs__header .hi-tabs__item:hover{color:var(--color-primary)}.hi-tabs--desc .hi-tabs__header .hi-tabs__item:hover .hi-tabs__item-desc{color:var(--color-primary)}.hi-tabs--desc .hi-tabs__header .hi-tabs__item--active{color:var(--color-primary);border-color:var(--color-primary);z-index:1}.hi-tabs--desc .hi-tabs__header .hi-tabs__item--active .hi-tabs__item-desc{color:var(--color-primary)}.hi-tabs--desc .hi-tabs__header .hi-tabs__item-name{margin-top:4px}.hi-tabs--desc .hi-tabs__header .hi-tabs__item-desc{font-size:12px;color:var(--color-gray-70)}.hi-tabs--button .hi-tabs__header .hi-tabs__nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.hi-tabs--button .hi-tabs__header .hi-tabs__item{-webkit-box-flex:0;-ms-flex:none;flex:none;height:36px;line-height:34px;padding:0 23px;-webkit-box-sizing:border-box;box-sizing:border-box;margin-right:24px;border:1px solid var(--color-gray-30);border-radius:18px}.hi-tabs--button .hi-tabs__header .hi-tabs__item:hover:not(.hi-tabs__item--active){color:var(--color-primary);border:1px solid var(--color-primary)}.hi-tabs--button .hi-tabs__header .hi-tabs__item--active{color:var(--color-white);background-color:var(--color-primary);border:1px solid var(--color-primary)}.hi-tabs--line .hi-tabs__header{border-bottom:1px solid var(--color-gray-20)}.hi-tabs--line .hi-tabs__header .hi-tabs__nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.hi-tabs--line .hi-tabs__header .hi-tabs__item{height:40px;line-height:40px;padding:0 16px;-webkit-box-sizing:border-box;box-sizing:border-box}.hi-tabs--line .hi-tabs__header .hi-tabs__item:hover{color:var(--color-primary)}.hi-tabs--line .hi-tabs__header .hi-tabs__item--active{border-radius:2px;color:var(--color-primary)}.hi-tabs--line__ink{content:'';width:0;display:block;height:2px;background-color:var(--color-primary);bottom:-1px;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;position:absolute}.hi-tabs--line__ink-disabled{background-color:var(--color-gray-50)}.hi-tabs--line.hi-tabs--vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.hi-tabs--line.hi-tabs--vertical .hi-tabs__header{-webkit-box-flex:0;-ms-flex:none;flex:none;display:inline-block;border-right:1px solid var(--color-gray-20);border-bottom:1px solid transparent}.hi-tabs--line.hi-tabs--vertical .hi-tabs--line__ink{content:'';display:block;top:0;width:2px !important;background-color:var(--color-primary);right:-1px;height:40px;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;position:absolute}.hi-tabs--line.hi-tabs--vertical .hi-tabs__nav{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-right:-1px}.hi-tabs--line.hi-tabs--vertical .hi-tabs__item{-webkit-transition:background 300ms;transition:background 300ms}.hi-tabs--line.hi-tabs--vertical .hi-tabs__item--active{background:var(--color-primary-20)}.hi-tabs-pane{position:relative;width:100%}.hi-tabs--scroll .contain{position:relative;-webkit-transition:all 300ms;transition:all 300ms;-webkit-transform:translateX(0);transform:translateX(0)}.hi-tabs--scroll .hi-tabs__header{overflow:hidden}.hi-tabs--scroll .hi-tabs__item{overflow:initial !important}.hi-tabs__scroll--outter{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.hi-tabs__scroll--outter .hi-tabs__scroll__icon{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--color-gray-80)}.hi-tabs-dropdown__wrapper{max-height:178px;padding:8px 0;overflow:auto;background-color:var(--color-white);border-radius:2px;border:1px solid var(--color-gray-20);-webkit-box-shadow:0 2px 8px 0 rgba(56,62,71,0.1);box-shadow:0 2px 8px 0 rgba(56,62,71,0.1)}.hi-tabs-dropdown__toggle-title{margin-right:8px}.hi-tabs-dropdown__items{max-height:162px;list-style:none;margin:0;padding:0;overflow:auto}.hi-tabs-dropdown__item{height:36px;min-width:140px;line-height:36px;padding:0 16px;font-size:14px;color:var(--color-black);white-space:nowrap;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.hi-tabs-dropdown__item:hover{background-color:var(--color-primary-20)}.hi-tabs-dropdown__item--focus{background-color:var(--color-primary-20)}.hi-tabs-dropdown__item--active{color:var(--color-primary)}
@@ -1,3 +0,0 @@
1
- "use strict";
2
-
3
- require("./index.css");