@synerise/ds-pagination 2.0.13 → 2.1.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/CLAUDE.md +6 -4
- package/dist/Pagination.styles.js +5 -5
- package/package.json +6 -6
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
|
+
# [2.1.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-pagination@2.0.13...@synerise/ds-pagination@2.1.0) (2026-10-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* integrate Token Studio design tokens across the design system ([aabb447](https://github.com/synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.0.13](https://github.com/synerise/synerise-design/compare/@synerise/ds-pagination@2.0.12...@synerise/ds-pagination@2.0.13) (2026-10-28)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-pagination
|
package/CLAUDE.md
CHANGED
|
@@ -57,13 +57,15 @@ import Pagination from '@synerise/ds-pagination';
|
|
|
57
57
|
No CSS import is required (styled-components).
|
|
58
58
|
|
|
59
59
|
## Styling
|
|
60
|
-
- All styling lives in `Pagination.styles.ts` (styled-components,
|
|
60
|
+
- All styling lives in `Pagination.styles.ts` (styled-components, `var(--ds-*)` tokens). Classes are hooks only,
|
|
61
61
|
not styling selectors.
|
|
62
|
-
- Page item: 32px, `border-radius: 16px`; active = `
|
|
63
|
-
|
|
62
|
+
- Page item: 32px, `border-radius: 16px`; active = `var(--ds-pagination-item-bg-active)` background,
|
|
63
|
+
`var(--ds-pagination-item-text-color-active)` text; hover = `var(--ds-pagination-item-bg-hover)`.
|
|
64
|
+
- prev/next: `var(--ds-pagination-nav-icon-default)` ghost icon buttons (`@synerise/ds-button`); disabled =
|
|
65
|
+
`opacity: var(--ds-pagination-nav-disabled-opacity)`.
|
|
64
66
|
- jump-prev/next: `OptionHorizontalM` by default, swap to `DoubleAngleLeftS`/`DoubleAngleRightS` on hover
|
|
65
67
|
(via `.default-icon` / `.hover-icon` toggling inside the styled `Jump`).
|
|
66
|
-
- size changer: `@synerise/ds-select`, `min-width: 140px`; quick jumper: input with `
|
|
68
|
+
- size changer: `@synerise/ds-select`, `min-width: 140px`; quick jumper: input with `var(--ds-color-focus-base-default)` focus ring.
|
|
67
69
|
- Font family `'Graphik LCG Web', sans-serif`.
|
|
68
70
|
|
|
69
71
|
### DOM / class hooks (`ds-pagination-*` only)
|
|
@@ -7,15 +7,15 @@ const Root = /* @__PURE__ */ styled.ul.withConfig({
|
|
|
7
7
|
const TotalText = /* @__PURE__ */ styled.li.withConfig({
|
|
8
8
|
displayName: "Paginationstyles__TotalText",
|
|
9
9
|
componentId: "sc-10qb5kd-1"
|
|
10
|
-
})(["display:inline-flex;align-items:center;height:32px;margin-right:8px;color:
|
|
10
|
+
})(["display:inline-flex;align-items:center;height:32px;margin-right:8px;color:var(--ds-color-text-base-muted);strong{font-weight:500;}"]);
|
|
11
11
|
const Item = /* @__PURE__ */ styled.li.withConfig({
|
|
12
12
|
displayName: "Paginationstyles__Item",
|
|
13
13
|
componentId: "sc-10qb5kd-2"
|
|
14
|
-
})(["display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;margin:0 2px;border:1px solid transparent;border-radius:16px;background-color:transparent;cursor:pointer;transition:background-color 0.2s ease;a{padding:0 6px;color:
|
|
14
|
+
})(["display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;margin:0 2px;border:1px solid transparent;border-radius:16px;background-color:transparent;cursor:pointer;transition:background-color 0.2s ease;a{padding:0 6px;color:var(--ds-pagination-item-text-color-default);text-decoration:none;}&:hover{background-color:var(--ds-pagination-item-bg-hover);}", ""], (props) => props.$active && css(["&&{border-color:var(--ds-pagination-item-bg-active);background-color:var(--ds-pagination-item-bg-active);a{color:var(--ds-pagination-item-text-color-active);}&:hover a{color:var(--ds-pagination-item-text-color-active);}}"]));
|
|
15
15
|
const Nav = /* @__PURE__ */ styled.li.withConfig({
|
|
16
16
|
displayName: "Paginationstyles__Nav",
|
|
17
17
|
componentId: "sc-10qb5kd-3"
|
|
18
|
-
})(["display:inline-flex;align-items:center;color:
|
|
18
|
+
})(["display:inline-flex;align-items:center;color:var(--ds-pagination-nav-icon-default);", " ", " ", ""], (props) => props.$side === "prev" && "margin-right: 8px;", (props) => props.$side === "next" && "margin-left: 8px;", (props) => props.$disabled && css(["opacity:var(--ds-pagination-nav-disabled-opacity);cursor:not-allowed;> *{pointer-events:none;}"]));
|
|
19
19
|
const Jump = /* @__PURE__ */ styled.li.withConfig({
|
|
20
20
|
displayName: "Paginationstyles__Jump",
|
|
21
21
|
componentId: "sc-10qb5kd-4"
|
|
@@ -31,11 +31,11 @@ const SizeChanger = /* @__PURE__ */ styled.div.withConfig({
|
|
|
31
31
|
const QuickJumper = /* @__PURE__ */ styled.div.withConfig({
|
|
32
32
|
displayName: "Paginationstyles__QuickJumper",
|
|
33
33
|
componentId: "sc-10qb5kd-7"
|
|
34
|
-
})(["display:inline-flex;align-items:center;white-space:nowrap;color:
|
|
34
|
+
})(["display:inline-flex;align-items:center;white-space:nowrap;color:var(--ds-color-text-base-muted);"]);
|
|
35
35
|
const JumperInput = /* @__PURE__ */ styled.input.withConfig({
|
|
36
36
|
displayName: "Paginationstyles__JumperInput",
|
|
37
37
|
componentId: "sc-10qb5kd-8"
|
|
38
|
-
})(["width:50px;height:32px;margin:0 8px;padding:7px 12px;border:1px solid
|
|
38
|
+
})(["width:50px;height:32px;margin:0 8px;padding:7px 12px;border:1px solid var(--ds-color-border-base-strong);border-radius:3px;outline:none;box-sizing:border-box;&:focus{border-color:var(--ds-color-focus-base-default);box-shadow:inset 0 0 0 1px var(--ds-color-focus-base-default);}"]);
|
|
39
39
|
export {
|
|
40
40
|
Item,
|
|
41
41
|
Jump,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-pagination",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Pagination UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-button": "^2.
|
|
46
|
-
"@synerise/ds-icon": "^2.
|
|
47
|
-
"@synerise/ds-select": "^2.
|
|
48
|
-
"@synerise/ds-utils": "^2.
|
|
45
|
+
"@synerise/ds-button": "^2.2.0",
|
|
46
|
+
"@synerise/ds-icon": "^2.3.0",
|
|
47
|
+
"@synerise/ds-select": "^2.2.0",
|
|
48
|
+
"@synerise/ds-utils": "^2.3.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"vitest": "4"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"react": ">=16.9.0 <= 18.3.1",
|
|
56
56
|
"styled-components": "^5.3.3"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
|
|
59
59
|
}
|