@patternfly/patternfly 5.0.0-alpha.35 → 5.0.0-alpha.37
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/assets/images/pfbg-icon.svg +1 -0
- package/components/AboutModalBox/about-modal-box.css +15 -7
- package/components/AboutModalBox/about-modal-box.scss +17 -9
- package/components/BackgroundImage/background-image.css +8 -35
- package/components/BackgroundImage/background-image.scss +17 -43
- package/components/Login/login.css +9 -9
- package/components/Login/login.scss +6 -8
- package/components/Login/themes/dark/login.scss +4 -0
- package/components/Page/page.css +30 -9
- package/components/Page/page.scss +37 -9
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +8 -2
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +10 -26
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +1 -0
- package/docs/components/DatePicker/examples/DatePicker.md +0 -1
- package/docs/components/Dropdown/examples/Dropdown.md +1 -1
- package/docs/components/Icon/examples/Icon.md +0 -1
- package/docs/components/LogViewer/examples/LogViewer.md +0 -1
- package/docs/components/Login/examples/Login.md +5 -120
- package/docs/components/Page/examples/Page.css +7 -1
- package/docs/components/Page/examples/Page.md +31 -4
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +0 -1
- package/docs/components/SearchInput/examples/SearchInput.md +0 -1
- package/docs/components/Tabs/examples/Tabs.md +6 -6
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +0 -1
- package/docs/components/Tile/examples/Tile.md +1 -2
- package/docs/components/Truncate/examples/Truncate.md +0 -1
- package/docs/demos/AboutModal/examples/AboutModal.md +0 -1
- package/docs/demos/Page/examples/Page.md +932 -1
- package/package.json +1 -1
- package/patternfly-no-globals.css +62 -60
- package/patternfly.css +62 -60
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -8,30 +8,7 @@ wrapperTag: div
|
|
|
8
8
|
### Basic
|
|
9
9
|
|
|
10
10
|
```html isFullscreen
|
|
11
|
-
<div class="pf-c-background-image">
|
|
12
|
-
<svg
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
class="pf-c-background-image__filter"
|
|
15
|
-
width="0"
|
|
16
|
-
height="0"
|
|
17
|
-
>
|
|
18
|
-
<filter id="image_overlay">
|
|
19
|
-
<feColorMatrix
|
|
20
|
-
type="matrix"
|
|
21
|
-
values="1 0 0 0 0
|
|
22
|
-
1 0 0 0 0
|
|
23
|
-
1 0 0 0 0
|
|
24
|
-
0 0 0 1 0"
|
|
25
|
-
/>
|
|
26
|
-
<feComponentTransfer color-interpolation-filters="sRGB" result="duotone">
|
|
27
|
-
<feFuncR type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
28
|
-
<feFuncG type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
29
|
-
<feFuncB type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
30
|
-
<feFuncA type="table" tableValues="0 1" />
|
|
31
|
-
</feComponentTransfer>
|
|
32
|
-
</filter>
|
|
33
|
-
</svg>
|
|
34
|
-
</div>
|
|
11
|
+
<div class="pf-c-background-image"></div>
|
|
35
12
|
<div class="pf-c-login">
|
|
36
13
|
<div class="pf-c-login__container">
|
|
37
14
|
<header class="pf-c-login__header">
|
|
@@ -230,30 +207,7 @@ wrapperTag: div
|
|
|
230
207
|
### Invalid
|
|
231
208
|
|
|
232
209
|
```html isFullscreen
|
|
233
|
-
<div class="pf-c-background-image">
|
|
234
|
-
<svg
|
|
235
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
236
|
-
class="pf-c-background-image__filter"
|
|
237
|
-
width="0"
|
|
238
|
-
height="0"
|
|
239
|
-
>
|
|
240
|
-
<filter id="image_overlay">
|
|
241
|
-
<feColorMatrix
|
|
242
|
-
type="matrix"
|
|
243
|
-
values="1 0 0 0 0
|
|
244
|
-
1 0 0 0 0
|
|
245
|
-
1 0 0 0 0
|
|
246
|
-
0 0 0 1 0"
|
|
247
|
-
/>
|
|
248
|
-
<feComponentTransfer color-interpolation-filters="sRGB" result="duotone">
|
|
249
|
-
<feFuncR type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
250
|
-
<feFuncG type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
251
|
-
<feFuncB type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
252
|
-
<feFuncA type="table" tableValues="0 1" />
|
|
253
|
-
</feComponentTransfer>
|
|
254
|
-
</filter>
|
|
255
|
-
</svg>
|
|
256
|
-
</div>
|
|
210
|
+
<div class="pf-c-background-image"></div>
|
|
257
211
|
<div class="pf-c-login">
|
|
258
212
|
<div class="pf-c-login__container">
|
|
259
213
|
<header class="pf-c-login__header">
|
|
@@ -458,30 +412,7 @@ wrapperTag: div
|
|
|
458
412
|
### Show password
|
|
459
413
|
|
|
460
414
|
```html isFullscreen
|
|
461
|
-
<div class="pf-c-background-image">
|
|
462
|
-
<svg
|
|
463
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
464
|
-
class="pf-c-background-image__filter"
|
|
465
|
-
width="0"
|
|
466
|
-
height="0"
|
|
467
|
-
>
|
|
468
|
-
<filter id="image_overlay">
|
|
469
|
-
<feColorMatrix
|
|
470
|
-
type="matrix"
|
|
471
|
-
values="1 0 0 0 0
|
|
472
|
-
1 0 0 0 0
|
|
473
|
-
1 0 0 0 0
|
|
474
|
-
0 0 0 1 0"
|
|
475
|
-
/>
|
|
476
|
-
<feComponentTransfer color-interpolation-filters="sRGB" result="duotone">
|
|
477
|
-
<feFuncR type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
478
|
-
<feFuncG type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
479
|
-
<feFuncB type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
480
|
-
<feFuncA type="table" tableValues="0 1" />
|
|
481
|
-
</feComponentTransfer>
|
|
482
|
-
</filter>
|
|
483
|
-
</svg>
|
|
484
|
-
</div>
|
|
415
|
+
<div class="pf-c-background-image"></div>
|
|
485
416
|
<div class="pf-c-login">
|
|
486
417
|
<div class="pf-c-login__container">
|
|
487
418
|
<header class="pf-c-login__header">
|
|
@@ -691,30 +622,7 @@ wrapperTag: div
|
|
|
691
622
|
### Hide password
|
|
692
623
|
|
|
693
624
|
```html isFullscreen
|
|
694
|
-
<div class="pf-c-background-image">
|
|
695
|
-
<svg
|
|
696
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
697
|
-
class="pf-c-background-image__filter"
|
|
698
|
-
width="0"
|
|
699
|
-
height="0"
|
|
700
|
-
>
|
|
701
|
-
<filter id="image_overlay">
|
|
702
|
-
<feColorMatrix
|
|
703
|
-
type="matrix"
|
|
704
|
-
values="1 0 0 0 0
|
|
705
|
-
1 0 0 0 0
|
|
706
|
-
1 0 0 0 0
|
|
707
|
-
0 0 0 1 0"
|
|
708
|
-
/>
|
|
709
|
-
<feComponentTransfer color-interpolation-filters="sRGB" result="duotone">
|
|
710
|
-
<feFuncR type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
711
|
-
<feFuncG type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
712
|
-
<feFuncB type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
713
|
-
<feFuncA type="table" tableValues="0 1" />
|
|
714
|
-
</feComponentTransfer>
|
|
715
|
-
</filter>
|
|
716
|
-
</svg>
|
|
717
|
-
</div>
|
|
625
|
+
<div class="pf-c-background-image"></div>
|
|
718
626
|
<div class="pf-c-login">
|
|
719
627
|
<div class="pf-c-login__container">
|
|
720
628
|
<header class="pf-c-login__header">
|
|
@@ -931,30 +839,7 @@ wrapperTag: div
|
|
|
931
839
|
### With language selector
|
|
932
840
|
|
|
933
841
|
```html isFullscreen
|
|
934
|
-
<div class="pf-c-background-image">
|
|
935
|
-
<svg
|
|
936
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
937
|
-
class="pf-c-background-image__filter"
|
|
938
|
-
width="0"
|
|
939
|
-
height="0"
|
|
940
|
-
>
|
|
941
|
-
<filter id="image_overlay">
|
|
942
|
-
<feColorMatrix
|
|
943
|
-
type="matrix"
|
|
944
|
-
values="1 0 0 0 0
|
|
945
|
-
1 0 0 0 0
|
|
946
|
-
1 0 0 0 0
|
|
947
|
-
0 0 0 1 0"
|
|
948
|
-
/>
|
|
949
|
-
<feComponentTransfer color-interpolation-filters="sRGB" result="duotone">
|
|
950
|
-
<feFuncR type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
951
|
-
<feFuncG type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
952
|
-
<feFuncB type="table" tableValues="0.086274509803922 0.43921568627451" />
|
|
953
|
-
<feFuncA type="table" tableValues="0 1" />
|
|
954
|
-
</feComponentTransfer>
|
|
955
|
-
</filter>
|
|
956
|
-
</svg>
|
|
957
|
-
</div>
|
|
842
|
+
<div class="pf-c-background-image"></div>
|
|
958
843
|
<div class="pf-c-login">
|
|
959
844
|
<div class="pf-c-login__container">
|
|
960
845
|
<header class="pf-c-login__header">
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
color: var(--pf-global--Color--dark-100);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
#ws-core-c-page-with-or-without-fill .ws-preview-html
|
|
9
|
+
#ws-core-c-page-with-or-without-fill .ws-preview-html,
|
|
10
|
+
#ws-core-c-page-multiple-sidebar-body-elements-padding-and-fill .ws-preview-html {
|
|
10
11
|
height: 500px;
|
|
11
12
|
}
|
|
13
|
+
|
|
14
|
+
#ws-core-c-page-multiple-sidebar-body-elements .ws-preview-html,
|
|
15
|
+
#ws-core-c-page-using-flex-layout .ws-preview-html {
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
@@ -67,6 +67,31 @@ wrapperTag: div
|
|
|
67
67
|
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
+
### Multiple sidebar body elements, padding, and fill
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<div class="pf-c-page">
|
|
74
|
+
<header class="pf-c-page__header">
|
|
75
|
+
<div class="pf-c-page__header-brand">
|
|
76
|
+
<div class="pf-c-page__header-brand-toggle">toggle</div>
|
|
77
|
+
<a href="#" class="pf-c-page__header-brand-link">Logo</a>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="pf-c-page__header-tools">header-tools</div>
|
|
80
|
+
</header>
|
|
81
|
+
<div class="pf-c-page__sidebar">
|
|
82
|
+
<div class="pf-c-page__sidebar-body">Navigation</div>
|
|
83
|
+
<div
|
|
84
|
+
class="pf-c-page__sidebar-body pf-m-fill pf-m-page-insets"
|
|
85
|
+
>inset content</div>
|
|
86
|
+
<div class="pf-c-page__sidebar-body pf-m-page-insets">footer content</div>
|
|
87
|
+
</div>
|
|
88
|
+
<main class="pf-c-page__main" tabindex="-1">
|
|
89
|
+
<section class="pf-c-page__main-section pf-m-light"></section>
|
|
90
|
+
</main>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
|
|
70
95
|
### With or without fill
|
|
71
96
|
|
|
72
97
|
```html
|
|
@@ -232,7 +257,7 @@ This component provides the basic chrome for a page, including sidebar, header,
|
|
|
232
257
|
| `.pf-c-page__header-tools-group` | `<div>` | Creates a container for grouping sets of icons and menus in header. |
|
|
233
258
|
| `.pf-c-page__header-tools-item` | `<div>` | Creates a container for an item in a header tools group. |
|
|
234
259
|
| `.pf-c-page__sidebar` | `<aside>` | Declares the page sidebar. |
|
|
235
|
-
| `.pf-c-page__sidebar-body` | `<div>` | Creates a wrapper within the sidebar to hold content. |
|
|
260
|
+
| `.pf-c-page__sidebar-body` | `<div>` | Creates a wrapper within the sidebar to hold content. **Note: The last/only `.pf-c-page__sidebar-body` element will grow to fill the availble vertical space. You can change this behavior using `.pf-m-fill` and `.pf-m-no-fill`, which are documented below.** |
|
|
236
261
|
| `.pf-c-page__main` | `<main>` | Declares the main page area. |
|
|
237
262
|
| `.pf-c-page__main-nav` | `<section>` | Creates a container to nest the navigation component in the main page area. |
|
|
238
263
|
| `.pf-c-page__main-breadcrumb` | `<section>` | Creates a container to nest the breadcrumb component in the main page area. |
|
|
@@ -245,15 +270,17 @@ This component provides the basic chrome for a page, including sidebar, header,
|
|
|
245
270
|
| `.pf-m-selected` | `.pf-c-page__header-tools-item` | Modifies a header tools item to indicate that the button inside is in the selected state. |
|
|
246
271
|
| `.pf-m-expanded` | `.pf-c-page__sidebar` | Modifies the sidebar for the expanded state. |
|
|
247
272
|
| `.pf-m-collapsed` | `.pf-c-page__sidebar` | Modifies the sidebar for the collapsed state. |
|
|
273
|
+
| `.pf-m-page-insets` | `.pf-c-page__sidebar-body` | Modifies a sidebar body padding/inset to visually match padding of page elements. |
|
|
274
|
+
| `.pf-m-inset-none` | `.pf-c-page__sidebar-body` | Removes a sidebar body left/right inset. |
|
|
248
275
|
| `.pf-m-light` | `.pf-c-page__sidebar` | Modifies the sidebar the light variation. **Note: for use with a light themed nav component** |
|
|
249
276
|
| `.pf-m-light` | `.pf-c-page__main-section` | Modifies a main page section to have a light theme. |
|
|
250
277
|
| `.pf-m-dark-200` | `.pf-c-page__main-section` | Modifies a main page section to have a dark theme and a dark transparent background. |
|
|
251
278
|
| `.pf-m-dark-100` | `.pf-c-page__main-section` | Modifies a main page section to have a dark theme and a darker transparent background. |
|
|
252
279
|
| `.pf-m-light-200` | `.pf-c-page__main-wizard` | Modifies a wizard page section to have a light 200 theme. |
|
|
253
|
-
| `.pf-m-no-padding`, `.pf-m-no-padding{-on-[breakpoint]}` | `.pf-c-page__main-section` | Removes padding from the main page section at an optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
254
280
|
| `.pf-m-padding{-on-[breakpoint]}` | `.pf-c-page__main-section` | Modifies the main page section to add padding back in at an optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). Should be used with pf-m-no-padding. |
|
|
255
|
-
| `.pf-m-
|
|
256
|
-
| `.pf-m-
|
|
281
|
+
| `.pf-m-no-padding{-on-[breakpoint]}` | `.pf-c-page__main-section` | Removes padding from the main page section at an optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
282
|
+
| `.pf-m-fill` | `.pf-c-page__main-section`, `.pf-c-page__sidebar-body` | Modifies the element to grow to fill the available space. |
|
|
283
|
+
| `.pf-m-no-fill` | `.pf-c-page__main-section`, `.pf-c-page__sidebar-body` | Modifies the element to not grow to fill the available vertical space. |
|
|
257
284
|
| `.pf-m-hidden{-on-[breakpoint]}` | `.pf-c-page__header-tools-group`, `.pf-c-page__header-tools-item` | Hides a header tools group or item at an optional breakpoint, or hides it at all [breakpoints](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes) with `.pf-m-hidden`. |
|
|
258
285
|
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-c-page__header-tools-group`, `.pf-c-page__header-tools-item` | Shows a header tools group or item at an optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
259
286
|
| `.pf-m-limit-width` | `.pf-c-page__main-section` | Modifies a page section to limit the `max-width` of the content inside. |
|
|
@@ -220,7 +220,7 @@ cssPrefix: pf-c-tabs
|
|
|
220
220
|
|
|
221
221
|
### Horizontal overflow example
|
|
222
222
|
|
|
223
|
-
```html
|
|
223
|
+
```html
|
|
224
224
|
<div class="pf-c-tabs pf-m-overflow" id="horizontal-overflow">
|
|
225
225
|
<ul class="pf-c-tabs__list">
|
|
226
226
|
<li class="pf-c-tabs__item">
|
|
@@ -297,7 +297,7 @@ cssPrefix: pf-c-tabs
|
|
|
297
297
|
|
|
298
298
|
### Horizontal overflow expanded example
|
|
299
299
|
|
|
300
|
-
```html
|
|
300
|
+
```html
|
|
301
301
|
<div class="pf-c-tabs pf-m-overflow" id="horizontal-overflow-expanded">
|
|
302
302
|
<ul class="pf-c-tabs__list">
|
|
303
303
|
<li class="pf-c-tabs__item">
|
|
@@ -375,7 +375,7 @@ cssPrefix: pf-c-tabs
|
|
|
375
375
|
|
|
376
376
|
### Horizontal overflow selected example
|
|
377
377
|
|
|
378
|
-
```html
|
|
378
|
+
```html
|
|
379
379
|
<div class="pf-c-tabs pf-m-overflow" id="horizontal-overflow-selected">
|
|
380
380
|
<ul class="pf-c-tabs__list">
|
|
381
381
|
<li class="pf-c-tabs__item">
|
|
@@ -2585,7 +2585,7 @@ cssPrefix: pf-c-tabs
|
|
|
2585
2585
|
|
|
2586
2586
|
### Help button example
|
|
2587
2587
|
|
|
2588
|
-
```html
|
|
2588
|
+
```html
|
|
2589
2589
|
<div class="pf-c-tabs pf-m-scrollable" id="help-button-default-example">
|
|
2590
2590
|
<button
|
|
2591
2591
|
class="pf-c-tabs__scroll-button"
|
|
@@ -3713,7 +3713,7 @@ cssPrefix: pf-c-tabs
|
|
|
3713
3713
|
|
|
3714
3714
|
### Close button example
|
|
3715
3715
|
|
|
3716
|
-
```html
|
|
3716
|
+
```html
|
|
3717
3717
|
<div class="pf-c-tabs pf-m-scrollable" id="close-button-default-example">
|
|
3718
3718
|
<button
|
|
3719
3719
|
class="pf-c-tabs__scroll-button"
|
|
@@ -4841,7 +4841,7 @@ cssPrefix: pf-c-tabs
|
|
|
4841
4841
|
|
|
4842
4842
|
### Help and close button example
|
|
4843
4843
|
|
|
4844
|
-
```html
|
|
4844
|
+
```html
|
|
4845
4845
|
<div class="pf-c-tabs pf-m-scrollable" id="help-close-button-default-example">
|
|
4846
4846
|
<button
|
|
4847
4847
|
class="pf-c-tabs__scroll-button"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Tile
|
|
3
3
|
section: components
|
|
4
|
-
beta: true
|
|
5
4
|
cssPrefix: pf-c-tile
|
|
6
5
|
---import './Tile.css'
|
|
7
6
|
|
|
@@ -9,7 +8,7 @@ cssPrefix: pf-c-tile
|
|
|
9
8
|
|
|
10
9
|
### Basic tiles
|
|
11
10
|
|
|
12
|
-
```html
|
|
11
|
+
```html
|
|
13
12
|
<div class="pf-c-tile" tabindex="0">
|
|
14
13
|
<div class="pf-c-tile__header">
|
|
15
14
|
<div class="pf-c-tile__title">Default</div>
|
|
@@ -946,7 +946,6 @@ This demo implements the about modal, including the backdrop.
|
|
|
946
946
|
id="about-modal-title"
|
|
947
947
|
>Red Hat OpenShift Container Platform</h1>
|
|
948
948
|
</div>
|
|
949
|
-
<div class="pf-c-about-modal-box__hero"></div>
|
|
950
949
|
<div class="pf-c-about-modal-box__content">
|
|
951
950
|
<div class="pf-c-content">
|
|
952
951
|
<dl>
|