@nutui/nutui-react-taro 1.3.10 → 1.3.11-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/CHANGELOG.md +24 -0
- package/README.md +54 -46
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/Avatar.js +3 -2
- package/dist/esm/Badge.js +2 -2
- package/dist/esm/Button.js +2 -2
- package/dist/esm/Calendar.js +3 -3
- package/dist/esm/CalendarItem.js +2 -2
- package/dist/esm/Card.js +3 -3
- package/dist/esm/Checkbox.js +2 -2
- package/dist/esm/CheckboxGroup.js +2 -2
- package/dist/esm/Col.js +2 -2
- package/dist/esm/Dialog.js +3 -3
- package/dist/esm/ImagePreview.js +3 -3
- package/dist/esm/Infiniteloading.js +2 -2
- package/dist/esm/Input.js +2 -2
- package/dist/esm/MenuItem.js +2 -2
- package/dist/esm/Radio.js +1 -1
- package/dist/esm/RadioGroup.js +2 -2
- package/dist/esm/Rate.js +2 -2
- package/dist/esm/Row.js +2 -2
- package/dist/esm/Signature.js +3 -3
- package/dist/esm/Skeleton.js +4 -3
- package/dist/esm/SwiperItem.js +2 -2
- package/dist/esm/TabbarItem.js +3 -3
- package/dist/esm/Tag.js +2 -2
- package/dist/esm/Uploader.js +3 -3
- package/dist/esm/{audio.taro-b42a082b.js → audio.taro-b4f71d1b.js} +1 -1
- package/dist/esm/{avatar.taro-deabe88a.js → avatar.taro-85ced995.js} +9 -7
- package/dist/esm/{badge.taro-38684262.js → badge.taro-9f72d846.js} +4 -1
- package/dist/esm/{button.taro-7e924b72.js → button.taro-4ce133b9.js} +26 -21
- package/dist/esm/{calendar.taro-533b3219.js → calendar.taro-a1f1a7f8.js} +1 -1
- package/dist/esm/{calendaritem.taro-fe5dd4bd.js → calendaritem.taro-3a12e7f2.js} +1 -1
- package/dist/esm/{card.taro-59f65b66.js → card.taro-a530dfb3.js} +1 -1
- package/dist/esm/{checkbox.taro-d8656076.js → checkbox.taro-0bda9796.js} +1 -1
- package/dist/esm/{col.taro-2a437387.js → col.taro-b61c7cba.js} +5 -2
- package/dist/esm/{dialog.taro-0c35b35f.js → dialog.taro-17e19e5e.js} +1 -1
- package/dist/esm/{imagepreview.taro-1199e977.js → imagepreview.taro-69d47ab0.js} +1 -1
- package/dist/esm/{index.taro-c092d216.js → index.taro-a36f96fb.js} +1 -1
- package/dist/esm/{infiniteloading.taro-b95e62bf.js → infiniteloading.taro-9701755f.js} +3 -1
- package/dist/esm/{input.taro-cc46bbc3.js → input.taro-14380bc6.js} +1 -3
- package/dist/esm/{menuitem.taro-06a135a5.js → menuitem.taro-bb55f482.js} +8 -3
- package/dist/esm/nutui-react.es.js +23 -23
- package/dist/esm/{rate.taro-69c85081.js → rate.taro-10197384.js} +4 -1
- package/dist/esm/{row.taro-cec13a7e.js → row.taro-37a895de.js} +5 -1
- package/dist/esm/{signature.taro-57f8de06.js → signature.taro-6589435b.js} +1 -1
- package/dist/esm/{skeleton.taro-acca102c.js → skeleton.taro-853ce460.js} +1 -1
- package/dist/esm/{swiperitem-d00e7513.js → swiperitem-86a3578a.js} +6 -4
- package/dist/esm/{tabbaritem.taro-fb90f659.js → tabbaritem.taro-8dfb8055.js} +5 -4
- package/dist/esm/{tag.taro-84d40117.js → tag.taro-bd900990.js} +1 -1
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -0
- package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/button/button.taro.d.ts +4 -1
- package/dist/esm/types/src/packages/menuitem/menuitem.d.ts +2 -2
- package/dist/esm/types/src/packages/menuitem/menuitem.taro.d.ts +2 -2
- package/dist/esm/{uploader.taro-a03bb003.js → uploader.taro-2e16bff6.js} +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/nutui.react.es.js +77 -46
- package/dist/nutui.react.umd.js +76 -45
- package/dist/packages/avatar/avatar.scss +1 -1
- package/dist/packages/button/button.scss +6 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/types/index.d.ts +5 -3
- package/package.json +9 -3
package/dist/style.es.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React$1, { CSSProperties, ReactNode, FunctionComponent, ReactHTML, ReactElement, MouseEvent as MouseEvent$1, MouseEventHandler, ChangeEvent, FocusEvent, HTMLInputTypeAttribute, RefObject, ForwardRefExoticComponent, PropsWithChildren, Component } from 'react';
|
|
2
|
+
import { ButtonProps as ButtonProps$1 } from '@tarojs/components';
|
|
2
3
|
import Taro from '@tarojs/taro';
|
|
3
4
|
|
|
4
5
|
interface IComponent {
|
|
@@ -9,7 +10,8 @@ interface IComponent {
|
|
|
9
10
|
children?: ReactNode;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
declare type OmitMiniProgramButtonProps = Omit<ButtonProps$1, 'size' | 'type' | 'onClick'>;
|
|
14
|
+
interface ButtonProps extends IComponent, OmitMiniProgramButtonProps {
|
|
13
15
|
className: string;
|
|
14
16
|
color: string;
|
|
15
17
|
shape: ButtonShape;
|
|
@@ -556,7 +558,7 @@ interface MenuItemProps extends IComponent {
|
|
|
556
558
|
onChange: (event: any) => void;
|
|
557
559
|
children: React$1.ReactNode;
|
|
558
560
|
}
|
|
559
|
-
declare const MenuItem:
|
|
561
|
+
declare const MenuItem: React$1.ForwardRefExoticComponent<Partial<MenuItemProps> & React$1.RefAttributes<unknown>>;
|
|
560
562
|
|
|
561
563
|
declare type SliderValue = number | number[];
|
|
562
564
|
interface RangeProps {
|
|
@@ -1427,13 +1429,13 @@ declare const SwiperItem: React$1.ForwardRefExoticComponent<Partial<SwiperItemPr
|
|
|
1427
1429
|
interface AvatarProps extends IComponent {
|
|
1428
1430
|
size: string;
|
|
1429
1431
|
icon: string;
|
|
1432
|
+
iconSize?: string | number;
|
|
1430
1433
|
shape: AvatarShape;
|
|
1431
1434
|
bgColor: string;
|
|
1432
1435
|
color: string;
|
|
1433
1436
|
prefixCls: string;
|
|
1434
1437
|
url: string;
|
|
1435
1438
|
className: string;
|
|
1436
|
-
alt: string;
|
|
1437
1439
|
style: React$1.CSSProperties;
|
|
1438
1440
|
activeAvatar: (e: MouseEvent) => void;
|
|
1439
1441
|
onActiveAvatar: (e: MouseEvent) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react-taro",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11-beta.0",
|
|
4
4
|
"style": "dist/style.css",
|
|
5
5
|
"main": "dist/nutui.react.umd.js",
|
|
6
6
|
"module": "dist/esm/nutui-react.es.js",
|
|
@@ -11,20 +11,26 @@
|
|
|
11
11
|
"dist/style.css",
|
|
12
12
|
"dist/styles/font/*"
|
|
13
13
|
],
|
|
14
|
-
"description": "京东风格的轻量级移动端 React
|
|
14
|
+
"description": "京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"nutui",
|
|
17
17
|
"nutui2",
|
|
18
18
|
"nutui3",
|
|
19
19
|
"react",
|
|
20
|
+
"nutui-react",
|
|
20
21
|
"webpack",
|
|
21
22
|
"react component",
|
|
22
23
|
"vite",
|
|
23
24
|
"jdc",
|
|
24
|
-
"jdcfe"
|
|
25
|
+
"jdcfe",
|
|
26
|
+
"taro"
|
|
25
27
|
],
|
|
26
28
|
"author": "jdcfe",
|
|
27
29
|
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/jdf2e/nutui-react.git"
|
|
33
|
+
},
|
|
28
34
|
"publishConfig": {
|
|
29
35
|
"access": "public",
|
|
30
36
|
"registry": "https://registry.npmjs.org/"
|