@nutui/nutui-react-taro 2.0.0-alpha.15 → 2.0.0-alpha.16
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 +14 -0
- package/dist/esm/DatePicker.js +2 -2
- package/dist/esm/Dialog/style/index.js +1 -0
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/MenuItem.js +1 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/Picker.js +1 -1
- package/dist/esm/{datepicker.taro-8c9230b6.js → datepicker.taro-b480d072.js} +43 -45
- package/dist/esm/{menuitem.taro-6aa35a00.js → menuitem.taro-7f8c12cf.js} +11 -8
- package/dist/esm/{noticebar.taro-8d496dd6.js → noticebar.taro-dc895cc5.js} +1 -1
- package/dist/esm/nutui-react.es.js +4 -4
- package/dist/esm/{picker.taro-6b672469.js → picker.taro-3781a455.js} +1 -1
- package/dist/esm/types/src/packages/datepicker/datepicker.d.ts +11 -17
- package/dist/esm/types/src/packages/datepicker/datepicker.taro.d.ts +11 -17
- package/dist/esm/types/src/packages/datepicker/index.d.ts +1 -0
- package/dist/esm/types/src/packages/datepicker/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/toast/Notification.d.ts +4 -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/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 +138 -129
- package/dist/nutui.react.umd.js +138 -129
- package/dist/packages/menuitem/menuitem.scss +1 -1
- package/dist/packages/noticebar/noticebar.scss +0 -3
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/datepicker/datepicker.taro.d.ts +11 -17
- package/dist/types/packages/datepicker/index.taro.d.ts +1 -0
- package/dist/types/packages/picker/index.d.ts +4 -0
- package/dist/types/packages/picker/picker.d.ts +18 -0
- package/dist/types/packages/picker/pickerpanel.d.ts +15 -0
- package/dist/types/packages/popup/index.d.ts +3 -0
- package/dist/types/packages/popup/popup.d.ts +22 -0
- package/package.json +1 -1
package/dist/style.mjs
CHANGED
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
className?: string | number;
|
|
8
|
-
}
|
|
9
|
-
export interface DatePickerProps {
|
|
10
|
-
modelValue: Date | null;
|
|
2
|
+
import { PickerOption } from '../../packages/picker/index';
|
|
3
|
+
import { BasicComponent } from '../../utils/typings';
|
|
4
|
+
export interface DatePickerProps extends BasicComponent {
|
|
5
|
+
value?: Date | null;
|
|
6
|
+
defaultValue?: Date | null;
|
|
11
7
|
visible: boolean;
|
|
12
8
|
title: string;
|
|
13
9
|
type: 'date' | 'time' | 'year-month' | 'month-day' | 'datehour' | 'datetime' | 'hour-minutes';
|
|
14
|
-
|
|
10
|
+
showChinese: boolean;
|
|
15
11
|
minuteStep: number;
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
startDate: Date;
|
|
13
|
+
endDate: Date;
|
|
18
14
|
threeDimensional: boolean;
|
|
19
|
-
className?: string;
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
15
|
formatter: (type: string, option: PickerOption) => PickerOption;
|
|
22
16
|
filter: (type: string, option: PickerOption[]) => PickerOption[];
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
onConfirm: (selectedOptions: PickerOption[], selectedValue: (string | number)[]) => void;
|
|
25
19
|
onChange?: (selectedOptions: PickerOption[], selectedValue: (string | number)[], columnIndex: number) => void;
|
|
26
20
|
}
|
|
27
|
-
export declare const DatePicker: FunctionComponent<Partial<DatePickerProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
|
|
21
|
+
export declare const DatePicker: FunctionComponent<Partial<DatePickerProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
|
+
import { PickerOption } from './types';
|
|
3
|
+
import { BasicComponent } from '../../utils/typings';
|
|
4
|
+
export interface PickerProps extends BasicComponent {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
options: (PickerOption | PickerOption[])[];
|
|
8
|
+
value?: (number | string)[];
|
|
9
|
+
defaultValue?: (number | string)[];
|
|
10
|
+
threeDimensional?: boolean;
|
|
11
|
+
duration: number | string;
|
|
12
|
+
onConfirm?: (selectedOptions: PickerOption[], selectedValue: (string | number)[]) => void;
|
|
13
|
+
onClose?: (selectedOptions: PickerOption[], selectedValue: (string | number)[]) => void;
|
|
14
|
+
afterClose?: (selectedOptions: PickerOption[], selectedValue: (string | number)[], pickerRef: RefObject<HTMLDivElement>) => void;
|
|
15
|
+
onChange?: (selectedOptions: PickerOption[], selectedValue: (string | number)[], columnIndex: number) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const Picker: React.ForwardRefExoticComponent<Partial<PickerProps> & React.RefAttributes<unknown>>;
|
|
18
|
+
export default Picker;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PickerOption } from './types';
|
|
3
|
+
interface PickerPanelProps {
|
|
4
|
+
keyIndex?: number;
|
|
5
|
+
defaultValue?: string | number;
|
|
6
|
+
options?: PickerOption[];
|
|
7
|
+
threeDimensional: boolean;
|
|
8
|
+
duration: number | string;
|
|
9
|
+
chooseItem?: (val: PickerOption, idx: number) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const PickerPanel: React.ForwardRefExoticComponent<Partial<PickerPanelProps> & React.RefAttributes<{
|
|
12
|
+
stopMomentum: () => void;
|
|
13
|
+
moving: boolean;
|
|
14
|
+
}>>;
|
|
15
|
+
export default PickerPanel;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { FunctionComponent, MouseEvent } from 'react';
|
|
2
|
+
import { OverlayProps } from '../../packages/overlay/overlay';
|
|
3
|
+
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
4
|
+
export interface PopupProps extends OverlayProps {
|
|
5
|
+
position: string;
|
|
6
|
+
transition: string;
|
|
7
|
+
overlayStyle: React.CSSProperties;
|
|
8
|
+
overlayClassName: string;
|
|
9
|
+
closeable: boolean;
|
|
10
|
+
closeIconPosition: string;
|
|
11
|
+
closeIcon: React.ReactNode;
|
|
12
|
+
destroyOnClose: boolean;
|
|
13
|
+
portal: Teleport;
|
|
14
|
+
overlay: boolean;
|
|
15
|
+
round: boolean;
|
|
16
|
+
onOpen: () => void;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
onClickOverlay: (e: MouseEvent) => boolean | void;
|
|
19
|
+
onClickCloseIcon: (e: MouseEvent) => boolean | void;
|
|
20
|
+
}
|
|
21
|
+
export declare const Popup: FunctionComponent<Partial<PopupProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
22
|
+
export {};
|