@ray-js/smart-ui 2.6.4-beta-4 → 2.7.0-beta-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.
@@ -14,7 +14,7 @@ type CountDownThemeVars = 'countDownTextColor' | 'countDownFontSize' | 'countDow
14
14
  type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldDisabledOpacity' | 'fieldInputTextFontSize' | 'fieldLabelFontSize' | 'fieldLabelLineHeight' | 'fieldSubLabelFontSize' | 'fieldSubLabelLineHeight' | 'fieldErrorMessageTextLineHeight' | 'fieldSubtitleTextColor' | 'fieldLeftIconMarginRight' | 'fieldLeftBodyPaddingRight' | 'fieldCardBorderRadius' | 'fieldCardBackground' | 'fieldCardWidth' | 'fieldCardHeight' | 'fieldCardPadding' | 'fieldTextareaBackground' | 'fieldTextareaBorderRadius' | 'fieldTextareaPadding' | 'fieldTextareaLimitPaddingBottom' | 'fieldTextareaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor';
15
15
  type ImageThemeVars = 'imagePlaceholderTextColor' | 'imagePlaceholderFontSize' | 'imagePlaceholderBackgroundColor' | 'imageLoadingIconSize' | 'imageLoadingIconColor' | 'imageErrorSize';
16
16
  type LoadingThemeVars = 'loadingTextColor' | 'loadingTextFontSize' | 'loadingTextLineHeight' | 'loadingSpinnerColor' | 'loadingSpinnerSize' | 'loadingSpinnerAnimationDuration';
17
- type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding';
17
+ type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarTitleMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding';
18
18
  type NoticeBarThemeVars = 'noticeBarHeight' | 'noticeBarPadding' | 'noticeBarWrapablePadding' | 'noticeBarFontSize' | 'noticeBarTextColor' | 'noticeBarLineHeight' | 'noticeBarBackgroundColor' | 'noticeBarBackgroundWarningColor' | 'noticeBarBackgroundErrorColor' | 'noticeBarRightIconColor' | 'noticeBarInfoColor' | 'noticeBarWarningColor' | 'noticeBarErrorColor' | 'noticeBarIconSize' | 'noticeBarBtnColor' | 'noticeBarLeftIconMarginRight' | 'noticeBarRightIconMarginLeft';
19
19
  type NotifyThemeVars = 'notifyPadding' | 'notifyFontSize' | 'notifyLineHeight' | 'notifyPrimaryBackgroundColor' | 'notifySuccessBackgroundColor' | 'notifyDangerBackgroundColor' | 'notifyWarningBackgroundColor';
20
20
  type PickerThemeVars = 'pickerBackgroundColor' | 'pickerPadding' | 'pickerToolbarHeight' | 'pickerTitleFontSize' | 'pickerActionPadding' | 'pickerActionFontSize' | 'pickerConfirmActionColor' | 'pickerCancelActionColor' | 'pickerOptionFontSize' | 'pickerOptionUnitFontSize' | 'pickerOptionTextColor' | 'pickerOptionUnitTextColor' | 'pickerOptionUnitMidSize' | 'pickerLoadingIconColor' | 'pickerOptionSelectedFontWeightBold' | 'pickerLoadingMaskColor' | 'pickerOptionDisabledOpacity' | 'pickerOptionSelectedTextColor';
@@ -22,7 +22,7 @@ type PopupThemeVars = 'popupBackgroundColor' | 'popupRoundBorderRadius' | 'popup
22
22
  type ProgressThemeVars = 'progressHeight' | 'progressBackgroundColor' | 'progressPivotPadding' | 'progressColor' | 'progressPivotFontSize' | 'progressPivotLineHeight' | 'progressPivotBackgroundColor' | 'progressPivotTextColor';
23
23
  type RadioThemeVars = 'radioSize' | 'radioBorderColor' | 'radioBorderRadius' | 'radioTransitionDuration' | 'radioLabelSize' | 'radioLabelMargin' | 'radioLabelColor' | 'radioCheckedIconColor' | 'radioDisabledLabelColor' | 'radioDisabledOpacity';
24
24
  type RateThemeVars = 'rateHorizontalPadding' | 'rateIconSize' | 'rateIconVoidColor' | 'rateIconFullColor' | 'rateIconDisabledColor' | 'rateIconGutter';
25
- type SwitchThemeVars = 'switchWidth' | 'switchHeight' | 'switchNodeSize' | 'switchNodeZIndex' | 'switchNodeBackgroundColor' | 'switchNodeOnBackgroundColor' | 'switchNodeBoxShadow' | 'switchBackgroundColor' | 'switchOnBackgroundColor' | 'switchTransitionDuration' | 'switchDisabledOpacity' | 'switchPadding' | 'switchBorder';
25
+ type SwitchThemeVars = 'switchWidth' | 'switchLabelWidth' | 'switchHeight' | 'switchNodeSize' | 'switchNodeZIndex' | 'switchNodeBackgroundColor' | 'switchNodeOnBackgroundColor' | 'switchNodeBoxShadow' | 'switchBackgroundColor' | 'switchOnBackgroundColor' | 'switchTransitionDuration' | 'switchLabelFontSize' | 'switchLabelActiveColor' | 'switchLabelInactiveColor' | 'switchDisabledOpacity' | 'switchPadding' | 'switchBorder';
26
26
  type SearchThemeVars = 'searchBackgroundColor' | 'searchBodyBackgroundColor' | 'searchPadding' | 'searchInputHeight' | 'searchLabelPadding' | 'searchLabelColor' | 'searchLabelFontSize' | 'searchValueFontSize' | 'searchLeftIconColor' | 'searchActionPadding' | 'searchActionTextColor' | 'searchActionFontSize' | 'searchSubmitFontSize' | 'searchSubmitColor' | 'searchBtnHoverColor' | 'searchSubmitLineWidth' | 'searchSubmitLineHeight' | 'searchBtnHoverOpacity';
27
27
  type SidebarThemeVars = 'sidebarWidth' | 'sidebarFontSize' | 'sidebarLineHeight' | 'sidebarTextColor' | 'sidebarDisabledTextColor' | 'sidebarPadding' | 'sidebarActiveColor' | 'sidebarBackgroundColor' | 'sidebarSelectedFontWeight' | 'sidebarSelectedTextColor' | 'sidebarSelectedBorderColor' | 'sidebarSelectedBackgroundColor';
28
28
  type SliderThemeVars = 'sliderActiveBackgroundColor' | 'sliderInactiveBackgroundColor' | 'sliderDisabledOpacity' | 'sliderBarHeight' | 'sliderButtonWidth' | 'sliderButtonHeight' | 'sliderButtonBorderRadius' | 'sliderButtonBackgroundColor' | 'sliderButtonBoxShadow' | 'sliderThumbColor';
@@ -107,6 +107,11 @@ export interface SmartDialogInputOptions extends SmartDialogOptions {
107
107
  * 输入框的值
108
108
  */
109
109
  value: string;
110
+ /**
111
+ * 输入内容为空时禁用提交
112
+ * @version 2.7.0
113
+ */
114
+ emptyDisabled: boolean;
110
115
  /**
111
116
  * 输入框的类型
112
117
  */
@@ -138,8 +138,9 @@ export interface SmartNoticeBarEvents {
138
138
  onClick?: SmartTouchEventHandler;
139
139
  /**
140
140
  * 点击文末按钮文本时的触发
141
+ * @version 2.7.0
141
142
  */
142
- btnClick?: SmartTouchEventHandler;
143
+ onBtnClick?: SmartTouchEventHandler;
143
144
  /**
144
145
  * 关闭通知栏时触发
145
146
  */
@@ -66,6 +66,16 @@ export interface SmartSwitchProps {
66
66
  * @version 1.0.4
67
67
  */
68
68
  stopClickPropagation?: boolean;
69
+ /**
70
+ * 打开时的文字
71
+ * @version 2.7.0
72
+ */
73
+ activeText?: string;
74
+ /**
75
+ * 关闭时的文字
76
+ * @version 2.7.0
77
+ */
78
+ inactiveText?: string;
69
79
  }
70
80
  /**
71
81
  * @deprecated
@@ -14,7 +14,7 @@ type CountDownThemeVars = 'countDownTextColor' | 'countDownFontSize' | 'countDow
14
14
  type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldDisabledOpacity' | 'fieldInputTextFontSize' | 'fieldLabelFontSize' | 'fieldLabelLineHeight' | 'fieldSubLabelFontSize' | 'fieldSubLabelLineHeight' | 'fieldErrorMessageTextLineHeight' | 'fieldSubtitleTextColor' | 'fieldLeftIconMarginRight' | 'fieldLeftBodyPaddingRight' | 'fieldCardBorderRadius' | 'fieldCardBackground' | 'fieldCardWidth' | 'fieldCardHeight' | 'fieldCardPadding' | 'fieldTextareaBackground' | 'fieldTextareaBorderRadius' | 'fieldTextareaPadding' | 'fieldTextareaLimitPaddingBottom' | 'fieldTextareaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor';
15
15
  type ImageThemeVars = 'imagePlaceholderTextColor' | 'imagePlaceholderFontSize' | 'imagePlaceholderBackgroundColor' | 'imageLoadingIconSize' | 'imageLoadingIconColor' | 'imageErrorSize';
16
16
  type LoadingThemeVars = 'loadingTextColor' | 'loadingTextFontSize' | 'loadingTextLineHeight' | 'loadingSpinnerColor' | 'loadingSpinnerSize' | 'loadingSpinnerAnimationDuration';
17
- type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding';
17
+ type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarTitleMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding';
18
18
  type NoticeBarThemeVars = 'noticeBarHeight' | 'noticeBarPadding' | 'noticeBarWrapablePadding' | 'noticeBarFontSize' | 'noticeBarTextColor' | 'noticeBarLineHeight' | 'noticeBarBackgroundColor' | 'noticeBarBackgroundWarningColor' | 'noticeBarBackgroundErrorColor' | 'noticeBarRightIconColor' | 'noticeBarInfoColor' | 'noticeBarWarningColor' | 'noticeBarErrorColor' | 'noticeBarIconSize' | 'noticeBarBtnColor' | 'noticeBarLeftIconMarginRight' | 'noticeBarRightIconMarginLeft';
19
19
  type NotifyThemeVars = 'notifyPadding' | 'notifyFontSize' | 'notifyLineHeight' | 'notifyPrimaryBackgroundColor' | 'notifySuccessBackgroundColor' | 'notifyDangerBackgroundColor' | 'notifyWarningBackgroundColor';
20
20
  type PickerThemeVars = 'pickerBackgroundColor' | 'pickerPadding' | 'pickerToolbarHeight' | 'pickerTitleFontSize' | 'pickerActionPadding' | 'pickerActionFontSize' | 'pickerConfirmActionColor' | 'pickerCancelActionColor' | 'pickerOptionFontSize' | 'pickerOptionUnitFontSize' | 'pickerOptionTextColor' | 'pickerOptionUnitTextColor' | 'pickerOptionUnitMidSize' | 'pickerLoadingIconColor' | 'pickerOptionSelectedFontWeightBold' | 'pickerLoadingMaskColor' | 'pickerOptionDisabledOpacity' | 'pickerOptionSelectedTextColor';
@@ -22,7 +22,7 @@ type PopupThemeVars = 'popupBackgroundColor' | 'popupRoundBorderRadius' | 'popup
22
22
  type ProgressThemeVars = 'progressHeight' | 'progressBackgroundColor' | 'progressPivotPadding' | 'progressColor' | 'progressPivotFontSize' | 'progressPivotLineHeight' | 'progressPivotBackgroundColor' | 'progressPivotTextColor';
23
23
  type RadioThemeVars = 'radioSize' | 'radioBorderColor' | 'radioBorderRadius' | 'radioTransitionDuration' | 'radioLabelSize' | 'radioLabelMargin' | 'radioLabelColor' | 'radioCheckedIconColor' | 'radioDisabledLabelColor' | 'radioDisabledOpacity';
24
24
  type RateThemeVars = 'rateHorizontalPadding' | 'rateIconSize' | 'rateIconVoidColor' | 'rateIconFullColor' | 'rateIconDisabledColor' | 'rateIconGutter';
25
- type SwitchThemeVars = 'switchWidth' | 'switchHeight' | 'switchNodeSize' | 'switchNodeZIndex' | 'switchNodeBackgroundColor' | 'switchNodeOnBackgroundColor' | 'switchNodeBoxShadow' | 'switchBackgroundColor' | 'switchOnBackgroundColor' | 'switchTransitionDuration' | 'switchDisabledOpacity' | 'switchPadding' | 'switchBorder';
25
+ type SwitchThemeVars = 'switchWidth' | 'switchLabelWidth' | 'switchHeight' | 'switchNodeSize' | 'switchNodeZIndex' | 'switchNodeBackgroundColor' | 'switchNodeOnBackgroundColor' | 'switchNodeBoxShadow' | 'switchBackgroundColor' | 'switchOnBackgroundColor' | 'switchTransitionDuration' | 'switchLabelFontSize' | 'switchLabelActiveColor' | 'switchLabelInactiveColor' | 'switchDisabledOpacity' | 'switchPadding' | 'switchBorder';
26
26
  type SearchThemeVars = 'searchBackgroundColor' | 'searchBodyBackgroundColor' | 'searchPadding' | 'searchInputHeight' | 'searchLabelPadding' | 'searchLabelColor' | 'searchLabelFontSize' | 'searchValueFontSize' | 'searchLeftIconColor' | 'searchActionPadding' | 'searchActionTextColor' | 'searchActionFontSize' | 'searchSubmitFontSize' | 'searchSubmitColor' | 'searchBtnHoverColor' | 'searchSubmitLineWidth' | 'searchSubmitLineHeight' | 'searchBtnHoverOpacity';
27
27
  type SidebarThemeVars = 'sidebarWidth' | 'sidebarFontSize' | 'sidebarLineHeight' | 'sidebarTextColor' | 'sidebarDisabledTextColor' | 'sidebarPadding' | 'sidebarActiveColor' | 'sidebarBackgroundColor' | 'sidebarSelectedFontWeight' | 'sidebarSelectedTextColor' | 'sidebarSelectedBorderColor' | 'sidebarSelectedBackgroundColor';
28
28
  type SliderThemeVars = 'sliderActiveBackgroundColor' | 'sliderInactiveBackgroundColor' | 'sliderDisabledOpacity' | 'sliderBarHeight' | 'sliderButtonWidth' | 'sliderButtonHeight' | 'sliderButtonBorderRadius' | 'sliderButtonBackgroundColor' | 'sliderButtonBoxShadow' | 'sliderThumbColor';
@@ -107,6 +107,11 @@ export interface SmartDialogInputOptions extends SmartDialogOptions {
107
107
  * 输入框的值
108
108
  */
109
109
  value: string;
110
+ /**
111
+ * 输入内容为空时禁用提交
112
+ * @version 2.7.0
113
+ */
114
+ emptyDisabled: boolean;
110
115
  /**
111
116
  * 输入框的类型
112
117
  */
@@ -138,8 +138,9 @@ export interface SmartNoticeBarEvents {
138
138
  onClick?: SmartTouchEventHandler;
139
139
  /**
140
140
  * 点击文末按钮文本时的触发
141
+ * @version 2.7.0
141
142
  */
142
- btnClick?: SmartTouchEventHandler;
143
+ onBtnClick?: SmartTouchEventHandler;
143
144
  /**
144
145
  * 关闭通知栏时触发
145
146
  */
@@ -66,6 +66,16 @@ export interface SmartSwitchProps {
66
66
  * @version 1.0.4
67
67
  */
68
68
  stopClickPropagation?: boolean;
69
+ /**
70
+ * 打开时的文字
71
+ * @version 2.7.0
72
+ */
73
+ activeText?: string;
74
+ /**
75
+ * 关闭时的文字
76
+ * @version 2.7.0
77
+ */
78
+ inactiveText?: string;
69
79
  }
70
80
  /**
71
81
  * @deprecated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.6.4-beta-4",
3
+ "version": "2.7.0-beta-1",
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.4",
45
- "@tuya-miniapp/smart-ui": "2.6.4-beta-11",
45
+ "@tuya-miniapp/smart-ui": "2.7.0-beta-6",
46
46
  "lodash-es": "^4.17.21"
47
47
  },
48
48
  "devDependencies": {