@startupjs-ui/button 0.2.0-alpha.2 → 0.3.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/CHANGELOG.md +22 -0
- package/index.d.ts +1 -5
- package/index.tsx +1 -5
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.3.0](https://github.com/startupjs/startupjs-ui/compare/v0.2.3...v0.3.0) (2026-05-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* [BREAKING] [0.3] improve accessibility props for E2E tests. Support testID everywhere ([#31](https://github.com/startupjs/startupjs-ui/issues/31)) ([882588c](https://github.com/startupjs/startupjs-ui/commit/882588ca37d5e1fd14b5717b5697cf9ed47042e4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.2.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.23...v0.2.0) (2026-05-04)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* [v0.2] add accessibility features to most components, which also dramatically improves E2E testability ([#22](https://github.com/startupjs/startupjs-ui/issues/22)) ([b563e2f](https://github.com/startupjs/startupjs-ui/commit/b563e2fa498a8a83bd5abc7836d120f6d2381e3f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [0.2.0-alpha.2](https://github.com/startupjs/startupjs-ui/compare/v0.2.0-alpha.1...v0.2.0-alpha.2) (2026-04-20)
|
|
7
29
|
|
|
8
30
|
|
package/index.d.ts
CHANGED
|
@@ -33,12 +33,8 @@ export interface ButtonProps {
|
|
|
33
33
|
hoverStyle?: StyleProp<ViewStyle>;
|
|
34
34
|
/** custom styles for active state */
|
|
35
35
|
activeStyle?: StyleProp<ViewStyle>;
|
|
36
|
-
/**
|
|
36
|
+
/** Accessible name for icon-only or custom-content buttons */
|
|
37
37
|
'aria-label'?: string;
|
|
38
|
-
/** legacy alias for aria-label */
|
|
39
|
-
accessibilityLabel?: string;
|
|
40
|
-
/** accessible hint text */
|
|
41
|
-
accessibilityHint?: string;
|
|
42
38
|
/** onPress handler */
|
|
43
39
|
onPress?: (event: GestureResponderEvent) => void | Promise<void>;
|
|
44
40
|
/** Additional props forwarded to the root pressable */
|
package/index.tsx
CHANGED
|
@@ -44,12 +44,8 @@ export interface ButtonProps {
|
|
|
44
44
|
hoverStyle?: StyleProp<ViewStyle>
|
|
45
45
|
/** custom styles for active state */
|
|
46
46
|
activeStyle?: StyleProp<ViewStyle>
|
|
47
|
-
/**
|
|
47
|
+
/** Accessible name for icon-only or custom-content buttons */
|
|
48
48
|
'aria-label'?: string
|
|
49
|
-
/** legacy alias for aria-label */
|
|
50
|
-
accessibilityLabel?: string
|
|
51
|
-
/** accessible hint text */
|
|
52
|
-
accessibilityHint?: string
|
|
53
49
|
/** onPress handler */
|
|
54
50
|
onPress?: (event: GestureResponderEvent) => void | Promise<void>
|
|
55
51
|
/** Additional props forwarded to the root pressable */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/button",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"types": "index.d.ts",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@startupjs-ui/core": "^0.
|
|
12
|
-
"@startupjs-ui/div": "^0.
|
|
13
|
-
"@startupjs-ui/icon": "^0.
|
|
14
|
-
"@startupjs-ui/loader": "^0.
|
|
15
|
-
"@startupjs-ui/span": "^0.
|
|
11
|
+
"@startupjs-ui/core": "^0.3.0",
|
|
12
|
+
"@startupjs-ui/div": "^0.3.0",
|
|
13
|
+
"@startupjs-ui/icon": "^0.3.0",
|
|
14
|
+
"@startupjs-ui/loader": "^0.3.0",
|
|
15
|
+
"@startupjs-ui/span": "^0.3.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"react": "*",
|
|
19
19
|
"react-native": "*",
|
|
20
20
|
"startupjs": "*"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "8d212b47680af1dfe582f9759b38724b46488e25"
|
|
23
23
|
}
|