@nutui/nutui-react-taro 1.4.0 → 1.4.1

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.
Files changed (113) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/esm/Audio.js +3 -3
  3. package/dist/esm/Icon/style/index.js +1 -2
  4. package/dist/esm/ImagePreview.js +3 -3
  5. package/dist/esm/Input.js +2 -2
  6. package/dist/esm/Range.js +2 -2
  7. package/dist/esm/Swiper.js +2 -2
  8. package/dist/esm/{audio.taro-c94fc58b.js → audio.taro-20890c93.js} +1 -1
  9. package/dist/esm/{imagepreview.taro-69d47ab0.js → imagepreview.taro-68e776f5.js} +1 -1
  10. package/dist/esm/{input.taro-eef88020.js → input.taro-65db24c3.js} +3 -3
  11. package/dist/esm/nutui-react.es.js +5 -5
  12. package/dist/esm/{range.taro-3e610b5c.js → range.taro-4cbe2469.js} +1 -4
  13. package/dist/esm/{swiper.taro-f314d67a.js → swiper.taro-852f6615.js} +8 -4
  14. package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +1 -1
  15. package/dist/esm/types/src/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  16. package/dist/esm/types/src/packages/animate/type.d.ts +2 -2
  17. package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.d.ts +1 -1
  18. package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.taro.d.ts +1 -1
  19. package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -1
  20. package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +1 -1
  21. package/dist/esm/types/src/packages/badge/badge.d.ts +1 -1
  22. package/dist/esm/types/src/packages/badge/badge.taro.d.ts +1 -1
  23. package/dist/esm/types/src/packages/button/button.d.ts +3 -3
  24. package/dist/esm/types/src/packages/button/button.taro.d.ts +4 -4
  25. package/dist/esm/types/src/packages/calendar/calendar.d.ts +1 -1
  26. package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +2 -2
  27. package/dist/esm/types/src/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  28. package/dist/esm/types/src/packages/cascader/types.d.ts +1 -1
  29. package/dist/esm/types/src/packages/col/col.d.ts +1 -1
  30. package/dist/esm/types/src/packages/col/col.taro.d.ts +1 -1
  31. package/dist/esm/types/src/packages/dialog/Mask.d.ts +1 -1
  32. package/dist/esm/types/src/packages/dialog/config.d.ts +2 -2
  33. package/dist/esm/types/src/packages/dialog/dialog.d.ts +1 -1
  34. package/dist/esm/types/src/packages/dialog/dialog.taro.d.ts +1 -1
  35. package/dist/esm/types/src/packages/divider/divider.d.ts +2 -2
  36. package/dist/esm/types/src/packages/divider/divider.taro.d.ts +2 -2
  37. package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +1 -1
  38. package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +1 -1
  39. package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +2 -2
  40. package/dist/esm/types/src/packages/fixednav/fixednav.taro.d.ts +2 -2
  41. package/dist/esm/types/src/packages/form/types.d.ts +2 -2
  42. package/dist/esm/types/src/packages/formitem/formitem.d.ts +2 -2
  43. package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +2 -2
  44. package/dist/esm/types/src/packages/formitem/types.d.ts +2 -2
  45. package/dist/esm/types/src/packages/grid/grid.d.ts +1 -1
  46. package/dist/esm/types/src/packages/grid/grid.taro.d.ts +1 -1
  47. package/dist/esm/types/src/packages/griditem/griditem.d.ts +1 -1
  48. package/dist/esm/types/src/packages/griditem/griditem.taro.d.ts +1 -1
  49. package/dist/esm/types/src/packages/image/image.d.ts +2 -2
  50. package/dist/esm/types/src/packages/image/image.taro.d.ts +2 -2
  51. package/dist/esm/types/src/packages/input/input.d.ts +5 -5
  52. package/dist/esm/types/src/packages/input/input.taro.d.ts +5 -5
  53. package/dist/esm/types/src/packages/popover/popover.d.ts +2 -2
  54. package/dist/esm/types/src/packages/popover/popover.taro.d.ts +2 -2
  55. package/dist/esm/types/src/packages/popup/popup.d.ts +1 -1
  56. package/dist/esm/types/src/packages/popup/popup.taro.d.ts +1 -1
  57. package/dist/esm/types/src/packages/progress/progress.d.ts +2 -2
  58. package/dist/esm/types/src/packages/progress/progress.taro.d.ts +2 -2
  59. package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
  60. package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.taro.d.ts +1 -1
  61. package/dist/esm/types/src/packages/radio/radio.d.ts +2 -2
  62. package/dist/esm/types/src/packages/radio/radio.taro.d.ts +2 -2
  63. package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -2
  64. package/dist/esm/types/src/packages/radiogroup/radiogroup.taro.d.ts +2 -2
  65. package/dist/esm/types/src/packages/range/range.d.ts +1 -2
  66. package/dist/esm/types/src/packages/range/range.taro.d.ts +1 -2
  67. package/dist/esm/types/src/packages/row/row.d.ts +1 -1
  68. package/dist/esm/types/src/packages/row/row.taro.d.ts +1 -1
  69. package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +1 -1
  70. package/dist/esm/types/src/packages/sidenavbar/sidenavbar.taro.d.ts +1 -1
  71. package/dist/esm/types/src/packages/sidenavbar/type.d.ts +3 -3
  72. package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +1 -1
  73. package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +1 -1
  74. package/dist/esm/types/src/packages/skeleton/skeleton.d.ts +1 -1
  75. package/dist/esm/types/src/packages/skeleton/skeleton.taro.d.ts +1 -1
  76. package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +1 -1
  77. package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.taro.d.ts +1 -1
  78. package/dist/esm/types/src/packages/swipe/swipe.d.ts +2 -2
  79. package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +2 -2
  80. package/dist/esm/types/src/packages/swiper/swiper.d.ts +2 -1
  81. package/dist/esm/types/src/packages/swiper/swiper.taro.d.ts +2 -1
  82. package/dist/esm/types/src/packages/table/table.d.ts +1 -1
  83. package/dist/esm/types/src/packages/table/table.taro.d.ts +1 -1
  84. package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
  85. package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
  86. package/dist/esm/types/src/packages/tag/tag.d.ts +1 -1
  87. package/dist/esm/types/src/packages/tag/tag.taro.d.ts +1 -1
  88. package/dist/esm/types/src/packages/uploader/uploader.d.ts +2 -2
  89. package/dist/esm/types/src/packages/uploader/uploader.taro.d.ts +2 -2
  90. package/dist/esm/types/src/packages/virtuallist/type.d.ts +1 -1
  91. package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +1 -1
  92. package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +1 -1
  93. package/dist/esm/types/src/utils/get-scroll-parent.d.ts +1 -1
  94. package/dist/esm/types/src/utils/render.d.ts +1 -1
  95. package/dist/esm/types/src/utils/useTouch.d.ts +1 -1
  96. package/dist/esm/types/src/utils/useWatch.d.ts +2 -2
  97. package/dist/locales/base.js +1 -1
  98. package/dist/locales/en-US.js +1 -1
  99. package/dist/locales/id-ID.js +1 -1
  100. package/dist/locales/zh-CN.js +1 -1
  101. package/dist/locales/zh-TW.js +1 -1
  102. package/dist/locales/zh-UG.js +1 -1
  103. package/dist/nutui.react.es.js +89 -77
  104. package/dist/nutui.react.umd.js +89 -77
  105. package/dist/packages/input/input.scss +15 -0
  106. package/dist/packages/searchbar/searchbar.scss +6 -13
  107. package/dist/packages/swiper/swiper.scss +0 -3
  108. package/dist/style.css +1 -1
  109. package/dist/style.es.js +1 -1
  110. package/dist/styles/themes/default.scss +1 -0
  111. package/dist/styles/variables.scss +8 -4
  112. package/dist/types/index.d.ts +55 -55
  113. package/package.json +2 -1
@@ -1,14 +1,14 @@
1
1
  import React, { CSSProperties, FunctionComponent, HTMLInputTypeAttribute } from 'react';
2
2
  import { BasicComponent } from '@/utils/typings';
3
- export declare type InputAlignType = 'left' | 'center' | 'right';
4
- export declare type InputFormatTrigger = 'onChange' | 'onBlur';
5
- export declare type InputType = HTMLInputTypeAttribute;
6
- export declare type InputRule = {
3
+ export type InputAlignType = 'left' | 'center' | 'right';
4
+ export type InputFormatTrigger = 'onChange' | 'onBlur';
5
+ export type InputType = HTMLInputTypeAttribute;
6
+ export type InputRule = {
7
7
  pattern?: RegExp;
8
8
  message?: string;
9
9
  required?: boolean;
10
10
  };
11
- export declare type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
11
+ export type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
12
12
  export interface InputProps extends BasicComponent {
13
13
  type: InputType;
14
14
  name: string;
@@ -1,14 +1,14 @@
1
1
  import React, { CSSProperties, FunctionComponent, HTMLInputTypeAttribute } from 'react';
2
2
  import { BasicComponent } from '@/utils/typings';
3
- export declare type InputAlignType = 'left' | 'center' | 'right';
4
- export declare type InputFormatTrigger = 'onChange' | 'onBlur';
5
- export declare type InputType = HTMLInputTypeAttribute;
6
- export declare type InputRule = {
3
+ export type InputAlignType = 'left' | 'center' | 'right';
4
+ export type InputFormatTrigger = 'onChange' | 'onBlur';
5
+ export type InputType = HTMLInputTypeAttribute;
6
+ export type InputRule = {
7
7
  pattern?: RegExp;
8
8
  message?: string;
9
9
  required?: boolean;
10
10
  };
11
- export declare type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
11
+ export type ConfirmTextType = 'send' | 'search' | 'next' | 'go' | 'done';
12
12
  export interface InputProps extends BasicComponent {
13
13
  type: InputType;
14
14
  name: string;
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties, FunctionComponent } from 'react';
2
2
  import { BasicComponent } from '@/utils/typings';
3
- export declare type PopoverTheme = 'light' | 'dark';
4
- export declare type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
3
+ export type PopoverTheme = 'light' | 'dark';
4
+ export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
5
5
  export interface List {
6
6
  name: string;
7
7
  icon?: string;
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties, FunctionComponent } from 'react';
2
2
  import { BasicComponent } from '@/utils/typings';
3
- export declare type PopoverTheme = 'light' | 'dark';
4
- export declare type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
3
+ export type PopoverTheme = 'light' | 'dark';
4
+ export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
5
5
  export interface List {
6
6
  name: string;
7
7
  icon?: string;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent, MouseEvent } from 'react';
2
2
  import { OverlayProps } from '@/packages/overlay/overlay';
3
3
  import { BasicComponent } from '@/utils/typings';
4
- declare type Teleport = HTMLElement | (() => HTMLElement) | null;
4
+ type Teleport = HTMLElement | (() => HTMLElement) | null;
5
5
  export interface PopupProps extends OverlayProps, BasicComponent {
6
6
  position: string;
7
7
  transition: string;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent, MouseEvent } from 'react';
2
2
  import { OverlayProps } from '@/packages/overlay/overlay.taro';
3
3
  import { BasicComponent } from '@/utils/typings';
4
- declare type Teleport = HTMLElement | (() => HTMLElement) | null;
4
+ type Teleport = HTMLElement | (() => HTMLElement) | null;
5
5
  export interface PopupProps extends OverlayProps, BasicComponent {
6
6
  position: string;
7
7
  transition: string;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent, CSSProperties, ReactNode } from 'react';
2
2
  import { BasicComponent } from '@/utils/typings';
3
- export declare type ProgressSize = 'small' | 'base' | 'large';
4
- export declare type TextType = 'icon' | 'text';
3
+ export type ProgressSize = 'small' | 'base' | 'large';
4
+ export type TextType = 'icon' | 'text';
5
5
  export interface ProgressProps extends BasicComponent {
6
6
  className: string;
7
7
  style: CSSProperties;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent, CSSProperties, ReactNode } from 'react';
2
2
  import { BasicComponent } from '@/utils/typings';
3
- export declare type ProgressSize = 'small' | 'base' | 'large';
4
- export declare type TextType = 'icon' | 'text';
3
+ export type ProgressSize = 'small' | 'base' | 'large';
4
+ export type TextType = 'icon' | 'text';
5
5
  export interface ProgressProps extends BasicComponent {
6
6
  className: string;
7
7
  style: CSSProperties;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
- export declare type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
2
+ export type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
3
3
  export interface PullToRefreshProps {
4
4
  className: string;
5
5
  style: React.CSSProperties;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
- export declare type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
2
+ export type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete';
3
3
  export interface PullToRefreshProps {
4
4
  className: string;
5
5
  style: React.CSSProperties;
@@ -1,8 +1,8 @@
1
1
  import React, { FunctionComponent, MouseEventHandler } from 'react';
2
2
  import RadioGroup from '@/packages/radiogroup';
3
3
  import { BasicComponent } from '@/utils/typings';
4
- declare type Shape = 'button' | 'round';
5
- declare type Position = 'right' | 'left';
4
+ type Shape = 'button' | 'round';
5
+ type Position = 'right' | 'left';
6
6
  export interface RadioProps extends BasicComponent {
7
7
  className: string;
8
8
  style: React.CSSProperties;
@@ -1,8 +1,8 @@
1
1
  import React, { FunctionComponent, MouseEventHandler } from 'react';
2
2
  import RadioGroup from '@/packages/radiogroup/index.taro';
3
3
  import { BasicComponent } from '@/utils/typings';
4
- declare type Shape = 'button' | 'round';
5
- declare type Position = 'right' | 'left';
4
+ type Shape = 'button' | 'round';
5
+ type Position = 'right' | 'left';
6
6
  export interface RadioProps extends BasicComponent {
7
7
  className: string;
8
8
  style: React.CSSProperties;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RadioGroupOptionType } from './type';
3
- declare type Position = 'left' | 'right';
4
- declare type Direction = 'horizontal' | 'vertical';
3
+ type Position = 'left' | 'right';
4
+ type Direction = 'horizontal' | 'vertical';
5
5
  export interface RadioGroupProps {
6
6
  value: string | number | boolean | null;
7
7
  textPosition: Position;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RadioGroupOptionType } from './type';
3
- declare type Position = 'left' | 'right';
4
- declare type Direction = 'horizontal' | 'vertical';
3
+ type Position = 'left' | 'right';
4
+ type Direction = 'horizontal' | 'vertical';
5
5
  export interface RadioGroupProps {
6
6
  value: string | number | boolean | null;
7
7
  textPosition: Position;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, CSSProperties } from 'react';
2
- declare type SliderValue = number | number[];
2
+ type SliderValue = number | number[];
3
3
  export interface RangeProps {
4
4
  className: string;
5
5
  style: CSSProperties;
@@ -20,7 +20,6 @@ export interface RangeProps {
20
20
  button: React.ReactNode;
21
21
  vertical: boolean;
22
22
  marks: Record<string, unknown>;
23
- change?: (value: number) => void;
24
23
  dragStart?: () => void;
25
24
  dragEnd?: () => void;
26
25
  onChange?: (value: number) => void;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, CSSProperties } from 'react';
2
- declare type SliderValue = number | number[];
2
+ type SliderValue = number | number[];
3
3
  export interface RangeProps {
4
4
  className: string;
5
5
  style: CSSProperties;
@@ -20,7 +20,6 @@ export interface RangeProps {
20
20
  button: React.ReactNode;
21
21
  vertical: boolean;
22
22
  marks: Record<string, unknown>;
23
- change?: (value: number) => void;
24
23
  dragStart?: () => void;
25
24
  dragEnd?: () => void;
26
25
  onChange?: (value: number) => void;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- declare type EventType = 'row' | 'col';
2
+ type EventType = 'row' | 'col';
3
3
  export interface RowProps {
4
4
  type: string;
5
5
  justify: string;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- declare type EventType = 'row' | 'col';
2
+ type EventType = 'row' | 'col';
3
3
  export interface RowProps {
4
4
  type: string;
5
5
  justify: string;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- declare type NavBarProps = {
2
+ type NavBarProps = {
3
3
  showhead?: boolean;
4
4
  };
5
5
  export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- declare type NavBarProps = {
2
+ type NavBarProps = {
3
3
  showhead?: boolean;
4
4
  };
5
5
  export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type NavBarProps = {
2
+ type NavBarProps = {
3
3
  showhead?: boolean;
4
4
  };
5
5
  export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
@@ -11,7 +11,7 @@ export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, N
11
11
  handleClose: () => void;
12
12
  children?: React.ReactNode;
13
13
  }
14
- export declare type SideNavBarItemProps = {
14
+ export type SideNavBarItemProps = {
15
15
  title: string;
16
16
  ikey: string | number;
17
17
  click?: ({ title, ikey }: {
@@ -20,7 +20,7 @@ export declare type SideNavBarItemProps = {
20
20
  }) => void;
21
21
  children?: React.ReactNode;
22
22
  };
23
- export declare type SubNavBarProps = {
23
+ export type SubNavBarProps = {
24
24
  title: string;
25
25
  ikey: string | number;
26
26
  open?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export declare type SideNavBarItemProps = {
2
+ export type SideNavBarItemProps = {
3
3
  title: string;
4
4
  ikey: string | number;
5
5
  onClick?: ({ title, ikey }: {
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export declare type SideNavBarItemProps = {
2
+ export type SideNavBarItemProps = {
3
3
  title: string;
4
4
  ikey: string | number;
5
5
  onClick?: ({ title, ikey }: {
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- declare type avatarShape = 'round' | 'square';
2
+ type avatarShape = 'round' | 'square';
3
3
  export interface SkeletonProps {
4
4
  width: string;
5
5
  height: string;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- declare type avatarShape = 'round' | 'square';
2
+ type avatarShape = 'round' | 'square';
3
3
  export interface SkeletonProps {
4
4
  width: string;
5
5
  height: string;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export declare type SubSideNavBarProps = {
2
+ export type SubSideNavBarProps = {
3
3
  title: string;
4
4
  ikey: string | number;
5
5
  open?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export declare type SubSideNavBarProps = {
2
+ export type SubSideNavBarProps = {
3
3
  title: string;
4
4
  ikey: string | number;
5
5
  open?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare type SwipeSide = 'left' | 'right';
3
- export declare type SwipePosition = SwipeSide | 'cell' | 'outside';
2
+ export type SwipeSide = 'left' | 'right';
3
+ export type SwipePosition = SwipeSide | 'cell' | 'outside';
4
4
  export interface SwipeInstance {
5
5
  open: (side: SwipeSide) => void;
6
6
  close: () => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare type SwipeSide = 'left' | 'right';
3
- export declare type SwipePosition = SwipeSide | 'cell' | 'outside';
2
+ export type SwipeSide = 'left' | 'right';
3
+ export type SwipePosition = SwipeSide | 'cell' | 'outside';
4
4
  export interface SwipeInstance {
5
5
  open: (side: SwipeSide) => void;
6
6
  close: () => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type SwiperRef = {
2
+ export type SwiperRef = {
3
3
  to: (index: number) => void;
4
4
  next: () => void;
5
5
  prev: () => void;
@@ -12,6 +12,7 @@ export interface SwiperProps {
12
12
  autoPlay: number | string;
13
13
  direction: 'horizontal' | 'vertical';
14
14
  paginationColor: string;
15
+ paginationBgColor: string;
15
16
  paginationVisible: boolean;
16
17
  loop: boolean;
17
18
  touchable: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type SwiperRef = {
2
+ export type SwiperRef = {
3
3
  to: (index: number) => void;
4
4
  next: () => void;
5
5
  prev: () => void;
@@ -12,6 +12,7 @@ export interface SwiperProps {
12
12
  autoPlay: number | string;
13
13
  direction: 'horizontal' | 'vertical';
14
14
  paginationColor: string;
15
+ paginationBgColor: string;
15
16
  paginationVisible: boolean;
16
17
  loop: boolean;
17
18
  touchable: boolean;
@@ -1,4 +1,4 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import { BasicTableProps } from './types';
3
- export declare type TableProps = BasicTableProps;
3
+ export type TableProps = BasicTableProps;
4
4
  export declare const Table: FunctionComponent<Partial<TableProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import { BasicTableProps } from './types';
3
- export declare type TableProps = BasicTableProps;
3
+ export type TableProps = BasicTableProps;
4
4
  export declare const Table: FunctionComponent<Partial<TableProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -7,7 +7,7 @@ declare class Title {
7
7
  index: number;
8
8
  constructor();
9
9
  }
10
- export declare type TabsSize = 'large' | 'normal' | 'small';
10
+ export type TabsSize = 'large' | 'normal' | 'small';
11
11
  export interface TabsProps extends BasicComponent {
12
12
  className: string;
13
13
  style: React.CSSProperties;
@@ -7,7 +7,7 @@ declare class Title {
7
7
  index: number;
8
8
  constructor();
9
9
  }
10
- export declare type TabsSize = 'large' | 'normal' | 'small';
10
+ export type TabsSize = 'large' | 'normal' | 'small';
11
11
  export interface TabsProps extends BasicComponent {
12
12
  className: string;
13
13
  style: React.CSSProperties;
@@ -13,5 +13,5 @@ export interface TagProps extends BasicComponent {
13
13
  onClose: (e?: any) => void;
14
14
  children?: React.ReactNode;
15
15
  }
16
- export declare type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
16
+ export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
17
17
  export declare const Tag: FunctionComponent<Partial<TagProps>>;
@@ -13,5 +13,5 @@ export interface TagProps extends BasicComponent {
13
13
  onClose: (e?: any) => void;
14
14
  children?: React.ReactNode;
15
15
  }
16
- export declare type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
16
+ export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
17
17
  export declare const Tag: FunctionComponent<Partial<TagProps>>;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { UploadOptions } from './upload';
3
- export declare type FileType<T> = {
3
+ export type FileType<T> = {
4
4
  [key: string]: T;
5
5
  };
6
- export declare type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
6
+ export type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
7
7
  import { BasicComponent } from '@/utils/typings';
8
8
  export interface UploaderProps extends BasicComponent {
9
9
  url: string;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import Taro from '@tarojs/taro';
3
3
  import { UploadOptions } from './upload';
4
- export declare type FileType<T> = {
4
+ export type FileType<T> = {
5
5
  [key: string]: T;
6
6
  };
7
- export declare type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
7
+ export type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error' | 'removed';
8
8
  /** 图片的尺寸 */
9
9
  interface sizeType {
10
10
  /** 原图 */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type Data = any;
2
+ export type Data = any;
3
3
  export interface VirtualListState {
4
4
  startOffset: number;
5
5
  startIndex: number;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { BasicVirtualListProps } from './type';
3
- export declare type VirtualListProps = BasicVirtualListProps;
3
+ export type VirtualListProps = BasicVirtualListProps;
4
4
  export declare const VirtualList: FunctionComponent<VirtualListProps>;
@@ -1,4 +1,4 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import { BasicVirtualListProps } from './type';
3
- export declare type VirtualListProps = BasicVirtualListProps;
3
+ export type VirtualListProps = BasicVirtualListProps;
4
4
  export declare const VirtualList: FunctionComponent<VirtualListProps & React.HTMLAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
- declare type ScrollElement = HTMLElement | Window;
1
+ type ScrollElement = HTMLElement | Window;
2
2
  export declare function getScrollParent(el: Element, root?: ScrollElement | null | undefined): Window | Element | null | undefined;
3
3
  export {};
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import type { Root } from 'react-dom/client';
3
3
  declare const MARK = "__nutui_react_root__";
4
- declare type ContainerType = (Element | DocumentFragment) & {
4
+ type ContainerType = (Element | DocumentFragment) & {
5
5
  [MARK]?: Root;
6
6
  };
7
7
  export declare function render(node: ReactElement, container: ContainerType): void;
@@ -1,4 +1,4 @@
1
- declare type Direction = '' | 'vertical' | 'horizontal';
1
+ type Direction = '' | 'vertical' | 'horizontal';
2
2
  export declare function useTouch(): {
3
3
  move: EventListener;
4
4
  start: EventListener;
@@ -1,5 +1,5 @@
1
- declare type Callback<T> = (prev: T | undefined) => void;
2
- declare type Config = {
1
+ type Callback<T> = (prev: T | undefined) => void;
2
+ type Config = {
3
3
  immediate: boolean;
4
4
  };
5
5
  declare function useWatch<T>(dep: T, callback: Callback<T>, config?: Config): () => void;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.0-beta.0 Wed Dec 21 2022 14:38:37 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.1-beta.0 Wed Dec 28 2022 17:10:46 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.0-beta.0 Wed Dec 21 2022 14:38:37 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.1-beta.0 Wed Dec 28 2022 17:10:46 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.0-beta.0 Wed Dec 21 2022 14:38:37 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.1-beta.0 Wed Dec 28 2022 17:10:46 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.0-beta.0 Wed Dec 21 2022 14:38:37 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.1-beta.0 Wed Dec 28 2022 17:10:46 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.0-beta.0 Wed Dec 21 2022 14:38:37 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.1-beta.0 Wed Dec 28 2022 17:10:46 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.0-beta.0 Wed Dec 21 2022 14:38:37 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.1-beta.0 Wed Dec 28 2022 17:10:46 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */