@nutui/nutui-react 2.0.0-alpha.13 → 2.0.0-alpha.14
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 +16 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Avatar.js +1 -1
- package/dist/esm/AvatarGroup.js +1 -1
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Barrage.js +23 -24
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/CircleProgress.js +1 -1
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +37 -40
- package/dist/esm/Popover/style/index.js +1 -1
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +214 -166
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +17 -15
- package/dist/esm/SideNavBarItem/style/style.css +1 -1
- package/dist/esm/SideNavBarItem.js +5 -4
- package/dist/esm/Step.js +1 -1
- package/dist/esm/Steps.js +1 -1
- package/dist/esm/SubSideNavBar/style/style.css +1 -1
- package/dist/esm/SubSideNavBar.js +12 -12
- package/dist/esm/Swiper.js +1 -1
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/context.js +16 -2
- package/dist/esm/context2.js +2 -2
- package/dist/esm/context4.js +5 -0
- package/dist/esm/index.js +11 -2
- package/dist/esm/types/src/packages/barrage/barrage.d.ts +6 -7
- package/dist/esm/types/src/packages/barrage/barrage.taro.d.ts +6 -7
- package/dist/esm/types/src/packages/barrage/index.d.ts +1 -0
- package/dist/esm/types/src/packages/barrage/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/button/button.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/input/input.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/menu/menu.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/picker/doc.en.d.ts +9 -9
- package/dist/esm/types/src/packages/popover/demo.d.ts +3 -2
- package/dist/esm/types/src/packages/popover/demo.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/popover/index.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/popover.d.ts +20 -9
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +20 -10
- package/dist/esm/types/src/packages/sidenavbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +5 -9
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.taro.d.ts +5 -9
- package/dist/esm/types/src/packages/sidenavbaritem/index.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbaritem/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +3 -3
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +3 -3
- package/dist/esm/types/src/packages/subsidenavbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/subsidenavbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +3 -3
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.taro.d.ts +3 -3
- package/dist/esm/types/src/utils/index.d.ts +1 -0
- package/dist/esm/types/src/utils/use-click-away.d.ts +3 -0
- 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 +407 -269
- package/dist/nutui.react.umd.js +407 -269
- package/dist/packages/barrage/barrage.scss +0 -13
- package/dist/packages/popover/popover.scss +158 -230
- package/dist/packages/popup/popup.scss +36 -0
- package/dist/packages/sidenavbar/sidenavbar.scss +10 -16
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +7 -19
- package/dist/packages/subsidenavbar/subsidenavbar.scss +10 -19
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +35 -47
- package/dist/styles/variables.scss +45 -57
- package/dist/types/packages/barrage/barrage.d.ts +32 -9
- package/dist/types/packages/barrage/index.d.ts +1 -0
- package/dist/types/packages/button/button.d.ts +1 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/popover/index.d.ts +1 -0
- package/dist/types/packages/popover/popover.d.ts +99 -12
- package/dist/types/packages/sidenavbar/index.d.ts +1 -0
- package/dist/types/packages/sidenavbar/sidenavbar.d.ts +33 -13
- package/dist/types/packages/sidenavbaritem/index.d.ts +1 -0
- package/dist/types/packages/sidenavbaritem/sidenavbaritem.d.ts +3 -3
- package/dist/types/packages/subsidenavbar/index.d.ts +1 -0
- package/dist/types/packages/subsidenavbar/subsidenavbar.d.ts +3 -3
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/use-click-away.d.ts +3 -0
- package/package.json +1 -1
- package/dist/esm/offsetContext.js +0 -19
- package/dist/esm/types/src/packages/popover/Trigger.d.ts +0 -19
- package/dist/esm/types/src/packages/sidenavbar/type.d.ts +0 -34
- package/dist/types/packages/popover/Trigger.d.ts +0 -19
- /package/dist/esm/types/src/packages/sidenavbar/{offsetContext.d.ts → context.d.ts} +0 -0
- /package/dist/types/packages/sidenavbar/{offsetContext.d.ts → context.d.ts} +0 -0
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
|
|
6
|
-
title: string;
|
|
1
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface SideNavBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, BasicComponent {
|
|
4
|
+
title: ReactNode;
|
|
7
5
|
visible: boolean;
|
|
8
6
|
width?: string;
|
|
9
|
-
|
|
7
|
+
indent?: number;
|
|
10
8
|
position?: 'left' | 'right';
|
|
11
9
|
onClose: () => void;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
10
|
}
|
|
14
11
|
export declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
15
|
-
export {};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
|
|
6
|
-
title: string;
|
|
1
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface SideNavBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, BasicComponent {
|
|
4
|
+
title: ReactNode;
|
|
7
5
|
visible: boolean;
|
|
8
6
|
width?: string;
|
|
9
|
-
|
|
7
|
+
indent?: number;
|
|
10
8
|
position?: 'left' | 'right';
|
|
11
9
|
onClose: () => void;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
10
|
}
|
|
14
11
|
export declare const SideNavBar: FunctionComponent<SideNavBarProps>;
|
|
15
|
-
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export type SideNavBarItemProps = {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
5
|
-
onClick?: ({ title,
|
|
4
|
+
value: string | number;
|
|
5
|
+
onClick?: ({ title, value, }: {
|
|
6
6
|
title: string;
|
|
7
|
-
|
|
7
|
+
value: string | number;
|
|
8
8
|
}) => void;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export type SideNavBarItemProps = {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
5
|
-
onClick?: ({ title,
|
|
4
|
+
value: string | number;
|
|
5
|
+
onClick?: ({ title, value, }: {
|
|
6
6
|
title: string;
|
|
7
|
-
|
|
7
|
+
value: string | number;
|
|
8
8
|
}) => void;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export type SubSideNavBarProps = {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
4
|
+
value: string | number;
|
|
5
5
|
open?: boolean;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
onClick?: ({ title,
|
|
7
|
+
onClick?: ({ title, value, isShow, }: {
|
|
8
8
|
title: string;
|
|
9
|
-
|
|
9
|
+
value: string | number;
|
|
10
10
|
isShow: boolean;
|
|
11
11
|
}) => void;
|
|
12
12
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
export type SubSideNavBarProps = {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
4
|
+
value: string | number;
|
|
5
5
|
open?: boolean;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
onClick?: ({ title,
|
|
7
|
+
onClick?: ({ title, value, isShow, }: {
|
|
8
8
|
title: string;
|
|
9
|
-
|
|
9
|
+
value: string | number;
|
|
10
10
|
isShow: boolean;
|
|
11
11
|
}) => void;
|
|
12
12
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
2
2
|
export declare const isFunction: (val: unknown) => val is Function;
|
|
3
3
|
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
4
|
+
export declare const upperCaseFirst: (str: string) => string;
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED