@nutui/nutui-react-taro 2.7.5 → 2.7.7
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 +32 -9
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/Cell/style/style.css +1 -1
- package/dist/esm/CellGroup/style/style.css +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Empty.js +1 -1
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/Form.js +2 -1
- package/dist/esm/FormItem/style/style.css +1 -1
- package/dist/esm/FormItem.js +1 -1
- package/dist/esm/Swiper.js +1 -1
- package/dist/esm/TabPane.js +1 -1
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/{address.taro-C8CsajMW.js → address.taro-Ck0ZmxRg.js} +1 -1
- package/dist/esm/{cascader.taro-DRE3asjI.js → cascader.taro-DUJvcGw0.js} +1 -1
- package/dist/esm/{datepicker.taro-DicskhhH.js → datepicker.taro-Dwh8sKhJ.js} +8 -0
- package/dist/esm/{empty.taro-DhCHSdca.js → empty.taro-ChtnK90s.js} +1 -1
- package/dist/esm/{formitem.taro-CU6rrcJD.js → formitem.taro-Bee3MWwq.js} +121 -31
- package/dist/esm/nutui-react.es.js +7 -7
- package/dist/esm/{tabpane.taro-BAe86j3t.js → tabpane.taro-BAihO3w8.js} +2 -1
- package/dist/esm/{tabs.taro-CY1VxgF-.js → tabs.taro-sp_DNWis.js} +26 -44
- 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/tr-TR.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 +162 -101
- package/dist/nutui.react.umd.js +162 -101
- package/dist/packages/cellgroup/cellgroup.scss +1 -1
- package/dist/packages/formitem/formitem.scss +18 -1
- package/dist/packages/tabs/tabs.scss +72 -115
- package/dist/style.css +1 -1
- package/dist/styles/variables-jmapp.scss +1 -0
- package/dist/types/packages/form/__tests__/merge.spec.d.ts +1 -0
- package/dist/types/packages/form/index.d.ts +2 -1
- package/dist/types/packages/form/index.taro.d.ts +2 -1
- package/dist/types/packages/form/useform.d.ts +2 -1
- package/dist/types/packages/form/useform.taro.d.ts +2 -1
- package/dist/types/utils/merge.d.ts +14 -1
- package/package.json +1 -1
|
@@ -629,6 +629,7 @@ $textarea-limit-color: var(
|
|
|
629
629
|
--nutui-textarea-limit-color,
|
|
630
630
|
$color-text-help
|
|
631
631
|
) !default;
|
|
632
|
+
$textarea-limit-align: var(--nutui-textarea-limit-align, right) !default;
|
|
632
633
|
$textarea-text-color: var(--nutui-textarea-text-color, $color-text) !default;
|
|
633
634
|
$textarea-text-curror-color: var(
|
|
634
635
|
--nutui-textarea-text-curror-color,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,11 +2,12 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { FormProps } from './form';
|
|
3
3
|
import { FormItem } from '../formitem/formitem';
|
|
4
4
|
import { FormInstance } from './types';
|
|
5
|
-
import { useForm } from './useform';
|
|
5
|
+
import { useForm, useWatch } from './useform';
|
|
6
6
|
export type { FormItemRuleWithoutValidator, FormInstance, FormFieldEntity, } from './types';
|
|
7
7
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<FormProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<FormInstance>> & {
|
|
8
8
|
Item: typeof FormItem;
|
|
9
9
|
useForm: typeof useForm;
|
|
10
|
+
useWatch: typeof useWatch;
|
|
10
11
|
};
|
|
11
12
|
declare const InnerForm: CompoundedComponent;
|
|
12
13
|
export default InnerForm;
|
|
@@ -2,11 +2,12 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { FormProps } from './form.taro';
|
|
3
3
|
import { FormItem } from '../formitem/formitem.taro';
|
|
4
4
|
import { FormInstance } from './types';
|
|
5
|
-
import { useForm } from './useform.taro';
|
|
5
|
+
import { useForm, useWatch } from './useform.taro';
|
|
6
6
|
export type { FormItemRuleWithoutValidator, FormInstance, FormFieldEntity, } from './types';
|
|
7
7
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<FormProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<FormInstance>> & {
|
|
8
8
|
Item: typeof FormItem;
|
|
9
9
|
useForm: typeof useForm;
|
|
10
|
+
useWatch: typeof useWatch;
|
|
10
11
|
};
|
|
11
12
|
declare const InnerForm: CompoundedComponent;
|
|
12
13
|
export default InnerForm;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { FormInstance } from './types';
|
|
1
|
+
import { FormInstance, NamePath } from './types';
|
|
2
2
|
export declare const SECRET = "NUT_FORM_INTERNAL";
|
|
3
3
|
export declare const useForm: (form?: FormInstance) => [FormInstance];
|
|
4
|
+
export declare const useWatch: (path: NamePath, form: FormInstance) => any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { FormInstance } from './types';
|
|
1
|
+
import { FormInstance, NamePath } from './types';
|
|
2
2
|
export declare const SECRET = "NUT_FORM_INTERNAL";
|
|
3
3
|
export declare const useForm: (form?: FormInstance) => [FormInstance];
|
|
4
|
+
export declare const useWatch: (path: NamePath, form: FormInstance) => any;
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
export
|
|
1
|
+
export default main;
|
|
2
|
+
export declare function main(clone: boolean, ...items: any[]): any;
|
|
3
|
+
export declare function main(...items: any[]): any;
|
|
4
|
+
export declare namespace main {
|
|
5
|
+
var clone: typeof import("./merge").clone;
|
|
6
|
+
var isPlainObject: typeof import("./merge").isPlainObject;
|
|
7
|
+
var recursive: typeof import("./merge").recursive;
|
|
8
|
+
}
|
|
9
|
+
export declare function merge(clone: boolean, ...items: any[]): any;
|
|
10
|
+
export declare function merge(...items: any[]): any;
|
|
11
|
+
export declare function recursive(clone: boolean, ...items: any[]): any;
|
|
12
|
+
export declare function recursive(...items: any[]): any;
|
|
13
|
+
export declare function clone<T>(input: T): T;
|
|
14
|
+
export declare function isPlainObject(input: unknown): input is NonNullable<any>;
|