@ray-js/smart-ui 2.9.0-beta.1 → 2.9.1-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/README-zh_CN.md
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# @ray-js/smart-ui
|
|
4
4
|
|
|
5
|
-

|
|
6
|
-
|
|
5
|
+
      
|
|
7
6
|
|
|
8
7
|
## 介绍
|
|
9
8
|
|
package/README.md
CHANGED
|
@@ -2,8 +2,7 @@ English | [简体中文](./README-zh_CN.md)
|
|
|
2
2
|
|
|
3
3
|
# @ray-js/smart-ui
|
|
4
4
|
|
|
5
|
-

|
|
6
|
-
|
|
5
|
+
      
|
|
7
6
|
|
|
8
7
|
## Introduction
|
|
9
8
|
|
|
@@ -42,8 +42,9 @@ type SkeletonThemeVars = 'skeletonPadding' | 'skeletonRowHeight' | 'skeletonRowB
|
|
|
42
42
|
type CascaderThemeVars = 'cascaderHeaderHeight' | 'cascaderHeaderPadding' | 'cascaderTitleFontSize' | 'cascaderTitleLineHeight' | 'cascaderCloseIconSize' | 'cascaderCloseIconColor' | 'cascaderSelectedIconSize' | 'cascaderTabsHeight' | 'cascaderActiveColor' | 'cascaderActiveBackgroundColor' | 'cascaderOptionsHeight' | 'cascaderOptionDisabledColor' | 'cascaderTabColor' | 'cascaderUnselectedTabColor' | 'cascaderTabInactiveColor' | 'cascaderTextColor';
|
|
43
43
|
type CustomKeyboardThemeVars = 'customKeyboardBgColor' | 'customKeyboardTextColor' | 'customKeyboardBorderColor' | 'customKeyboardPlaceholderColor' | 'customKeyboardPopupBgColor' | 'customKeyboardPopupItemColor' | 'customKeyboardPopupConfirmColor' | 'customKeyboardPopupTextColor' | 'customKeyboardPopupHoverColor';
|
|
44
44
|
type PopoverThemeVars = 'popoverBackgroundColor' | 'popoverBoxShadow' | 'popoverPadding' | 'popoverBorderRadius' | 'popoverOverlayColor';
|
|
45
|
+
type BatteryThemeVars = 'batteryBodyBaseBackground' | 'batteryTextColor' | 'batterySlashBorderColor' | 'batteryBodyHighBackground' | 'batteryBodyMiddleBackground' | 'batteryBodyLowBackground' | 'batteryBodyChargingBackground' | 'batteryTextFontSize' | 'batteryTextFontWeight' | 'batteryTextPadding';
|
|
45
46
|
/**
|
|
46
47
|
* 主题变量
|
|
47
48
|
*/
|
|
48
|
-
export type ThemeVars = Record<CommonThemeVars | OverlayThemeVars | DialogThemeVars | IconThemeVars | ActionSheetThemeVars | BottomSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CellThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | FieldThemeVars | ImageThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | SearchThemeVars | SidebarThemeVars | SliderThemeVars | StepperThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars, string>;
|
|
49
|
+
export type ThemeVars = Record<CommonThemeVars | OverlayThemeVars | DialogThemeVars | IconThemeVars | ActionSheetThemeVars | BottomSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CellThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | FieldThemeVars | ImageThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | SearchThemeVars | SidebarThemeVars | SliderThemeVars | StepperThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars | BatteryThemeVars, string>;
|
|
49
50
|
export {};
|
package/es/calendar/index.js
CHANGED
|
@@ -21,8 +21,10 @@ const unwrapUtc = (dt, targetOffset) => {
|
|
|
21
21
|
return utcDate.getTime();
|
|
22
22
|
};
|
|
23
23
|
export const Calendar = props => {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
if (props.utcOffset === undefined) {
|
|
25
|
+
return _jsx(SmartCalendar, Object.assign({}, props));
|
|
26
|
+
}
|
|
27
|
+
const utcOffset = props.utcOffset;
|
|
26
28
|
let defaultDate = props.defaultDate;
|
|
27
29
|
let maxDate = props.maxDate;
|
|
28
30
|
let minDate = props.minDate;
|
|
@@ -42,8 +42,9 @@ type SkeletonThemeVars = 'skeletonPadding' | 'skeletonRowHeight' | 'skeletonRowB
|
|
|
42
42
|
type CascaderThemeVars = 'cascaderHeaderHeight' | 'cascaderHeaderPadding' | 'cascaderTitleFontSize' | 'cascaderTitleLineHeight' | 'cascaderCloseIconSize' | 'cascaderCloseIconColor' | 'cascaderSelectedIconSize' | 'cascaderTabsHeight' | 'cascaderActiveColor' | 'cascaderActiveBackgroundColor' | 'cascaderOptionsHeight' | 'cascaderOptionDisabledColor' | 'cascaderTabColor' | 'cascaderUnselectedTabColor' | 'cascaderTabInactiveColor' | 'cascaderTextColor';
|
|
43
43
|
type CustomKeyboardThemeVars = 'customKeyboardBgColor' | 'customKeyboardTextColor' | 'customKeyboardBorderColor' | 'customKeyboardPlaceholderColor' | 'customKeyboardPopupBgColor' | 'customKeyboardPopupItemColor' | 'customKeyboardPopupConfirmColor' | 'customKeyboardPopupTextColor' | 'customKeyboardPopupHoverColor';
|
|
44
44
|
type PopoverThemeVars = 'popoverBackgroundColor' | 'popoverBoxShadow' | 'popoverPadding' | 'popoverBorderRadius' | 'popoverOverlayColor';
|
|
45
|
+
type BatteryThemeVars = 'batteryBodyBaseBackground' | 'batteryTextColor' | 'batterySlashBorderColor' | 'batteryBodyHighBackground' | 'batteryBodyMiddleBackground' | 'batteryBodyLowBackground' | 'batteryBodyChargingBackground' | 'batteryTextFontSize' | 'batteryTextFontWeight' | 'batteryTextPadding';
|
|
45
46
|
/**
|
|
46
47
|
* 主题变量
|
|
47
48
|
*/
|
|
48
|
-
export type ThemeVars = Record<CommonThemeVars | OverlayThemeVars | DialogThemeVars | IconThemeVars | ActionSheetThemeVars | BottomSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CellThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | FieldThemeVars | ImageThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | SearchThemeVars | SidebarThemeVars | SliderThemeVars | StepperThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars, string>;
|
|
49
|
+
export type ThemeVars = Record<CommonThemeVars | OverlayThemeVars | DialogThemeVars | IconThemeVars | ActionSheetThemeVars | BottomSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CellThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | FieldThemeVars | ImageThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | SearchThemeVars | SidebarThemeVars | SliderThemeVars | StepperThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars | BatteryThemeVars, string>;
|
|
49
50
|
export {};
|
package/lib/calendar/index.js
CHANGED
|
@@ -38,8 +38,10 @@ var unwrapUtc = function (dt, targetOffset) {
|
|
|
38
38
|
return utcDate.getTime();
|
|
39
39
|
};
|
|
40
40
|
var Calendar = function (props) {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
if (props.utcOffset === undefined) {
|
|
42
|
+
return (0, jsx_runtime_1.jsx)(SmartCalendar, __assign({}, props));
|
|
43
|
+
}
|
|
44
|
+
var utcOffset = props.utcOffset;
|
|
43
45
|
var defaultDate = props.defaultDate;
|
|
44
46
|
var maxDate = props.maxDate;
|
|
45
47
|
var minDate = props.minDate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.1-beta-0",
|
|
4
4
|
"description": "轻量、可靠的智能小程序 UI 组件库",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"syncMiniappData": "node ./build/syncMiniappData.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@ray-js/components-ty-slider": "^0.3.8",
|
|
45
|
-
"@tuya-miniapp/smart-ui": "2.9.
|
|
45
|
+
"@tuya-miniapp/smart-ui": "2.9.1-beta-0",
|
|
46
46
|
"lodash-es": "^4.17.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
"email": "tuyafe@tuya.com"
|
|
82
82
|
}
|
|
83
83
|
]
|
|
84
|
-
}
|
|
84
|
+
}
|