@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.
- package/dist/css/semi.css +142 -17
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +193 -106
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/anchor/index.d.ts +2 -1
- package/lib/cjs/anchor/link.js +13 -6
- package/lib/cjs/calendar/dayCalendar.d.ts +2 -1
- package/lib/cjs/calendar/dayCalendar.js +7 -2
- package/lib/cjs/calendar/index.d.ts +1 -0
- package/lib/cjs/calendar/index.js +1 -0
- package/lib/cjs/calendar/interface.d.ts +2 -0
- package/lib/cjs/calendar/monthCalendar.d.ts +1 -1
- package/lib/cjs/calendar/monthCalendar.js +12 -4
- package/lib/cjs/calendar/rangeCalendar.d.ts +3 -1
- package/lib/cjs/calendar/rangeCalendar.js +23 -9
- package/lib/cjs/calendar/weekCalendar.d.ts +3 -1
- package/lib/cjs/calendar/weekCalendar.js +23 -9
- package/lib/cjs/datePicker/datePicker.js +12 -4
- package/lib/cjs/datePicker/monthsGrid.js +6 -2
- package/lib/cjs/datePicker/yearAndMonth.d.ts +2 -0
- package/lib/cjs/datePicker/yearAndMonth.js +4 -2
- package/lib/cjs/input/textarea.d.ts +1 -1
- package/lib/cjs/navigation/Footer.d.ts +3 -0
- package/lib/cjs/navigation/Footer.js +19 -9
- package/lib/cjs/navigation/SubNav.d.ts +1 -13
- package/lib/cjs/navigation/SubNav.js +4 -19
- package/lib/cjs/navigation/index.d.ts +4 -1
- package/lib/cjs/navigation/index.js +7 -1
- package/lib/cjs/select/index.d.ts +2 -1
- package/lib/cjs/select/index.js +4 -0
- package/lib/cjs/table/Body/index.d.ts +1 -1
- package/lib/cjs/table/ResizableTable.d.ts +1 -1
- package/lib/cjs/table/TableHeaderRow.js +22 -14
- package/lib/cjs/table/interface.d.ts +5 -1
- package/lib/cjs/typography/base.d.ts +1 -0
- package/lib/cjs/typography/base.js +28 -14
- package/lib/cjs/typography/title.d.ts +2 -0
- package/lib/cjs/typography/title.js +2 -1
- package/lib/es/anchor/index.d.ts +2 -1
- package/lib/es/anchor/link.js +12 -6
- package/lib/es/calendar/dayCalendar.d.ts +2 -1
- package/lib/es/calendar/dayCalendar.js +7 -2
- package/lib/es/calendar/index.d.ts +1 -0
- package/lib/es/calendar/index.js +1 -0
- package/lib/es/calendar/interface.d.ts +2 -0
- package/lib/es/calendar/monthCalendar.d.ts +1 -1
- package/lib/es/calendar/monthCalendar.js +12 -4
- package/lib/es/calendar/rangeCalendar.d.ts +3 -1
- package/lib/es/calendar/rangeCalendar.js +19 -9
- package/lib/es/calendar/weekCalendar.d.ts +3 -1
- package/lib/es/calendar/weekCalendar.js +19 -9
- package/lib/es/datePicker/datePicker.js +12 -4
- package/lib/es/datePicker/monthsGrid.js +6 -2
- package/lib/es/datePicker/yearAndMonth.d.ts +2 -0
- package/lib/es/datePicker/yearAndMonth.js +4 -2
- package/lib/es/input/textarea.d.ts +1 -1
- package/lib/es/navigation/Footer.d.ts +3 -0
- package/lib/es/navigation/Footer.js +16 -7
- package/lib/es/navigation/SubNav.d.ts +1 -13
- package/lib/es/navigation/SubNav.js +5 -20
- package/lib/es/navigation/index.d.ts +4 -1
- package/lib/es/navigation/index.js +7 -1
- package/lib/es/select/index.d.ts +2 -1
- package/lib/es/select/index.js +4 -0
- package/lib/es/table/Body/index.d.ts +1 -1
- package/lib/es/table/ResizableTable.d.ts +1 -1
- package/lib/es/table/TableHeaderRow.js +22 -14
- package/lib/es/table/interface.d.ts +5 -1
- package/lib/es/typography/base.d.ts +1 -0
- package/lib/es/typography/base.js +28 -14
- package/lib/es/typography/title.d.ts +2 -0
- package/lib/es/typography/title.js +2 -1
- 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.
|
|
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.
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.
|
|
22
|
-
"@douyinfe/semi-foundation": "2.
|
|
23
|
-
"@douyinfe/semi-icons": "2.
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.
|
|
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": "
|
|
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",
|