@ray-js/smart-ui 2.12.1-beta-4 → 2.12.1-beta-6
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/es/@types/bottom-sheet/index.d.ts +6 -0
- package/es/@types/cascader/index.d.ts +6 -0
- package/es/@types/config-provider/theme-vars.d.ts +1 -1
- package/es/@types/field/index.d.ts +12 -0
- package/es/@types/grid-item/index.d.ts +6 -0
- package/es/@types/icon/index.d.ts +12 -0
- package/es/@types/nav-bar/index.d.ts +18 -0
- package/es/@types/notice-bar/index.d.ts +6 -0
- package/es/@types/popup/index.d.ts +6 -0
- package/es/@types/stepper/index.d.ts +12 -0
- package/es/@types/tag/index.d.ts +6 -0
- package/lib/@types/bottom-sheet/index.d.ts +6 -0
- package/lib/@types/cascader/index.d.ts +6 -0
- package/lib/@types/config-provider/theme-vars.d.ts +1 -1
- package/lib/@types/field/index.d.ts +12 -0
- package/lib/@types/grid-item/index.d.ts +6 -0
- package/lib/@types/icon/index.d.ts +12 -0
- package/lib/@types/nav-bar/index.d.ts +18 -0
- package/lib/@types/notice-bar/index.d.ts +6 -0
- package/lib/@types/popup/index.d.ts +6 -0
- package/lib/@types/stepper/index.d.ts +12 -0
- package/lib/@types/tag/index.d.ts +6 -0
- package/package.json +2 -2
|
@@ -112,6 +112,12 @@ export interface SmartBottomSheetProps {
|
|
|
112
112
|
* @version 2.11.1
|
|
113
113
|
*/
|
|
114
114
|
fullCoverView?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* 关闭图标读屏文案;不传则仅有 button 角色,由业务自行多语言传入
|
|
117
|
+
*
|
|
118
|
+
* @version 2.12.1
|
|
119
|
+
*/
|
|
120
|
+
closeIconAriaLabel?: string;
|
|
115
121
|
}
|
|
116
122
|
export interface SmartBottomSheetEvents extends SmartTransitionEvents {
|
|
117
123
|
/**
|
|
@@ -95,6 +95,12 @@ export interface SmartCascaderProps {
|
|
|
95
95
|
* @default 5
|
|
96
96
|
*/
|
|
97
97
|
swipeThreshold?: number;
|
|
98
|
+
/**
|
|
99
|
+
* 关闭图标的无障碍读屏文案,透传至内部 smart-icon 的 aria-label
|
|
100
|
+
*
|
|
101
|
+
* @version 2.12.1
|
|
102
|
+
*/
|
|
103
|
+
closeIconAriaLabel?: string;
|
|
98
104
|
}
|
|
99
105
|
export interface SmartCascaderData {
|
|
100
106
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type CommonThemeVars = 'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'B1' | 'B2' | 'B3' | 'B4' | 'B5' | 'B6' | 'B1N1' | 'B1N2' | 'B1N3' | 'B1N4' | 'B1N5' | 'B1N6' | 'B1N7' | 'B1N8' | 'B1N9' | 'B2N1' | 'B2N2' | 'B2N3' | 'B2N4' | 'B2N5' | 'B2N6' | 'B2N7' | 'B2N8' | 'B2N9' | 'B4N1' | 'B4N2' | 'B4N3' | 'B4N4' | 'B4N5' | 'B4N6' | 'B4N7' | 'B4N8' | 'B4N9' | 'B6N1' | 'B6N2' | 'B6N3' | 'B6N4' | 'B6N5' | 'B6N6' | 'B6N7' | 'B6N8' | 'B6N9' | 'borderImage' | 'black' | 'white' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'red' | 'blue' | 'orange' | 'orangeDark' | 'orangeLight' | 'green' | 'gradientRed' | 'gradientOrange' | 'textColor' | 'activeColor' | 'activeOpacity' | 'disabledOpacity' | 'backgroundColor' | 'backgroundColorLight' | 'textLinkColor' | 'paddingBase' | 'paddingMb' | 'paddingXs' | 'paddingSm' | 'paddingMd' | 'paddingLg' | 'paddingXl' | 'fontSizeXs' | 'fontSizeSm' | 'fontSizeMd' | 'fontSizeLg' | 'fontTitleLg' | 'fontWeightBold' | 'fontWeightBolder' | 'lineHeightXs' | 'lineHeightSm' | 'lineHeightMd' | 'lineHeightLg' | 'baseFontFamily' | 'priceIntegerFontFamily' | 'animationDurationBase' | 'animationDurationFast' | 'borderColor' | 'borderWidthBase' | 'borderRadiusSm' | 'borderRadiusMd' | 'borderRadiusLg' | 'borderRadiusMax' | 'goodsActionBackgroundColor' | 'goodsActionHeight' | 'goodsActionIconWidth' | 'goodsActionIconHeight' | 'goodsActionIconColor' | 'goodsActionIconSize' | 'goodsActionIconFontSize' | 'goodsActionIconTextColor' | 'goodsActionButtonHeight' | 'goodsActionButtonLineHeight' | 'goodsActionButtonBorderRadius' | 'goodsActionButtonWarningColor' | 'goodsActionButtonDangerColor' | 'goodsActionButtonPlainColor' | 'infoSize' | 'infoColor' | 'infoPadding' | 'infoFontSize' | 'infoFontWeight' | 'infoBorderWidth' | 'infoBackgroundColor' | 'infoDotColor' | 'infoDotSize' | 'infoFontFamily' | 'stepTextColor' | 'stepProcessTextColor' | 'stepFontSize' | 'stepLineColor' | 'stepFinishLineColor' | 'stepFinishTextColor' | 'stepIconSize' | 'stepCircleSize' | 'stepCircleColor' | 'stepHorizontalTitleFontSize' | 'stepsBackgroundColor' | 'hairlineTopWidth' | 'hairlineLeftWidth' | 'hairlineRightWidth' | 'hairlineBottomWidth' | 'hairlineSurroundWidth' | 'hairlineTopBottomWidth' | 'hairlineColor' | 'hairlineBorderImageColor';
|
|
2
2
|
type OverlayThemeVars = 'overlay' | 'overlayBaseBlurBackground' | 'overlayBackgroundColor' | 'overlayBlurBackground' | 'overlayBlurRadius';
|
|
3
|
-
type DialogThemeVars = 'dialogBg' | 'dialogWidth' | 'dialogSmallScreenWidth' | 'dialogFontSize' | 'dialogBorderRadius' | 'dialogBackgroundColor' | 'dialogHeaderFontColor' | 'dialogHeaderFontWeight' | 'dialogHeaderLineHeight' | 'dialogHeaderPaddingTop' | 'dialogHeaderPadding' | 'dialogHeaderIsolatedPadding' | 'dialogMessagePadding' | 'dialogMessageFontSize' | 'dialogMessageLineHeight' | 'dialogConfirmColor' | 'dialogCancelColor' | 'dialogConfirmFontWeight' | 'dialogCancelFontWeight' | 'dialogMessageMaxHeight' | 'dialogMessageTextColor' | 'dialogHasTitleMessageFontSize' | 'dialogHasTitleMessageTextColor' | 'dialogHasTitleMessagePaddingTop' | 'dialogHeaderIconSize' | 'dialogInputHeight' | 'dialogInputBackgroundColor' | 'dialogInputMargin' | 'dialogInputPadding' | 'dialogInputBorderRadius' | 'dialogInputFontSize' | 'dialogRoundButtonBorderRadius';
|
|
3
|
+
type DialogThemeVars = 'dialogBg' | 'dialogWidth' | 'dialogSmallScreenWidth' | 'dialogFontSize' | 'dialogBorderRadius' | 'dialogBackgroundColor' | 'dialogHeaderFontColor' | 'dialogHeaderFontWeight' | 'dialogHeaderLineHeight' | 'dialogHeaderPaddingTop' | 'dialogHeaderPadding' | 'dialogHeaderPaddingSide' | 'dialogHeaderIsolatedPadding' | 'dialogMessagePadding' | 'dialogMessageFontSize' | 'dialogMessageLineHeight' | 'dialogConfirmColor' | 'dialogCancelColor' | 'dialogConfirmFontWeight' | 'dialogCancelFontWeight' | 'dialogMessageMaxHeight' | 'dialogMessageTextColor' | 'dialogHasTitleMessageFontSize' | 'dialogHasTitleMessageTextColor' | 'dialogHasTitleMessagePaddingTop' | 'dialogHeaderIconSize' | 'dialogInputHeight' | 'dialogInputBackgroundColor' | 'dialogInputMargin' | 'dialogInputPadding' | 'dialogInputBorderRadius' | 'dialogInputFontSize' | 'dialogRoundButtonBorderRadius';
|
|
4
4
|
type ToastThemeVars = 'toastBg' | 'toastBaseBorder' | 'toastBaseBoxShadow' | 'toastTextMinWidth' | 'toastTextMaxWidth' | 'toastMinWidth' | 'toastMaxWidth' | 'toastFontSize' | 'toastTextColor' | 'toastLineHeight' | 'toastBorderRadius' | 'toastBackgroundColor' | 'toastBorder' | 'toastBoxShadow' | 'toastIconSize' | 'toastTextPadding' | 'toastDefaultPadding' | 'toastDefaultWidth' | 'toastDefaultMinHeight' | 'toastIconTextPaddingTop';
|
|
5
5
|
type IconThemeVars = 'iconColor';
|
|
6
6
|
type ActionSheetThemeVars = 'actionSheetWidth' | 'actionSheetLeft' | 'actionSheetMaxHeight' | 'actionSheetMargin' | 'actionSheetActiveColor' | 'actionSheetActiveIconColor' | 'actionSheetItemDisabledOpacity' | 'actionSheetHeaderBorderColor' | 'actionSheetHeaderHeight' | 'actionSheetHeaderColor' | 'actionSheetHeaderFontSize' | 'actionSheetHeaderFontWeight' | 'actionSheetDescriptionColor' | 'actionSheetDescriptionFontSize' | 'actionSheetDescriptionLineHeight' | 'actionSheetItemBackground' | 'actionSheetItemBorderRadius' | 'actionSheetItemIconMargin' | 'actionSheetItemIconColor' | 'actionSheetItemIconSize' | 'actionSheetItemFontSize' | 'actionSheetItemFontWeight' | 'actionSheetItemLineHeight' | 'actionSheetItemTextColor' | 'actionSheetSubnameColor' | 'actionSheetSubnameFontSize' | 'actionSheetSubnameLineHeight' | 'actionSheetConfirmTextColor' | 'actionSheetConfirmFontWeight' | 'actionSheetCancelTextColor' | 'actionSheetFooterPaddingTop' | 'actionSheetFooterPaddingColor';
|
|
@@ -286,6 +286,18 @@ export interface SmartFieldProps {
|
|
|
286
286
|
* @default ''
|
|
287
287
|
*/
|
|
288
288
|
locale?: string;
|
|
289
|
+
/**
|
|
290
|
+
* 清除按钮的无障碍读屏文案,透传至清除图标的 aria-label
|
|
291
|
+
*
|
|
292
|
+
* @version 2.12.1
|
|
293
|
+
*/
|
|
294
|
+
clearIconAriaLabel?: string;
|
|
295
|
+
/**
|
|
296
|
+
* 右侧图标按钮的无障碍读屏文案,设置在图标容器的 aria-label 上
|
|
297
|
+
*
|
|
298
|
+
* @version 2.12.1
|
|
299
|
+
*/
|
|
300
|
+
rightIconButtonAriaLabel?: string;
|
|
289
301
|
}
|
|
290
302
|
/**
|
|
291
303
|
* @deprecated
|
|
@@ -39,6 +39,12 @@ export interface SmartGridItemProps {
|
|
|
39
39
|
* @default 'navigateTo'
|
|
40
40
|
*/
|
|
41
41
|
linkyType?: 'redirectTo' | 'switchTab' | 'reLaunch';
|
|
42
|
+
/**
|
|
43
|
+
* 无障碍读屏文案
|
|
44
|
+
*
|
|
45
|
+
* @version 2.12.1
|
|
46
|
+
*/
|
|
47
|
+
ariaLabel?: string;
|
|
42
48
|
}
|
|
43
49
|
export interface SmartGridItemEvents {
|
|
44
50
|
/**
|
|
@@ -37,6 +37,18 @@ export interface SmartIconProps {
|
|
|
37
37
|
* @default 'smart-icon'
|
|
38
38
|
*/
|
|
39
39
|
classPrefix?: string;
|
|
40
|
+
/**
|
|
41
|
+
* 无障碍读屏文案
|
|
42
|
+
*
|
|
43
|
+
* @version 2.12.1
|
|
44
|
+
*/
|
|
45
|
+
ariaLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 无障碍角色
|
|
48
|
+
*
|
|
49
|
+
* @version 2.12.1
|
|
50
|
+
*/
|
|
51
|
+
ariaRole?: string;
|
|
40
52
|
}
|
|
41
53
|
export interface SmartIconEvents {
|
|
42
54
|
/**
|
|
@@ -132,6 +132,24 @@ export interface SmartNavBarProps {
|
|
|
132
132
|
* @version v2.7.3
|
|
133
133
|
*/
|
|
134
134
|
sideWidth?: string | number | 'min' | 'max' | 'mid';
|
|
135
|
+
/**
|
|
136
|
+
* 左侧返回箭头的无障碍读屏文案
|
|
137
|
+
*
|
|
138
|
+
* @version 2.12.1
|
|
139
|
+
*/
|
|
140
|
+
leftArrowAriaLabel?: string;
|
|
141
|
+
/**
|
|
142
|
+
* 左侧图标的无障碍读屏文案
|
|
143
|
+
*
|
|
144
|
+
* @version 2.12.1
|
|
145
|
+
*/
|
|
146
|
+
leftIconAriaLabel?: string;
|
|
147
|
+
/**
|
|
148
|
+
* 右侧图标的无障碍读屏文案
|
|
149
|
+
*
|
|
150
|
+
* @version 2.12.1
|
|
151
|
+
*/
|
|
152
|
+
rightIconAriaLabel?: string;
|
|
135
153
|
}
|
|
136
154
|
export interface SmartNavBarEvents {
|
|
137
155
|
/**
|
|
@@ -130,6 +130,12 @@ export interface SmartNoticeBarProps {
|
|
|
130
130
|
* @default false
|
|
131
131
|
*/
|
|
132
132
|
wrapable?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* 关闭图标的无障碍读屏文案,透传至关闭图标的 aria-label
|
|
135
|
+
*
|
|
136
|
+
* @version 2.12.1
|
|
137
|
+
*/
|
|
138
|
+
closeIconAriaLabel?: string;
|
|
133
139
|
}
|
|
134
140
|
export interface SmartNoticeBarEvents {
|
|
135
141
|
/**
|
|
@@ -113,6 +113,12 @@ export interface SmartPopupProps {
|
|
|
113
113
|
* @version 2.11.1
|
|
114
114
|
*/
|
|
115
115
|
fullCoverView?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* 关闭图标的无障碍读屏文案,透传至关闭图标的 aria-label
|
|
118
|
+
*
|
|
119
|
+
* @version 2.12.1
|
|
120
|
+
*/
|
|
121
|
+
closeIconAriaLabel?: string;
|
|
116
122
|
}
|
|
117
123
|
export interface SmartPopupEvents extends SmartTransitionEvents {
|
|
118
124
|
/**
|
|
@@ -103,6 +103,18 @@ export interface SmartStepperProps {
|
|
|
103
103
|
* @default false
|
|
104
104
|
*/
|
|
105
105
|
alwaysEmbed?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* 减号按钮的无障碍读屏文案
|
|
108
|
+
*
|
|
109
|
+
* @version 2.12.1
|
|
110
|
+
*/
|
|
111
|
+
minusAriaLabel?: string;
|
|
112
|
+
/**
|
|
113
|
+
* 加号按钮的无障碍读屏文案
|
|
114
|
+
*
|
|
115
|
+
* @version 2.12.1
|
|
116
|
+
*/
|
|
117
|
+
plusAriaLabel?: string;
|
|
106
118
|
}
|
|
107
119
|
/**
|
|
108
120
|
* @deprecated
|
package/es/@types/tag/index.d.ts
CHANGED
|
@@ -112,6 +112,12 @@ export interface SmartBottomSheetProps {
|
|
|
112
112
|
* @version 2.11.1
|
|
113
113
|
*/
|
|
114
114
|
fullCoverView?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* 关闭图标读屏文案;不传则仅有 button 角色,由业务自行多语言传入
|
|
117
|
+
*
|
|
118
|
+
* @version 2.12.1
|
|
119
|
+
*/
|
|
120
|
+
closeIconAriaLabel?: string;
|
|
115
121
|
}
|
|
116
122
|
export interface SmartBottomSheetEvents extends SmartTransitionEvents {
|
|
117
123
|
/**
|
|
@@ -95,6 +95,12 @@ export interface SmartCascaderProps {
|
|
|
95
95
|
* @default 5
|
|
96
96
|
*/
|
|
97
97
|
swipeThreshold?: number;
|
|
98
|
+
/**
|
|
99
|
+
* 关闭图标的无障碍读屏文案,透传至内部 smart-icon 的 aria-label
|
|
100
|
+
*
|
|
101
|
+
* @version 2.12.1
|
|
102
|
+
*/
|
|
103
|
+
closeIconAriaLabel?: string;
|
|
98
104
|
}
|
|
99
105
|
export interface SmartCascaderData {
|
|
100
106
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type CommonThemeVars = 'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'B1' | 'B2' | 'B3' | 'B4' | 'B5' | 'B6' | 'B1N1' | 'B1N2' | 'B1N3' | 'B1N4' | 'B1N5' | 'B1N6' | 'B1N7' | 'B1N8' | 'B1N9' | 'B2N1' | 'B2N2' | 'B2N3' | 'B2N4' | 'B2N5' | 'B2N6' | 'B2N7' | 'B2N8' | 'B2N9' | 'B4N1' | 'B4N2' | 'B4N3' | 'B4N4' | 'B4N5' | 'B4N6' | 'B4N7' | 'B4N8' | 'B4N9' | 'B6N1' | 'B6N2' | 'B6N3' | 'B6N4' | 'B6N5' | 'B6N6' | 'B6N7' | 'B6N8' | 'B6N9' | 'borderImage' | 'black' | 'white' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'red' | 'blue' | 'orange' | 'orangeDark' | 'orangeLight' | 'green' | 'gradientRed' | 'gradientOrange' | 'textColor' | 'activeColor' | 'activeOpacity' | 'disabledOpacity' | 'backgroundColor' | 'backgroundColorLight' | 'textLinkColor' | 'paddingBase' | 'paddingMb' | 'paddingXs' | 'paddingSm' | 'paddingMd' | 'paddingLg' | 'paddingXl' | 'fontSizeXs' | 'fontSizeSm' | 'fontSizeMd' | 'fontSizeLg' | 'fontTitleLg' | 'fontWeightBold' | 'fontWeightBolder' | 'lineHeightXs' | 'lineHeightSm' | 'lineHeightMd' | 'lineHeightLg' | 'baseFontFamily' | 'priceIntegerFontFamily' | 'animationDurationBase' | 'animationDurationFast' | 'borderColor' | 'borderWidthBase' | 'borderRadiusSm' | 'borderRadiusMd' | 'borderRadiusLg' | 'borderRadiusMax' | 'goodsActionBackgroundColor' | 'goodsActionHeight' | 'goodsActionIconWidth' | 'goodsActionIconHeight' | 'goodsActionIconColor' | 'goodsActionIconSize' | 'goodsActionIconFontSize' | 'goodsActionIconTextColor' | 'goodsActionButtonHeight' | 'goodsActionButtonLineHeight' | 'goodsActionButtonBorderRadius' | 'goodsActionButtonWarningColor' | 'goodsActionButtonDangerColor' | 'goodsActionButtonPlainColor' | 'infoSize' | 'infoColor' | 'infoPadding' | 'infoFontSize' | 'infoFontWeight' | 'infoBorderWidth' | 'infoBackgroundColor' | 'infoDotColor' | 'infoDotSize' | 'infoFontFamily' | 'stepTextColor' | 'stepProcessTextColor' | 'stepFontSize' | 'stepLineColor' | 'stepFinishLineColor' | 'stepFinishTextColor' | 'stepIconSize' | 'stepCircleSize' | 'stepCircleColor' | 'stepHorizontalTitleFontSize' | 'stepsBackgroundColor' | 'hairlineTopWidth' | 'hairlineLeftWidth' | 'hairlineRightWidth' | 'hairlineBottomWidth' | 'hairlineSurroundWidth' | 'hairlineTopBottomWidth' | 'hairlineColor' | 'hairlineBorderImageColor';
|
|
2
2
|
type OverlayThemeVars = 'overlay' | 'overlayBaseBlurBackground' | 'overlayBackgroundColor' | 'overlayBlurBackground' | 'overlayBlurRadius';
|
|
3
|
-
type DialogThemeVars = 'dialogBg' | 'dialogWidth' | 'dialogSmallScreenWidth' | 'dialogFontSize' | 'dialogBorderRadius' | 'dialogBackgroundColor' | 'dialogHeaderFontColor' | 'dialogHeaderFontWeight' | 'dialogHeaderLineHeight' | 'dialogHeaderPaddingTop' | 'dialogHeaderPadding' | 'dialogHeaderIsolatedPadding' | 'dialogMessagePadding' | 'dialogMessageFontSize' | 'dialogMessageLineHeight' | 'dialogConfirmColor' | 'dialogCancelColor' | 'dialogConfirmFontWeight' | 'dialogCancelFontWeight' | 'dialogMessageMaxHeight' | 'dialogMessageTextColor' | 'dialogHasTitleMessageFontSize' | 'dialogHasTitleMessageTextColor' | 'dialogHasTitleMessagePaddingTop' | 'dialogHeaderIconSize' | 'dialogInputHeight' | 'dialogInputBackgroundColor' | 'dialogInputMargin' | 'dialogInputPadding' | 'dialogInputBorderRadius' | 'dialogInputFontSize' | 'dialogRoundButtonBorderRadius';
|
|
3
|
+
type DialogThemeVars = 'dialogBg' | 'dialogWidth' | 'dialogSmallScreenWidth' | 'dialogFontSize' | 'dialogBorderRadius' | 'dialogBackgroundColor' | 'dialogHeaderFontColor' | 'dialogHeaderFontWeight' | 'dialogHeaderLineHeight' | 'dialogHeaderPaddingTop' | 'dialogHeaderPadding' | 'dialogHeaderPaddingSide' | 'dialogHeaderIsolatedPadding' | 'dialogMessagePadding' | 'dialogMessageFontSize' | 'dialogMessageLineHeight' | 'dialogConfirmColor' | 'dialogCancelColor' | 'dialogConfirmFontWeight' | 'dialogCancelFontWeight' | 'dialogMessageMaxHeight' | 'dialogMessageTextColor' | 'dialogHasTitleMessageFontSize' | 'dialogHasTitleMessageTextColor' | 'dialogHasTitleMessagePaddingTop' | 'dialogHeaderIconSize' | 'dialogInputHeight' | 'dialogInputBackgroundColor' | 'dialogInputMargin' | 'dialogInputPadding' | 'dialogInputBorderRadius' | 'dialogInputFontSize' | 'dialogRoundButtonBorderRadius';
|
|
4
4
|
type ToastThemeVars = 'toastBg' | 'toastBaseBorder' | 'toastBaseBoxShadow' | 'toastTextMinWidth' | 'toastTextMaxWidth' | 'toastMinWidth' | 'toastMaxWidth' | 'toastFontSize' | 'toastTextColor' | 'toastLineHeight' | 'toastBorderRadius' | 'toastBackgroundColor' | 'toastBorder' | 'toastBoxShadow' | 'toastIconSize' | 'toastTextPadding' | 'toastDefaultPadding' | 'toastDefaultWidth' | 'toastDefaultMinHeight' | 'toastIconTextPaddingTop';
|
|
5
5
|
type IconThemeVars = 'iconColor';
|
|
6
6
|
type ActionSheetThemeVars = 'actionSheetWidth' | 'actionSheetLeft' | 'actionSheetMaxHeight' | 'actionSheetMargin' | 'actionSheetActiveColor' | 'actionSheetActiveIconColor' | 'actionSheetItemDisabledOpacity' | 'actionSheetHeaderBorderColor' | 'actionSheetHeaderHeight' | 'actionSheetHeaderColor' | 'actionSheetHeaderFontSize' | 'actionSheetHeaderFontWeight' | 'actionSheetDescriptionColor' | 'actionSheetDescriptionFontSize' | 'actionSheetDescriptionLineHeight' | 'actionSheetItemBackground' | 'actionSheetItemBorderRadius' | 'actionSheetItemIconMargin' | 'actionSheetItemIconColor' | 'actionSheetItemIconSize' | 'actionSheetItemFontSize' | 'actionSheetItemFontWeight' | 'actionSheetItemLineHeight' | 'actionSheetItemTextColor' | 'actionSheetSubnameColor' | 'actionSheetSubnameFontSize' | 'actionSheetSubnameLineHeight' | 'actionSheetConfirmTextColor' | 'actionSheetConfirmFontWeight' | 'actionSheetCancelTextColor' | 'actionSheetFooterPaddingTop' | 'actionSheetFooterPaddingColor';
|
|
@@ -286,6 +286,18 @@ export interface SmartFieldProps {
|
|
|
286
286
|
* @default ''
|
|
287
287
|
*/
|
|
288
288
|
locale?: string;
|
|
289
|
+
/**
|
|
290
|
+
* 清除按钮的无障碍读屏文案,透传至清除图标的 aria-label
|
|
291
|
+
*
|
|
292
|
+
* @version 2.12.1
|
|
293
|
+
*/
|
|
294
|
+
clearIconAriaLabel?: string;
|
|
295
|
+
/**
|
|
296
|
+
* 右侧图标按钮的无障碍读屏文案,设置在图标容器的 aria-label 上
|
|
297
|
+
*
|
|
298
|
+
* @version 2.12.1
|
|
299
|
+
*/
|
|
300
|
+
rightIconButtonAriaLabel?: string;
|
|
289
301
|
}
|
|
290
302
|
/**
|
|
291
303
|
* @deprecated
|
|
@@ -39,6 +39,12 @@ export interface SmartGridItemProps {
|
|
|
39
39
|
* @default 'navigateTo'
|
|
40
40
|
*/
|
|
41
41
|
linkyType?: 'redirectTo' | 'switchTab' | 'reLaunch';
|
|
42
|
+
/**
|
|
43
|
+
* 无障碍读屏文案
|
|
44
|
+
*
|
|
45
|
+
* @version 2.12.1
|
|
46
|
+
*/
|
|
47
|
+
ariaLabel?: string;
|
|
42
48
|
}
|
|
43
49
|
export interface SmartGridItemEvents {
|
|
44
50
|
/**
|
|
@@ -37,6 +37,18 @@ export interface SmartIconProps {
|
|
|
37
37
|
* @default 'smart-icon'
|
|
38
38
|
*/
|
|
39
39
|
classPrefix?: string;
|
|
40
|
+
/**
|
|
41
|
+
* 无障碍读屏文案
|
|
42
|
+
*
|
|
43
|
+
* @version 2.12.1
|
|
44
|
+
*/
|
|
45
|
+
ariaLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 无障碍角色
|
|
48
|
+
*
|
|
49
|
+
* @version 2.12.1
|
|
50
|
+
*/
|
|
51
|
+
ariaRole?: string;
|
|
40
52
|
}
|
|
41
53
|
export interface SmartIconEvents {
|
|
42
54
|
/**
|
|
@@ -132,6 +132,24 @@ export interface SmartNavBarProps {
|
|
|
132
132
|
* @version v2.7.3
|
|
133
133
|
*/
|
|
134
134
|
sideWidth?: string | number | 'min' | 'max' | 'mid';
|
|
135
|
+
/**
|
|
136
|
+
* 左侧返回箭头的无障碍读屏文案
|
|
137
|
+
*
|
|
138
|
+
* @version 2.12.1
|
|
139
|
+
*/
|
|
140
|
+
leftArrowAriaLabel?: string;
|
|
141
|
+
/**
|
|
142
|
+
* 左侧图标的无障碍读屏文案
|
|
143
|
+
*
|
|
144
|
+
* @version 2.12.1
|
|
145
|
+
*/
|
|
146
|
+
leftIconAriaLabel?: string;
|
|
147
|
+
/**
|
|
148
|
+
* 右侧图标的无障碍读屏文案
|
|
149
|
+
*
|
|
150
|
+
* @version 2.12.1
|
|
151
|
+
*/
|
|
152
|
+
rightIconAriaLabel?: string;
|
|
135
153
|
}
|
|
136
154
|
export interface SmartNavBarEvents {
|
|
137
155
|
/**
|
|
@@ -130,6 +130,12 @@ export interface SmartNoticeBarProps {
|
|
|
130
130
|
* @default false
|
|
131
131
|
*/
|
|
132
132
|
wrapable?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* 关闭图标的无障碍读屏文案,透传至关闭图标的 aria-label
|
|
135
|
+
*
|
|
136
|
+
* @version 2.12.1
|
|
137
|
+
*/
|
|
138
|
+
closeIconAriaLabel?: string;
|
|
133
139
|
}
|
|
134
140
|
export interface SmartNoticeBarEvents {
|
|
135
141
|
/**
|
|
@@ -113,6 +113,12 @@ export interface SmartPopupProps {
|
|
|
113
113
|
* @version 2.11.1
|
|
114
114
|
*/
|
|
115
115
|
fullCoverView?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* 关闭图标的无障碍读屏文案,透传至关闭图标的 aria-label
|
|
118
|
+
*
|
|
119
|
+
* @version 2.12.1
|
|
120
|
+
*/
|
|
121
|
+
closeIconAriaLabel?: string;
|
|
116
122
|
}
|
|
117
123
|
export interface SmartPopupEvents extends SmartTransitionEvents {
|
|
118
124
|
/**
|
|
@@ -103,6 +103,18 @@ export interface SmartStepperProps {
|
|
|
103
103
|
* @default false
|
|
104
104
|
*/
|
|
105
105
|
alwaysEmbed?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* 减号按钮的无障碍读屏文案
|
|
108
|
+
*
|
|
109
|
+
* @version 2.12.1
|
|
110
|
+
*/
|
|
111
|
+
minusAriaLabel?: string;
|
|
112
|
+
/**
|
|
113
|
+
* 加号按钮的无障碍读屏文案
|
|
114
|
+
*
|
|
115
|
+
* @version 2.12.1
|
|
116
|
+
*/
|
|
117
|
+
plusAriaLabel?: string;
|
|
106
118
|
}
|
|
107
119
|
/**
|
|
108
120
|
* @deprecated
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "2.12.1-beta-
|
|
3
|
+
"version": "2.12.1-beta-6",
|
|
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.9",
|
|
45
|
-
"@tuya-miniapp/smart-ui": "2.12.1-beta-
|
|
45
|
+
"@tuya-miniapp/smart-ui": "2.12.1-beta-6",
|
|
46
46
|
"lodash-es": "^4.17.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|