@startupjs-ui/pagination 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 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
@@ -46,4 +46,6 @@ export interface PaginationProps {
46
46
  onChangePage?: (page: number) => void;
47
47
  /** Called when the page size changes */
48
48
  onChangeLimit?: (limit: number) => void;
49
+ /** Test identifier */
50
+ testID?: string;
49
51
  }
package/index.tsx CHANGED
@@ -62,6 +62,8 @@ export interface PaginationProps {
62
62
  onChangePage?: (page: number) => void
63
63
  /** Called when the page size changes */
64
64
  onChangeLimit?: (limit: number) => void
65
+ /** Test identifier */
66
+ testID?: string
65
67
  }
66
68
 
67
69
  function Pagination ({
@@ -83,7 +85,8 @@ function Pagination ({
83
85
  showNextButton = true,
84
86
  disabled = false,
85
87
  onChangePage,
86
- onChangeLimit
88
+ onChangeLimit,
89
+ testID
87
90
  }: PaginationProps): ReactNode {
88
91
  const items = usePagination({
89
92
  variant,
@@ -107,7 +110,7 @@ function Pagination ({
107
110
  })
108
111
 
109
112
  return pug`
110
- Div(row style=style)
113
+ Div(row style=style testID=testID)
111
114
  each item, index in items
112
115
  React.Fragment(key=index)
113
116
  - const { type, value, selected, disabled, ...itemProps } = item
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/pagination",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,15 +8,15 @@
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",
13
- "@startupjs-ui/icon": "^0.2.0",
14
- "@startupjs-ui/span": "^0.2.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/span": "^0.3.0"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": "*",
18
18
  "react-native": "*",
19
19
  "startupjs": "*"
20
20
  },
21
- "gitHead": "0c586b841cba1c9d820542f6eca07470f5ea2659"
21
+ "gitHead": "8d212b47680af1dfe582f9759b38724b46488e25"
22
22
  }