@patternfly-java/finder 0.6.5 → 0.6.7
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/README.md +6 -3
- package/finder.css +36 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# PatternFly Java Finder
|
|
2
2
|
|
|
3
|
-
CSS styles for the [PatternFly Java](https://patternfly-java.github.io/) finder extension. The finder is a macOS Finder-style column browser for hierarchical navigation.
|
|
3
|
+
CSS styles for the [PatternFly Java](https://patternfly-java.github.io/extensions/finder) finder extension. The finder is a macOS Finder-style column browser for hierarchical navigation.
|
|
4
4
|
|
|
5
|
-
This package provides the CSS only. It is meant to be used together with the
|
|
5
|
+
This package provides the CSS only. It is meant to be used together with the
|
|
6
|
+
[
|
|
7
|
+
`org.patternfly:patternfly-java-finder`](https://central.sonatype.com/artifact/org.patternfly/patternfly-java-finder) Maven artifact, which contains the Java component implementation.
|
|
6
8
|
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
@@ -22,7 +24,8 @@ Import the CSS in your stylesheet or JavaScript entry point:
|
|
|
22
24
|
|
|
23
25
|
## Requirements
|
|
24
26
|
|
|
25
|
-
This package requires [PatternFly 6](https://www.patternfly.org/) CSS (
|
|
27
|
+
This package requires [PatternFly 6](https://www.patternfly.org/) CSS ([
|
|
28
|
+
`@patternfly/patternfly`](https://www.npmjs.com/package/@patternfly/patternfly)) to be present, as it references PatternFly design tokens for colors, spacing, borders, and typography.
|
|
26
29
|
|
|
27
30
|
## License
|
|
28
31
|
|
package/finder.css
CHANGED
|
@@ -93,6 +93,8 @@
|
|
|
93
93
|
/* Preview */
|
|
94
94
|
--pf-v6-c-finder__preview--MinWidth: 24rem;
|
|
95
95
|
--pf-v6-c-finder__preview--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
96
|
+
--pf-v6-c-finder__preview--BorderLeftColor: var(--pf-t--global--border--color--default);
|
|
97
|
+
--pf-v6-c-finder__preview--BorderLeftWidth: var(--pf-t--global--border--width--100);
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
/* ===================================================================
|
|
@@ -102,12 +104,15 @@
|
|
|
102
104
|
.pf-v6-c-finder {
|
|
103
105
|
display: flex;
|
|
104
106
|
background-color: var(--pf-v6-c-finder--BackgroundColor);
|
|
105
|
-
border: var(--pf-v6-c-finder--BorderWidth) solid var(--pf-v6-c-finder--BorderColor);
|
|
106
|
-
border-radius: var(--pf-v6-c-finder--BorderRadius);
|
|
107
107
|
font-size: var(--pf-v6-c-finder--FontSize);
|
|
108
108
|
color: var(--pf-v6-c-finder--Color);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
.pf-v6-c-finder.pf-m-bordered {
|
|
112
|
+
border: var(--pf-v6-c-finder--BorderWidth) solid var(--pf-v6-c-finder--BorderColor);
|
|
113
|
+
border-radius: var(--pf-v6-c-finder--BorderRadius);
|
|
114
|
+
}
|
|
115
|
+
|
|
111
116
|
/* ===================================================================
|
|
112
117
|
Columns container (scrollable)
|
|
113
118
|
=================================================================== */
|
|
@@ -237,6 +242,7 @@
|
|
|
237
242
|
display: flex;
|
|
238
243
|
flex-direction: column;
|
|
239
244
|
min-width: 0;
|
|
245
|
+
flex-grow: 1;
|
|
240
246
|
}
|
|
241
247
|
|
|
242
248
|
.pf-v6-c-finder__item-text {
|
|
@@ -259,17 +265,15 @@
|
|
|
259
265
|
}
|
|
260
266
|
|
|
261
267
|
.pf-v6-c-finder__item-actions {
|
|
262
|
-
display:
|
|
268
|
+
display: none;
|
|
263
269
|
align-items: center;
|
|
264
270
|
gap: var(--pf-t--global--spacer--100);
|
|
265
271
|
margin-inline-start: var(--pf-v6-c-finder__item-actions--MarginInlineStart);
|
|
266
272
|
flex-shrink: 0;
|
|
267
|
-
opacity: 0;
|
|
268
273
|
}
|
|
269
274
|
|
|
270
|
-
.pf-v6-c-finder__item:hover .pf-v6-c-finder__item-actions,
|
|
271
275
|
.pf-v6-c-finder__item.pf-m-selected .pf-v6-c-finder__item-actions {
|
|
272
|
-
|
|
276
|
+
display: inline-flex;
|
|
273
277
|
}
|
|
274
278
|
|
|
275
279
|
.pf-v6-c-finder__item-pin {
|
|
@@ -350,6 +354,30 @@
|
|
|
350
354
|
background-color: var(--pf-v6-c-finder__item--m-selected--BackgroundColor);
|
|
351
355
|
}
|
|
352
356
|
|
|
357
|
+
.pf-v6-c-finder__column.pf-m-active .pf-v6-c-finder__item.pf-m-selected .pf-v6-c-finder__item-actions .pf-v6-c-button {
|
|
358
|
+
--pf-v6-c-button__icon--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
359
|
+
--pf-v6-c-button--m-link--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
360
|
+
--pf-v6-c-button--m-plain--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
361
|
+
--pf-v6-c-button--m-plain--hover--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
362
|
+
--pf-v6-c-button--m-plain--m-clicked--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.pf-v6-c-finder__column.pf-m-active .pf-v6-c-finder__item.pf-m-selected .pf-v6-c-finder__item-actions .pf-v6-c-button.pf-m-link {
|
|
366
|
+
--pf-v6-c-button--hover--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
367
|
+
--pf-v6-c-button--m-clicked--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.pf-v6-c-finder__column.pf-m-active .pf-v6-c-finder__item.pf-m-selected .pf-v6-c-finder__item-actions .pf-v6-c-menu-toggle.pf-m-plain {
|
|
371
|
+
--pf-v6-c-menu-toggle--m-plain--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
372
|
+
--pf-v6-c-menu-toggle--hover--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
373
|
+
--pf-v6-c-menu-toggle--expanded--Color: var(--pf-v6-c-finder__item--m-selected--Color);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.pf-v6-c-finder__column.pf-m-active .pf-v6-c-finder__item.pf-m-selected .pf-v6-c-finder__item-actions .pf-v6-c-menu-toggle.pf-m-split {
|
|
377
|
+
--pf-v6-c-menu-toggle--hover--Color: var(--pf-v6-c-menu-toggle--m-primary--hover--Color);
|
|
378
|
+
--pf-v6-c-menu-toggle--expanded--Color: var(--pf-v6-c-menu-toggle--m-primary--expanded--Color);
|
|
379
|
+
}
|
|
380
|
+
|
|
353
381
|
.pf-v6-c-finder__column.pf-m-active .pf-v6-c-finder__item.pf-m-selected .pf-v6-c-finder__item-folder-icon {
|
|
354
382
|
color: var(--pf-v6-c-finder__item-folder-icon--m-selected--Color);
|
|
355
383
|
}
|
|
@@ -386,4 +414,6 @@
|
|
|
386
414
|
background-color: var(--pf-v6-c-finder__preview--BackgroundColor);
|
|
387
415
|
flex: 1;
|
|
388
416
|
overflow-y: auto;
|
|
417
|
+
border-left: var(--pf-v6-c-finder__column--BorderRightWidth) solid var(--pf-v6-c-finder__column--BorderRightColor);
|
|
418
|
+
margin-left: calc(var(--pf-v6-c-finder__column--BorderRightWidth) * -1);
|
|
389
419
|
}
|
package/package.json
CHANGED