@ray-js/smart-ui 1.0.2-beta-2 → 1.0.2-beta-3
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/@types/action-sheet/index.d.ts +16 -12
- package/dist/@types/base/component.d.ts +1 -1
- package/dist/@types/base/events.d.ts +4 -4
- package/dist/@types/base/external-class-name.d.ts +2 -2
- package/dist/@types/base/open-type.d.ts +11 -11
- package/dist/@types/battery/index.d.ts +3 -3
- package/dist/@types/button/index.d.ts +7 -7
- package/dist/@types/calendar/index.d.ts +14 -14
- package/dist/@types/cascader/index.d.ts +23 -11
- package/dist/@types/cell/index.d.ts +7 -7
- package/dist/@types/cell-group/index.d.ts +4 -4
- package/dist/@types/checkbox/index.d.ts +9 -9
- package/dist/@types/checkbox-group/index.d.ts +5 -5
- package/dist/@types/circle/index.d.ts +3 -3
- package/dist/@types/col/index.d.ts +4 -4
- package/dist/@types/collapse/index.d.ts +10 -10
- package/dist/@types/collapse-item/index.d.ts +4 -4
- package/dist/@types/config-provider/index.d.ts +3 -3
- package/dist/@types/count-down/index.d.ts +8 -8
- package/dist/@types/custom-keyboard/index.d.ts +8 -8
- package/dist/@types/datetime-picker/index.d.ts +10 -10
- package/dist/@types/dialog/dialog.d.ts +22 -22
- package/dist/@types/dialog/index.d.ts +7 -7
- package/dist/@types/divider/index.d.ts +3 -3
- package/dist/@types/dropdown-item/index.d.ts +13 -13
- package/dist/@types/dropdown-menu/index.d.ts +3 -3
- package/dist/@types/empty/index.d.ts +3 -3
- package/dist/@types/field/index.d.ts +20 -20
- package/dist/@types/grid/index.d.ts +4 -4
- package/dist/@types/grid-item/index.d.ts +8 -8
- package/dist/@types/icon/index.d.ts +7 -7
- package/dist/@types/image/index.d.ts +10 -10
- package/dist/@types/index-anchor/index.d.ts +3 -3
- package/dist/@types/index-bar/index.d.ts +6 -6
- package/dist/@types/loading/index.d.ts +4 -4
- package/dist/@types/nav-bar/index.d.ts +7 -7
- package/dist/@types/notice-bar/index.d.ts +7 -7
- package/dist/@types/notify/notify.d.ts +5 -5
- package/dist/@types/overlay/index.d.ts +6 -6
- package/dist/@types/picker/index.d.ts +14 -14
- package/dist/@types/popup/index.d.ts +8 -8
- package/dist/@types/progress/index.d.ts +4 -4
- package/dist/@types/radio/index.d.ts +7 -7
- package/dist/@types/radio-group/index.d.ts +6 -6
- package/dist/@types/rate/index.d.ts +7 -7
- package/dist/@types/row/index.d.ts +4 -4
- package/dist/@types/search/index.d.ts +9 -9
- package/dist/@types/sidebar/index.d.ts +7 -7
- package/dist/@types/sidebar-item/index.d.ts +8 -8
- package/dist/@types/skeleton/index.d.ts +3 -3
- package/dist/@types/slider/index.d.ts +11 -11
- package/dist/@types/stepper/index.d.ts +15 -15
- package/dist/@types/steps/index.d.ts +9 -9
- package/dist/@types/sticky/index.d.ts +6 -6
- package/dist/@types/swipe-cell/index.d.ts +14 -14
- package/dist/@types/switch/index.d.ts +7 -7
- package/dist/@types/tab/index.d.ts +6 -6
- package/dist/@types/tabbar/index.d.ts +6 -6
- package/dist/@types/tabbar-item/index.d.ts +4 -4
- package/dist/@types/tabs/index.d.ts +13 -13
- package/dist/@types/tag/index.d.ts +6 -6
- package/dist/@types/toast/index.d.ts +2 -2
- package/dist/@types/toast/toast.d.ts +11 -11
- package/dist/@types/transition/index.d.ts +11 -11
- package/dist/@types/tree-select/index.d.ts +12 -12
- package/dist/action-sheet/PropTypes.d.ts +2 -2
- package/dist/action-sheet/index.d.ts +2 -2
- package/dist/base/index.d.ts +2 -2
- package/dist/battery/PropTypes.d.ts +2 -2
- package/dist/battery/index.d.ts +2 -2
- package/dist/button/PropTypes.d.ts +2 -2
- package/dist/button/index.d.ts +2 -2
- package/dist/calendar/PropTypes.d.ts +2 -2
- package/dist/calendar/index.d.ts +2 -2
- package/dist/cascader/PropTypes.d.ts +2 -2
- package/dist/cascader/index.d.ts +2 -2
- package/dist/cell/PropTypes.d.ts +2 -2
- package/dist/cell/index.d.ts +2 -2
- package/dist/cell-group/PropTypes.d.ts +2 -2
- package/dist/cell-group/index.d.ts +2 -2
- package/dist/checkbox/PropTypes.d.ts +2 -2
- package/dist/checkbox/index.d.ts +2 -2
- package/dist/checkbox-group/PropTypes.d.ts +2 -2
- package/dist/checkbox-group/index.d.ts +2 -2
- package/dist/circle/PropTypes.d.ts +2 -2
- package/dist/col/PropTypes.d.ts +2 -2
- package/dist/col/index.d.ts +2 -2
- package/dist/collapse/PropTypes.d.ts +2 -2
- package/dist/collapse/index.d.ts +2 -2
- package/dist/collapse-item/PropTypes.d.ts +2 -2
- package/dist/collapse-item/index.d.ts +2 -2
- package/dist/common/withReactProps.js +12 -12
- package/dist/config-provider/PropTypes.d.ts +2 -2
- package/dist/config-provider/index.d.ts +2 -2
- package/dist/count-down/PropTypes.d.ts +2 -2
- package/dist/count-down/index.d.ts +2 -2
- package/dist/custom-keyboard/PropTypes.d.ts +2 -2
- package/dist/custom-keyboard/index.d.ts +2 -2
- package/dist/datetime-picker/PropTypes.d.ts +2 -2
- package/dist/datetime-picker/index.d.ts +2 -2
- package/dist/dialog/Dialog.d.ts +2 -2
- package/dist/dialog/PropTypes.d.ts +2 -2
- package/dist/dialog/index.d.ts +3 -3
- package/dist/divider/PropTypes.d.ts +2 -2
- package/dist/divider/index.d.ts +2 -2
- package/dist/dropdown-item/PropTypes.d.ts +2 -2
- package/dist/dropdown-item/index.d.ts +2 -2
- package/dist/dropdown-menu/PropTypes.d.ts +2 -2
- package/dist/dropdown-menu/index.d.ts +2 -2
- package/dist/empty/PropTypes.d.ts +2 -2
- package/dist/empty/index.d.ts +2 -2
- package/dist/field/PropTypes.d.ts +2 -2
- package/dist/field/index.d.ts +2 -2
- package/dist/grid/PropTypes.d.ts +2 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid-item/PropTypes.d.ts +2 -2
- package/dist/grid-item/index.d.ts +2 -2
- package/dist/icon/PropTypes.d.ts +2 -2
- package/dist/icon/index.d.ts +2 -2
- package/dist/image/PropTypes.d.ts +2 -2
- package/dist/image/index.d.ts +2 -2
- package/dist/index-anchor/PropTypes.d.ts +2 -2
- package/dist/index-anchor/index.d.ts +2 -2
- package/dist/index-bar/PropTypes.d.ts +2 -2
- package/dist/index-bar/index.d.ts +2 -2
- package/dist/index.d.ts +0 -3
- package/dist/index.js +3 -3
- package/dist/loading/PropTypes.d.ts +2 -2
- package/dist/loading/index.d.ts +2 -2
- package/dist/nav-bar/PropTypes.d.ts +2 -2
- package/dist/nav-bar/index.d.ts +2 -2
- package/dist/notice-bar/PropTypes.d.ts +2 -2
- package/dist/notice-bar/index.d.ts +2 -2
- package/dist/notify/PropTypes.d.ts +2 -2
- package/dist/notify/index.d.ts +2 -2
- package/dist/overlay/PropTypes.d.ts +2 -2
- package/dist/overlay/index.d.ts +2 -2
- package/dist/picker/PropTypes.d.ts +2 -2
- package/dist/picker/index.d.ts +2 -2
- package/dist/popup/PropTypes.d.ts +2 -2
- package/dist/popup/index.d.ts +2 -2
- package/dist/radio/PropTypes.d.ts +2 -2
- package/dist/radio/index.d.ts +2 -2
- package/dist/radio-group/PropTypes.d.ts +2 -2
- package/dist/radio-group/index.d.ts +2 -2
- package/dist/rate/PropTypes.d.ts +2 -2
- package/dist/rate/index.d.ts +2 -2
- package/dist/row/PropTypes.d.ts +2 -2
- package/dist/row/index.d.ts +2 -2
- package/dist/search/PropTypes.d.ts +2 -2
- package/dist/search/index.d.ts +2 -2
- package/dist/sidebar/PropTypes.d.ts +2 -2
- package/dist/sidebar/index.d.ts +2 -2
- package/dist/sidebar-item/PropTypes.d.ts +2 -2
- package/dist/sidebar-item/index.d.ts +2 -2
- package/dist/skeleton/PropTypes.d.ts +2 -2
- package/dist/skeleton/index.d.ts +2 -2
- package/dist/slider/PropTypes.d.ts +2 -2
- package/dist/slider/RangeSlider.d.ts +2 -2
- package/dist/slider/index.d.ts +4 -4
- package/dist/stepper/PropTypes.d.ts +2 -2
- package/dist/stepper/index.d.ts +2 -2
- package/dist/steps/PropTypes.d.ts +2 -2
- package/dist/steps/index.d.ts +2 -2
- package/dist/sticky/PropTypes.d.ts +2 -2
- package/dist/sticky/index.d.ts +2 -2
- package/dist/swipe-cell/PropTypes.d.ts +2 -2
- package/dist/swipe-cell/index.d.ts +2 -2
- package/dist/switch/PropTypes.d.ts +2 -2
- package/dist/switch/index.d.ts +2 -2
- package/dist/tab/PropTypes.d.ts +2 -2
- package/dist/tab/index.d.ts +2 -2
- package/dist/tabbar/PropTypes.d.ts +2 -2
- package/dist/tabbar/index.d.ts +2 -2
- package/dist/tabbar-item/PropTypes.d.ts +2 -2
- package/dist/tabbar-item/index.d.ts +2 -2
- package/dist/tabs/PropTypes.d.ts +2 -2
- package/dist/tabs/index.d.ts +2 -2
- package/dist/tag/PropTypes.d.ts +2 -2
- package/dist/tag/index.d.ts +2 -2
- package/dist/toast/PropTypes.d.ts +2 -2
- package/dist/toast/index.d.ts +2 -2
- package/dist/transition/PropTypes.d.ts +2 -2
- package/dist/transition/index.d.ts +2 -2
- package/dist/tree-select/PropTypes.d.ts +2 -2
- package/dist/tree-select/index.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
export interface SmartTreeSelectItem {
|
|
4
4
|
/**
|
|
5
5
|
* 作为匹配选中状态的标识
|
|
6
6
|
*/
|
|
@@ -28,15 +28,15 @@ export interface VantTreeSelectItem {
|
|
|
28
28
|
/**
|
|
29
29
|
* 该导航下所有的可选项
|
|
30
30
|
*/
|
|
31
|
-
options?:
|
|
31
|
+
options?: SmartTreeSelectItem[];
|
|
32
32
|
}
|
|
33
|
-
export interface
|
|
33
|
+
export interface SmartTreeSelectProps {
|
|
34
34
|
/**
|
|
35
35
|
* 分类显示所需的数据
|
|
36
36
|
*
|
|
37
37
|
* @default []
|
|
38
38
|
*/
|
|
39
|
-
items?:
|
|
39
|
+
items?: SmartTreeSelectItem[];
|
|
40
40
|
/**
|
|
41
41
|
* 高度,默认单位为`px`
|
|
42
42
|
*
|
|
@@ -73,23 +73,23 @@ export interface VantTreeSelectProps {
|
|
|
73
73
|
/**
|
|
74
74
|
* 左侧导航点击时,触发的事件详情
|
|
75
75
|
*/
|
|
76
|
-
export interface
|
|
76
|
+
export interface SmartTreeSelectClickNavDetail {
|
|
77
77
|
/**
|
|
78
78
|
* 被点击的导航的索引
|
|
79
79
|
*/
|
|
80
80
|
index: number;
|
|
81
81
|
}
|
|
82
|
-
export interface
|
|
82
|
+
export interface SmartTreeSelectEvents {
|
|
83
83
|
/**
|
|
84
84
|
* 左侧导航点击时,触发的事件
|
|
85
85
|
*/
|
|
86
|
-
onClickNav?:
|
|
86
|
+
onClickNav?: SmartEventHandler<SmartTreeSelectClickNavDetail>;
|
|
87
87
|
/**
|
|
88
88
|
* 右侧选择项被点击时,会触发的事件
|
|
89
89
|
*/
|
|
90
|
-
onClickItem?:
|
|
90
|
+
onClickItem?: SmartEventHandler<SmartTreeSelectItem>;
|
|
91
91
|
}
|
|
92
|
-
export interface
|
|
92
|
+
export interface SmartTreeSelectExternalClassName {
|
|
93
93
|
/**
|
|
94
94
|
* 左侧选项样式类
|
|
95
95
|
*/
|
|
@@ -115,7 +115,7 @@ export interface VantTreeSelectExternalClassName {
|
|
|
115
115
|
*/
|
|
116
116
|
contentDisabledClass?: string;
|
|
117
117
|
}
|
|
118
|
-
export interface
|
|
118
|
+
export interface SmartTreeSelectSlot {
|
|
119
119
|
slot?: {
|
|
120
120
|
/**
|
|
121
121
|
* 自定义右侧区域内容,如果存在 items,则插入在顶部
|
|
@@ -123,4 +123,4 @@ export interface VantTreeSelectSlot {
|
|
|
123
123
|
content?: React.ReactNode;
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
export type
|
|
126
|
+
export type SmartTreeSelect = SmartComponent<SmartTreeSelectProps, SmartTreeSelectEvents, SmartTreeSelectExternalClassName, SmartTreeSelectSlot>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartActionSheet, SmartActionSheetProps, SmartActionSheetEvents, SmartAction } from '../@types';
|
|
2
|
+
export { SmartActionSheet, SmartActionSheetProps, SmartActionSheetEvents, SmartAction };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const ActionSheet: import("react").FC<
|
|
2
|
+
import type { SmartActionSheet } from './PropTypes';
|
|
3
|
+
declare const ActionSheet: import("react").FC<SmartActionSheet>;
|
|
4
4
|
export { ActionSheet };
|
|
5
5
|
export * from './PropTypes';
|
package/dist/base/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ComponentBase,
|
|
2
|
-
export { ComponentBase,
|
|
1
|
+
import { ComponentBase, SmartComponent, SmartEvent, SmartTouchEvent, SmartEventHandler, SmartTouchEventHandler, TouchPositionDetail, SmartBaseExternalClassName, SmartBaseLoadingExternalClassName, WechatOpenType, SmartOpenTypeProps, SmartOpenTypeCamelCaseProps, SmartOpenTypeEvents } from '../@types';
|
|
2
|
+
export { ComponentBase, SmartComponent, SmartEvent, SmartTouchEvent, SmartEventHandler, SmartTouchEventHandler, TouchPositionDetail, SmartBaseExternalClassName, SmartBaseLoadingExternalClassName, WechatOpenType, SmartOpenTypeProps, SmartOpenTypeCamelCaseProps, SmartOpenTypeEvents, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartBattery, SmartBatteryProps } from '../@types';
|
|
2
|
+
export { SmartBattery, SmartBatteryProps };
|
package/dist/battery/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Battery: import("react").FC<
|
|
2
|
+
import type { SmartBattery } from './PropTypes';
|
|
3
|
+
declare const Battery: import("react").FC<SmartBattery>;
|
|
4
4
|
export { Battery };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartButton, SmartButtonEvents, SmartButtonExternalClassName, SmartButtonProps } from '../@types';
|
|
2
|
+
export { SmartButton, SmartButtonEvents, SmartButtonExternalClassName, SmartButtonProps };
|
package/dist/button/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Button: import("react").FC<
|
|
2
|
+
import type { SmartButton } from './PropTypes';
|
|
3
|
+
declare const Button: import("react").FC<SmartButton>;
|
|
4
4
|
export { Button };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCalendar, SmartCalendarProps, SmartCalendarEvents, SmartCalendarRangeProps, SmartCalendarPoppableProps, Day } from '../@types';
|
|
2
|
+
export { SmartCalendar, SmartCalendarEvents, SmartCalendarPoppableProps, SmartCalendarProps, SmartCalendarRangeProps, Day, };
|
package/dist/calendar/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Calendar: import("react").FC<
|
|
2
|
+
import type { SmartCalendar } from './PropTypes';
|
|
3
|
+
declare const Calendar: import("react").FC<SmartCalendar>;
|
|
4
4
|
export { Calendar };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCascader, SmartCascaderProps } from '../@types';
|
|
2
|
+
export { SmartCascader, SmartCascaderProps };
|
package/dist/cascader/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Cascader: import("react").FC<
|
|
2
|
+
import type { SmartCascader } from './PropTypes';
|
|
3
|
+
declare const Cascader: import("react").FC<SmartCascader>;
|
|
4
4
|
export { Cascader };
|
|
5
5
|
export * from './PropTypes';
|
package/dist/cell/PropTypes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCell, SmartCellEvents, SmartCellExternalClassName, SmartCellProps } from '../@types';
|
|
2
|
+
export { SmartCellExternalClassName, SmartCell, SmartCellEvents, SmartCellProps };
|
package/dist/cell/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Cell: import("react").FC<
|
|
2
|
+
import type { SmartCell } from './PropTypes';
|
|
3
|
+
declare const Cell: import("react").FC<SmartCell>;
|
|
4
4
|
export { Cell };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCellGroup, SmartCellGroupExternalClassName, SmartCellGroupProps } from '../@types';
|
|
2
|
+
export { SmartCellGroup, SmartCellGroupExternalClassName, SmartCellGroupProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const CellGroup: import("react").FC<
|
|
2
|
+
import type { SmartCellGroup } from './PropTypes';
|
|
3
|
+
declare const CellGroup: import("react").FC<SmartCellGroup>;
|
|
4
4
|
export { CellGroup };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCheckbox, SmartCheckboxEvents, SmartCheckboxExternalClassName, SmartCheckboxProps, SmartCheckboxChangeEvent } from '../@types';
|
|
2
|
+
export { SmartCheckbox, SmartCheckboxEvents, SmartCheckboxProps, SmartCheckboxExternalClassName, SmartCheckboxChangeEvent, };
|
package/dist/checkbox/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Checkbox: import("react").FC<
|
|
2
|
+
import type { SmartCheckbox } from './PropTypes';
|
|
3
|
+
declare const Checkbox: import("react").FC<SmartCheckbox>;
|
|
4
4
|
export { Checkbox };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCheckboxGroup, SmartCheckboxGroupEvents, SmartCheckboxGroupProps } from '../@types';
|
|
2
|
+
export { SmartCheckboxGroup, SmartCheckboxGroupEvents, SmartCheckboxGroupProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const CheckboxGroup: import("react").FC<
|
|
2
|
+
import type { SmartCheckboxGroup } from './PropTypes';
|
|
3
|
+
declare const CheckboxGroup: import("react").FC<SmartCheckboxGroup>;
|
|
4
4
|
export { CheckboxGroup };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCircle, SmartCircleProps } from '../@types';
|
|
2
|
+
export { SmartCircle, SmartCircleProps };
|
package/dist/col/PropTypes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCol, SmartColProps, SmartColExternalClassName } from '../@types';
|
|
2
|
+
export { SmartCol, SmartColProps, SmartColExternalClassName };
|
package/dist/col/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Col: import("react").FC<
|
|
2
|
+
import type { SmartCol } from './PropTypes';
|
|
3
|
+
declare const Col: import("react").FC<SmartCol>;
|
|
4
4
|
export { Col };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCollapse, SmartCollapseEvents, SmartCollapseExternalClassName, SmartCollapseProps, SmartCollapseBaseEvent, SmartCollapseChangeEvent } from '../@types';
|
|
2
|
+
export { SmartCollapse, SmartCollapseEvents, SmartCollapseExternalClassName, SmartCollapseProps, SmartCollapseBaseEvent, SmartCollapseChangeEvent, };
|
package/dist/collapse/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Collapse: import("react").FC<
|
|
2
|
+
import type { SmartCollapse } from './PropTypes';
|
|
3
|
+
declare const Collapse: import("react").FC<SmartCollapse>;
|
|
4
4
|
export { Collapse };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCollapseItem, SmartCollapseItemExternalClassName, SmartCollapseItemProps } from '../@types';
|
|
2
|
+
export { SmartCollapseItem, SmartCollapseItemExternalClassName, SmartCollapseItemProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const CollapseItem: import("react").FC<
|
|
2
|
+
import type { SmartCollapseItem } from './PropTypes';
|
|
3
|
+
declare const CollapseItem: import("react").FC<SmartCollapseItem>;
|
|
4
4
|
export { CollapseItem };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -17,9 +17,9 @@ exports.__esModule = true;
|
|
|
17
17
|
exports.withReactProps = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var react_1 = __importDefault(require("react"));
|
|
20
|
-
var lodash_es_1 =
|
|
20
|
+
var lodash_es_1 = require("lodash-es");
|
|
21
21
|
var styleObj2Str = function (style) {
|
|
22
|
-
if (!lodash_es_1
|
|
22
|
+
if (!(0, lodash_es_1.isObject)(style))
|
|
23
23
|
return style;
|
|
24
24
|
return Object.entries(style).reduce(function (acc, _a) {
|
|
25
25
|
var key = _a[0], value = _a[1];
|
|
@@ -35,27 +35,27 @@ var withReactProps = function (WrappedComponent) {
|
|
|
35
35
|
var slotPropsNames = Object.keys(slotProps);
|
|
36
36
|
var omitPropKeys = ['className', 'slot', 'children'];
|
|
37
37
|
var stylePropsKeys = [];
|
|
38
|
-
var vantProps = lodash_es_1
|
|
39
|
-
vantProps = lodash_es_1
|
|
38
|
+
var vantProps = (0, lodash_es_1.omit)(props, omitPropKeys);
|
|
39
|
+
vantProps = (0, lodash_es_1.mapKeys)(vantProps, function (__, key) {
|
|
40
40
|
/**
|
|
41
|
-
* React 中为 onClick
|
|
41
|
+
* React 中为 onClick,小程序中的 Event 标准写法为 bind:click,故这里会转一道
|
|
42
42
|
*/
|
|
43
43
|
if (key.startsWith('on')) {
|
|
44
|
-
var eventKey = "bind:".concat(lodash_es_1
|
|
44
|
+
var eventKey = "bind:".concat((0, lodash_es_1.kebabCase)(key.slice(2)));
|
|
45
45
|
return eventKey;
|
|
46
46
|
}
|
|
47
47
|
if (key.endsWith('Style')) {
|
|
48
|
-
var stylePropKey = lodash_es_1
|
|
48
|
+
var stylePropKey = (0, lodash_es_1.kebabCase)(key);
|
|
49
49
|
stylePropsKeys.push(stylePropKey);
|
|
50
50
|
return stylePropKey;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* React 为 camelCase,
|
|
53
|
+
* React 为 camelCase,Smart 中的 props 统一为 kebab-case,故这里会转一道
|
|
54
54
|
*/
|
|
55
|
-
return lodash_es_1
|
|
55
|
+
return (0, lodash_es_1.kebabCase)(key);
|
|
56
56
|
});
|
|
57
57
|
/**
|
|
58
|
-
* React 中为 className,
|
|
58
|
+
* React 中为 className,Smart 中使用 class,故这里会转一道
|
|
59
59
|
*/
|
|
60
60
|
if (props.className) {
|
|
61
61
|
vantProps["class"] = props.className;
|
|
@@ -67,12 +67,12 @@ var withReactProps = function (WrappedComponent) {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* 小程序中的 Slot 写法为子组件 + slot 属性,在 React 中无法直接使用,故这里会转一道,
|
|
71
71
|
* 统一通过 slot props 来定义
|
|
72
72
|
*/
|
|
73
73
|
if ((slotPropsNames === null || slotPropsNames === void 0 ? void 0 : slotPropsNames.length) > 0) {
|
|
74
74
|
return ((0, jsx_runtime_1.jsxs)(WrappedComponent, __assign({}, vantProps, { children: [slotPropsNames.map(function (slotName) {
|
|
75
|
-
var name = lodash_es_1
|
|
75
|
+
var name = (0, lodash_es_1.kebabCase)(slotName);
|
|
76
76
|
return react_1["default"].cloneElement(slotProps === null || slotProps === void 0 ? void 0 : slotProps[slotName], { key: slotName, slot: name });
|
|
77
77
|
}), props.children] })));
|
|
78
78
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartConfigProvider, SmartConfigProviderProps } from '../@types';
|
|
2
|
+
export { SmartConfigProvider, SmartConfigProviderProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const ConfigProvider: import("react").FC<
|
|
2
|
+
import type { SmartConfigProvider } from './PropTypes';
|
|
3
|
+
declare const ConfigProvider: import("react").FC<SmartConfigProvider>;
|
|
4
4
|
export { ConfigProvider };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCountDown, SmartCountDownEvents, SmartCountDownProps, SmartCountDownTimeData } from '../@types';
|
|
2
|
+
export { SmartCountDown, SmartCountDownEvents, SmartCountDownProps, SmartCountDownTimeData };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const CountDown: import("react").FC<
|
|
2
|
+
import type { SmartCountDown } from './PropTypes';
|
|
3
|
+
declare const CountDown: import("react").FC<SmartCountDown>;
|
|
4
4
|
export { CountDown };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartCustomKeyboard, SmartCustomKeyboardProps, SmartCustomKeyboardEvents } from '../@types';
|
|
2
|
+
export { SmartCustomKeyboard, SmartCustomKeyboardProps, SmartCustomKeyboardEvents };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const CustomKeyboard: import("react").FC<
|
|
2
|
+
import type { SmartCustomKeyboard } from './PropTypes';
|
|
3
|
+
declare const CustomKeyboard: import("react").FC<SmartCustomKeyboard>;
|
|
4
4
|
export { CustomKeyboard };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartDateTimePicker, SmartDateTimePickerEvents, SmartDateTimePickerExternalClassName, SmartDateTimePickerProps, SmartDateTimePickerBaseEvent } from '../@types';
|
|
2
|
+
export { SmartDateTimePicker, SmartDateTimePickerEvents, SmartDateTimePickerProps, SmartDateTimePickerExternalClassName, SmartDateTimePickerBaseEvent, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const DateTimePicker: import("react").FC<
|
|
2
|
+
import type { SmartDateTimePicker } from './PropTypes';
|
|
3
|
+
declare const DateTimePicker: import("react").FC<SmartDateTimePicker>;
|
|
4
4
|
export { DateTimePicker };
|
|
5
5
|
export * from './PropTypes';
|
package/dist/dialog/Dialog.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import DialogInstance from '@tuya-miniapp/smart-ui/lib/dialog/dialog';
|
|
3
|
-
import {
|
|
4
|
-
declare const _default: import("react").FC<
|
|
3
|
+
import { SmartDialogProps } from './PropTypes';
|
|
4
|
+
declare const _default: import("react").FC<SmartDialogProps>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export { DialogInstance };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartDialog, SmartDialogProps, SmartDialogInstance, SmartDialogOptions } from '../@types';
|
|
2
|
+
export { SmartDialog, SmartDialogProps, SmartDialogInstance, SmartDialogOptions };
|
package/dist/dialog/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Dialog: import("react").FC<
|
|
4
|
-
declare const DialogInstance:
|
|
2
|
+
import type { SmartDialog, SmartDialogInstance } from './PropTypes';
|
|
3
|
+
declare const Dialog: import("react").FC<SmartDialog>;
|
|
4
|
+
declare const DialogInstance: SmartDialogInstance;
|
|
5
5
|
export { Dialog, DialogInstance };
|
|
6
6
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartDivider, SmartDividerProps } from '../@types';
|
|
2
|
+
export { SmartDivider, SmartDividerProps };
|
package/dist/divider/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Divider: import("react").FC<
|
|
2
|
+
import type { SmartDivider } from './PropTypes';
|
|
3
|
+
declare const Divider: import("react").FC<SmartDivider>;
|
|
4
4
|
export { Divider };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartDropdownItem, SmartDropdownItemEvents, SmartDropdownItemOption, SmartDropdownItemProps, SmartDropdownItemChangeEvent } from '../@types';
|
|
2
|
+
export { SmartDropdownItem, SmartDropdownItemEvents, SmartDropdownItemOption, SmartDropdownItemProps, SmartDropdownItemChangeEvent, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const DropdownItem: import("react").FC<
|
|
2
|
+
import type { SmartDropdownItem } from './PropTypes';
|
|
3
|
+
declare const DropdownItem: import("react").FC<SmartDropdownItem>;
|
|
4
4
|
export { DropdownItem };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartDropdownMenu, SmartDropdownMenuProps } from '../@types';
|
|
2
|
+
export { SmartDropdownMenu, SmartDropdownMenuProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const DropdownMenu: import("react").FC<
|
|
2
|
+
import type { SmartDropdownMenu } from './PropTypes';
|
|
3
|
+
declare const DropdownMenu: import("react").FC<SmartDropdownMenu>;
|
|
4
4
|
export { DropdownMenu };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartEmpty, SmartEmptyProps } from '../@types';
|
|
2
|
+
export { SmartEmpty, SmartEmptyProps };
|
package/dist/empty/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Empty: import("react").FC<
|
|
2
|
+
import type { SmartEmpty } from './PropTypes';
|
|
3
|
+
declare const Empty: import("react").FC<SmartEmpty>;
|
|
4
4
|
export { Empty };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartField, SmartFieldEvents, SmartFieldExternalClassName, SmartFieldProps, SmartFieldInputEvent, SmartFieldBlurEventDetail, SmartFieldFocusEventDetail, SmartFieldKeyboardHeightChangeEventDetail, SmartFieldLineChangeEventDetail } from '../@types';
|
|
2
|
+
export { SmartField, SmartFieldEvents, SmartFieldExternalClassName, SmartFieldProps, SmartFieldInputEvent, SmartFieldBlurEventDetail, SmartFieldFocusEventDetail, SmartFieldKeyboardHeightChangeEventDetail, SmartFieldLineChangeEventDetail, };
|
package/dist/field/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Field: import("react").FC<
|
|
2
|
+
import type { SmartField } from './PropTypes';
|
|
3
|
+
declare const Field: import("react").FC<SmartField>;
|
|
4
4
|
export { Field };
|
|
5
5
|
export * from './PropTypes';
|
package/dist/grid/PropTypes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartGrid, SmartGridProps, SmartGridExternalClassName } from '../@types';
|
|
2
|
+
export { SmartGrid, SmartGridExternalClassName, SmartGridProps };
|
package/dist/grid/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Grid: import("react").FC<
|
|
2
|
+
import type { SmartGrid } from './PropTypes';
|
|
3
|
+
declare const Grid: import("react").FC<SmartGrid>;
|
|
4
4
|
export { Grid };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartGridItem, SmartGridItemEvents, SmartGridItemExternalClassName, SmartGridItemProps } from '../@types';
|
|
2
|
+
export { SmartGridItem, SmartGridItemEvents, SmartGridItemExternalClassName, SmartGridItemProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const GridItem: import("react").FC<
|
|
2
|
+
import type { SmartGridItem } from './PropTypes';
|
|
3
|
+
declare const GridItem: import("react").FC<SmartGridItem>;
|
|
4
4
|
export { GridItem };
|
|
5
5
|
export * from './PropTypes';
|
package/dist/icon/PropTypes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartIcon, SmartIconEvents, SmartIconExternalClassName, SmartIconProps } from '../@types';
|
|
2
|
+
export { SmartIcon, SmartIconEvents, SmartIconExternalClassName, SmartIconProps };
|
package/dist/icon/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Icon: import("react").FC<
|
|
2
|
+
import type { SmartIcon } from './PropTypes';
|
|
3
|
+
declare const Icon: import("react").FC<SmartIcon>;
|
|
4
4
|
export { Icon };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartImage, SmartImageEvents, SmartImageExternalClassName, SmartImageProps, SmartImageErrorEventDetail, SmartImageLoadEventDetail } from '../@types';
|
|
2
|
+
export { SmartImage, SmartImageEvents, SmartImageExternalClassName, SmartImageProps, SmartImageErrorEventDetail, SmartImageLoadEventDetail, };
|
package/dist/image/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const Image: import("react").FC<
|
|
2
|
+
import type { SmartImage } from './PropTypes';
|
|
3
|
+
declare const Image: import("react").FC<SmartImage>;
|
|
4
4
|
export { Image };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartIndexAnchor, SmartIndexAnchorProps } from '../@types';
|
|
2
|
+
export { SmartIndexAnchor, SmartIndexAnchorProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
declare const IndexAnchor: import("react").FC<
|
|
2
|
+
import type { SmartIndexAnchor } from './PropTypes';
|
|
3
|
+
declare const IndexAnchor: import("react").FC<SmartIndexAnchor>;
|
|
4
4
|
export { IndexAnchor };
|
|
5
5
|
export * from './PropTypes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SmartIndexBar, SmartIndexBarEvents, SmartIndexBarProps, SmartIndexBarSelectEvent } from '../@types';
|
|
2
|
+
export { SmartIndexBar, SmartIndexBarEvents, SmartIndexBarProps, SmartIndexBarSelectEvent };
|