@ray-js/smart-ui 2.12.1-beta-5 → 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.
@@ -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
  /**
@@ -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
@@ -42,6 +42,12 @@ export interface SmartTagProps {
42
42
  * @default false
43
43
  */
44
44
  closeable?: boolean;
45
+ /**
46
+ * 关闭图标的无障碍读屏文案
47
+ *
48
+ * @version 2.12.1
49
+ */
50
+ closeIconAriaLabel?: string;
45
51
  }
46
52
  export interface SmartTagEvents {
47
53
  onClose?: SmartEventHandler;
@@ -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
  /**
@@ -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
@@ -42,6 +42,12 @@ export interface SmartTagProps {
42
42
  * @default false
43
43
  */
44
44
  closeable?: boolean;
45
+ /**
46
+ * 关闭图标的无障碍读屏文案
47
+ *
48
+ * @version 2.12.1
49
+ */
50
+ closeIconAriaLabel?: string;
45
51
  }
46
52
  export interface SmartTagEvents {
47
53
  onClose?: SmartEventHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.12.1-beta-5",
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-5",
45
+ "@tuya-miniapp/smart-ui": "2.12.1-beta-6",
46
46
  "lodash-es": "^4.17.21"
47
47
  },
48
48
  "devDependencies": {