@nutui/nutui-react 1.4.4 → 1.4.5
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/CHANGELOG.md +15 -0
- package/dist/esm/Address.js +23 -21
- package/dist/esm/Cascader.js +234 -244
- package/dist/esm/Cell.js +3 -1
- package/dist/esm/ConfigProvider.js +2 -2
- package/dist/esm/NoticeBar.js +261 -32
- package/dist/esm/PullToRefresh.js +75 -81
- package/dist/esm/Tag.js +16 -11
- package/dist/esm/render-f8746530.js +10 -12
- package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +5 -4
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +95 -95
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +47 -47
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +48 -48
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +536 -5512
- package/dist/nutui.react.umd.js +536 -5512
- package/dist/packages/noticebar/noticebar.scss +17 -0
- package/dist/packages/radio/radio.scss +3 -1
- package/dist/packages/row/row.scss +2 -0
- package/dist/packages/searchbar/searchbar.scss +1 -1
- package/dist/packages/tag/tag.scss +13 -5
- package/dist/packages/virtuallist/virtuallist.scss +24 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/temp.scss +2340 -0
- package/dist/styles/theme-dark.scss +7 -0
- package/dist/styles/theme-default.scss +11 -0
- package/dist/styles/variables.scss +1945 -710
- package/dist/types/index.d.ts +6 -5
- package/package.json +9 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -1226,7 +1226,7 @@ interface UploaderProps extends BasicComponent {
|
|
|
1226
1226
|
fileList: FileItem[];
|
|
1227
1227
|
event: React__default.ChangeEvent<HTMLInputElement>;
|
|
1228
1228
|
}) => void;
|
|
1229
|
-
onBeforeUpload?: (file: File[]) => Promise<File[]>;
|
|
1229
|
+
onBeforeUpload?: (file: File[]) => Promise<File[] | boolean>;
|
|
1230
1230
|
onBeforeXhrUpload?: (xhr: XMLHttpRequest, options: any) => void;
|
|
1231
1231
|
onBeforeDelete?: (file: FileItem, files: FileItem[]) => boolean;
|
|
1232
1232
|
onFileItemClick?: (file: FileItem) => void;
|
|
@@ -1716,10 +1716,11 @@ interface NoticeBarProps extends BasicComponent {
|
|
|
1716
1716
|
scrollable: boolean | null;
|
|
1717
1717
|
speed: number;
|
|
1718
1718
|
rightIcon?: HTMLElement | any;
|
|
1719
|
-
close?: (
|
|
1720
|
-
click?: (
|
|
1721
|
-
onClose?: (
|
|
1722
|
-
onClick?: (
|
|
1719
|
+
close?: (event: any) => void;
|
|
1720
|
+
click?: (event: any) => void;
|
|
1721
|
+
onClose?: (event: any) => void;
|
|
1722
|
+
onClick?: (event: any) => void;
|
|
1723
|
+
onClickItem?: (event: any, value: any) => void;
|
|
1723
1724
|
}
|
|
1724
1725
|
declare const NoticeBar: FunctionComponent<Partial<NoticeBarProps> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
1725
1726
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"style": "dist/style.css",
|
|
5
5
|
"main": "dist/nutui.react.umd.js",
|
|
6
6
|
"module": "dist/esm/nutui-react.es.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"generate:themes-dev": "node scripts/generate-themes-dev.js",
|
|
50
50
|
"checked": "npm run generate:file && tsc",
|
|
51
51
|
"dev": "npm run checked && vite --open --force",
|
|
52
|
-
"dev:theme": "npm run generate:themes-dev && npm run checked && vite --config vite.config.theme.ts
|
|
52
|
+
"dev:theme": "npm run generate:themes-dev && npm run checked && vite --force --config vite.config.theme.ts",
|
|
53
53
|
"replace:scss": "node scripts/replace-scss-alias.js",
|
|
54
54
|
"build:dts": "node scripts/export-props.js && npx rollup -c rollup.config.dts.js",
|
|
55
55
|
"build:loader-style": "node scripts/generate-loader-style.js",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"build:locales": "vite build --config vite.config.build.locales.ts",
|
|
61
61
|
"build": "npm run checked && vite build --config vite.config.build.ts && npm run build:es && npm run build:css && npm run build:loader-style && npm run build:dts && npm run build:locales",
|
|
62
62
|
"build:site": "npm run checked && vite build --config vite.config.build.site.ts",
|
|
63
|
+
"build:taro:site": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run build:h5",
|
|
63
64
|
"build:theme:site": "npm run checked && vite build --config vite.config.theme.ts && npm run generate:themes-dev",
|
|
64
65
|
"lint": "eslint ./src/packages/calendar",
|
|
65
66
|
"lint:fix": "eslint --fix ./src/packages/calendar",
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
"@use-gesture/react": "^10.2.9",
|
|
94
95
|
"async-validator": "^4.2.5",
|
|
95
96
|
"classnames": "^2.3.1",
|
|
96
|
-
"lodash": "^4.
|
|
97
|
+
"lodash.kebabcase": "^4.1.1",
|
|
97
98
|
"react-transition-group": "^4.4.2"
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
@@ -107,19 +108,23 @@
|
|
|
107
108
|
"@commitlint/cli": "^12.1.4",
|
|
108
109
|
"@commitlint/config-conventional": "^12.1.4",
|
|
109
110
|
"@loadable/component": "^5.15.0",
|
|
111
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
|
110
112
|
"@rollup/plugin-babel": "^5.3.0",
|
|
111
113
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
112
114
|
"@rollup/plugin-node-resolve": "^13.1.1",
|
|
113
115
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
114
116
|
"@tarojs/components": "^3.5.5",
|
|
117
|
+
"@tarojs/plugin-framework-react": "^3.5.10",
|
|
115
118
|
"@tarojs/plugin-platform-weapp": "^3.5.7",
|
|
119
|
+
"@tarojs/react": "^3.5.10",
|
|
116
120
|
"@tarojs/taro": "^3.5.5",
|
|
121
|
+
"@tarojs/taro-h5": "^3.5.10",
|
|
117
122
|
"@tarojs/taro-loader": "^3.5.7",
|
|
118
123
|
"@testing-library/jest-dom": "^5.16.3",
|
|
119
124
|
"@testing-library/react": "^13.3.0",
|
|
120
125
|
"@types/jest": "^27.4.1",
|
|
121
126
|
"@types/loadable__component": "^5.13.3",
|
|
122
|
-
"@types/lodash": "^4.
|
|
127
|
+
"@types/lodash.kebabcase": "^4.1.6",
|
|
123
128
|
"@types/node": "^15.3.1",
|
|
124
129
|
"@types/react": "^18.0.17",
|
|
125
130
|
"@types/react-dom": "^18.0.6",
|