@patternfly-java/finder 0.6.14 → 0.6.16

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.
Files changed (2) hide show
  1. package/finder.css +26 -2
  2. package/package.json +1 -1
package/finder.css CHANGED
@@ -106,6 +106,8 @@
106
106
  =================================================================== */
107
107
 
108
108
  .pf-v6-c-finder {
109
+ container-type: inline-size;
110
+ container-name: finder;
109
111
  display: flex;
110
112
  background-color: var(--pf-v6-c-finder--BackgroundColor);
111
113
  font-size: var(--pf-v6-c-finder--FontSize);
@@ -135,7 +137,7 @@
135
137
  display: flex;
136
138
  flex-direction: column;
137
139
  flex-shrink: 0;
138
- width: var(--pf-v6-c-finder__column--Width);
140
+ width: clamp(14rem, 25cqi, 18rem);
139
141
  border-right: var(--pf-v6-c-finder__column--BorderRightWidth) solid var(--pf-v6-c-finder__column--BorderRightColor);
140
142
  }
141
143
 
@@ -414,7 +416,7 @@
414
416
  .pf-v6-c-finder__preview {
415
417
  display: flex;
416
418
  flex-direction: column;
417
- min-width: var(--pf-v6-c-finder__preview--MinWidth);
419
+ min-width: clamp(16rem, 30cqi, 28rem);
418
420
  background-color: var(--pf-v6-c-finder__preview--BackgroundColor);
419
421
  flex: 1;
420
422
  overflow-y: auto;
@@ -425,3 +427,25 @@
425
427
  padding-inline-start: var(--pf-v6-c-finder__preview--PaddingInlineStart);
426
428
  padding-inline-end: var(--pf-v6-c-finder__preview--PaddingInlineEnd);
427
429
  }
430
+
431
+ /* ===================================================================
432
+ Responsive container queries
433
+ =================================================================== */
434
+
435
+ @container finder (max-width: 40rem) {
436
+ .pf-v6-c-finder__columns {
437
+ --pf-v6-c-finder-MaxColumns: 1;
438
+ }
439
+ }
440
+
441
+ @container finder (min-width: 40rem) and (max-width: 60rem) {
442
+ .pf-v6-c-finder__columns {
443
+ --pf-v6-c-finder-MaxColumns: 2;
444
+ }
445
+ }
446
+
447
+ @container finder (min-width: 60rem) and (max-width: 80rem) {
448
+ .pf-v6-c-finder__columns {
449
+ --pf-v6-c-finder-MaxColumns: 3;
450
+ }
451
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly-java/finder",
3
3
  "private": false,
4
- "version": "0.6.14",
4
+ "version": "0.6.16",
5
5
  "description": "CSS for the PatternFly Java finder extension.",
6
6
  "homepage": "https://patternfly-java.github.io/",
7
7
  "repository": {