@patternfly/react-core 4.242.4 → 4.242.5
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 +8 -0
- package/dist/umd/react-core.min.css +226 -226
- package/package.json +2 -2
- package/src/components/Tile/examples/Tile.md +7 -98
- package/src/components/Tile/examples/TileBasic.tsx +10 -0
- package/src/components/Tile/examples/TileStacked.tsx +17 -0
- package/src/components/Tile/examples/TileStackedWithLargeIcons.tsx +17 -0
- package/src/components/Tile/examples/TileWithExtraContent.tsx +26 -0
- package/src/components/Tile/examples/TileWithIcon.tsx +17 -0
- package/src/components/Tile/examples/TileWithSubtext.tsx +16 -0
- package/src/demos/TileDemo.md +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [4.242.5](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@4.242.4...@patternfly/react-core@4.242.5) (2022-09-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.242.4](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@4.242.3...@patternfly/react-core@4.242.4) (2022-09-23)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @patternfly/react-core
|
|
@@ -19474,6 +19474,45 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
19474
19474
|
--pf-c-switch__toggle--before--BoxShadow: none;
|
|
19475
19475
|
}
|
|
19476
19476
|
|
|
19477
|
+
.pf-c-tab-content {
|
|
19478
|
+
--pf-c-tab-content__body--PaddingTop: 0;
|
|
19479
|
+
--pf-c-tab-content__body--PaddingRight: 0;
|
|
19480
|
+
--pf-c-tab-content__body--PaddingBottom: 0;
|
|
19481
|
+
--pf-c-tab-content__body--PaddingLeft: 0;
|
|
19482
|
+
--pf-c-tab-content__body--m-padding--PaddingTop: var(--pf-global--spacer--md);
|
|
19483
|
+
--pf-c-tab-content__body--m-padding--PaddingRight: var(--pf-global--spacer--md);
|
|
19484
|
+
--pf-c-tab-content__body--m-padding--PaddingBottom: var(--pf-global--spacer--md);
|
|
19485
|
+
--pf-c-tab-content__body--m-padding--PaddingLeft: var(--pf-global--spacer--md);
|
|
19486
|
+
--pf-c-tab-content__body--m-padding--xl--PaddingTop: var(--pf-global--spacer--lg);
|
|
19487
|
+
--pf-c-tab-content__body--m-padding--xl--PaddingRight: var(--pf-global--spacer--lg);
|
|
19488
|
+
--pf-c-tab-content__body--m-padding--xl--PaddingBottom: var(--pf-global--spacer--lg);
|
|
19489
|
+
--pf-c-tab-content__body--m-padding--xl--PaddingLeft: var(--pf-global--spacer--lg);
|
|
19490
|
+
--pf-c-tab-content--m-light-300: var(--pf-global--BackgroundColor--light-300);
|
|
19491
|
+
}
|
|
19492
|
+
|
|
19493
|
+
@media screen and (min-width: 1200px) {
|
|
19494
|
+
.pf-c-tab-content {
|
|
19495
|
+
--pf-c-tab-content__body--m-padding--PaddingTop: var(--pf-c-tab-content__body--m-padding--xl--PaddingTop);
|
|
19496
|
+
--pf-c-tab-content__body--m-padding--PaddingRight: var(--pf-c-tab-content__body--m-padding--xl--PaddingRight);
|
|
19497
|
+
--pf-c-tab-content__body--m-padding--PaddingBottom: var(--pf-c-tab-content__body--m-padding--xl--PaddingBottom);
|
|
19498
|
+
--pf-c-tab-content__body--m-padding--PaddingLeft: var(--pf-c-tab-content__body--m-padding--xl--PaddingLeft);
|
|
19499
|
+
}
|
|
19500
|
+
}
|
|
19501
|
+
.pf-c-tab-content.pf-m-light-300 {
|
|
19502
|
+
background-color: var(--pf-c-tab-content--m-light-300);
|
|
19503
|
+
}
|
|
19504
|
+
|
|
19505
|
+
.pf-c-tab-content__body {
|
|
19506
|
+
padding: var(--pf-c-tab-content__body--PaddingTop) var(--pf-c-tab-content__body--PaddingRight) var(--pf-c-tab-content__body--PaddingBottom) var(--pf-c-tab-content__body--PaddingLeft);
|
|
19507
|
+
}
|
|
19508
|
+
|
|
19509
|
+
.pf-c-tab-content__body.pf-m-padding {
|
|
19510
|
+
--pf-c-tab-content__body--PaddingTop: var(--pf-c-tab-content__body--m-padding--PaddingTop);
|
|
19511
|
+
--pf-c-tab-content__body--PaddingRight: var(--pf-c-tab-content__body--m-padding--PaddingRight);
|
|
19512
|
+
--pf-c-tab-content__body--PaddingBottom: var(--pf-c-tab-content__body--m-padding--PaddingBottom);
|
|
19513
|
+
--pf-c-tab-content__body--PaddingLeft: var(--pf-c-tab-content__body--m-padding--PaddingLeft);
|
|
19514
|
+
}
|
|
19515
|
+
|
|
19477
19516
|
.pf-c-tabs {
|
|
19478
19517
|
--pf-c-tabs--inset: 0;
|
|
19479
19518
|
--pf-c-tabs--Width: auto;
|
|
@@ -20444,45 +20483,6 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
20444
20483
|
--pf-c-tabs--m-color-scheme--light-300__link--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
20445
20484
|
}
|
|
20446
20485
|
|
|
20447
|
-
.pf-c-tab-content {
|
|
20448
|
-
--pf-c-tab-content__body--PaddingTop: 0;
|
|
20449
|
-
--pf-c-tab-content__body--PaddingRight: 0;
|
|
20450
|
-
--pf-c-tab-content__body--PaddingBottom: 0;
|
|
20451
|
-
--pf-c-tab-content__body--PaddingLeft: 0;
|
|
20452
|
-
--pf-c-tab-content__body--m-padding--PaddingTop: var(--pf-global--spacer--md);
|
|
20453
|
-
--pf-c-tab-content__body--m-padding--PaddingRight: var(--pf-global--spacer--md);
|
|
20454
|
-
--pf-c-tab-content__body--m-padding--PaddingBottom: var(--pf-global--spacer--md);
|
|
20455
|
-
--pf-c-tab-content__body--m-padding--PaddingLeft: var(--pf-global--spacer--md);
|
|
20456
|
-
--pf-c-tab-content__body--m-padding--xl--PaddingTop: var(--pf-global--spacer--lg);
|
|
20457
|
-
--pf-c-tab-content__body--m-padding--xl--PaddingRight: var(--pf-global--spacer--lg);
|
|
20458
|
-
--pf-c-tab-content__body--m-padding--xl--PaddingBottom: var(--pf-global--spacer--lg);
|
|
20459
|
-
--pf-c-tab-content__body--m-padding--xl--PaddingLeft: var(--pf-global--spacer--lg);
|
|
20460
|
-
--pf-c-tab-content--m-light-300: var(--pf-global--BackgroundColor--light-300);
|
|
20461
|
-
}
|
|
20462
|
-
|
|
20463
|
-
@media screen and (min-width: 1200px) {
|
|
20464
|
-
.pf-c-tab-content {
|
|
20465
|
-
--pf-c-tab-content__body--m-padding--PaddingTop: var(--pf-c-tab-content__body--m-padding--xl--PaddingTop);
|
|
20466
|
-
--pf-c-tab-content__body--m-padding--PaddingRight: var(--pf-c-tab-content__body--m-padding--xl--PaddingRight);
|
|
20467
|
-
--pf-c-tab-content__body--m-padding--PaddingBottom: var(--pf-c-tab-content__body--m-padding--xl--PaddingBottom);
|
|
20468
|
-
--pf-c-tab-content__body--m-padding--PaddingLeft: var(--pf-c-tab-content__body--m-padding--xl--PaddingLeft);
|
|
20469
|
-
}
|
|
20470
|
-
}
|
|
20471
|
-
.pf-c-tab-content.pf-m-light-300 {
|
|
20472
|
-
background-color: var(--pf-c-tab-content--m-light-300);
|
|
20473
|
-
}
|
|
20474
|
-
|
|
20475
|
-
.pf-c-tab-content__body {
|
|
20476
|
-
padding: var(--pf-c-tab-content__body--PaddingTop) var(--pf-c-tab-content__body--PaddingRight) var(--pf-c-tab-content__body--PaddingBottom) var(--pf-c-tab-content__body--PaddingLeft);
|
|
20477
|
-
}
|
|
20478
|
-
|
|
20479
|
-
.pf-c-tab-content__body.pf-m-padding {
|
|
20480
|
-
--pf-c-tab-content__body--PaddingTop: var(--pf-c-tab-content__body--m-padding--PaddingTop);
|
|
20481
|
-
--pf-c-tab-content__body--PaddingRight: var(--pf-c-tab-content__body--m-padding--PaddingRight);
|
|
20482
|
-
--pf-c-tab-content__body--PaddingBottom: var(--pf-c-tab-content__body--m-padding--PaddingBottom);
|
|
20483
|
-
--pf-c-tab-content__body--PaddingLeft: var(--pf-c-tab-content__body--m-padding--PaddingLeft);
|
|
20484
|
-
}
|
|
20485
|
-
|
|
20486
20486
|
.pf-c-content {
|
|
20487
20487
|
--pf-c-content--MarginBottom: var(--pf-global--spacer--md);
|
|
20488
20488
|
--pf-c-content--LineHeight: var(--pf-global--LineHeight--md);
|
|
@@ -20925,6 +20925,109 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
20925
20925
|
--pf-c-tile--m-disabled__body--Color: var(--pf-global--disabled-color--300);
|
|
20926
20926
|
}
|
|
20927
20927
|
|
|
20928
|
+
.pf-c-timestamp {
|
|
20929
|
+
--pf-c-timestamp--FontSize: var(--pf-global--FontSize--sm);
|
|
20930
|
+
--pf-c-timestamp--Color: var(--pf-global--Color--200);
|
|
20931
|
+
--pf-c-timestamp--OutlineOffset: 0.1875rem;
|
|
20932
|
+
--pf-c-timestamp--m-help-text--TextDecorationLine: underline;
|
|
20933
|
+
--pf-c-timestamp--m-help-text--TextDecorationStyle: dashed;
|
|
20934
|
+
--pf-c-timestamp--m-help-text--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
|
|
20935
|
+
--pf-c-timestamp--m-help-text--TextUnderlineOffset: 0.25rem;
|
|
20936
|
+
--pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-global--BorderColor--200);
|
|
20937
|
+
--pf-c-timestamp--m-help-text--hover--Color: var(--pf-global--Color--100);
|
|
20938
|
+
--pf-c-timestamp--m-help-text--focus--Color: var(--pf-global--Color--100);
|
|
20939
|
+
--pf-c-timestamp--m-help-text--hover--TextDecorationColor: var(--pf-global--Color--100);
|
|
20940
|
+
--pf-c-timestamp--m-help-text--focus--TextDecorationColor: var(--pf-global--Color--100);
|
|
20941
|
+
display: inline-block;
|
|
20942
|
+
font-size: var(--pf-c-timestamp--FontSize);
|
|
20943
|
+
color: var(--pf-c-timestamp--Color);
|
|
20944
|
+
outline-offset: var(--pf-c-timestamp--OutlineOffset);
|
|
20945
|
+
}
|
|
20946
|
+
|
|
20947
|
+
.pf-c-timestamp.pf-m-help-text {
|
|
20948
|
+
cursor: pointer;
|
|
20949
|
+
text-decoration-line: var(--pf-c-timestamp--m-help-text--TextDecorationLine);
|
|
20950
|
+
text-decoration-style: var(--pf-c-timestamp--m-help-text--TextDecorationStyle);
|
|
20951
|
+
text-decoration-thickness: var(--pf-c-timestamp--m-help-text--TextDecorationThickness);
|
|
20952
|
+
text-underline-offset: var(--pf-c-timestamp--m-help-text--TextUnderlineOffset);
|
|
20953
|
+
text-decoration-color: var(--pf-c-timestamp--m-help-text--TextDecorationColor);
|
|
20954
|
+
}
|
|
20955
|
+
|
|
20956
|
+
.pf-c-timestamp.pf-m-help-text:hover {
|
|
20957
|
+
--pf-c-timestamp--Color: var(--pf-c-timestamp--m-help-text--hover--Color);
|
|
20958
|
+
--pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-c-timestamp--m-help-text--hover--TextDecorationColor);
|
|
20959
|
+
}
|
|
20960
|
+
|
|
20961
|
+
.pf-c-timestamp.pf-m-help-text:focus {
|
|
20962
|
+
--pf-c-timestamp--Color: var(--pf-c-timestamp--m-help-text--focus--Color);
|
|
20963
|
+
--pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-c-timestamp--m-help-text--focus--TextDecorationColor);
|
|
20964
|
+
}
|
|
20965
|
+
|
|
20966
|
+
.pf-c-title {
|
|
20967
|
+
--pf-c-title--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
|
|
20968
|
+
--pf-c-title--m-4xl--LineHeight: var(--pf-global--LineHeight--sm);
|
|
20969
|
+
--pf-c-title--m-4xl--FontSize: var(--pf-global--FontSize--4xl);
|
|
20970
|
+
--pf-c-title--m-4xl--FontWeight: var(--pf-global--FontWeight--normal);
|
|
20971
|
+
--pf-c-title--m-3xl--LineHeight: var(--pf-global--LineHeight--sm);
|
|
20972
|
+
--pf-c-title--m-3xl--FontSize: var(--pf-global--FontSize--3xl);
|
|
20973
|
+
--pf-c-title--m-3xl--FontWeight: var(--pf-global--FontWeight--normal);
|
|
20974
|
+
--pf-c-title--m-2xl--LineHeight: var(--pf-global--LineHeight--sm);
|
|
20975
|
+
--pf-c-title--m-2xl--FontSize: var(--pf-global--FontSize--2xl);
|
|
20976
|
+
--pf-c-title--m-2xl--FontWeight: var(--pf-global--FontWeight--normal);
|
|
20977
|
+
--pf-c-title--m-xl--LineHeight: var(--pf-global--LineHeight--md);
|
|
20978
|
+
--pf-c-title--m-xl--FontSize: var(--pf-global--FontSize--xl);
|
|
20979
|
+
--pf-c-title--m-xl--FontWeight: var(--pf-global--FontWeight--normal);
|
|
20980
|
+
--pf-c-title--m-lg--LineHeight: var(--pf-global--LineHeight--md);
|
|
20981
|
+
--pf-c-title--m-lg--FontSize: var(--pf-global--FontSize--lg);
|
|
20982
|
+
--pf-c-title--m-lg--FontWeight: var(--pf-global--FontWeight--normal);
|
|
20983
|
+
--pf-c-title--m-md--LineHeight: var(--pf-global--LineHeight--md);
|
|
20984
|
+
--pf-c-title--m-md--FontSize: var(--pf-global--FontSize--md);
|
|
20985
|
+
--pf-c-title--m-md--FontWeight: var(--pf-global--FontWeight--normal);
|
|
20986
|
+
font-family: var(--pf-c-title--FontFamily);
|
|
20987
|
+
word-break: break-word;
|
|
20988
|
+
}
|
|
20989
|
+
|
|
20990
|
+
.pf-c-title.pf-m-4xl {
|
|
20991
|
+
font-size: var(--pf-c-title--m-4xl--FontSize);
|
|
20992
|
+
font-weight: var(--pf-c-title--m-4xl--FontWeight);
|
|
20993
|
+
line-height: var(--pf-c-title--m-4xl--LineHeight);
|
|
20994
|
+
}
|
|
20995
|
+
|
|
20996
|
+
.pf-c-title.pf-m-3xl {
|
|
20997
|
+
font-size: var(--pf-c-title--m-3xl--FontSize);
|
|
20998
|
+
font-weight: var(--pf-c-title--m-3xl--FontWeight);
|
|
20999
|
+
line-height: var(--pf-c-title--m-3xl--LineHeight);
|
|
21000
|
+
}
|
|
21001
|
+
|
|
21002
|
+
.pf-c-title.pf-m-2xl {
|
|
21003
|
+
font-size: var(--pf-c-title--m-2xl--FontSize);
|
|
21004
|
+
font-weight: var(--pf-c-title--m-2xl--FontWeight);
|
|
21005
|
+
line-height: var(--pf-c-title--m-2xl--LineHeight);
|
|
21006
|
+
}
|
|
21007
|
+
|
|
21008
|
+
.pf-c-title.pf-m-xl {
|
|
21009
|
+
font-size: var(--pf-c-title--m-xl--FontSize);
|
|
21010
|
+
font-weight: var(--pf-c-title--m-xl--FontWeight);
|
|
21011
|
+
line-height: var(--pf-c-title--m-xl--LineHeight);
|
|
21012
|
+
}
|
|
21013
|
+
|
|
21014
|
+
.pf-c-title.pf-m-lg {
|
|
21015
|
+
font-size: var(--pf-c-title--m-lg--FontSize);
|
|
21016
|
+
font-weight: var(--pf-c-title--m-lg--FontWeight);
|
|
21017
|
+
line-height: var(--pf-c-title--m-lg--LineHeight);
|
|
21018
|
+
}
|
|
21019
|
+
|
|
21020
|
+
.pf-c-title.pf-m-md {
|
|
21021
|
+
font-size: var(--pf-c-title--m-md--FontSize);
|
|
21022
|
+
font-weight: var(--pf-c-title--m-md--FontWeight);
|
|
21023
|
+
line-height: var(--pf-c-title--m-md--LineHeight);
|
|
21024
|
+
}
|
|
21025
|
+
|
|
21026
|
+
.pf-m-overpass-font .pf-c-title {
|
|
21027
|
+
--pf-c-title--m-md--FontWeight: var(--pf-global--FontWeight--semi-bold);
|
|
21028
|
+
--pf-c-title--m-lg--FontWeight: var(--pf-global--FontWeight--semi-bold);
|
|
21029
|
+
}
|
|
21030
|
+
|
|
20928
21031
|
.pf-c-toggle-group {
|
|
20929
21032
|
--pf-c-toggle-group__button--PaddingTop: var(--pf-global--spacer--form-element);
|
|
20930
21033
|
--pf-c-toggle-group__button--PaddingRight: var(--pf-global--spacer--md);
|
|
@@ -21045,71 +21148,6 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
21045
21148
|
--pf-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-global--primary-color--300);
|
|
21046
21149
|
}
|
|
21047
21150
|
|
|
21048
|
-
.pf-c-title {
|
|
21049
|
-
--pf-c-title--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
|
|
21050
|
-
--pf-c-title--m-4xl--LineHeight: var(--pf-global--LineHeight--sm);
|
|
21051
|
-
--pf-c-title--m-4xl--FontSize: var(--pf-global--FontSize--4xl);
|
|
21052
|
-
--pf-c-title--m-4xl--FontWeight: var(--pf-global--FontWeight--normal);
|
|
21053
|
-
--pf-c-title--m-3xl--LineHeight: var(--pf-global--LineHeight--sm);
|
|
21054
|
-
--pf-c-title--m-3xl--FontSize: var(--pf-global--FontSize--3xl);
|
|
21055
|
-
--pf-c-title--m-3xl--FontWeight: var(--pf-global--FontWeight--normal);
|
|
21056
|
-
--pf-c-title--m-2xl--LineHeight: var(--pf-global--LineHeight--sm);
|
|
21057
|
-
--pf-c-title--m-2xl--FontSize: var(--pf-global--FontSize--2xl);
|
|
21058
|
-
--pf-c-title--m-2xl--FontWeight: var(--pf-global--FontWeight--normal);
|
|
21059
|
-
--pf-c-title--m-xl--LineHeight: var(--pf-global--LineHeight--md);
|
|
21060
|
-
--pf-c-title--m-xl--FontSize: var(--pf-global--FontSize--xl);
|
|
21061
|
-
--pf-c-title--m-xl--FontWeight: var(--pf-global--FontWeight--normal);
|
|
21062
|
-
--pf-c-title--m-lg--LineHeight: var(--pf-global--LineHeight--md);
|
|
21063
|
-
--pf-c-title--m-lg--FontSize: var(--pf-global--FontSize--lg);
|
|
21064
|
-
--pf-c-title--m-lg--FontWeight: var(--pf-global--FontWeight--normal);
|
|
21065
|
-
--pf-c-title--m-md--LineHeight: var(--pf-global--LineHeight--md);
|
|
21066
|
-
--pf-c-title--m-md--FontSize: var(--pf-global--FontSize--md);
|
|
21067
|
-
--pf-c-title--m-md--FontWeight: var(--pf-global--FontWeight--normal);
|
|
21068
|
-
font-family: var(--pf-c-title--FontFamily);
|
|
21069
|
-
word-break: break-word;
|
|
21070
|
-
}
|
|
21071
|
-
|
|
21072
|
-
.pf-c-title.pf-m-4xl {
|
|
21073
|
-
font-size: var(--pf-c-title--m-4xl--FontSize);
|
|
21074
|
-
font-weight: var(--pf-c-title--m-4xl--FontWeight);
|
|
21075
|
-
line-height: var(--pf-c-title--m-4xl--LineHeight);
|
|
21076
|
-
}
|
|
21077
|
-
|
|
21078
|
-
.pf-c-title.pf-m-3xl {
|
|
21079
|
-
font-size: var(--pf-c-title--m-3xl--FontSize);
|
|
21080
|
-
font-weight: var(--pf-c-title--m-3xl--FontWeight);
|
|
21081
|
-
line-height: var(--pf-c-title--m-3xl--LineHeight);
|
|
21082
|
-
}
|
|
21083
|
-
|
|
21084
|
-
.pf-c-title.pf-m-2xl {
|
|
21085
|
-
font-size: var(--pf-c-title--m-2xl--FontSize);
|
|
21086
|
-
font-weight: var(--pf-c-title--m-2xl--FontWeight);
|
|
21087
|
-
line-height: var(--pf-c-title--m-2xl--LineHeight);
|
|
21088
|
-
}
|
|
21089
|
-
|
|
21090
|
-
.pf-c-title.pf-m-xl {
|
|
21091
|
-
font-size: var(--pf-c-title--m-xl--FontSize);
|
|
21092
|
-
font-weight: var(--pf-c-title--m-xl--FontWeight);
|
|
21093
|
-
line-height: var(--pf-c-title--m-xl--LineHeight);
|
|
21094
|
-
}
|
|
21095
|
-
|
|
21096
|
-
.pf-c-title.pf-m-lg {
|
|
21097
|
-
font-size: var(--pf-c-title--m-lg--FontSize);
|
|
21098
|
-
font-weight: var(--pf-c-title--m-lg--FontWeight);
|
|
21099
|
-
line-height: var(--pf-c-title--m-lg--LineHeight);
|
|
21100
|
-
}
|
|
21101
|
-
|
|
21102
|
-
.pf-c-title.pf-m-md {
|
|
21103
|
-
font-size: var(--pf-c-title--m-md--FontSize);
|
|
21104
|
-
font-weight: var(--pf-c-title--m-md--FontWeight);
|
|
21105
|
-
line-height: var(--pf-c-title--m-md--LineHeight);
|
|
21106
|
-
}
|
|
21107
|
-
|
|
21108
|
-
.pf-m-overpass-font .pf-c-title {
|
|
21109
|
-
--pf-c-title--m-md--FontWeight: var(--pf-global--FontWeight--semi-bold);
|
|
21110
|
-
--pf-c-title--m-lg--FontWeight: var(--pf-global--FontWeight--semi-bold);
|
|
21111
|
-
}
|
|
21112
|
-
|
|
21113
21151
|
.pf-c-toolbar__content-section, .pf-c-toolbar__content, .pf-c-toolbar__item, .pf-c-toolbar__group {
|
|
21114
21152
|
--pf-hidden-visible--visible--Visibility: visible;
|
|
21115
21153
|
--pf-hidden-visible--hidden--Display: none;
|
|
@@ -22491,44 +22529,6 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
22491
22529
|
--pf-c-toolbar--spacer: 0;
|
|
22492
22530
|
}
|
|
22493
22531
|
|
|
22494
|
-
.pf-c-timestamp {
|
|
22495
|
-
--pf-c-timestamp--FontSize: var(--pf-global--FontSize--sm);
|
|
22496
|
-
--pf-c-timestamp--Color: var(--pf-global--Color--200);
|
|
22497
|
-
--pf-c-timestamp--OutlineOffset: 0.1875rem;
|
|
22498
|
-
--pf-c-timestamp--m-help-text--TextDecorationLine: underline;
|
|
22499
|
-
--pf-c-timestamp--m-help-text--TextDecorationStyle: dashed;
|
|
22500
|
-
--pf-c-timestamp--m-help-text--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
|
|
22501
|
-
--pf-c-timestamp--m-help-text--TextUnderlineOffset: 0.25rem;
|
|
22502
|
-
--pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-global--BorderColor--200);
|
|
22503
|
-
--pf-c-timestamp--m-help-text--hover--Color: var(--pf-global--Color--100);
|
|
22504
|
-
--pf-c-timestamp--m-help-text--focus--Color: var(--pf-global--Color--100);
|
|
22505
|
-
--pf-c-timestamp--m-help-text--hover--TextDecorationColor: var(--pf-global--Color--100);
|
|
22506
|
-
--pf-c-timestamp--m-help-text--focus--TextDecorationColor: var(--pf-global--Color--100);
|
|
22507
|
-
display: inline-block;
|
|
22508
|
-
font-size: var(--pf-c-timestamp--FontSize);
|
|
22509
|
-
color: var(--pf-c-timestamp--Color);
|
|
22510
|
-
outline-offset: var(--pf-c-timestamp--OutlineOffset);
|
|
22511
|
-
}
|
|
22512
|
-
|
|
22513
|
-
.pf-c-timestamp.pf-m-help-text {
|
|
22514
|
-
cursor: pointer;
|
|
22515
|
-
text-decoration-line: var(--pf-c-timestamp--m-help-text--TextDecorationLine);
|
|
22516
|
-
text-decoration-style: var(--pf-c-timestamp--m-help-text--TextDecorationStyle);
|
|
22517
|
-
text-decoration-thickness: var(--pf-c-timestamp--m-help-text--TextDecorationThickness);
|
|
22518
|
-
text-underline-offset: var(--pf-c-timestamp--m-help-text--TextUnderlineOffset);
|
|
22519
|
-
text-decoration-color: var(--pf-c-timestamp--m-help-text--TextDecorationColor);
|
|
22520
|
-
}
|
|
22521
|
-
|
|
22522
|
-
.pf-c-timestamp.pf-m-help-text:hover {
|
|
22523
|
-
--pf-c-timestamp--Color: var(--pf-c-timestamp--m-help-text--hover--Color);
|
|
22524
|
-
--pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-c-timestamp--m-help-text--hover--TextDecorationColor);
|
|
22525
|
-
}
|
|
22526
|
-
|
|
22527
|
-
.pf-c-timestamp.pf-m-help-text:focus {
|
|
22528
|
-
--pf-c-timestamp--Color: var(--pf-c-timestamp--m-help-text--focus--Color);
|
|
22529
|
-
--pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-c-timestamp--m-help-text--focus--TextDecorationColor);
|
|
22530
|
-
}
|
|
22531
|
-
|
|
22532
22532
|
.pf-c-tooltip {
|
|
22533
22533
|
--pf-c-tooltip--MaxWidth: 18.75rem;
|
|
22534
22534
|
--pf-c-tooltip--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
@@ -26194,6 +26194,75 @@ label.pf-c-tree-view__node-text {
|
|
|
26194
26194
|
--pf-l-flex--spacer: var(--pf-l-flex--spacer--4xl);
|
|
26195
26195
|
}
|
|
26196
26196
|
}
|
|
26197
|
+
.pf-l-gallery {
|
|
26198
|
+
--pf-l-gallery--m-gutter--GridGap: var(--pf-global--gutter);
|
|
26199
|
+
--pf-l-gallery--GridTemplateColumns--min: 250px;
|
|
26200
|
+
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min);
|
|
26201
|
+
--pf-l-gallery--GridTemplateColumns--max: 1fr;
|
|
26202
|
+
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max);
|
|
26203
|
+
--pf-l-gallery--GridTemplateColumns: repeat(auto-fill, minmax(var(--pf-l-gallery--GridTemplateColumns--minmax--min), var(--pf-l-gallery--GridTemplateColumns--minmax--max)));
|
|
26204
|
+
--pf-l-gallery--GridTemplateRows: auto;
|
|
26205
|
+
display: grid;
|
|
26206
|
+
grid-template-columns: var(--pf-l-gallery--GridTemplateColumns);
|
|
26207
|
+
grid-template-rows: var(--pf-l-gallery--GridTemplateRows);
|
|
26208
|
+
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min);
|
|
26209
|
+
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max);
|
|
26210
|
+
}
|
|
26211
|
+
|
|
26212
|
+
.pf-l-gallery.pf-m-gutter {
|
|
26213
|
+
grid-gap: var(--pf-l-gallery--m-gutter--GridGap);
|
|
26214
|
+
}
|
|
26215
|
+
|
|
26216
|
+
@media (min-width: 576px) {
|
|
26217
|
+
.pf-l-gallery {
|
|
26218
|
+
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min));
|
|
26219
|
+
}
|
|
26220
|
+
}
|
|
26221
|
+
@media (min-width: 768px) {
|
|
26222
|
+
.pf-l-gallery {
|
|
26223
|
+
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-md, var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min)));
|
|
26224
|
+
}
|
|
26225
|
+
}
|
|
26226
|
+
@media (min-width: 992px) {
|
|
26227
|
+
.pf-l-gallery {
|
|
26228
|
+
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-lg, var(--pf-l-gallery--GridTemplateColumns--min-on-md, var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min))));
|
|
26229
|
+
}
|
|
26230
|
+
}
|
|
26231
|
+
@media (min-width: 1200px) {
|
|
26232
|
+
.pf-l-gallery {
|
|
26233
|
+
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-xl, var(--pf-l-gallery--GridTemplateColumns--min-on-lg, var(--pf-l-gallery--GridTemplateColumns--min-on-md, var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min)))));
|
|
26234
|
+
}
|
|
26235
|
+
}
|
|
26236
|
+
@media (min-width: 1450px) {
|
|
26237
|
+
.pf-l-gallery {
|
|
26238
|
+
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-2xl, var(--pf-l-gallery--GridTemplateColumns--min-on-xl, var(--pf-l-gallery--GridTemplateColumns--min-on-lg, var(--pf-l-gallery--GridTemplateColumns--min-on-md, var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min))))));
|
|
26239
|
+
}
|
|
26240
|
+
}
|
|
26241
|
+
@media (min-width: 576px) {
|
|
26242
|
+
.pf-l-gallery {
|
|
26243
|
+
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max));
|
|
26244
|
+
}
|
|
26245
|
+
}
|
|
26246
|
+
@media (min-width: 768px) {
|
|
26247
|
+
.pf-l-gallery {
|
|
26248
|
+
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-md, var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max)));
|
|
26249
|
+
}
|
|
26250
|
+
}
|
|
26251
|
+
@media (min-width: 992px) {
|
|
26252
|
+
.pf-l-gallery {
|
|
26253
|
+
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-lg, var(--pf-l-gallery--GridTemplateColumns--max-on-md, var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max))));
|
|
26254
|
+
}
|
|
26255
|
+
}
|
|
26256
|
+
@media (min-width: 1200px) {
|
|
26257
|
+
.pf-l-gallery {
|
|
26258
|
+
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-xl, var(--pf-l-gallery--GridTemplateColumns--max-on-lg, var(--pf-l-gallery--GridTemplateColumns--max-on-md, var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max)))));
|
|
26259
|
+
}
|
|
26260
|
+
}
|
|
26261
|
+
@media (min-width: 1450px) {
|
|
26262
|
+
.pf-l-gallery {
|
|
26263
|
+
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-2xl, var(--pf-l-gallery--GridTemplateColumns--max-on-xl, var(--pf-l-gallery--GridTemplateColumns--max-on-lg, var(--pf-l-gallery--GridTemplateColumns--max-on-md, var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max))))));
|
|
26264
|
+
}
|
|
26265
|
+
}
|
|
26197
26266
|
.pf-l-grid {
|
|
26198
26267
|
--pf-l-grid--m-gutter--GridGap: var(--pf-global--gutter);
|
|
26199
26268
|
--pf-l-grid__item--GridColumnStart: auto;
|
|
@@ -27408,75 +27477,6 @@ label.pf-c-tree-view__node-text {
|
|
|
27408
27477
|
grid-gap: var(--pf-l-grid--m-gutter--GridGap);
|
|
27409
27478
|
}
|
|
27410
27479
|
|
|
27411
|
-
.pf-l-gallery {
|
|
27412
|
-
--pf-l-gallery--m-gutter--GridGap: var(--pf-global--gutter);
|
|
27413
|
-
--pf-l-gallery--GridTemplateColumns--min: 250px;
|
|
27414
|
-
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min);
|
|
27415
|
-
--pf-l-gallery--GridTemplateColumns--max: 1fr;
|
|
27416
|
-
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max);
|
|
27417
|
-
--pf-l-gallery--GridTemplateColumns: repeat(auto-fill, minmax(var(--pf-l-gallery--GridTemplateColumns--minmax--min), var(--pf-l-gallery--GridTemplateColumns--minmax--max)));
|
|
27418
|
-
--pf-l-gallery--GridTemplateRows: auto;
|
|
27419
|
-
display: grid;
|
|
27420
|
-
grid-template-columns: var(--pf-l-gallery--GridTemplateColumns);
|
|
27421
|
-
grid-template-rows: var(--pf-l-gallery--GridTemplateRows);
|
|
27422
|
-
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min);
|
|
27423
|
-
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max);
|
|
27424
|
-
}
|
|
27425
|
-
|
|
27426
|
-
.pf-l-gallery.pf-m-gutter {
|
|
27427
|
-
grid-gap: var(--pf-l-gallery--m-gutter--GridGap);
|
|
27428
|
-
}
|
|
27429
|
-
|
|
27430
|
-
@media (min-width: 576px) {
|
|
27431
|
-
.pf-l-gallery {
|
|
27432
|
-
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min));
|
|
27433
|
-
}
|
|
27434
|
-
}
|
|
27435
|
-
@media (min-width: 768px) {
|
|
27436
|
-
.pf-l-gallery {
|
|
27437
|
-
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-md, var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min)));
|
|
27438
|
-
}
|
|
27439
|
-
}
|
|
27440
|
-
@media (min-width: 992px) {
|
|
27441
|
-
.pf-l-gallery {
|
|
27442
|
-
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-lg, var(--pf-l-gallery--GridTemplateColumns--min-on-md, var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min))));
|
|
27443
|
-
}
|
|
27444
|
-
}
|
|
27445
|
-
@media (min-width: 1200px) {
|
|
27446
|
-
.pf-l-gallery {
|
|
27447
|
-
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-xl, var(--pf-l-gallery--GridTemplateColumns--min-on-lg, var(--pf-l-gallery--GridTemplateColumns--min-on-md, var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min)))));
|
|
27448
|
-
}
|
|
27449
|
-
}
|
|
27450
|
-
@media (min-width: 1450px) {
|
|
27451
|
-
.pf-l-gallery {
|
|
27452
|
-
--pf-l-gallery--GridTemplateColumns--minmax--min: var(--pf-l-gallery--GridTemplateColumns--min-on-2xl, var(--pf-l-gallery--GridTemplateColumns--min-on-xl, var(--pf-l-gallery--GridTemplateColumns--min-on-lg, var(--pf-l-gallery--GridTemplateColumns--min-on-md, var(--pf-l-gallery--GridTemplateColumns--min-on-sm, var(--pf-l-gallery--GridTemplateColumns--min))))));
|
|
27453
|
-
}
|
|
27454
|
-
}
|
|
27455
|
-
@media (min-width: 576px) {
|
|
27456
|
-
.pf-l-gallery {
|
|
27457
|
-
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max));
|
|
27458
|
-
}
|
|
27459
|
-
}
|
|
27460
|
-
@media (min-width: 768px) {
|
|
27461
|
-
.pf-l-gallery {
|
|
27462
|
-
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-md, var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max)));
|
|
27463
|
-
}
|
|
27464
|
-
}
|
|
27465
|
-
@media (min-width: 992px) {
|
|
27466
|
-
.pf-l-gallery {
|
|
27467
|
-
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-lg, var(--pf-l-gallery--GridTemplateColumns--max-on-md, var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max))));
|
|
27468
|
-
}
|
|
27469
|
-
}
|
|
27470
|
-
@media (min-width: 1200px) {
|
|
27471
|
-
.pf-l-gallery {
|
|
27472
|
-
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-xl, var(--pf-l-gallery--GridTemplateColumns--max-on-lg, var(--pf-l-gallery--GridTemplateColumns--max-on-md, var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max)))));
|
|
27473
|
-
}
|
|
27474
|
-
}
|
|
27475
|
-
@media (min-width: 1450px) {
|
|
27476
|
-
.pf-l-gallery {
|
|
27477
|
-
--pf-l-gallery--GridTemplateColumns--minmax--max: var(--pf-l-gallery--GridTemplateColumns--max-on-2xl, var(--pf-l-gallery--GridTemplateColumns--max-on-xl, var(--pf-l-gallery--GridTemplateColumns--max-on-lg, var(--pf-l-gallery--GridTemplateColumns--max-on-md, var(--pf-l-gallery--GridTemplateColumns--max-on-sm, var(--pf-l-gallery--GridTemplateColumns--max))))));
|
|
27478
|
-
}
|
|
27479
|
-
}
|
|
27480
27480
|
.pf-l-level {
|
|
27481
27481
|
--pf-l-level--m-gutter--MarginRight: var(--pf-global--gutter);
|
|
27482
27482
|
display: flex;
|
|
@@ -27508,21 +27508,6 @@ label.pf-c-tree-view__node-text {
|
|
|
27508
27508
|
margin-right: var(--pf-l-split--m-gutter--MarginRight);
|
|
27509
27509
|
}
|
|
27510
27510
|
|
|
27511
|
-
.pf-l-stack {
|
|
27512
|
-
--pf-l-stack--m-gutter--MarginBottom: var(--pf-global--gutter);
|
|
27513
|
-
display: flex;
|
|
27514
|
-
flex-direction: column;
|
|
27515
|
-
height: 100%;
|
|
27516
|
-
}
|
|
27517
|
-
|
|
27518
|
-
.pf-l-stack__item.pf-m-fill {
|
|
27519
|
-
flex-grow: 1;
|
|
27520
|
-
}
|
|
27521
|
-
|
|
27522
|
-
.pf-l-stack.pf-m-gutter > *:not(:last-child) {
|
|
27523
|
-
margin-bottom: var(--pf-l-stack--m-gutter--MarginBottom);
|
|
27524
|
-
}
|
|
27525
|
-
|
|
27526
27511
|
.pf-c-alert-group {
|
|
27527
27512
|
--pf-c-alert-group__item--MarginTop: var(--pf-global--spacer--sm);
|
|
27528
27513
|
--pf-c-alert-group--m-toast--Top: var(--pf-global--spacer--2xl);
|
|
@@ -27583,6 +27568,21 @@ label.pf-c-tree-view__node-text {
|
|
|
27583
27568
|
--pf-c-alert-group__overflow-button--BoxShadow: var(--pf-c-alert-group__overflow-button--active--BoxShadow);
|
|
27584
27569
|
}
|
|
27585
27570
|
|
|
27571
|
+
.pf-l-stack {
|
|
27572
|
+
--pf-l-stack--m-gutter--MarginBottom: var(--pf-global--gutter);
|
|
27573
|
+
display: flex;
|
|
27574
|
+
flex-direction: column;
|
|
27575
|
+
height: 100%;
|
|
27576
|
+
}
|
|
27577
|
+
|
|
27578
|
+
.pf-l-stack__item.pf-m-fill {
|
|
27579
|
+
flex-grow: 1;
|
|
27580
|
+
}
|
|
27581
|
+
|
|
27582
|
+
.pf-l-stack.pf-m-gutter > *:not(:last-child) {
|
|
27583
|
+
margin-bottom: var(--pf-l-stack--m-gutter--MarginBottom);
|
|
27584
|
+
}
|
|
27585
|
+
|
|
27586
27586
|
.pf-c-about-modal-box {
|
|
27587
27587
|
--pf-global--Color--100: var(--pf-global--Color--light-100);
|
|
27588
27588
|
--pf-global--Color--200: var(--pf-global--Color--light-200);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.242.
|
|
3
|
+
"version": "4.242.5",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"react": "^16.8 || ^17 || ^18",
|
|
71
71
|
"react-dom": "^16.8 || ^17 || ^18"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "a28a80621479fd846257e29d126489f18269cc0f"
|
|
74
74
|
}
|
|
@@ -11,125 +11,34 @@ import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
|
11
11
|
|
|
12
12
|
## Examples
|
|
13
13
|
|
|
14
|
-
Keyboard interaction patterns and a11y is implemented in the Tile demos, located in the [Demo section](/
|
|
14
|
+
Keyboard interaction patterns and a11y is implemented in the Tile demos, located in the [Demo section](/components/tile/react-demos).
|
|
15
15
|
|
|
16
16
|
### Basic
|
|
17
17
|
|
|
18
|
-
```
|
|
19
|
-
import React from 'react';
|
|
20
|
-
import { Tile } from '@patternfly/react-core';
|
|
21
|
-
|
|
22
|
-
<div role="listbox" aria-label="Basic tiles">
|
|
23
|
-
<Tile title="Default" isSelected={false} />
|
|
24
|
-
<Tile title="Selected" isSelected />
|
|
25
|
-
<Tile title="Disabled" isDisabled isSelected={false} />
|
|
26
|
-
</div>;
|
|
18
|
+
```ts file="./TileBasic.tsx"
|
|
27
19
|
```
|
|
28
20
|
|
|
29
21
|
### With subtext
|
|
30
22
|
|
|
31
|
-
```
|
|
32
|
-
import React from 'react';
|
|
33
|
-
import { Tile } from '@patternfly/react-core';
|
|
34
|
-
|
|
35
|
-
<div role="listbox" aria-label="Tiles with subtext">
|
|
36
|
-
<Tile title="Default" isSelected={false}>
|
|
37
|
-
Subtext goes here
|
|
38
|
-
</Tile>{' '}
|
|
39
|
-
<Tile title="Selected" isSelected>
|
|
40
|
-
Subtext goes here
|
|
41
|
-
</Tile>{' '}
|
|
42
|
-
<Tile title="Disabled" isDisabled isSelected={false}>
|
|
43
|
-
Subtext goes here
|
|
44
|
-
</Tile>
|
|
45
|
-
</div>;
|
|
23
|
+
```ts file="./TileWithSubtext.tsx"
|
|
46
24
|
```
|
|
47
25
|
|
|
48
26
|
### With icon
|
|
49
27
|
|
|
50
|
-
```
|
|
51
|
-
import React from 'react';
|
|
52
|
-
import { Tile } from '@patternfly/react-core';
|
|
53
|
-
import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
|
|
54
|
-
|
|
55
|
-
<div role="listbox" aria-label="Tiles with icon">
|
|
56
|
-
<Tile title="Default" icon={<PlusIcon />} isSelected={false}>
|
|
57
|
-
Subtext goes here
|
|
58
|
-
</Tile>{' '}
|
|
59
|
-
<Tile title="Selected" icon={<PlusIcon />} isSelected>
|
|
60
|
-
Subtext goes here
|
|
61
|
-
</Tile>{' '}
|
|
62
|
-
<Tile title="Disabled" icon={<PlusIcon />} isDisabled isSelected={false}>
|
|
63
|
-
Subtext goes here
|
|
64
|
-
</Tile>
|
|
65
|
-
</div>;
|
|
28
|
+
```ts file="./TileWithIcon.tsx"
|
|
66
29
|
```
|
|
67
30
|
|
|
68
31
|
### Stacked
|
|
69
32
|
|
|
70
|
-
```
|
|
71
|
-
import React from 'react';
|
|
72
|
-
import { Tile } from '@patternfly/react-core';
|
|
73
|
-
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
74
|
-
|
|
75
|
-
<div role="listbox" aria-label="Stacked tiles">
|
|
76
|
-
<Tile title="Default" icon={<BellIcon />} isStacked isSelected={false}>
|
|
77
|
-
Subtext goes here
|
|
78
|
-
</Tile>{' '}
|
|
79
|
-
<Tile title="Selected" icon={<BellIcon />} isStacked isSelected>
|
|
80
|
-
Subtext goes here
|
|
81
|
-
</Tile>{' '}
|
|
82
|
-
<Tile title="Disabled" icon={<BellIcon />} isStacked isDisabled isSelected={false}>
|
|
83
|
-
Subtext goes here
|
|
84
|
-
</Tile>
|
|
85
|
-
</div>;
|
|
33
|
+
```ts file="./TileStacked.tsx"
|
|
86
34
|
```
|
|
87
35
|
|
|
88
36
|
### Stacked with large icons
|
|
89
37
|
|
|
90
|
-
```
|
|
91
|
-
import React from 'react';
|
|
92
|
-
import { Tile } from '@patternfly/react-core';
|
|
93
|
-
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
94
|
-
|
|
95
|
-
<div role="listbox" aria-label="Stacked tiles with large icons">
|
|
96
|
-
<Tile title="Default" icon={<BellIcon />} isStacked isDisplayLarge isSelected={false}>
|
|
97
|
-
Subtext goes here
|
|
98
|
-
</Tile>{' '}
|
|
99
|
-
<Tile title="Selected" icon={<BellIcon />} isStacked isDisplayLarge isSelected>
|
|
100
|
-
Subtext goes here
|
|
101
|
-
</Tile>{' '}
|
|
102
|
-
<Tile title="Disabled" icon={<BellIcon />} isStacked isDisplayLarge isDisabled isSelected={false}>
|
|
103
|
-
Subtext goes here
|
|
104
|
-
</Tile>
|
|
105
|
-
</div>;
|
|
38
|
+
```ts file="./TileStackedWithLargeIcons.tsx"
|
|
106
39
|
```
|
|
107
40
|
|
|
108
41
|
### With extra content
|
|
109
42
|
|
|
110
|
-
```
|
|
111
|
-
import React from 'react';
|
|
112
|
-
import { Tile, Flex } from '@patternfly/react-core';
|
|
113
|
-
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
114
|
-
|
|
115
|
-
<div role="listbox" aria-label="Tiles with extra content">
|
|
116
|
-
<Flex>
|
|
117
|
-
<Flex flex={{ default: 'flex_1' }}>
|
|
118
|
-
<Tile title="Default" icon={<BellIcon />} isStacked isSelected={false}>
|
|
119
|
-
This is really really long subtext that goes on for so long that it has to wrap to the next line. This is really
|
|
120
|
-
really long subtext that goes on for so long that it has to wrap to the next line.
|
|
121
|
-
</Tile>
|
|
122
|
-
</Flex>
|
|
123
|
-
<Flex flex={{ default: 'flex_1' }}>
|
|
124
|
-
<Tile title="Selected" icon={<BellIcon />} isStacked isSelected>
|
|
125
|
-
This is really really long subtext that goes on for so long that it has to wrap to the next line.
|
|
126
|
-
</Tile>
|
|
127
|
-
</Flex>
|
|
128
|
-
<Flex flex={{ default: 'flex_1' }}>
|
|
129
|
-
<Tile title="Disabled" icon={<BellIcon />} isStacked isDisabled isSelected={false}>
|
|
130
|
-
Subtext goes here
|
|
131
|
-
</Tile>
|
|
132
|
-
</Flex>
|
|
133
|
-
</Flex>
|
|
134
|
-
</div>;
|
|
43
|
+
```ts file="./TileWithExtraContent.tsx"
|
|
135
44
|
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tile } from '@patternfly/react-core';
|
|
3
|
+
|
|
4
|
+
export const TileBasic: React.FunctionComponent = () => (
|
|
5
|
+
<div role="listbox" aria-label="Basic tiles">
|
|
6
|
+
<Tile title="Default" isSelected={false} />
|
|
7
|
+
<Tile title="Selected" isSelected />
|
|
8
|
+
<Tile title="Disabled" isDisabled isSelected={false} />
|
|
9
|
+
</div>
|
|
10
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tile } from '@patternfly/react-core';
|
|
3
|
+
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
4
|
+
|
|
5
|
+
export const TileStacked: React.FunctionComponent = () => (
|
|
6
|
+
<div role="listbox" aria-label="Stacked tiles">
|
|
7
|
+
<Tile title="Default" icon={<BellIcon />} isStacked isSelected={false}>
|
|
8
|
+
Subtext goes here
|
|
9
|
+
</Tile>{' '}
|
|
10
|
+
<Tile title="Selected" icon={<BellIcon />} isStacked isSelected>
|
|
11
|
+
Subtext goes here
|
|
12
|
+
</Tile>{' '}
|
|
13
|
+
<Tile title="Disabled" icon={<BellIcon />} isStacked isDisabled isSelected={false}>
|
|
14
|
+
Subtext goes here
|
|
15
|
+
</Tile>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tile } from '@patternfly/react-core';
|
|
3
|
+
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
4
|
+
|
|
5
|
+
export const TileStackedWithLargeIcons: React.FunctionComponent = () => (
|
|
6
|
+
<div role="listbox" aria-label="Stacked tiles with large icons">
|
|
7
|
+
<Tile title="Default" icon={<BellIcon />} isStacked isDisplayLarge isSelected={false}>
|
|
8
|
+
Subtext goes here
|
|
9
|
+
</Tile>{' '}
|
|
10
|
+
<Tile title="Selected" icon={<BellIcon />} isStacked isDisplayLarge isSelected>
|
|
11
|
+
Subtext goes here
|
|
12
|
+
</Tile>{' '}
|
|
13
|
+
<Tile title="Disabled" icon={<BellIcon />} isStacked isDisplayLarge isDisabled isSelected={false}>
|
|
14
|
+
Subtext goes here
|
|
15
|
+
</Tile>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tile, Flex } from '@patternfly/react-core';
|
|
3
|
+
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
4
|
+
|
|
5
|
+
export const TileWithExtraContent: React.FunctionComponent = () => (
|
|
6
|
+
<div role="listbox" aria-label="Tiles with extra content">
|
|
7
|
+
<Flex>
|
|
8
|
+
<Flex flex={{ default: 'flex_1' }}>
|
|
9
|
+
<Tile title="Default" icon={<BellIcon />} isStacked isSelected={false}>
|
|
10
|
+
This is really really long subtext that goes on for so long that it has to wrap to the next line. This is
|
|
11
|
+
really really long subtext that goes on for so long that it has to wrap to the next line.
|
|
12
|
+
</Tile>
|
|
13
|
+
</Flex>
|
|
14
|
+
<Flex flex={{ default: 'flex_1' }}>
|
|
15
|
+
<Tile title="Selected" icon={<BellIcon />} isStacked isSelected>
|
|
16
|
+
This is really really long subtext that goes on for so long that it has to wrap to the next line.
|
|
17
|
+
</Tile>
|
|
18
|
+
</Flex>
|
|
19
|
+
<Flex flex={{ default: 'flex_1' }}>
|
|
20
|
+
<Tile title="Disabled" icon={<BellIcon />} isStacked isDisabled isSelected={false}>
|
|
21
|
+
Subtext goes here
|
|
22
|
+
</Tile>
|
|
23
|
+
</Flex>
|
|
24
|
+
</Flex>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tile } from '@patternfly/react-core';
|
|
3
|
+
import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
|
|
4
|
+
|
|
5
|
+
export const TileWithIcon: React.FunctionComponent = () => (
|
|
6
|
+
<div role="listbox" aria-label="Tiles with icon">
|
|
7
|
+
<Tile title="Default" icon={<PlusIcon />} isSelected={false}>
|
|
8
|
+
Subtext goes here
|
|
9
|
+
</Tile>{' '}
|
|
10
|
+
<Tile title="Selected" icon={<PlusIcon />} isSelected>
|
|
11
|
+
Subtext goes here
|
|
12
|
+
</Tile>{' '}
|
|
13
|
+
<Tile title="Disabled" icon={<PlusIcon />} isDisabled isSelected={false}>
|
|
14
|
+
Subtext goes here
|
|
15
|
+
</Tile>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tile } from '@patternfly/react-core';
|
|
3
|
+
|
|
4
|
+
export const TileWithSubtext: React.FunctionComponent = () => (
|
|
5
|
+
<div role="listbox" aria-label="Tiles with subtext">
|
|
6
|
+
<Tile title="Default" isSelected={false}>
|
|
7
|
+
Subtext goes here
|
|
8
|
+
</Tile>{' '}
|
|
9
|
+
<Tile title="Selected" isSelected>
|
|
10
|
+
Subtext goes here
|
|
11
|
+
</Tile>{' '}
|
|
12
|
+
<Tile title="Disabled" isDisabled isSelected={false}>
|
|
13
|
+
Subtext goes here
|
|
14
|
+
</Tile>
|
|
15
|
+
</div>
|
|
16
|
+
);
|
package/src/demos/TileDemo.md
CHANGED
|
@@ -27,10 +27,10 @@ const TileSingleSelect: React.FunctionComponent = () => {
|
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
29
|
<div role="listbox" aria-label="Single selection tiles">
|
|
30
|
-
<Tile title="Tile 1" id="single-select-tile-1" onClick={onSelect} onKeyDown={onKeyDown} isSelected={selectedId === 'tile-1'} />
|
|
31
|
-
<Tile title="Tile 2" id="single-select-tile-2" onClick={onSelect} onKeyDown={onKeyDown} isSelected={selectedId === 'tile-2'} />
|
|
32
|
-
<Tile title="Tile 3" id="single-select-tile-3" isDisabled isSelected={selectedId === 'tile-3'} />
|
|
33
|
-
<Tile title="Tile 4" id="single-select-tile-4" onClick={onSelect} onKeyDown={onKeyDown} isSelected={selectedId === 'tile-4'} />
|
|
30
|
+
<Tile title="Tile 1" id="single-select-tile-1" onClick={onSelect} onKeyDown={onKeyDown} isSelected={selectedId === 'single-select-tile-1'} />
|
|
31
|
+
<Tile title="Tile 2" id="single-select-tile-2" onClick={onSelect} onKeyDown={onKeyDown} isSelected={selectedId === 'single-select-tile-2'} />
|
|
32
|
+
<Tile title="Tile 3" id="single-select-tile-3" isDisabled isSelected={selectedId === 'single-select-tile-3'} />
|
|
33
|
+
<Tile title="Tile 4" id="single-select-tile-4" onClick={onSelect} onKeyDown={onKeyDown} isSelected={selectedId === 'single-select-tile-4'} />
|
|
34
34
|
</div>
|
|
35
35
|
);
|
|
36
36
|
};
|
|
@@ -71,14 +71,14 @@ const TileMultiSelect: React.FunctionComponent = () => {
|
|
|
71
71
|
id="multiselect-tile-1"
|
|
72
72
|
onClick={onSelect}
|
|
73
73
|
onKeyDown={onKeyDown}
|
|
74
|
-
isSelected={selectedIds.includes('tile-1')}
|
|
74
|
+
isSelected={selectedIds.includes('multiselect-tile-1')}
|
|
75
75
|
/>
|
|
76
76
|
<Tile
|
|
77
77
|
title="Tile 2"
|
|
78
78
|
id="multiselect-tile-2"
|
|
79
79
|
onClick={onSelect}
|
|
80
80
|
onKeyDown={onKeyDown}
|
|
81
|
-
isSelected={selectedIds.includes('tile-2')}
|
|
81
|
+
isSelected={selectedIds.includes('multiselect-tile-2')}
|
|
82
82
|
/>
|
|
83
83
|
<Tile title="Tile 3" id="multiselect-tile-3" isDisabled />
|
|
84
84
|
<Tile
|
|
@@ -86,7 +86,7 @@ const TileMultiSelect: React.FunctionComponent = () => {
|
|
|
86
86
|
id="multiselect-tile-4"
|
|
87
87
|
onClick={onSelect}
|
|
88
88
|
onKeyDown={onKeyDown}
|
|
89
|
-
isSelected={selectedIds.includes('tile-4')}
|
|
89
|
+
isSelected={selectedIds.includes('multiselect-tile-4')}
|
|
90
90
|
/>
|
|
91
91
|
</div>
|
|
92
92
|
);
|