@nutui/nutui-react 2.3.11 → 2.3.12-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/dist/esm/ActionSheet.js +0 -10
- package/dist/esm/Address.js +0 -13
- package/dist/esm/AnimatingNumbers.js +9 -25
- package/dist/esm/Badge.js +0 -3
- package/dist/esm/Button.js +0 -4
- package/dist/esm/Cascader.js +0 -17
- package/dist/esm/Checkbox.js +0 -6
- package/dist/esm/CheckboxGroup.js +0 -3
- package/dist/esm/CollapseItem.js +0 -3
- package/dist/esm/ConfigProvider.js +0 -2
- package/dist/esm/Dialog.js +2 -8
- package/dist/esm/Elevator.js +2 -1
- package/dist/esm/Empty.js +0 -1
- package/dist/esm/FormItem.js +0 -3
- package/dist/esm/Grid.js +0 -1
- package/dist/esm/GridItem.js +0 -4
- package/dist/esm/Indicator.js +0 -2
- package/dist/esm/Menu.js +0 -9
- package/dist/esm/MenuItem.js +0 -13
- package/dist/esm/Notify.js +10 -27
- package/dist/esm/Overlay.js +0 -8
- package/dist/esm/Picker.js +0 -7
- package/dist/esm/Popover.js +0 -1
- package/dist/esm/Popup.js +0 -12
- package/dist/esm/PullToRefresh.js +0 -1
- package/dist/esm/Radio.js +0 -6
- package/dist/esm/RadioGroup.js +0 -3
- package/dist/esm/SafeArea.js +0 -2
- package/dist/esm/Sticky.js +0 -1
- package/dist/esm/Tabbar.js +0 -1
- package/dist/esm/TabbarItem.js +0 -4
- package/dist/esm/Tabs.js +0 -7
- package/dist/esm/Toast.js +10 -32
- package/dist/esm/cascader2.js +14 -15
- package/dist/esm/formitem2.js +10 -26
- 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 +224 -202
- package/dist/nutui.react.umd.js +224 -202
- package/dist/style.mjs +1 -1
- package/dist/types/index.d.ts +98 -98
- package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
- package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
- package/dist/types/packages/address/address.d.ts +1 -1
- package/dist/types/packages/address/address.taro.d.ts +1 -1
- package/dist/types/packages/address/customRender.d.ts +1 -1
- package/dist/types/packages/address/customRender.taro.d.ts +1 -1
- package/dist/types/packages/avatar/avatar.d.ts +1 -1
- package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
- package/dist/types/packages/cascader/cascader.d.ts +1 -1
- package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
- package/dist/types/packages/cell/cell.d.ts +1 -1
- package/dist/types/packages/cell/cell.taro.d.ts +1 -1
- package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
- package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
- package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
- package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
- package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
- package/dist/types/packages/empty/empty.d.ts +1 -1
- package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
- package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
- package/dist/types/packages/form/form.d.ts +1 -1
- package/dist/types/packages/form/form.taro.d.ts +1 -1
- package/dist/types/packages/form/index.d.ts +1 -1
- package/dist/types/packages/form/index.taro.d.ts +1 -1
- package/dist/types/packages/menu/menu.d.ts +1 -1
- package/dist/types/packages/menu/menu.taro.d.ts +1 -1
- package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
- package/dist/types/packages/nutui.react.d.ts +98 -98
- package/dist/types/packages/nutui.react.taro.d.ts +98 -98
- package/dist/types/packages/nutui.taro.react.build.d.ts +98 -98
- package/dist/types/packages/picker/picker.d.ts +1 -1
- package/dist/types/packages/picker/picker.taro.d.ts +1 -1
- package/dist/types/packages/popover/popover.d.ts +1 -1
- package/dist/types/packages/popover/popover.taro.d.ts +1 -1
- package/dist/types/packages/popup/popup.d.ts +1 -1
- package/dist/types/packages/popup/popup.taro.d.ts +1 -1
- package/dist/types/packages/radio/radio.d.ts +2 -2
- package/dist/types/packages/radio/radio.taro.d.ts +2 -2
- package/dist/types/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
- package/dist/types/packages/swiper/index.d.ts +1 -1
- package/dist/types/packages/swiper/index.taro.d.ts +1 -1
- package/dist/types/packages/tabs/tabs.d.ts +1 -1
- package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
- package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
- package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
- package/dist/types/packages/tour/tour.d.ts +1 -1
- package/dist/types/packages/tour/tour.taro.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
|
-
import { PopupProps } from '
|
|
2
|
+
import { PopupProps } from '../popup/popup.taro';
|
|
3
3
|
import { PickerOption } from './types';
|
|
4
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
5
|
export type PickerActions = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { PopupProps } from '
|
|
2
|
+
import { PopupProps } from '../popup/popup';
|
|
3
3
|
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
4
4
|
export interface List {
|
|
5
5
|
key?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { PopupProps } from '
|
|
2
|
+
import { PopupProps } from '../popup/popup.taro';
|
|
3
3
|
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
4
4
|
export interface List {
|
|
5
5
|
key?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { OverlayProps } from '
|
|
2
|
+
import { OverlayProps } from '../overlay/overlay';
|
|
3
3
|
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
4
4
|
export interface PopupProps extends OverlayProps {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { ITouchEvent } from '@tarojs/components';
|
|
3
|
-
import { OverlayProps } from '
|
|
3
|
+
import { OverlayProps } from '../overlay/overlay.taro';
|
|
4
4
|
type Teleport = HTMLElement | (() => HTMLElement) | null;
|
|
5
5
|
export interface PopupProps extends OverlayProps {
|
|
6
6
|
position: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import RadioGroup from '
|
|
2
|
+
import RadioGroup from '../radiogroup';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
|
-
import { RadioPosition, RadioShape } from '
|
|
4
|
+
import { RadioPosition, RadioShape } from './types';
|
|
5
5
|
export interface RadioProps extends BasicComponent {
|
|
6
6
|
/**
|
|
7
7
|
* 是否禁用选择
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import RadioGroup from '
|
|
2
|
+
import RadioGroup from '../radiogroup/index.taro';
|
|
3
3
|
import { BasicComponent } from '../../utils/typings';
|
|
4
|
-
import { RadioPosition, RadioShape } from '
|
|
4
|
+
import { RadioPosition, RadioShape } from './types';
|
|
5
5
|
export interface RadioProps extends BasicComponent {
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
checked: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ForwardRefRenderFunction, ReactNode } from 'react';
|
|
2
|
-
import { PopupProps } from '
|
|
2
|
+
import { PopupProps } from '../popup/popup.taro';
|
|
3
3
|
export interface ShortPasswordProps extends PopupProps {
|
|
4
4
|
value: string;
|
|
5
5
|
visible: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SwiperProps, SwiperRef } from './swiper';
|
|
3
|
-
import SwiperItem from '
|
|
3
|
+
import SwiperItem from '../swiperitem';
|
|
4
4
|
export type { SwiperProps, SwiperRef } from './swiper';
|
|
5
5
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<SwiperRef>> & {
|
|
6
6
|
Item: typeof SwiperItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SwiperProps } from './swiper.taro';
|
|
3
|
-
import SwiperItem from '
|
|
3
|
+
import SwiperItem from '../swiperitem/index.taro';
|
|
4
4
|
export type { SwiperProps } from './swiper.taro';
|
|
5
5
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<any>> & {
|
|
6
6
|
Item: typeof SwiperItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import TabPane from '
|
|
3
|
+
import TabPane from '../tabpane/index.taro';
|
|
4
4
|
export type TabsTitle = {
|
|
5
5
|
title: string;
|
|
6
6
|
disabled: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { TimeType, DateType, OptionKeyType } from '
|
|
3
|
+
import { TimeType, DateType, OptionKeyType } from '../timeselect';
|
|
4
4
|
export interface TimeDetailProps extends BasicComponent {
|
|
5
5
|
activeDate: string;
|
|
6
6
|
activeTime: DateType[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '../../utils/typings';
|
|
3
|
-
import { TimeType, DateType, OptionKeyType } from '
|
|
3
|
+
import { TimeType, DateType, OptionKeyType } from '../timeselect/index.taro';
|
|
4
4
|
export interface TimeDetailProps extends BasicComponent {
|
|
5
5
|
activeDate: string;
|
|
6
6
|
activeTime: DateType[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, FunctionComponent } from 'react';
|
|
2
2
|
import type { MouseEvent } from 'react';
|
|
3
|
-
import { PopoverLocation } from '
|
|
3
|
+
import { PopoverLocation } from '../popover/popover';
|
|
4
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
5
|
export interface ListOptions {
|
|
6
6
|
target: Element | string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, FunctionComponent } from 'react';
|
|
2
2
|
import type { MouseEvent } from 'react';
|
|
3
|
-
import { PopoverLocation } from '
|
|
3
|
+
import { PopoverLocation } from '../popover/index.taro';
|
|
4
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
5
|
export interface ListOptions {
|
|
6
6
|
target: Element | string;
|