@douyinfe/semi-ui 2.35.0 → 2.36.0-beta.0

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 (75) hide show
  1. package/dist/css/semi.css +142 -17
  2. package/dist/css/semi.min.css +1 -1
  3. package/dist/umd/semi-ui.js +193 -106
  4. package/dist/umd/semi-ui.js.map +1 -1
  5. package/dist/umd/semi-ui.min.js +1 -1
  6. package/dist/umd/semi-ui.min.js.map +1 -1
  7. package/lib/cjs/anchor/index.d.ts +2 -1
  8. package/lib/cjs/anchor/link.js +13 -6
  9. package/lib/cjs/calendar/dayCalendar.d.ts +2 -1
  10. package/lib/cjs/calendar/dayCalendar.js +7 -2
  11. package/lib/cjs/calendar/index.d.ts +1 -0
  12. package/lib/cjs/calendar/index.js +1 -0
  13. package/lib/cjs/calendar/interface.d.ts +2 -0
  14. package/lib/cjs/calendar/monthCalendar.d.ts +1 -1
  15. package/lib/cjs/calendar/monthCalendar.js +12 -4
  16. package/lib/cjs/calendar/rangeCalendar.d.ts +3 -1
  17. package/lib/cjs/calendar/rangeCalendar.js +23 -9
  18. package/lib/cjs/calendar/weekCalendar.d.ts +3 -1
  19. package/lib/cjs/calendar/weekCalendar.js +23 -9
  20. package/lib/cjs/datePicker/datePicker.js +12 -4
  21. package/lib/cjs/datePicker/monthsGrid.js +6 -2
  22. package/lib/cjs/datePicker/yearAndMonth.d.ts +2 -0
  23. package/lib/cjs/datePicker/yearAndMonth.js +4 -2
  24. package/lib/cjs/input/textarea.d.ts +1 -1
  25. package/lib/cjs/navigation/Footer.d.ts +3 -0
  26. package/lib/cjs/navigation/Footer.js +19 -9
  27. package/lib/cjs/navigation/SubNav.d.ts +1 -13
  28. package/lib/cjs/navigation/SubNav.js +4 -19
  29. package/lib/cjs/navigation/index.d.ts +4 -1
  30. package/lib/cjs/navigation/index.js +7 -1
  31. package/lib/cjs/select/index.d.ts +2 -1
  32. package/lib/cjs/select/index.js +4 -0
  33. package/lib/cjs/table/Body/index.d.ts +1 -1
  34. package/lib/cjs/table/ResizableTable.d.ts +1 -1
  35. package/lib/cjs/table/TableHeaderRow.js +22 -14
  36. package/lib/cjs/table/interface.d.ts +5 -1
  37. package/lib/cjs/typography/base.d.ts +1 -0
  38. package/lib/cjs/typography/base.js +28 -14
  39. package/lib/cjs/typography/title.d.ts +2 -0
  40. package/lib/cjs/typography/title.js +2 -1
  41. package/lib/es/anchor/index.d.ts +2 -1
  42. package/lib/es/anchor/link.js +12 -6
  43. package/lib/es/calendar/dayCalendar.d.ts +2 -1
  44. package/lib/es/calendar/dayCalendar.js +7 -2
  45. package/lib/es/calendar/index.d.ts +1 -0
  46. package/lib/es/calendar/index.js +1 -0
  47. package/lib/es/calendar/interface.d.ts +2 -0
  48. package/lib/es/calendar/monthCalendar.d.ts +1 -1
  49. package/lib/es/calendar/monthCalendar.js +12 -4
  50. package/lib/es/calendar/rangeCalendar.d.ts +3 -1
  51. package/lib/es/calendar/rangeCalendar.js +19 -9
  52. package/lib/es/calendar/weekCalendar.d.ts +3 -1
  53. package/lib/es/calendar/weekCalendar.js +19 -9
  54. package/lib/es/datePicker/datePicker.js +12 -4
  55. package/lib/es/datePicker/monthsGrid.js +6 -2
  56. package/lib/es/datePicker/yearAndMonth.d.ts +2 -0
  57. package/lib/es/datePicker/yearAndMonth.js +4 -2
  58. package/lib/es/input/textarea.d.ts +1 -1
  59. package/lib/es/navigation/Footer.d.ts +3 -0
  60. package/lib/es/navigation/Footer.js +16 -7
  61. package/lib/es/navigation/SubNav.d.ts +1 -13
  62. package/lib/es/navigation/SubNav.js +5 -20
  63. package/lib/es/navigation/index.d.ts +4 -1
  64. package/lib/es/navigation/index.js +7 -1
  65. package/lib/es/select/index.d.ts +2 -1
  66. package/lib/es/select/index.js +4 -0
  67. package/lib/es/table/Body/index.d.ts +1 -1
  68. package/lib/es/table/ResizableTable.d.ts +1 -1
  69. package/lib/es/table/TableHeaderRow.js +22 -14
  70. package/lib/es/table/interface.d.ts +5 -1
  71. package/lib/es/typography/base.d.ts +1 -0
  72. package/lib/es/typography/base.js +28 -14
  73. package/lib/es/typography/title.d.ts +2 -0
  74. package/lib/es/typography/title.js +2 -1
  75. package/package.json +8 -9
@@ -26,6 +26,7 @@ export interface TitleProps extends Omit<React.HTMLAttributes<HTMLHeadingElement
26
26
  style?: React.CSSProperties;
27
27
  type?: TypographyBaseType;
28
28
  underline?: boolean;
29
+ weight?: ArrayElement<typeof strings.WEIGHT> | number;
29
30
  }
30
31
  export default class Title extends PureComponent<TitleProps> {
31
32
  static propTypes: {
@@ -42,6 +43,7 @@ export default class Title extends PureComponent<TitleProps> {
42
43
  style: PropTypes.Requireable<object>;
43
44
  className: PropTypes.Requireable<string>;
44
45
  component: PropTypes.Requireable<string>;
46
+ weight: PropTypes.Requireable<NonNullable<number | "default" | "bold" | "medium" | "light" | "regular" | "semibold">>;
45
47
  };
46
48
  static defaultProps: {
47
49
  copyable: boolean;
@@ -44,7 +44,8 @@ Title.propTypes = {
44
44
  heading: PropTypes.oneOf(strings.HEADING),
45
45
  style: PropTypes.object,
46
46
  className: PropTypes.string,
47
- component: PropTypes.string
47
+ component: PropTypes.string,
48
+ weight: PropTypes.oneOfType([PropTypes.oneOf(strings.WEIGHT), PropTypes.number])
48
49
  };
49
50
  Title.defaultProps = {
50
51
  copyable: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.35.0",
3
+ "version": "2.36.0-beta.0",
4
4
  "description": "",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -17,12 +17,12 @@
17
17
  "lib/*"
18
18
  ],
19
19
  "dependencies": {
20
- "@douyinfe/semi-animation": "2.35.0",
21
- "@douyinfe/semi-animation-react": "2.35.0",
22
- "@douyinfe/semi-foundation": "2.35.0",
23
- "@douyinfe/semi-icons": "2.35.0",
24
- "@douyinfe/semi-illustrations": "2.35.0",
25
- "@douyinfe/semi-theme-default": "2.35.0",
20
+ "@douyinfe/semi-animation": "2.36.0-beta.0",
21
+ "@douyinfe/semi-animation-react": "2.36.0-beta.0",
22
+ "@douyinfe/semi-foundation": "2.36.0-beta.0",
23
+ "@douyinfe/semi-icons": "2.36.0-beta.0",
24
+ "@douyinfe/semi-illustrations": "2.36.0-beta.0",
25
+ "@douyinfe/semi-theme-default": "2.36.0-beta.0",
26
26
  "async-validator": "^3.5.0",
27
27
  "classnames": "^2.2.6",
28
28
  "copy-text-to-clipboard": "^2.1.1",
@@ -69,14 +69,13 @@
69
69
  ],
70
70
  "author": "",
71
71
  "license": "MIT",
72
- "gitHead": "bddc219454c94eef034a483a41072e41b4c84bc2",
72
+ "gitHead": "e973ed0dc3b8cd37e9c737f1548e386d814f787b",
73
73
  "devDependencies": {
74
74
  "@babel/plugin-proposal-decorators": "^7.15.8",
75
75
  "@babel/plugin-transform-runtime": "^7.15.8",
76
76
  "@babel/preset-env": "^7.15.8",
77
77
  "@babel/preset-react": "^7.14.5",
78
78
  "@douyinfe/semi-scss-compile": "2.23.2",
79
- "@storybook/addon-knobs": "^6.3.1",
80
79
  "@types/lodash": "^4.14.176",
81
80
  "@types/react": ">=16.0.0",
82
81
  "@types/react-dom": ">=16.0.0",