@douyinfe/semi-ui 2.19.0-alpha.2 → 2.19.0-alpha.3

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 (49) hide show
  1. package/checkbox/checkbox.tsx +7 -7
  2. package/checkbox/checkboxGroup.tsx +2 -11
  3. package/dist/css/semi.css +16 -10
  4. package/dist/css/semi.min.css +1 -1
  5. package/dist/umd/semi-ui.js +141 -119
  6. package/dist/umd/semi-ui.js.map +1 -1
  7. package/dist/umd/semi-ui.min.js +1 -1
  8. package/dist/umd/semi-ui.min.js.map +1 -1
  9. package/form/baseForm.tsx +0 -1
  10. package/lib/cjs/checkbox/checkbox.js +8 -2
  11. package/lib/cjs/checkbox/checkboxGroup.js +8 -31
  12. package/lib/cjs/form/baseForm.d.ts +1 -1
  13. package/lib/cjs/form/baseForm.js +0 -1
  14. package/lib/cjs/form/field.d.ts +1 -1
  15. package/lib/cjs/popconfirm/index.d.ts +4 -2
  16. package/lib/cjs/popconfirm/index.js +49 -31
  17. package/lib/cjs/radio/radioGroup.js +7 -34
  18. package/lib/cjs/table/ColumnFilter.js +4 -2
  19. package/lib/cjs/table/ColumnSorter.d.ts +1 -0
  20. package/lib/cjs/table/ColumnSorter.js +9 -6
  21. package/lib/cjs/table/Table.js +11 -4
  22. package/lib/cjs/tabs/TabBar.js +5 -1
  23. package/lib/cjs/transfer/index.js +7 -2
  24. package/lib/cjs/typography/title.d.ts +1 -1
  25. package/lib/es/checkbox/checkbox.js +8 -2
  26. package/lib/es/checkbox/checkboxGroup.js +6 -27
  27. package/lib/es/form/baseForm.d.ts +1 -1
  28. package/lib/es/form/baseForm.js +0 -1
  29. package/lib/es/form/field.d.ts +1 -1
  30. package/lib/es/popconfirm/index.d.ts +4 -2
  31. package/lib/es/popconfirm/index.js +49 -31
  32. package/lib/es/radio/radioGroup.js +5 -30
  33. package/lib/es/table/ColumnFilter.js +4 -2
  34. package/lib/es/table/ColumnSorter.d.ts +1 -0
  35. package/lib/es/table/ColumnSorter.js +9 -6
  36. package/lib/es/table/Table.js +10 -4
  37. package/lib/es/tabs/TabBar.js +5 -1
  38. package/lib/es/transfer/index.js +7 -2
  39. package/lib/es/typography/title.d.ts +1 -1
  40. package/package.json +7 -7
  41. package/popconfirm/_story/popconfirm.stories.js +37 -1
  42. package/popconfirm/index.tsx +14 -6
  43. package/radio/radioGroup.tsx +4 -15
  44. package/table/ColumnFilter.tsx +2 -1
  45. package/table/ColumnSorter.tsx +16 -10
  46. package/table/Table.tsx +7 -4
  47. package/tabs/TabBar.tsx +7 -1
  48. package/transfer/index.tsx +7 -2
  49. package/webpack.config.js +3 -1
package/tabs/TabBar.tsx CHANGED
@@ -147,7 +147,13 @@ class TabBar extends React.Component<TabBarProps, TabBarState> {
147
147
 
148
148
  renderCollapse = (items: Array<OverflowItem>, icon: ReactNode, pos: 'start' | 'end'): ReactNode => {
149
149
  if (isEmpty(items)) {
150
- return null;
150
+ return (
151
+ <Button
152
+ disabled={true}
153
+ icon={icon}
154
+ theme="borderless"
155
+ />
156
+ );
151
157
  }
152
158
  const { dropdownClassName, dropdownStyle } = this.props;
153
159
  const { rePosKey } = this.state;
@@ -393,7 +393,9 @@ class Transfer extends BaseComponent<TransferProps, TransferState> {
393
393
  const noMatch = inSearchMode && searchResult.size === 0;
394
394
  const emptySearch = emptyContent.search ? emptyContent.search : locale.emptySearch;
395
395
  const emptyLeft = emptyContent.left ? emptyContent.left : locale.emptyLeft;
396
- const emptyCom = this.renderEmpty('left', inputValue ? emptySearch : emptyLeft);
396
+ const emptyDataCom = this.renderEmpty('left', emptyLeft);
397
+ const emptySearchCom = this.renderEmpty('left', emptySearch);
398
+
397
399
  const loadingCom = <Spin />;
398
400
 
399
401
  let content: React.ReactNode = null;
@@ -402,7 +404,10 @@ class Transfer extends BaseComponent<TransferProps, TransferState> {
402
404
  content = loadingCom;
403
405
  break;
404
406
  case noMatch:
405
- content = emptyCom;
407
+ content = emptySearchCom;
408
+ break;
409
+ case data.length === 0:
410
+ content = emptyDataCom;
406
411
  break;
407
412
  case type === strings.TYPE_TREE_TO_LIST:
408
413
  content = (
package/webpack.config.js CHANGED
@@ -29,7 +29,9 @@ module.exports = function ({ minimize }) {
29
29
  test: /\.tsx?$/,
30
30
  include: [
31
31
  path.join(rootPath, 'packages/semi-ui'),
32
- path.join(rootPath, 'packages/semi-foundation')
32
+ path.join(rootPath, 'packages/semi-foundation'),
33
+ path.join(rootPath, 'packages/semi-animation'),
34
+ path.join(rootPath, 'packages/semi-animation-react')
33
35
  ],
34
36
  use: [
35
37
  {