Skip to content

Commit 422a935

Browse files
authored
Merge branch 'develop' into feature/updateInMemoryDatasetIcon-CMEM-7363
2 parents 945fe96 + 47cdaef commit 422a935

6 files changed

Lines changed: 139 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- `<Pagination />`
12+
- improve breakpoints to display widgets for page size and page number inside smaller containers
13+
- male the breakpoints configurable via SCSS
14+
15+
## [25.1.0] - 2026-04-13
16+
917
### Added
1018

1119
- `<ActivityControlWidget />`
@@ -40,6 +48,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
4048
- `data-sourceschema`
4149
- `data-targetschema`
4250
- `operation-ai-generate`
51+
- `operation-filterreset`
4352
- `toggler-pin-empty`
4453
- `toggler-pin-filled`
4554

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"react-app-polyfill": "^3.0.0",
162162
"react-lorem-ipsum": "^1.4.9",
163163
"regenerator-runtime": "^0.13.9",
164-
"rimraf": "^5.0.10",
164+
"rimraf": "^6.1.3",
165165
"sass": "1.62.1",
166166
"sass-loader": "10.3.1",
167167
"storybook": "^8.6.14",

src/components/Icon/canonicalIconNames.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as icons from "@carbon/react/icons";
22
import { CarbonIconType as IconType } from "@carbon/react/icons";
3-
import { transform} from "./transformIcon";
3+
4+
import { transform } from "./transformIcon";
45

56
const canonicalIcons = {
67
"application-activities": icons.Activity,
@@ -147,9 +148,10 @@ const canonicalIcons = {
147148
"operation-commit": icons.Commit,
148149
"operation-comparison": icons.Compare,
149150
"operation-erase": icons.Erase,
151+
"operation-filter": icons.Filter,
150152
"operation-filteredit": icons.FilterEdit,
151153
"operation-filterremove": icons.FilterRemove,
152-
"operation-filter": icons.Filter,
154+
"operation-filterreset": icons.FilterReset,
153155
"operation-focus": icons.CenterSquare,
154156
"operation-format-codeblock": icons.CodeBlock,
155157
"operation-format-text-code": icons.Code,

src/components/Pagination/Stories/Pagination.stories.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ export default {
1010

1111
const PaginationExample = (args) => <Pagination {...args} />;
1212

13+
const ContainerQueriesExample = (args) => (
14+
<>
15+
<Pagination {...args} style={{ maxWidth: "100%" }} />
16+
<Pagination {...args} style={{ maxWidth: "32rem" }} />
17+
<Pagination {...args} style={{ maxWidth: "26rem" }} />
18+
</>
19+
);
20+
1321
export const Default: StoryFn<typeof Pagination> = PaginationExample.bind({});
1422
Default.args = {
1523
pageSizes: [10, 20, 50, 100],
@@ -28,3 +36,27 @@ ExtendedPagesizeSelection.args = {
2836
{ text: "Large page with 100 items", value: "100" },
2937
],
3038
};
39+
40+
/**
41+
* This story demonstrates a minimal pagination and is a check that elements are always hidden.
42+
*/
43+
export const MinimalPagination: StoryFn<typeof Pagination> = PaginationExample.bind({});
44+
MinimalPagination.args = {
45+
...Default.args,
46+
hidePageSizeConfiguration: true,
47+
hidePageSelect: true,
48+
hideInfoText: true,
49+
hideNavigationArrows: false,
50+
hideBorders: false,
51+
};
52+
53+
/**
54+
* Demonstrates the breakpoints of the container queries.
55+
* If the container gets too small, some elements are removed automatically.
56+
* First, page selector disappears, then the page size selector.
57+
* Info text and navigation arrow are never hidden automatically.
58+
*/
59+
export const ContainerQueries: StoryFn<typeof Pagination> = ContainerQueriesExample.bind({});
60+
ContainerQueries.args = {
61+
...Default.args,
62+
};

src/components/Pagination/pagination.scss

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ $eccgui-size-typo-pagination: $eccgui-size-typo-caption !default;
77
$eccgui-size-pagination-height-medium: $pt-button-height !default;
88
$eccgui-size-pagination-height-small: $pt-button-height-small !default;
99
$eccgui-size-pagination-height-large: $pt-button-height-large !default;
10+
$eccgui-size-pagination-breakpoint-wide: 32rem !default;
11+
$eccgui-size-pagination-breakpoint-small: 26rem !default;
1012

1113
.#{$prefix}--pagination {
1214
min-block-size: $eccgui-size-pagination-height-medium;
@@ -38,7 +40,7 @@ span.#{$prefix}--pagination__text {
3840
padding-left: 0;
3941

4042
& > *:not(:last-child) {
41-
display: none;
43+
display: none !important;
4244
}
4345
}
4446
}
@@ -56,7 +58,7 @@ span.#{$prefix}--pagination__text {
5658

5759
.#{$eccgui}-pagination--hideinfotext {
5860
.#{$prefix}--pagination__left > .#{$prefix}--pagination__text:last-child {
59-
display: none;
61+
display: none !important;
6062
}
6163

6264
& .#{$prefix}--select__item-count .#{$prefix}--select-input {
@@ -66,13 +68,13 @@ span.#{$prefix}--pagination__text {
6668

6769
.#{$eccgui}-pagination--hidepageselect {
6870
.#{$prefix}--pagination__right > *:not(.#{$prefix}--pagination__control-buttons) {
69-
display: none;
71+
display: none !important;
7072
}
7173
}
7274

7375
.#{$eccgui}-pagination--hidenavigation {
7476
.#{$prefix}--pagination__right > .#{$prefix}--pagination__control-buttons {
75-
display: none;
77+
display: none !important;
7678
}
7779
}
7880

@@ -137,3 +139,51 @@ span.#{$prefix}--pagination__text {
137139
line-height: $eccgui-size-pagination-height-large;
138140
}
139141
}
142+
143+
// fix breakpoints for container queries
144+
// Carbon does not provide the option to configure that breakpoint
145+
@container pagination (min-width: #{$eccgui-size-pagination-breakpoint-small}) {
146+
.#{$prefix}--pagination.#{$eccgui}-pagination {
147+
.#{$prefix}--pagination__control-buttons {
148+
display: flex;
149+
}
150+
.#{$prefix}--pagination__left > * {
151+
display: inherit;
152+
}
153+
}
154+
}
155+
156+
@container pagination (min-width: #{$eccgui-size-pagination-breakpoint-wide}) {
157+
.#{$prefix}--pagination.#{$eccgui}-pagination {
158+
.#{$prefix}--pagination__right > * {
159+
display: inherit;
160+
}
161+
}
162+
}
163+
164+
@container pagination (max-width: #{$eccgui-size-pagination-breakpoint-small}) {
165+
.#{$prefix}--pagination.#{$eccgui}-pagination {
166+
.#{$prefix}--pagination__left > * {
167+
display: none;
168+
}
169+
.#{$prefix}--pagination__items-count {
170+
margin-left: 0;
171+
}
172+
}
173+
}
174+
175+
@container pagination (max-width: #{$eccgui-size-pagination-breakpoint-wide}) {
176+
.#{$prefix}--pagination.#{$eccgui}-pagination {
177+
.#{$prefix}--pagination__right > * {
178+
display: none;
179+
}
180+
181+
.#{$prefix}--pagination__items-count {
182+
display: initial;
183+
}
184+
185+
.#{$prefix}--pagination__control-buttons {
186+
display: flex;
187+
}
188+
}
189+
}

yarn.lock

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4952,9 +4952,9 @@ boolbase@^1.0.0:
49524952
integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==
49534953

49544954
brace-expansion@^1.1.7:
4955-
version "1.1.11"
4956-
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
4957-
integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
4955+
version "1.1.13"
4956+
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.13.tgz#d37875c01dc9eff988dd49d112a57cb67b54efe6"
4957+
integrity sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==
49584958
dependencies:
49594959
balanced-match "^1.0.0"
49604960
concat-map "0.0.1"
@@ -7005,7 +7005,7 @@ glob-to-regexp@^0.4.1:
70057005
resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e"
70067006
integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==
70077007

7008-
glob@^10.0.0, glob@^10.3.10, glob@^10.3.7:
7008+
glob@^10.0.0, glob@^10.3.10:
70097009
version "10.4.5"
70107010
resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956"
70117011
integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==
@@ -7017,6 +7017,15 @@ glob@^10.0.0, glob@^10.3.10, glob@^10.3.7:
70177017
package-json-from-dist "^1.0.0"
70187018
path-scurry "^1.11.1"
70197019

7020+
glob@^13.0.3:
7021+
version "13.0.6"
7022+
resolved "https://registry.yarnpkg.com/glob/-/glob-13.0.6.tgz#078666566a425147ccacfbd2e332deb66a2be71d"
7023+
integrity sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==
7024+
dependencies:
7025+
minimatch "^10.2.2"
7026+
minipass "^7.1.3"
7027+
path-scurry "^2.0.2"
7028+
70207029
glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
70217030
version "7.2.3"
70227031
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
@@ -8874,6 +8883,11 @@ lru-cache@^10.2.0, lru-cache@^10.4.3:
88748883
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119"
88758884
integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==
88768885

8886+
lru-cache@^11.0.0:
8887+
version "11.2.7"
8888+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-11.2.7.tgz#9127402617f34cd6767b96daee98c28e74458d35"
8889+
integrity sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==
8890+
88778891
lru-cache@^5.1.1:
88788892
version "5.1.1"
88798893
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
@@ -9505,7 +9519,7 @@ min-indent@^1.0.0, min-indent@^1.0.1:
95059519
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
95069520
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
95079521

9508-
minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2, minimatch@^3.1.4, minimatch@^9.0.4, minimatch@~3.0.2:
9522+
minimatch@^10.2.2, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2, minimatch@^3.1.4, minimatch@^9.0.4, minimatch@~3.0.2:
95099523
version "3.1.5"
95109524
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.5.tgz#580c88f8d5445f2bd6aa8f3cadefa0de79fbd69e"
95119525
integrity sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==
@@ -9534,6 +9548,11 @@ minipass@^5.0.0:
95349548
resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707"
95359549
integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==
95369550

9551+
minipass@^7.1.3:
9552+
version "7.1.3"
9553+
resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.3.tgz#79389b4eb1bb2d003a9bba87d492f2bd37bdc65b"
9554+
integrity sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==
9555+
95379556
minizlib@^2.1.1:
95389557
version "2.1.2"
95399558
resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931"
@@ -9909,7 +9928,7 @@ p-try@^2.0.0:
99099928
resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
99109929
integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
99119930

9912-
package-json-from-dist@^1.0.0:
9931+
package-json-from-dist@^1.0.0, package-json-from-dist@^1.0.1:
99139932
version "1.0.1"
99149933
resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz#4f1471a010827a86f94cfd9b0727e36d267de505"
99159934
integrity sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==
@@ -10062,6 +10081,14 @@ path-scurry@^1.11.1:
1006210081
lru-cache "^10.2.0"
1006310082
minipass "^5.0.0 || ^6.0.2 || ^7.0.0"
1006410083

10084+
path-scurry@^2.0.2:
10085+
version "2.0.2"
10086+
resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-2.0.2.tgz#6be0d0ee02a10d9e0de7a98bae65e182c9061f85"
10087+
integrity sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==
10088+
dependencies:
10089+
lru-cache "^11.0.0"
10090+
minipass "^7.1.2"
10091+
1006510092
path-type@^4.0.0:
1006610093
version "4.0.0"
1006710094
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
@@ -10990,12 +11017,13 @@ rimraf@^3.0.2:
1099011017
dependencies:
1099111018
glob "^7.1.3"
1099211019

10993-
rimraf@^5.0.10:
10994-
version "5.0.10"
10995-
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.10.tgz#23b9843d3dc92db71f96e1a2ce92e39fd2a8221c"
10996-
integrity sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==
11020+
rimraf@^6.1.3:
11021+
version "6.1.3"
11022+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-6.1.3.tgz#afbee236b3bd2be331d4e7ce4493bac1718981af"
11023+
integrity sha512-LKg+Cr2ZF61fkcaK1UdkH2yEBBKnYjTyWzTJT6KNPcSPaiT7HSdhtMXQuN5wkTX0Xu72KQ1l8S42rlmexS2hSA==
1099711024
dependencies:
10998-
glob "^10.3.7"
11025+
glob "^13.0.3"
11026+
package-json-from-dist "^1.0.1"
1099911027

1100011028
rimraf@~2.6.2:
1100111029
version "2.6.3"

0 commit comments

Comments
 (0)