@ray-js/smart-ui 2.9.3-beta-2 → 2.10.0-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.
@@ -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' | 'batteryTextPaddingVertical';
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 {};
@@ -26,6 +26,12 @@ export interface SmartPopoverProps {
26
26
  * @default 'tap'
27
27
  */
28
28
  trigger?: 'tap' | 'longpress';
29
+ /**
30
+ * 是否开启受控模式,开启后点击不会触发 `show-change` 事件,`show` 状态完全由外部控制
31
+ *
32
+ * @default false
33
+ */
34
+ isControl?: boolean;
29
35
  }
30
36
  export interface SmartPopoverSlot {
31
37
  slot?: {
@@ -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' | 'batteryTextPaddingVertical';
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 {};
@@ -26,6 +26,12 @@ export interface SmartPopoverProps {
26
26
  * @default 'tap'
27
27
  */
28
28
  trigger?: 'tap' | 'longpress';
29
+ /**
30
+ * 是否开启受控模式,开启后点击不会触发 `show-change` 事件,`show` 状态完全由外部控制
31
+ *
32
+ * @default false
33
+ */
34
+ isControl?: boolean;
29
35
  }
30
36
  export interface SmartPopoverSlot {
31
37
  slot?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.9.3-beta-2",
3
+ "version": "2.10.0-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.3-beta-2",
45
+ "@tuya-miniapp/smart-ui": "2.10.0-beta-1",
46
46
  "lodash-es": "^4.17.21"
47
47
  },
48
48
  "devDependencies": {