@startupjs-ui/breadcrumbs 0.2.0 → 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 +11 -0
- package/index.d.ts +2 -0
- package/index.tsx +5 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
|
|
6
17
|
# [0.2.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.23...v0.2.0) (2026-05-04)
|
|
7
18
|
|
|
8
19
|
|
package/index.d.ts
CHANGED
package/index.tsx
CHANGED
|
@@ -38,6 +38,8 @@ export interface BreadcrumbsProps {
|
|
|
38
38
|
replace?: boolean
|
|
39
39
|
/** Icon position relative to the label @default 'left' */
|
|
40
40
|
iconPosition?: 'left' | 'right'
|
|
41
|
+
/** Test identifier */
|
|
42
|
+
testID?: string
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
function Breadcrumbs ({
|
|
@@ -46,7 +48,8 @@ function Breadcrumbs ({
|
|
|
46
48
|
separator = '/',
|
|
47
49
|
size = 'm',
|
|
48
50
|
replace = false,
|
|
49
|
-
iconPosition = 'left'
|
|
51
|
+
iconPosition = 'left',
|
|
52
|
+
testID
|
|
50
53
|
}: BreadcrumbsProps): ReactNode {
|
|
51
54
|
if (DEPRECATED_SIZE_VALUES.includes(size)) {
|
|
52
55
|
console.warn(
|
|
@@ -81,7 +84,7 @@ function Breadcrumbs ({
|
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
return pug`
|
|
84
|
-
Div(style=style wrap row)
|
|
87
|
+
Div(style=style testID=testID wrap row)
|
|
85
88
|
each route, index in routes
|
|
86
89
|
- const { name, icon, to } = route
|
|
87
90
|
- const isLastRoute = index === routes.length - 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/breadcrumbs",
|
|
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/link": "^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/link": "^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
|
}
|