@startupjs-ui/sidebar 0.2.0 → 0.3.1

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 CHANGED
@@ -3,6 +3,25 @@
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.1](https://github.com/startupjs/startupjs-ui/compare/v0.3.0...v0.3.1) (2026-06-08)
7
+
8
+ **Note:** Version bump only for package @startupjs-ui/sidebar
9
+
10
+
11
+
12
+
13
+
14
+ # [0.3.0](https://github.com/startupjs/startupjs-ui/compare/v0.2.3...v0.3.0) (2026-05-27)
15
+
16
+
17
+ ### Features
18
+
19
+ * [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))
20
+
21
+
22
+
23
+
24
+
6
25
  # [0.2.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.23...v0.2.0) (2026-05-04)
7
26
 
8
27
 
package/index.d.ts CHANGED
@@ -28,4 +28,6 @@ export interface SidebarProps {
28
28
  lazy?: boolean;
29
29
  /** Custom renderer for sidebar content */
30
30
  renderContent?: () => ReactNode;
31
+ /** Test identifier */
32
+ testID?: string;
31
33
  }
package/index.tsx CHANGED
@@ -30,6 +30,8 @@ export interface SidebarProps {
30
30
  lazy?: boolean
31
31
  /** Custom renderer for sidebar content */
32
32
  renderContent?: () => ReactNode
33
+ /** Test identifier */
34
+ testID?: string
33
35
  }
34
36
 
35
37
  function Sidebar ({
@@ -42,7 +44,8 @@ function Sidebar ({
42
44
  disabled = false,
43
45
  width = 264,
44
46
  lazy = false,
45
- renderContent
47
+ renderContent,
48
+ testID
46
49
  }: SidebarProps): ReactNode {
47
50
  const getColor = useColors()
48
51
 
@@ -58,7 +61,7 @@ function Sidebar ({
58
61
  }
59
62
 
60
63
  return pug`
61
- Div.root(style=restStyle styleName=[position])
64
+ Div.root(style=restStyle styleName=[position] testID=testID)
62
65
  ScrollView.sidebar(
63
66
  contentContainerStyle=[{ flex: 1 }, sidebarStyle]
64
67
  styleName={ open }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/sidebar",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,13 +8,13 @@
8
8
  "types": "index.d.ts",
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@startupjs-ui/core": "^0.2.0",
12
- "@startupjs-ui/div": "^0.2.0"
11
+ "@startupjs-ui/core": "^0.3.0",
12
+ "@startupjs-ui/div": "^0.3.1"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "*",
16
16
  "react-native": "*",
17
17
  "startupjs": "*"
18
18
  },
19
- "gitHead": "0c586b841cba1c9d820542f6eca07470f5ea2659"
19
+ "gitHead": "60311773bdc83f354c797a272774304502d28c58"
20
20
  }