@aloudata/aloudata-design 0.2.0-beta.8 → 0.2.2

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 (306) hide show
  1. package/README.md +188 -51
  2. package/es/Alert/index.d.ts +4 -0
  3. package/es/Alert/index.js +3 -0
  4. package/es/Alert/style/index.d.ts +2 -0
  5. package/es/Alert/style/index.js +2 -0
  6. package/es/Alert/style/index.less +1 -0
  7. package/es/Button/style/index.less +90 -50
  8. package/es/Checkbox/index.d.ts +11 -0
  9. package/es/Checkbox/index.js +38 -0
  10. package/es/Checkbox/style/index.d.ts +2 -0
  11. package/es/Checkbox/style/index.js +2 -0
  12. package/es/Checkbox/style/index.less +79 -0
  13. package/es/Col/index.d.ts +4 -0
  14. package/es/Col/index.js +3 -0
  15. package/es/Col/style/index.d.ts +2 -0
  16. package/es/Col/style/index.js +2 -0
  17. package/es/Col/style/index.less +1 -0
  18. package/es/ConfigProvider/index.d.ts +3 -0
  19. package/es/ConfigProvider/index.js +3 -0
  20. package/es/ConfigProvider/style/index.d.ts +2 -0
  21. package/es/ConfigProvider/style/index.js +2 -0
  22. package/es/ConfigProvider/style/index.less +1 -0
  23. package/es/DatePicker/index.d.ts +4 -0
  24. package/es/DatePicker/index.js +3 -0
  25. package/es/DatePicker/style/index.d.ts +2 -0
  26. package/es/DatePicker/style/index.js +2 -0
  27. package/es/DatePicker/style/index.less +1 -0
  28. package/es/Divider/index.d.ts +3 -0
  29. package/es/Divider/index.js +3 -0
  30. package/es/Divider/style/index.d.ts +2 -0
  31. package/es/Divider/style/index.js +2 -0
  32. package/es/Divider/style/index.less +1 -0
  33. package/es/Dropdown/Button.d.ts +1 -0
  34. package/es/Dropdown/Button.js +2 -1
  35. package/es/Dropdown/index.d.ts +27 -0
  36. package/es/Dropdown/style/index.d.ts +1 -0
  37. package/es/Dropdown/style/index.js +1 -0
  38. package/es/Empty/style/index.less +6 -6
  39. package/es/Form/index.d.ts +8 -0
  40. package/es/Form/index.js +3 -0
  41. package/es/Form/style/index.d.ts +2 -0
  42. package/es/Form/style/index.js +2 -0
  43. package/es/Form/style/index.less +1 -0
  44. package/es/Icon/index.d.ts +3 -0
  45. package/es/Icon/index.js +2 -1
  46. package/es/Input/components/Group/index.d.ts +1 -2
  47. package/es/Input/components/Input/index.d.ts +67 -0
  48. package/es/Input/components/Input/index.js +38 -0
  49. package/es/Input/components/Password/index.d.ts +5 -5
  50. package/es/Input/components/Password/index.js +5 -4
  51. package/es/Input/components/TextArea/index.d.ts +10 -4
  52. package/es/Input/components/TextArea/index.js +16 -6
  53. package/es/Input/index.d.ts +14 -62
  54. package/es/Input/index.js +4 -40
  55. package/es/Input/style/index.d.ts +1 -0
  56. package/es/Input/style/index.js +1 -0
  57. package/es/Input/style/index.less +40 -10
  58. package/es/Layout/index.d.ts +4 -0
  59. package/es/Layout/index.js +3 -0
  60. package/es/Layout/style/index.d.ts +2 -0
  61. package/es/Layout/style/index.js +2 -0
  62. package/es/Layout/style/index.less +1 -0
  63. package/es/Menu/MenuItem.d.ts +7 -1
  64. package/es/Menu/style/index.d.ts +1 -0
  65. package/es/Menu/style/index.js +1 -0
  66. package/es/Menu/style/index.less +9 -5
  67. package/es/Message/index.d.ts +4 -0
  68. package/es/Message/index.js +3 -0
  69. package/es/Message/style/index.d.ts +2 -0
  70. package/es/Message/style/index.js +2 -0
  71. package/es/Message/style/index.less +1 -0
  72. package/es/Navigator/components/Menu/index.js +2 -2
  73. package/es/Notification/index.d.ts +3 -0
  74. package/es/Notification/index.js +3 -0
  75. package/es/Notification/style/index.d.ts +2 -0
  76. package/es/Notification/style/index.js +2 -0
  77. package/es/Notification/style/index.less +1 -0
  78. package/es/Radio/index.d.ts +4 -0
  79. package/es/Radio/index.js +3 -0
  80. package/es/Radio/style/index.d.ts +2 -0
  81. package/es/Radio/style/index.js +2 -0
  82. package/es/Radio/style/index.less +1 -0
  83. package/es/Row/index.d.ts +3 -0
  84. package/es/Row/index.js +3 -0
  85. package/es/Row/style/index.d.ts +2 -0
  86. package/es/Row/style/index.js +2 -0
  87. package/es/Row/style/index.less +1 -0
  88. package/es/Select/BaseSelect.js +18 -5
  89. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +2 -1
  90. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +1 -0
  91. package/es/Select/OptionsList/index.js +13 -20
  92. package/es/Select/Selector/index.js +13 -9
  93. package/es/Select/interface.d.ts +10 -2
  94. package/es/Select/style/index.less +63 -30
  95. package/es/Skeleton/index.d.ts +3 -0
  96. package/es/Skeleton/index.js +2 -0
  97. package/es/Skeleton/style/index.d.ts +2 -0
  98. package/es/Skeleton/style/index.js +2 -0
  99. package/es/Skeleton/style/index.less +1 -0
  100. package/es/Space/index.d.ts +4 -0
  101. package/es/Space/index.js +3 -0
  102. package/es/Space/style/index.d.ts +2 -0
  103. package/es/Space/style/index.js +2 -0
  104. package/es/Space/style/index.less +1 -0
  105. package/es/Spin/index.d.ts +4 -0
  106. package/es/Spin/index.js +2 -0
  107. package/es/Spin/style/index.d.ts +2 -0
  108. package/es/Spin/style/index.js +2 -0
  109. package/es/Spin/style/index.less +1 -0
  110. package/es/Steps/index.d.ts +3 -0
  111. package/es/Steps/index.js +2 -0
  112. package/es/Steps/style/index.d.ts +2 -0
  113. package/es/Steps/style/index.js +2 -0
  114. package/es/Steps/style/index.less +1 -0
  115. package/es/Switch/index.d.ts +4 -0
  116. package/es/Switch/index.js +2 -0
  117. package/es/Switch/style/index.d.ts +2 -0
  118. package/es/Switch/style/index.js +2 -0
  119. package/es/Switch/style/index.less +1 -0
  120. package/es/Table/index.d.ts +3 -3
  121. package/es/Table/index.js +286 -157
  122. package/es/Table/interface.d.ts +12 -4
  123. package/es/Table/react-table-config.d.ts +45 -45
  124. package/es/Table/style/index.less +89 -39
  125. package/es/Tabs/index.d.ts +5 -0
  126. package/es/Tabs/index.js +7 -4
  127. package/es/Tabs/style/index.d.ts +1 -0
  128. package/es/Tabs/style/index.js +1 -0
  129. package/es/Tabs/style/index.less +9 -2
  130. package/es/Tooltip/style/index.less +1 -1
  131. package/es/Tree/index.d.ts +5 -0
  132. package/es/Tree/index.js +2 -0
  133. package/es/Tree/style/index.d.ts +2 -0
  134. package/es/Tree/style/index.js +2 -0
  135. package/es/Tree/style/index.less +1 -0
  136. package/es/Typography/index.d.ts +3 -0
  137. package/es/Typography/index.js +3 -0
  138. package/es/Typography/style/index.d.ts +2 -0
  139. package/es/Typography/style/index.js +2 -0
  140. package/es/Typography/style/index.less +1 -0
  141. package/es/Upload/index.d.ts +4 -0
  142. package/es/Upload/index.js +3 -0
  143. package/es/Upload/style/index.d.ts +2 -0
  144. package/es/Upload/style/index.js +2 -0
  145. package/es/Upload/style/index.less +1 -0
  146. package/es/_utils/hooks/useControlledState.d.ts +1 -1
  147. package/es/_utils/hooks/useControlledState.js +11 -11
  148. package/es/index.d.ts +39 -1
  149. package/es/index.js +21 -1
  150. package/es/locale/zh_CN.d.ts +2 -0
  151. package/es/locale/zh_CN.js +2 -0
  152. package/es/style/index.d.ts +1 -1
  153. package/es/style/index.js +1 -1
  154. package/lib/Alert/index.d.ts +4 -0
  155. package/lib/Alert/index.js +15 -0
  156. package/lib/Alert/style/index.d.ts +2 -0
  157. package/lib/Alert/style/index.js +5 -0
  158. package/lib/Alert/style/index.less +1 -0
  159. package/lib/Button/style/index.less +90 -50
  160. package/lib/Checkbox/index.d.ts +11 -0
  161. package/lib/Checkbox/index.js +52 -0
  162. package/lib/Checkbox/style/index.d.ts +2 -0
  163. package/lib/Checkbox/style/index.js +5 -0
  164. package/lib/Checkbox/style/index.less +79 -0
  165. package/lib/Col/index.d.ts +4 -0
  166. package/lib/Col/index.js +15 -0
  167. package/lib/Col/style/index.d.ts +2 -0
  168. package/lib/Col/style/index.js +5 -0
  169. package/lib/Col/style/index.less +1 -0
  170. package/lib/ConfigProvider/index.d.ts +3 -0
  171. package/lib/ConfigProvider/index.js +15 -0
  172. package/lib/ConfigProvider/style/index.d.ts +2 -0
  173. package/lib/ConfigProvider/style/index.js +5 -0
  174. package/lib/ConfigProvider/style/index.less +1 -0
  175. package/lib/DatePicker/index.d.ts +4 -0
  176. package/lib/DatePicker/index.js +15 -0
  177. package/lib/DatePicker/style/index.d.ts +2 -0
  178. package/lib/DatePicker/style/index.js +5 -0
  179. package/lib/DatePicker/style/index.less +1 -0
  180. package/lib/Divider/index.d.ts +3 -0
  181. package/lib/Divider/index.js +15 -0
  182. package/lib/Divider/style/index.d.ts +2 -0
  183. package/lib/Divider/style/index.js +5 -0
  184. package/lib/Divider/style/index.less +1 -0
  185. package/lib/Dropdown/Button.d.ts +1 -0
  186. package/lib/Dropdown/Button.js +2 -0
  187. package/lib/Dropdown/index.d.ts +27 -0
  188. package/lib/Dropdown/style/index.d.ts +1 -0
  189. package/lib/Dropdown/style/index.js +2 -0
  190. package/lib/Empty/style/index.less +6 -6
  191. package/lib/Form/index.d.ts +8 -0
  192. package/lib/Form/index.js +15 -0
  193. package/lib/Form/style/index.d.ts +2 -0
  194. package/lib/Form/style/index.js +5 -0
  195. package/lib/Form/style/index.less +1 -0
  196. package/lib/Icon/index.d.ts +3 -0
  197. package/lib/Icon/index.js +6 -0
  198. package/lib/Input/components/Group/index.d.ts +1 -2
  199. package/lib/Input/components/Input/index.d.ts +67 -0
  200. package/lib/Input/components/Input/index.js +51 -0
  201. package/lib/Input/components/Password/index.d.ts +5 -5
  202. package/lib/Input/components/Password/index.js +10 -8
  203. package/lib/Input/components/TextArea/index.d.ts +10 -4
  204. package/lib/Input/components/TextArea/index.js +18 -7
  205. package/lib/Input/index.d.ts +14 -62
  206. package/lib/Input/index.js +4 -42
  207. package/lib/Input/style/index.d.ts +1 -0
  208. package/lib/Input/style/index.js +2 -0
  209. package/lib/Input/style/index.less +40 -10
  210. package/lib/Layout/index.d.ts +4 -0
  211. package/lib/Layout/index.js +15 -0
  212. package/lib/Layout/style/index.d.ts +2 -0
  213. package/lib/Layout/style/index.js +5 -0
  214. package/lib/Layout/style/index.less +1 -0
  215. package/lib/Menu/MenuItem.d.ts +7 -1
  216. package/lib/Menu/style/index.d.ts +1 -0
  217. package/lib/Menu/style/index.js +2 -0
  218. package/lib/Menu/style/index.less +9 -5
  219. package/lib/Message/index.d.ts +4 -0
  220. package/lib/Message/index.js +15 -0
  221. package/lib/Message/style/index.d.ts +2 -0
  222. package/lib/Message/style/index.js +5 -0
  223. package/lib/Message/style/index.less +1 -0
  224. package/lib/Navigator/components/Menu/index.js +2 -2
  225. package/lib/Notification/index.d.ts +3 -0
  226. package/lib/Notification/index.js +15 -0
  227. package/lib/Notification/style/index.d.ts +2 -0
  228. package/lib/Notification/style/index.js +5 -0
  229. package/lib/Notification/style/index.less +1 -0
  230. package/lib/Radio/index.d.ts +4 -0
  231. package/lib/Radio/index.js +15 -0
  232. package/lib/Radio/style/index.d.ts +2 -0
  233. package/lib/Radio/style/index.js +5 -0
  234. package/lib/Radio/style/index.less +1 -0
  235. package/lib/Row/index.d.ts +3 -0
  236. package/lib/Row/index.js +15 -0
  237. package/lib/Row/style/index.d.ts +2 -0
  238. package/lib/Row/style/index.js +5 -0
  239. package/lib/Row/style/index.less +1 -0
  240. package/lib/Select/BaseSelect.js +18 -5
  241. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +2 -1
  242. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +2 -0
  243. package/lib/Select/OptionsList/index.js +12 -20
  244. package/lib/Select/Selector/index.js +13 -9
  245. package/lib/Select/interface.d.ts +10 -2
  246. package/lib/Select/style/index.less +63 -30
  247. package/lib/Skeleton/index.d.ts +3 -0
  248. package/lib/Skeleton/index.js +13 -0
  249. package/lib/Skeleton/style/index.d.ts +2 -0
  250. package/lib/Skeleton/style/index.js +5 -0
  251. package/lib/Skeleton/style/index.less +1 -0
  252. package/lib/Space/index.d.ts +4 -0
  253. package/lib/Space/index.js +23 -0
  254. package/lib/Space/style/index.d.ts +2 -0
  255. package/lib/Space/style/index.js +5 -0
  256. package/lib/Space/style/index.less +1 -0
  257. package/lib/Spin/index.d.ts +4 -0
  258. package/lib/Spin/index.js +13 -0
  259. package/lib/Spin/style/index.d.ts +2 -0
  260. package/lib/Spin/style/index.js +5 -0
  261. package/lib/Spin/style/index.less +1 -0
  262. package/lib/Steps/index.d.ts +3 -0
  263. package/lib/Steps/index.js +13 -0
  264. package/lib/Steps/style/index.d.ts +2 -0
  265. package/lib/Steps/style/index.js +5 -0
  266. package/lib/Steps/style/index.less +1 -0
  267. package/lib/Switch/index.d.ts +4 -0
  268. package/lib/Switch/index.js +13 -0
  269. package/lib/Switch/style/index.d.ts +2 -0
  270. package/lib/Switch/style/index.js +5 -0
  271. package/lib/Switch/style/index.less +1 -0
  272. package/lib/Table/index.d.ts +3 -3
  273. package/lib/Table/index.js +295 -165
  274. package/lib/Table/interface.d.ts +12 -4
  275. package/lib/Table/react-table-config.d.ts +45 -45
  276. package/lib/Table/style/index.less +89 -39
  277. package/lib/Tabs/index.d.ts +5 -0
  278. package/lib/Tabs/index.js +6 -3
  279. package/lib/Tabs/style/index.d.ts +1 -0
  280. package/lib/Tabs/style/index.js +2 -0
  281. package/lib/Tabs/style/index.less +9 -2
  282. package/lib/Tooltip/style/index.less +1 -1
  283. package/lib/Tree/index.d.ts +5 -0
  284. package/lib/Tree/index.js +13 -0
  285. package/lib/Tree/style/index.d.ts +2 -0
  286. package/lib/Tree/style/index.js +5 -0
  287. package/lib/Tree/style/index.less +1 -0
  288. package/lib/Typography/index.d.ts +3 -0
  289. package/lib/Typography/index.js +15 -0
  290. package/lib/Typography/style/index.d.ts +2 -0
  291. package/lib/Typography/style/index.js +5 -0
  292. package/lib/Typography/style/index.less +1 -0
  293. package/lib/Upload/index.d.ts +4 -0
  294. package/lib/Upload/index.js +15 -0
  295. package/lib/Upload/style/index.d.ts +2 -0
  296. package/lib/Upload/style/index.js +5 -0
  297. package/lib/Upload/style/index.less +1 -0
  298. package/lib/_utils/hooks/useControlledState.d.ts +1 -1
  299. package/lib/_utils/hooks/useControlledState.js +11 -11
  300. package/lib/index.d.ts +39 -1
  301. package/lib/index.js +160 -0
  302. package/lib/locale/zh_CN.d.ts +2 -0
  303. package/lib/locale/zh_CN.js +13 -0
  304. package/lib/style/index.d.ts +1 -1
  305. package/lib/style/index.js +1 -1
  306. package/package.json +15 -4
@@ -46,7 +46,7 @@ import {
46
46
  UseSortByHooks,
47
47
  UseSortByInstanceProps,
48
48
  UseSortByOptions,
49
- UseSortByState
49
+ UseSortByState,
50
50
  } from 'react-table';
51
51
 
52
52
  declare module 'react-table' {
@@ -54,69 +54,69 @@ declare module 'react-table' {
54
54
 
55
55
  export interface TableOptions<D extends Record<string, unknown>>
56
56
  extends UseExpandedOptions<D>,
57
- UseFiltersOptions<D>,
58
- UseGlobalFiltersOptions<D>,
59
- UseGroupByOptions<D>,
60
- UsePaginationOptions<D>,
61
- UseResizeColumnsOptions<D>,
62
- UseRowSelectOptions<D>,
63
- UseRowStateOptions<D>,
64
- UseSortByOptions<D>,
65
- // note that having Record here allows you to add anything to the options, this matches the spirit of the
66
- // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
67
- // feature set, this is a safe default.
68
- Record<string, unknown> {}
57
+ UseFiltersOptions<D>,
58
+ UseGlobalFiltersOptions<D>,
59
+ UseGroupByOptions<D>,
60
+ UsePaginationOptions<D>,
61
+ UseResizeColumnsOptions<D>,
62
+ UseRowSelectOptions<D>,
63
+ UseRowStateOptions<D>,
64
+ UseSortByOptions<D>,
65
+ // note that having Record here allows you to add anything to the options, this matches the spirit of the
66
+ // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
67
+ // feature set, this is a safe default.
68
+ Record<string, unknown> {}
69
69
 
70
70
  export interface Hooks<D extends Record<string, unknown> = Record<string, unknown>>
71
71
  extends UseExpandedHooks<D>,
72
- UseGroupByHooks<D>,
73
- UseRowSelectHooks<D>,
74
- UseSortByHooks<D> {}
72
+ UseGroupByHooks<D>,
73
+ UseRowSelectHooks<D>,
74
+ UseSortByHooks<D> {}
75
75
 
76
76
  export interface TableInstance<D extends Record<string, unknown> = Record<string, unknown>>
77
77
  extends UseColumnOrderInstanceProps<D>,
78
- UseExpandedInstanceProps<D>,
79
- UseFiltersInstanceProps<D>,
80
- UseGlobalFiltersInstanceProps<D>,
81
- UseGroupByInstanceProps<D>,
82
- UsePaginationInstanceProps<D>,
83
- UseRowSelectInstanceProps<D>,
84
- UseRowStateInstanceProps<D>,
85
- UseSortByInstanceProps<D> {}
78
+ UseExpandedInstanceProps<D>,
79
+ UseFiltersInstanceProps<D>,
80
+ UseGlobalFiltersInstanceProps<D>,
81
+ UseGroupByInstanceProps<D>,
82
+ UsePaginationInstanceProps<D>,
83
+ UseRowSelectInstanceProps<D>,
84
+ UseRowStateInstanceProps<D>,
85
+ UseSortByInstanceProps<D> {}
86
86
 
87
87
  export interface TableState<D extends Record<string, unknown> = Record<string, unknown>>
88
88
  extends UseColumnOrderState<D>,
89
- UseExpandedState<D>,
90
- UseFiltersState<D>,
91
- UseGlobalFiltersState<D>,
92
- UseGroupByState<D>,
93
- UsePaginationState<D>,
94
- UseResizeColumnsState<D>,
95
- UseRowSelectState<D>,
96
- UseRowStateState<D>,
97
- UseSortByState<D> {}
89
+ UseExpandedState<D>,
90
+ UseFiltersState<D>,
91
+ UseGlobalFiltersState<D>,
92
+ UseGroupByState<D>,
93
+ UsePaginationState<D>,
94
+ UseResizeColumnsState<D>,
95
+ UseRowSelectState<D>,
96
+ UseRowStateState<D>,
97
+ UseSortByState<D> {}
98
98
 
99
99
  export interface ColumnInterface<D extends Record<string, unknown> = Record<string, unknown>>
100
100
  extends UseFiltersColumnOptions<D>,
101
- UseGlobalFiltersColumnOptions<D>,
102
- UseGroupByColumnOptions<D>,
103
- UseResizeColumnsColumnOptions<D>,
104
- UseSortByColumnOptions<D> {}
101
+ UseGlobalFiltersColumnOptions<D>,
102
+ UseGroupByColumnOptions<D>,
103
+ UseResizeColumnsColumnOptions<D>,
104
+ UseSortByColumnOptions<D> {}
105
105
 
106
106
  export interface ColumnInstance<D extends Record<string, unknown> = Record<string, unknown>>
107
107
  extends UseFiltersColumnProps<D>,
108
- UseGroupByColumnProps<D>,
109
- UseResizeColumnsColumnProps<D>,
110
- UseSortByColumnProps<D> {}
108
+ UseGroupByColumnProps<D>,
109
+ UseResizeColumnsColumnProps<D>,
110
+ UseSortByColumnProps<D> {}
111
111
 
112
112
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
113
113
  export interface Cell<D extends Record<string, unknown> = Record<string, unknown>, V = unknown>
114
114
  extends UseGroupByCellProps<D>,
115
- UseRowStateCellProps<D> {}
115
+ UseRowStateCellProps<D> {}
116
116
 
117
117
  export interface Row<D extends Record<string, unknown> = Record<string, unknown>>
118
118
  extends UseExpandedRowProps<D>,
119
- UseGroupByRowProps<D>,
120
- UseRowSelectRowProps<D>,
121
- UseRowStateRowProps<D> {}
122
- }
119
+ UseGroupByRowProps<D>,
120
+ UseRowSelectRowProps<D>,
121
+ UseRowStateRowProps<D> {}
122
+ }
@@ -1,27 +1,53 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- @ald-prefix:ant;
4
- @ald-iconfont-css-prefix:anticon;
5
- @table-row-height:40px;
3
+ @ald-prefix: ant;
4
+ @ald-iconfont-css-prefix: anticon;
5
+ @table-row-height: 40px;
6
6
 
7
7
  .ant-block-table {
8
+ display: flex;
9
+ flex-direction: column;
10
+ width: 100%;
11
+ height: 100%;
8
12
  overflow: hidden;
9
13
 
10
- &-cell {
11
- padding: 0 12px;
12
- height: @table-row-height;
13
- line-height: @table-row-height;
14
- border-bottom: 1px solid @NL95;
15
- text-align: left;
16
- color: @NL0;
14
+ &-page-loading {
15
+ opacity: 0;
16
+ }
17
+
18
+ &-table-wrap {
19
+ display: flex;
20
+ flex: 1;
21
+ flex-direction: column;
17
22
  overflow: hidden;
18
- white-space: nowrap;
19
- text-overflow: ellipsis;
23
+ }
24
+
25
+ &-cell {
20
26
  flex-grow: 1;
27
+ height: unset;
28
+ padding: 12px;
29
+ color: @NL0;
30
+ line-height: 16px;
31
+ text-align: left;
32
+ word-break: break-all;
33
+ border-bottom: 1px solid @NL95;
34
+
35
+ &-content {
36
+ flex: 1;
37
+ }
21
38
  }
22
39
 
23
40
  &-row {
24
41
  max-width: 100%;
42
+ height: 40px;
43
+
44
+ &-ellipsis {
45
+ .ant-block-table-cell {
46
+ overflow: hidden;
47
+ white-space: nowrap;
48
+ text-overflow: ellipsis;
49
+ }
50
+ }
25
51
  }
26
52
 
27
53
  &-thead {
@@ -32,20 +58,25 @@
32
58
  &-sorting {
33
59
  color: @B40;
34
60
  }
35
- // border: 1px solid red;
36
61
 
37
62
  .ant-block-table-bar {
38
- display: inline-block;
39
- background: blue;
40
- width: 1px;
41
- height: 12px;
42
63
  position: absolute;
43
64
  top: 50%;
44
- right: 0;
45
- transform: translateY(-50%);
65
+ right: -12px;
46
66
  z-index: 1;
67
+ display: inline-block;
68
+ width: 12px;
69
+ height: 12px;
70
+ transform: translateY(-50%);
47
71
  touch-action: none;
48
- background-color: @NL95;
72
+
73
+ &::after {
74
+ display: block;
75
+ width: 1px;
76
+ height: 100%;
77
+ background-color: @NL95;
78
+ content: '';
79
+ }
49
80
  }
50
81
 
51
82
  &:last-child {
@@ -57,11 +88,13 @@
57
88
  }
58
89
 
59
90
  &-tbody {
91
+ flex: 1;
60
92
  overflow: hidden;
61
93
 
62
- &-scroll {
63
- overflow-y: scroll;
64
- overflow-y: overlay;
94
+ .ant-empty {
95
+ display: flex;
96
+ justify-content: center;
97
+ padding-top: 80px;
65
98
  }
66
99
 
67
100
  .ant-block-table-row {
@@ -76,50 +109,67 @@
76
109
  background-color: @BBG97;
77
110
  }
78
111
  }
79
-
80
- &:last-of-type {
81
- .ant-block-table-cell {
82
- border-bottom: 1px solid transparent;
83
- }
84
- }
85
112
  }
86
113
  }
87
114
 
88
115
  &-loading {
89
- text-align: center;
90
- line-height: @table-row-height;
91
116
  color: @NL80;
117
+ line-height: @table-row-height;
118
+ text-align: center;
92
119
  }
93
120
 
94
121
  &-header {
95
122
  display: flex;
96
- justify-content: space-between;
97
- padding: 0 10px;
98
123
  align-items: center;
124
+ justify-content: space-between;
99
125
  margin-bottom: 24px;
100
126
 
101
127
  &-left {
128
+ color: @NL0;
102
129
  font-weight: 500;
103
130
  font-size: 14px;
104
- color: @NL0;
105
131
  }
106
132
 
107
133
  &-right {
108
134
  display: flex;
109
- height: 28px;
110
135
  align-items: center;
111
- font-size: 14px;
136
+ justify-content: flex-end;
137
+ height: 28px;
112
138
  color: @NL0;
139
+ font-size: 14px;
113
140
  }
114
141
  }
115
142
 
116
- &-list {
143
+ /* stylelint-disable-next-line selector-class-pattern */
144
+ &-list&-innerScroll {
145
+ height: 100%;
117
146
  overflow: overlay !important;
118
147
  }
119
148
 
149
+ // 当出现多行的时候 会顶出一个滚动条 通过复写三方库的样式覆盖
150
+ &-list&-canNotInnerScroll {
151
+ overflow: hidden !important;
152
+ }
153
+
154
+ &-list {
155
+ &::-webkit-scrollbar-thumb {
156
+ background: @NL90;
157
+ background-clip: padding-box;
158
+ border: 3px solid transparent;
159
+ border-radius: 6px;
160
+ }
161
+
162
+ &::-webkit-scrollbar {
163
+ width: 12px;
164
+ height: 12px;
165
+ min-height: 12px;
166
+ background-color: transparent;
167
+ }
168
+ }
169
+
120
170
  &-sortIcon {
121
- margin-left: 4px;
122
171
  margin-top: -2px;
172
+ margin-left: 4px;
123
173
  }
124
174
 
125
175
  &-column-resizable {
@@ -146,4 +196,4 @@
146
196
  }
147
197
  }
148
198
  }
149
- }
199
+ }
@@ -31,6 +31,11 @@ export interface ITabsProps {
31
31
  * @default false
32
32
  */
33
33
  adaptHeight?: boolean;
34
+ /**
35
+ * @description tab的位置
36
+ * @default -
37
+ */
38
+ tabPosition?: 'left' | 'right' | 'top' | 'bottom';
34
39
  className?: string;
35
40
  children?: React.ReactNode;
36
41
  }
package/lib/Tabs/index.js CHANGED
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = Tabs;
7
7
 
8
- var _react = _interopRequireDefault(require("react"));
8
+ require("antd/es/tabs/style");
9
+
10
+ var _tabs = _interopRequireDefault(require("antd/es/tabs"));
9
11
 
10
- var _tabs = _interopRequireDefault(require("antd/lib/tabs"));
12
+ var _react = _interopRequireDefault(require("react"));
11
13
 
12
14
  var _Icon = _interopRequireDefault(require("../Icon"));
13
15
 
@@ -48,7 +50,8 @@ function Tabs(props) {
48
50
  }),
49
51
  tabBarGutter: 24,
50
52
  className: (0, _classnames.default)('ald-tabs', className, {
51
- 'ald-adapt-height': adaptHeight
53
+ 'ald-adapt-height': adaptHeight,
54
+ 'ald-tabs-default': size !== 'large'
52
55
  })
53
56
  }, tabsProps));
54
57
  }
@@ -1,2 +1,3 @@
1
+ import 'antd/lib/tabs/style';
1
2
  import '../../style';
2
3
  import './index.less';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ require("antd/lib/tabs/style");
4
+
3
5
  require("../../style");
4
6
 
5
7
  require("./index.less");
@@ -1,6 +1,6 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ald-tabs {
3
+ .ant-tabs.ald-tabs {
4
4
  &.ant-tabs {
5
5
  color: @NL30;
6
6
  }
@@ -30,6 +30,13 @@
30
30
  }
31
31
  }
32
32
 
33
+ &.ald-tabs-default {
34
+ .ant-tabs-tab {
35
+ font-size: 14px;
36
+ line-height: 20px;
37
+ }
38
+ }
39
+
33
40
  .ant-tabs-nav-more {
34
41
  margin: 0 !important;
35
42
  }
@@ -58,4 +65,4 @@
58
65
  border-color: @NL90;
59
66
  }
60
67
  }
61
- }
68
+ }
@@ -3,9 +3,9 @@
3
3
  .ald-tooltip-overlay {
4
4
  .ant-tooltip-inner {
5
5
  padding: 6px 12px;
6
+ background: @BG10;
6
7
  border-radius: @border-radius-base;
7
8
  box-shadow: none;
8
- background: @BG10;
9
9
  }
10
10
 
11
11
  .ant-tooltip-arrow-content {
@@ -0,0 +1,5 @@
1
+ import Tree from 'antd/es/tree';
2
+ export { DataNode, EventDataNode } from 'antd/es/tree';
3
+ export { TreeProps, AntTreeNode, AntTreeNodeMouseEvent, AntTreeNodeExpandedEvent, AntTreeNodeCheckedEvent, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, AntTreeNodeProps, } from 'antd/es/tree/Tree';
4
+ export { ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, } from 'antd/es/tree/DirectoryTree';
5
+ export default Tree;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _tree = _interopRequireDefault(require("antd/es/tree"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ var _default = _tree.default;
13
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,3 @@
1
+ import { Typography, TypographyProps } from 'antd';
2
+ export type { TypographyProps };
3
+ export default Typography;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/typography/style");
9
+
10
+ var _typography = _interopRequireDefault(require("antd/es/typography"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _typography.default;
15
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -0,0 +1,4 @@
1
+ import { Upload } from 'antd';
2
+ export type { UploadProps, UploadListProps, UploadChangeParam, RcFile, } from 'antd/es/upload/interface';
3
+ export type { DraggerProps } from 'antd/es/upload/Dragger';
4
+ export default Upload;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/upload/style");
9
+
10
+ var _upload = _interopRequireDefault(require("antd/es/upload"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _upload.default;
15
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -1,2 +1,2 @@
1
- declare const useControlledState: <T>(outterState: T | (() => T) | undefined, defaultOutterState: T, callback?: ((state: T | (() => T)) => void) | undefined) => [T, (state: T | (() => T), force?: boolean | undefined) => void];
1
+ declare const useControlledState: <T>(outerState: T | (() => T) | undefined, defaultOuterState: T, callback?: ((state: T | (() => T)) => void) | undefined) => [T, (state: T | (() => T), force?: boolean | undefined) => void];
2
2
  export default useControlledState;
@@ -24,18 +24,18 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
24
  function format(_ref) {
25
25
  var _ref2 = _slicedToArray(_ref, 2),
26
26
  innerState = _ref2[0],
27
- outterState = _ref2[1];
27
+ outerState = _ref2[1];
28
28
 
29
- var isControlled = (0, _lodash.isUndefined)(outterState) ? 'uncontrolled' : 'controlled';
30
- var value = (0, _lodash.isUndefined)(outterState) ? innerState : outterState;
29
+ var isControlled = (0, _lodash.isUndefined)(outerState) ? 'uncontrolled' : 'controlled';
30
+ var value = (0, _lodash.isUndefined)(outerState) ? innerState : outerState;
31
31
  return "State is ".concat(isControlled, " | Value is ").concat(value);
32
32
  }
33
33
 
34
- var useControlledState = function useControlledState(outterState, defaultOutterState, callback) {
35
- // if (outterState === undefined && defaultOutterState === undefined) {
34
+ var useControlledState = function useControlledState(outerState, defaultOuterState, callback) {
35
+ // if (outerState === undefined && defaultOuterState === undefined) {
36
36
  // throw new TypeError('Either "value" or "defaultValue" variable must be set. Now both are undefined');
37
37
  // }
38
- var _useState = (0, _react.useState)((0, _lodash.isUndefined)(outterState) ? defaultOutterState : outterState),
38
+ var _useState = (0, _react.useState)((0, _lodash.isUndefined)(outerState) ? defaultOuterState : outerState),
39
39
  _useState2 = _slicedToArray(_useState, 2),
40
40
  innerState = _useState2[0],
41
41
  setInnerState = _useState2[1];
@@ -43,19 +43,19 @@ var useControlledState = function useControlledState(outterState, defaultOutterS
43
43
  var setState = (0, _react.useRef)(function (state) {
44
44
  var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
45
45
 
46
- if ((0, _lodash.isUndefined)(outterState) || force) {
46
+ if ((0, _lodash.isUndefined)(outerState) || force) {
47
47
  setInnerState(state);
48
48
  }
49
49
 
50
50
  callback === null || callback === void 0 ? void 0 : callback(state);
51
51
  }).current; // @ts-ignore
52
52
 
53
- (0, _react.useDebugValue)([innerState, outterState], format);
53
+ (0, _react.useDebugValue)([innerState, outerState], format);
54
54
  (0, _react.useEffect)(function () {
55
- if (!(0, _lodash.isUndefined)(outterState)) {
56
- setInnerState(outterState);
55
+ if (!(0, _lodash.isUndefined)(outerState)) {
56
+ setInnerState(outerState);
57
57
  }
58
- }, [outterState]);
58
+ }, [outerState]);
59
59
  return [innerState, setState];
60
60
  };
61
61
 
package/lib/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export { MenuClickEventHandler } from 'rc-menu/lib/interface';
7
7
  export { default as Menu } from './Menu';
8
8
  export type { IMenuProps as MenuProps } from './Menu';
9
9
  export { default as Input } from './Input';
10
- export type { IInputProps as InputProps, TSize } from './Input';
10
+ export type { IInputProps as InputProps, TSize, InputRef, TextAreaRef } from './Input';
11
11
  export { default as Tabs } from './Tabs';
12
12
  export type { ITabsProps as TabsProps, TabsSize } from './Tabs';
13
13
  export { default as Tooltip } from './Tooltip';
@@ -18,3 +18,41 @@ export { default as Table } from './Table';
18
18
  export type { ISort, TSortOrder, ITableProps, IColumn } from './Table/interface';
19
19
  export { default as Navigator } from './Navigator';
20
20
  export type { INavigatorProps as NavigatorProps, IMenuItem as NavigatorMenu } from './Navigator';
21
+ export { default as Alert } from './Alert';
22
+ export type { AlertProps } from './Alert';
23
+ export { default as Col } from './Col';
24
+ export type { ColProps } from './Col';
25
+ export type { TypographyProps } from './Typography';
26
+ export { default as Typography } from './Typography';
27
+ export { default as Upload } from './Upload';
28
+ export type { UploadProps } from './Upload';
29
+ export { default as ConfigProvider } from './ConfigProvider';
30
+ export { default as DatePicker } from './DatePicker';
31
+ export type { DatePickerProps } from './DatePicker';
32
+ export { default as Layout } from './Layout';
33
+ export type { LayoutProps } from './Layout';
34
+ export { default as message } from './Message';
35
+ export type { MessageArgsProps } from './Message';
36
+ export { default as notification } from './Notification';
37
+ export type { TreeProps, AntTreeNodeProps as TreeNodeProps, DataNode as TreeDataNode, } from './Tree';
38
+ export { default as Tree } from './Tree';
39
+ export type { SkeletonProps } from './Skeleton';
40
+ export { default as Skeleton } from './Skeleton';
41
+ export type { RowProps } from './Row';
42
+ export { default as Row } from './Row';
43
+ export type { SpaceProps } from './Space';
44
+ export { default as Space } from './Space';
45
+ export type { SpinProps } from './Spin';
46
+ export { default as Spin } from './Spin';
47
+ export type { SwitchProps } from './Switch';
48
+ export { default as Switch } from './Switch';
49
+ export type { StepProps, StepsProps } from './Steps';
50
+ export { default as Steps } from './Steps';
51
+ export { default as Form } from './Form';
52
+ export type { FormInstance, FormProps, FormItemProps } from './Form';
53
+ export { default as Divider } from './Divider';
54
+ export type { DividerProps } from './Divider';
55
+ export { default as Radio } from './Radio';
56
+ export type { RadioProps, RadioChangeEvent, RadioGroupProps } from './Radio';
57
+ export { default as Checkbox } from './Checkbox';
58
+ export type { CheckboxProps, CheckboxOptionType } from './Checkbox';