@patternfly/react-core 4.221.7 → 4.221.8

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 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.221.8 (2022-06-08)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-core
9
+
10
+
11
+
12
+
13
+
6
14
  ## 4.221.7 (2022-06-07)
7
15
 
8
16
  **Note:** Version bump only for package @patternfly/react-core
@@ -1904,113 +1904,6 @@ textarea.pf-c-form-control {
1904
1904
  max-width: 100%;
1905
1905
  }
1906
1906
 
1907
- .pf-c-breadcrumb {
1908
- --pf-c-breadcrumb__item--FontSize: var(--pf-global--FontSize--sm);
1909
- --pf-c-breadcrumb__item--LineHeight: var(--pf-global--LineHeight--sm);
1910
- --pf-c-breadcrumb__item--MarginRight: var(--pf-global--spacer--sm);
1911
- --pf-c-breadcrumb__item-divider--Color: var(--pf-global--BorderColor--200);
1912
- --pf-c-breadcrumb__item-divider--MarginRight: var(--pf-global--spacer--sm);
1913
- --pf-c-breadcrumb__item-divider--FontSize: var(--pf-global--FontSize--sm);
1914
- --pf-c-breadcrumb__link--Color: var(--pf-global--link--Color);
1915
- --pf-c-breadcrumb__link--TextDecoration: var(--pf-global--link--TextDecoration);
1916
- --pf-c-breadcrumb__link--hover--Color: var(--pf-global--link--Color--hover);
1917
- --pf-c-breadcrumb__link--hover--TextDecoration: var(--pf-global--link--TextDecoration--hover);
1918
- --pf-c-breadcrumb__link--m-current--Color: var(--pf-global--Color--100);
1919
- --pf-c-breadcrumb__heading--FontSize: var(--pf-global--FontSize--sm);
1920
- --pf-c-breadcrumb__dropdown--MarginTop: calc(var(--pf-global--spacer--form-element) * -1);
1921
- --pf-c-breadcrumb__dropdown--MarginRight: calc(var(--pf-c-breadcrumb__item--MarginRight) * -1);
1922
- --pf-c-breadcrumb__dropdown--MarginBottom: calc(var(--pf-global--spacer--form-element) * -1);
1923
- --pf-c-breadcrumb__dropdown--MarginLeft: calc(var(--pf-c-breadcrumb__item-divider--MarginRight) * -1);
1924
- --pf-c-breadcrumb__dropdown--c-dropdown__toggle--LineHeight: var(--pf-global--LineHeight--sm);
1925
- display: inline-flex;
1926
- }
1927
-
1928
- .pf-c-breadcrumb__list {
1929
- display: flex;
1930
- flex-wrap: wrap;
1931
- align-items: center;
1932
- }
1933
-
1934
- .pf-c-breadcrumb__item {
1935
- display: flex;
1936
- align-items: baseline;
1937
- font-size: var(--pf-c-breadcrumb__item--FontSize);
1938
- font-weight: var(--pf-c-breadcrumb__item--FontWeight);
1939
- line-height: var(--pf-c-breadcrumb__item--LineHeight);
1940
- white-space: nowrap;
1941
- list-style: none;
1942
- }
1943
-
1944
- .pf-c-breadcrumb__item:not(:last-child) {
1945
- margin-right: var(--pf-c-breadcrumb__item--MarginRight);
1946
- }
1947
-
1948
- .pf-c-breadcrumb__item-divider {
1949
- margin-right: var(--pf-c-breadcrumb__item-divider--MarginRight);
1950
- font-size: var(--pf-c-breadcrumb__item-divider--FontSize);
1951
- line-height: 1;
1952
- color: var(--pf-c-breadcrumb__item-divider--Color);
1953
- }
1954
-
1955
- .pf-c-breadcrumb__link {
1956
- font-size: inherit;
1957
- font-weight: var(--pf-c-breadcrumb__link--FontWeight);
1958
- line-height: inherit;
1959
- color: var(--pf-c-breadcrumb__link--Color);
1960
- text-decoration: var(--pf-c-breadcrumb__link--TextDecoration);
1961
- word-break: break-word;
1962
- }
1963
-
1964
- .pf-c-breadcrumb__link:hover {
1965
- --pf-c-breadcrumb__link--Color: var(--pf-c-breadcrumb__link--hover--Color);
1966
- --pf-c-breadcrumb__link--TextDecoration: var(--pf-c-breadcrumb__link--hover--TextDecoration);
1967
- }
1968
-
1969
- .pf-c-breadcrumb__link.pf-m-current {
1970
- cursor: default;
1971
- }
1972
-
1973
- .pf-c-breadcrumb__link.pf-m-current, .pf-c-breadcrumb__link.pf-m-current:hover {
1974
- color: var(--pf-c-breadcrumb__link--m-current--Color);
1975
- text-decoration: none;
1976
- }
1977
-
1978
- button.pf-c-breadcrumb__link {
1979
- border: none;
1980
- }
1981
-
1982
- .pf-c-breadcrumb__dropdown {
1983
- margin: var(--pf-c-breadcrumb__dropdown--MarginTop) var(--pf-c-breadcrumb__dropdown--MarginRight) var(--pf-c-breadcrumb__dropdown--MarginBottom) var(--pf-c-breadcrumb__dropdown--MarginLeft);
1984
- }
1985
-
1986
- .pf-c-breadcrumb__dropdown .pf-c-dropdown__toggle {
1987
- line-height: var(--pf-c-breadcrumb__dropdown--c-dropdown__toggle--LineHeight);
1988
- }
1989
-
1990
- .pf-c-breadcrumb__heading {
1991
- display: inline;
1992
- font-size: var(--pf-c-breadcrumb__heading--FontSize);
1993
- }
1994
-
1995
- .pf-c-breadcrumb__link,
1996
- .pf-c-breadcrumb__heading {
1997
- white-space: normal;
1998
- }
1999
-
2000
- .pf-m-overpass-font .pf-c-breadcrumb__link,
2001
- .pf-m-overpass-font .pf-c-breadcrumb__item {
2002
- font-weight: var(--pf-global--FontWeight--semi-bold);
2003
- }
2004
-
2005
- .pf-c-breadcrumb__list > :first-child .pf-c-breadcrumb__item-divider {
2006
- display: none;
2007
- visibility: hidden;
2008
- }
2009
-
2010
- :where(.pf-theme-dark) .pf-c-breadcrumb {
2011
- --pf-c-breadcrumb__item-divider--Color: var(--pf-global--BorderColor--100);
2012
- }
2013
-
2014
1907
  .pf-c-button {
2015
1908
  --pf-c-button--PaddingTop: var(--pf-global--spacer--form-element);
2016
1909
  --pf-c-button--PaddingRight: var(--pf-global--spacer--md);
@@ -3244,6 +3137,113 @@ label.pf-c-check, .pf-c-check__label,
3244
3137
  cursor: not-allowed;
3245
3138
  }
3246
3139
 
3140
+ .pf-c-breadcrumb {
3141
+ --pf-c-breadcrumb__item--FontSize: var(--pf-global--FontSize--sm);
3142
+ --pf-c-breadcrumb__item--LineHeight: var(--pf-global--LineHeight--sm);
3143
+ --pf-c-breadcrumb__item--MarginRight: var(--pf-global--spacer--sm);
3144
+ --pf-c-breadcrumb__item-divider--Color: var(--pf-global--BorderColor--200);
3145
+ --pf-c-breadcrumb__item-divider--MarginRight: var(--pf-global--spacer--sm);
3146
+ --pf-c-breadcrumb__item-divider--FontSize: var(--pf-global--FontSize--sm);
3147
+ --pf-c-breadcrumb__link--Color: var(--pf-global--link--Color);
3148
+ --pf-c-breadcrumb__link--TextDecoration: var(--pf-global--link--TextDecoration);
3149
+ --pf-c-breadcrumb__link--hover--Color: var(--pf-global--link--Color--hover);
3150
+ --pf-c-breadcrumb__link--hover--TextDecoration: var(--pf-global--link--TextDecoration--hover);
3151
+ --pf-c-breadcrumb__link--m-current--Color: var(--pf-global--Color--100);
3152
+ --pf-c-breadcrumb__heading--FontSize: var(--pf-global--FontSize--sm);
3153
+ --pf-c-breadcrumb__dropdown--MarginTop: calc(var(--pf-global--spacer--form-element) * -1);
3154
+ --pf-c-breadcrumb__dropdown--MarginRight: calc(var(--pf-c-breadcrumb__item--MarginRight) * -1);
3155
+ --pf-c-breadcrumb__dropdown--MarginBottom: calc(var(--pf-global--spacer--form-element) * -1);
3156
+ --pf-c-breadcrumb__dropdown--MarginLeft: calc(var(--pf-c-breadcrumb__item-divider--MarginRight) * -1);
3157
+ --pf-c-breadcrumb__dropdown--c-dropdown__toggle--LineHeight: var(--pf-global--LineHeight--sm);
3158
+ display: inline-flex;
3159
+ }
3160
+
3161
+ .pf-c-breadcrumb__list {
3162
+ display: flex;
3163
+ flex-wrap: wrap;
3164
+ align-items: center;
3165
+ }
3166
+
3167
+ .pf-c-breadcrumb__item {
3168
+ display: flex;
3169
+ align-items: baseline;
3170
+ font-size: var(--pf-c-breadcrumb__item--FontSize);
3171
+ font-weight: var(--pf-c-breadcrumb__item--FontWeight);
3172
+ line-height: var(--pf-c-breadcrumb__item--LineHeight);
3173
+ white-space: nowrap;
3174
+ list-style: none;
3175
+ }
3176
+
3177
+ .pf-c-breadcrumb__item:not(:last-child) {
3178
+ margin-right: var(--pf-c-breadcrumb__item--MarginRight);
3179
+ }
3180
+
3181
+ .pf-c-breadcrumb__item-divider {
3182
+ margin-right: var(--pf-c-breadcrumb__item-divider--MarginRight);
3183
+ font-size: var(--pf-c-breadcrumb__item-divider--FontSize);
3184
+ line-height: 1;
3185
+ color: var(--pf-c-breadcrumb__item-divider--Color);
3186
+ }
3187
+
3188
+ .pf-c-breadcrumb__link {
3189
+ font-size: inherit;
3190
+ font-weight: var(--pf-c-breadcrumb__link--FontWeight);
3191
+ line-height: inherit;
3192
+ color: var(--pf-c-breadcrumb__link--Color);
3193
+ text-decoration: var(--pf-c-breadcrumb__link--TextDecoration);
3194
+ word-break: break-word;
3195
+ }
3196
+
3197
+ .pf-c-breadcrumb__link:hover {
3198
+ --pf-c-breadcrumb__link--Color: var(--pf-c-breadcrumb__link--hover--Color);
3199
+ --pf-c-breadcrumb__link--TextDecoration: var(--pf-c-breadcrumb__link--hover--TextDecoration);
3200
+ }
3201
+
3202
+ .pf-c-breadcrumb__link.pf-m-current {
3203
+ cursor: default;
3204
+ }
3205
+
3206
+ .pf-c-breadcrumb__link.pf-m-current, .pf-c-breadcrumb__link.pf-m-current:hover {
3207
+ color: var(--pf-c-breadcrumb__link--m-current--Color);
3208
+ text-decoration: none;
3209
+ }
3210
+
3211
+ button.pf-c-breadcrumb__link {
3212
+ border: none;
3213
+ }
3214
+
3215
+ .pf-c-breadcrumb__dropdown {
3216
+ margin: var(--pf-c-breadcrumb__dropdown--MarginTop) var(--pf-c-breadcrumb__dropdown--MarginRight) var(--pf-c-breadcrumb__dropdown--MarginBottom) var(--pf-c-breadcrumb__dropdown--MarginLeft);
3217
+ }
3218
+
3219
+ .pf-c-breadcrumb__dropdown .pf-c-dropdown__toggle {
3220
+ line-height: var(--pf-c-breadcrumb__dropdown--c-dropdown__toggle--LineHeight);
3221
+ }
3222
+
3223
+ .pf-c-breadcrumb__heading {
3224
+ display: inline;
3225
+ font-size: var(--pf-c-breadcrumb__heading--FontSize);
3226
+ }
3227
+
3228
+ .pf-c-breadcrumb__link,
3229
+ .pf-c-breadcrumb__heading {
3230
+ white-space: normal;
3231
+ }
3232
+
3233
+ .pf-m-overpass-font .pf-c-breadcrumb__link,
3234
+ .pf-m-overpass-font .pf-c-breadcrumb__item {
3235
+ font-weight: var(--pf-global--FontWeight--semi-bold);
3236
+ }
3237
+
3238
+ .pf-c-breadcrumb__list > :first-child .pf-c-breadcrumb__item-divider {
3239
+ display: none;
3240
+ visibility: hidden;
3241
+ }
3242
+
3243
+ :where(.pf-theme-dark) .pf-c-breadcrumb {
3244
+ --pf-c-breadcrumb__item-divider--Color: var(--pf-global--BorderColor--100);
3245
+ }
3246
+
3247
3247
  .pf-c-chip {
3248
3248
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
3249
3249
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
@@ -3439,44 +3439,6 @@ label.pf-c-check, .pf-c-check__label,
3439
3439
  margin-bottom: var(--pf-c-chip-group__close--MarginBottom);
3440
3440
  }
3441
3441
 
3442
- .pf-c-code-block {
3443
- --pf-c-code-block--BackgroundColor: var(--pf-global--BackgroundColor--200);
3444
- --pf-c-code-block__header--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
3445
- --pf-c-code-block__header--BorderBottomColor: var(--pf-global--BorderColor--100);
3446
- --pf-c-code-block__content--PaddingTop: var(--pf-global--spacer--md);
3447
- --pf-c-code-block__content--PaddingRight: var(--pf-global--spacer--md);
3448
- --pf-c-code-block__content--PaddingBottom: var(--pf-global--spacer--md);
3449
- --pf-c-code-block__content--PaddingLeft: var(--pf-global--spacer--md);
3450
- --pf-c-code-block__pre--FontFamily: var(--pf-global--FontFamily--monospace);
3451
- --pf-c-code-block__pre--FontSize: var(--pf-global--FontSize--sm);
3452
- background-color: var(--pf-c-code-block--BackgroundColor);
3453
- }
3454
-
3455
- .pf-c-code-block__header {
3456
- display: flex;
3457
- border-bottom: var(--pf-c-code-block__header--BorderBottomWidth) solid var(--pf-c-code-block__header--BorderBottomColor);
3458
- }
3459
-
3460
- .pf-c-code-block__actions {
3461
- display: flex;
3462
- margin-left: auto;
3463
- }
3464
-
3465
- .pf-c-code-block__content {
3466
- padding: var(--pf-c-code-block__content--PaddingTop) var(--pf-c-code-block__content--PaddingRight) var(--pf-c-code-block__content--PaddingBottom) var(--pf-c-code-block__content--PaddingLeft);
3467
- }
3468
-
3469
- .pf-c-code-block__pre {
3470
- font-family: var(--pf-c-code-block__pre--FontFamily);
3471
- font-size: var(--pf-c-code-block__pre--FontSize);
3472
- overflow-wrap: break-word;
3473
- white-space: pre-wrap;
3474
- }
3475
-
3476
- .pf-c-code-block__code {
3477
- font-family: var(--pf-c-code-block__code--FontFamily, inherit);
3478
- }
3479
-
3480
3442
  .pf-c-clipboard-copy {
3481
3443
  --pf-c-clipboard-copy__toggle-icon--Transition: .2s ease-in 0s;
3482
3444
  --pf-c-clipboard-copy--m-expanded__toggle-icon--Rotate: 90deg;
@@ -3587,6 +3549,44 @@ label.pf-c-check, .pf-c-check__label,
3587
3549
  border: 0;
3588
3550
  }
3589
3551
 
3552
+ .pf-c-code-block {
3553
+ --pf-c-code-block--BackgroundColor: var(--pf-global--BackgroundColor--200);
3554
+ --pf-c-code-block__header--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
3555
+ --pf-c-code-block__header--BorderBottomColor: var(--pf-global--BorderColor--100);
3556
+ --pf-c-code-block__content--PaddingTop: var(--pf-global--spacer--md);
3557
+ --pf-c-code-block__content--PaddingRight: var(--pf-global--spacer--md);
3558
+ --pf-c-code-block__content--PaddingBottom: var(--pf-global--spacer--md);
3559
+ --pf-c-code-block__content--PaddingLeft: var(--pf-global--spacer--md);
3560
+ --pf-c-code-block__pre--FontFamily: var(--pf-global--FontFamily--monospace);
3561
+ --pf-c-code-block__pre--FontSize: var(--pf-global--FontSize--sm);
3562
+ background-color: var(--pf-c-code-block--BackgroundColor);
3563
+ }
3564
+
3565
+ .pf-c-code-block__header {
3566
+ display: flex;
3567
+ border-bottom: var(--pf-c-code-block__header--BorderBottomWidth) solid var(--pf-c-code-block__header--BorderBottomColor);
3568
+ }
3569
+
3570
+ .pf-c-code-block__actions {
3571
+ display: flex;
3572
+ margin-left: auto;
3573
+ }
3574
+
3575
+ .pf-c-code-block__content {
3576
+ padding: var(--pf-c-code-block__content--PaddingTop) var(--pf-c-code-block__content--PaddingRight) var(--pf-c-code-block__content--PaddingBottom) var(--pf-c-code-block__content--PaddingLeft);
3577
+ }
3578
+
3579
+ .pf-c-code-block__pre {
3580
+ font-family: var(--pf-c-code-block__pre--FontFamily);
3581
+ font-size: var(--pf-c-code-block__pre--FontSize);
3582
+ overflow-wrap: break-word;
3583
+ white-space: pre-wrap;
3584
+ }
3585
+
3586
+ .pf-c-code-block__code {
3587
+ font-family: var(--pf-c-code-block__code--FontFamily, inherit);
3588
+ }
3589
+
3590
3590
  .pf-c-context-selector__menu {
3591
3591
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
3592
3592
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.221.7",
3
+ "version": "4.221.8",
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",
@@ -34,9 +34,9 @@
34
34
  "generate": "node scripts/copyStyles.js"
35
35
  },
36
36
  "dependencies": {
37
- "@patternfly/react-icons": "^4.72.7",
38
- "@patternfly/react-styles": "^4.71.7",
39
- "@patternfly/react-tokens": "^4.73.7",
37
+ "@patternfly/react-icons": "^4.72.8",
38
+ "@patternfly/react-styles": "^4.71.8",
39
+ "@patternfly/react-tokens": "^4.73.8",
40
40
  "focus-trap": "6.9.2",
41
41
  "react-dropzone": "9.0.0",
42
42
  "tippy.js": "5.1.2",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.8.0 || ^17.0.0",
61
61
  "react-dom": "^16.8.0 || ^17.0.0"
62
62
  },
63
- "gitHead": "9f9b98091cf0361abdc23cd00cc5652d4421bdb4"
63
+ "gitHead": "6f2f06b9e9c41575fabd48ca205fb17fbba8cde0"
64
64
  }
@@ -9,222 +9,36 @@ import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
9
9
 
10
10
  ## Examples
11
11
  ### Basic
12
- ```js
13
- import React from 'react';
14
- import {
15
- Title,
16
- Button,
17
- EmptyState,
18
- EmptyStateIcon,
19
- EmptyStateBody,
20
- EmptyStateSecondaryActions
21
- } from '@patternfly/react-core';
22
- import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
23
12
 
24
- <EmptyState>
25
- <EmptyStateIcon icon={CubesIcon} />
26
- <Title headingLevel="h4" size="lg">
27
- Empty state
28
- </Title>
29
- <EmptyStateBody>
30
- This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
31
- enough to meet a variety of needs.
32
- </EmptyStateBody>
33
- <Button variant="primary">Primary action</Button>
34
- <EmptyStateSecondaryActions>
35
- <Button variant="link">Multiple</Button>
36
- <Button variant="link">Action Buttons</Button>
37
- <Button variant="link">Can</Button>
38
- <Button variant="link">Go here</Button>
39
- <Button variant="link">In the secondary</Button>
40
- <Button variant="link">Action area</Button>
41
- </EmptyStateSecondaryActions>
42
- </EmptyState>
13
+ ```ts file="EmptyStateBasic.tsx"
43
14
  ```
44
15
 
45
16
  ### Extra small
46
- ```js
47
- import React from 'react';
48
- import {
49
- Title,
50
- Button,
51
- EmptyState,
52
- EmptyStateVariant,
53
- EmptyStateBody,
54
- EmptyStateSecondaryActions
55
- } from '@patternfly/react-core';
56
17
 
57
- <EmptyState variant={EmptyStateVariant.xs}>
58
- <Title headingLevel="h4" size="md">
59
- Empty state
60
- </Title>
61
- <EmptyStateBody>
62
- This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
63
- enough to meet a variety of needs.
64
- </EmptyStateBody>
65
- <EmptyStateSecondaryActions>
66
- <Button variant="link">Multiple</Button>
67
- <Button variant="link">Action Buttons</Button>
68
- <Button variant="link">Can</Button>
69
- <Button variant="link">Go here</Button>
70
- <Button variant="link">In the secondary</Button>
71
- <Button variant="link">Action area</Button>
72
- </EmptyStateSecondaryActions>
73
- </EmptyState>
18
+ ```ts file="EmptyStateExtraSmall.tsx"
74
19
  ```
75
20
 
76
21
  ### Small
77
- ```js
78
- import React from 'react';
79
- import {
80
- Title,
81
- Button,
82
- EmptyState,
83
- EmptyStateVariant,
84
- EmptyStateIcon,
85
- EmptyStateBody,
86
- EmptyStateSecondaryActions
87
- } from '@patternfly/react-core';
88
- import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
89
22
 
90
- <EmptyState variant={EmptyStateVariant.small}>
91
- <EmptyStateIcon icon={CubesIcon} />
92
- <Title headingLevel="h4" size="lg">
93
- Empty state
94
- </Title>
95
- <EmptyStateBody>
96
- This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
97
- enough to meet a variety of needs.
98
- </EmptyStateBody>
99
- <Button variant="primary">Primary action</Button>
100
- <EmptyStateSecondaryActions>
101
- <Button variant="link">Multiple</Button>
102
- <Button variant="link">Action Buttons</Button>
103
- <Button variant="link">Can</Button>
104
- <Button variant="link">Go here</Button>
105
- <Button variant="link">In the secondary</Button>
106
- <Button variant="link">Action area</Button>
107
- </EmptyStateSecondaryActions>
108
- </EmptyState>
23
+ ```ts file="EmptyStateSmall.tsx"
109
24
  ```
110
25
 
111
26
  ### Large
112
- ```js
113
- import React from 'react';
114
- import {
115
- Title,
116
- Button,
117
- EmptyState,
118
- EmptyStateVariant,
119
- EmptyStateIcon,
120
- EmptyStateBody,
121
- EmptyStateSecondaryActions
122
- } from '@patternfly/react-core';
123
- import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
124
27
 
125
- <EmptyState variant={EmptyStateVariant.large}>
126
- <EmptyStateIcon icon={CubesIcon} />
127
- <Title headingLevel="h4" size="lg">
128
- Empty state
129
- </Title>
130
- <EmptyStateBody>
131
- This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
132
- enough to meet a variety of needs.
133
- </EmptyStateBody>
134
- <Button variant="primary">Primary action</Button>
135
- <EmptyStateSecondaryActions>
136
- <Button variant="link">Multiple</Button>
137
- <Button variant="link">Action Buttons</Button>
138
- <Button variant="link">Can</Button>
139
- <Button variant="link">Go here</Button>
140
- <Button variant="link">In the secondary</Button>
141
- <Button variant="link">Action area</Button>
142
- </EmptyStateSecondaryActions>
143
- </EmptyState>
28
+ ```ts file="EmptyStateLarge.tsx"
144
29
  ```
145
30
 
146
31
  ### Extra large
147
- ```js
148
- import React from 'react';
149
- import {
150
- Title,
151
- Button,
152
- EmptyState,
153
- EmptyStateVariant,
154
- EmptyStateIcon,
155
- EmptyStateBody,
156
- EmptyStateSecondaryActions
157
- } from '@patternfly/react-core';
158
- import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
159
32
 
160
- <EmptyState variant={EmptyStateVariant.xl}>
161
- <EmptyStateIcon icon={CubesIcon} />
162
- <Title headingLevel="h5" size="4xl">
163
- Empty state
164
- </Title>
165
- <EmptyStateBody>
166
- This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
167
- enough to meet a variety of needs.
168
- </EmptyStateBody>
169
- <Button variant="primary">Primary action</Button>
170
- <EmptyStateSecondaryActions>
171
- <Button variant="link">Multiple</Button>
172
- <Button variant="link">Action Buttons</Button>
173
- <Button variant="link">Can</Button>
174
- <Button variant="link">Go here</Button>
175
- <Button variant="link">In the secondary</Button>
176
- <Button variant="link">Action area</Button>
177
- </EmptyStateSecondaryActions>
178
- </EmptyState>
33
+ ```ts file="EmptyStateExtraLarge.tsx"
179
34
  ```
180
35
 
181
36
  ### Spinner
182
- ```js
183
- import React from 'react';
184
- import {
185
- Title,
186
- EmptyState,
187
- EmptyStateIcon,
188
- Spinner
189
- } from '@patternfly/react-core';
190
37
 
191
-
192
- EmptyStateSpinner = () => {
193
- return (
194
- <EmptyState>
195
- <EmptyStateIcon variant="container" component={Spinner} />
196
- <Title size="lg" headingLevel="h4">
197
- Loading
198
- </Title>
199
- </EmptyState>
200
- );
201
- }
38
+ ```ts file="EmptyStateSpinner.tsx"
202
39
  ```
203
40
 
204
41
  ### No match found
205
- ```js
206
- import React from 'react';
207
- import {
208
- Title,
209
- Button,
210
- EmptyState,
211
- EmptyStatePrimary,
212
- EmptyStateIcon,
213
- EmptyStateBody
214
- } from '@patternfly/react-core';
215
- import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
216
-
217
42
 
218
- <EmptyState>
219
- <EmptyStateIcon icon={SearchIcon} />
220
- <Title size="lg" headingLevel="h4">
221
- No results found
222
- </Title>
223
- <EmptyStateBody>
224
- No results match the filter criteria. Clear all filters and try again.
225
- </EmptyStateBody>
226
- <EmptyStatePrimary>
227
- <Button variant="link">Clear all filters</Button>
228
- </EmptyStatePrimary>
229
- </EmptyState>
43
+ ```ts file="EmptyStateNoMatchFound.tsx"
230
44
  ```
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import {
3
+ Title,
4
+ Button,
5
+ EmptyState,
6
+ EmptyStateIcon,
7
+ EmptyStateBody,
8
+ EmptyStateSecondaryActions
9
+ } from '@patternfly/react-core';
10
+ import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
11
+
12
+ export const EmptyStateBasic: React.FunctionComponent = () => (
13
+ <EmptyState>
14
+ <EmptyStateIcon icon={CubesIcon} />
15
+ <Title headingLevel="h4" size="lg">
16
+ Empty state
17
+ </Title>
18
+ <EmptyStateBody>
19
+ This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
20
+ enough to meet a variety of needs.
21
+ </EmptyStateBody>
22
+ <Button variant="primary">Primary action</Button>
23
+ <EmptyStateSecondaryActions>
24
+ <Button variant="link">Multiple</Button>
25
+ <Button variant="link">Action Buttons</Button>
26
+ <Button variant="link">Can</Button>
27
+ <Button variant="link">Go here</Button>
28
+ <Button variant="link">In the secondary</Button>
29
+ <Button variant="link">Action area</Button>
30
+ </EmptyStateSecondaryActions>
31
+ </EmptyState>
32
+ );
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import {
3
+ Title,
4
+ Button,
5
+ EmptyState,
6
+ EmptyStateVariant,
7
+ EmptyStateIcon,
8
+ EmptyStateBody,
9
+ EmptyStateSecondaryActions
10
+ } from '@patternfly/react-core';
11
+ import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
12
+
13
+ export const EmptyStateExtraLarge: React.FunctionComponent = () => (
14
+ <EmptyState variant={EmptyStateVariant.xl}>
15
+ <EmptyStateIcon icon={CubesIcon} />
16
+ <Title headingLevel="h5" size="4xl">
17
+ Empty state
18
+ </Title>
19
+ <EmptyStateBody>
20
+ This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
21
+ enough to meet a variety of needs.
22
+ </EmptyStateBody>
23
+ <Button variant="primary">Primary action</Button>
24
+ <EmptyStateSecondaryActions>
25
+ <Button variant="link">Multiple</Button>
26
+ <Button variant="link">Action Buttons</Button>
27
+ <Button variant="link">Can</Button>
28
+ <Button variant="link">Go here</Button>
29
+ <Button variant="link">In the secondary</Button>
30
+ <Button variant="link">Action area</Button>
31
+ </EmptyStateSecondaryActions>
32
+ </EmptyState>
33
+ );
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import {
3
+ Title,
4
+ Button,
5
+ EmptyState,
6
+ EmptyStateVariant,
7
+ EmptyStateBody,
8
+ EmptyStateSecondaryActions
9
+ } from '@patternfly/react-core';
10
+
11
+ export const EmptyStateExtraSmall: React.FunctionComponent = () => (
12
+ <EmptyState variant={EmptyStateVariant.xs}>
13
+ <Title headingLevel="h4" size="md">
14
+ Empty state
15
+ </Title>
16
+ <EmptyStateBody>
17
+ This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
18
+ enough to meet a variety of needs.
19
+ </EmptyStateBody>
20
+ <EmptyStateSecondaryActions>
21
+ <Button variant="link">Multiple</Button>
22
+ <Button variant="link">Action Buttons</Button>
23
+ <Button variant="link">Can</Button>
24
+ <Button variant="link">Go here</Button>
25
+ <Button variant="link">In the secondary</Button>
26
+ <Button variant="link">Action area</Button>
27
+ </EmptyStateSecondaryActions>
28
+ </EmptyState>
29
+ );
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import {
3
+ Title,
4
+ Button,
5
+ EmptyState,
6
+ EmptyStateVariant,
7
+ EmptyStateIcon,
8
+ EmptyStateBody,
9
+ EmptyStateSecondaryActions
10
+ } from '@patternfly/react-core';
11
+ import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
12
+
13
+ export const EmptyStateLarge: React.FunctionComponent = () => (
14
+ <EmptyState variant={EmptyStateVariant.large}>
15
+ <EmptyStateIcon icon={CubesIcon} />
16
+ <Title headingLevel="h4" size="lg">
17
+ Empty state
18
+ </Title>
19
+ <EmptyStateBody>
20
+ This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
21
+ enough to meet a variety of needs.
22
+ </EmptyStateBody>
23
+ <Button variant="primary">Primary action</Button>
24
+ <EmptyStateSecondaryActions>
25
+ <Button variant="link">Multiple</Button>
26
+ <Button variant="link">Action Buttons</Button>
27
+ <Button variant="link">Can</Button>
28
+ <Button variant="link">Go here</Button>
29
+ <Button variant="link">In the secondary</Button>
30
+ <Button variant="link">Action area</Button>
31
+ </EmptyStateSecondaryActions>
32
+ </EmptyState>
33
+ );
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { Title, Button, EmptyState, EmptyStatePrimary, EmptyStateIcon, EmptyStateBody } from '@patternfly/react-core';
3
+ import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
4
+
5
+ export const EmptyStateNoMatchFound: React.FunctionComponent = () => (
6
+ <EmptyState>
7
+ <EmptyStateIcon icon={SearchIcon} />
8
+ <Title size="lg" headingLevel="h4">
9
+ No results found
10
+ </Title>
11
+ <EmptyStateBody>No results match the filter criteria. Clear all filters and try again.</EmptyStateBody>
12
+ <EmptyStatePrimary>
13
+ <Button variant="link">Clear all filters</Button>
14
+ </EmptyStatePrimary>
15
+ </EmptyState>
16
+ );
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import {
3
+ Title,
4
+ Button,
5
+ EmptyState,
6
+ EmptyStateVariant,
7
+ EmptyStateIcon,
8
+ EmptyStateBody,
9
+ EmptyStateSecondaryActions
10
+ } from '@patternfly/react-core';
11
+ import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
12
+
13
+ export const EmptyStateSmall: React.FunctionComponent = () => (
14
+ <EmptyState variant={EmptyStateVariant.small}>
15
+ <EmptyStateIcon icon={CubesIcon} />
16
+ <Title headingLevel="h4" size="lg">
17
+ Empty state
18
+ </Title>
19
+ <EmptyStateBody>
20
+ This represents an the empty state pattern in Patternfly 4. Hopefully it's simple enough to use but flexible
21
+ enough to meet a variety of needs.
22
+ </EmptyStateBody>
23
+ <Button variant="primary">Primary action</Button>
24
+ <EmptyStateSecondaryActions>
25
+ <Button variant="link">Multiple</Button>
26
+ <Button variant="link">Action Buttons</Button>
27
+ <Button variant="link">Can</Button>
28
+ <Button variant="link">Go here</Button>
29
+ <Button variant="link">In the secondary</Button>
30
+ <Button variant="link">Action area</Button>
31
+ </EmptyStateSecondaryActions>
32
+ </EmptyState>
33
+ );
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Title, EmptyState, EmptyStateIcon, Spinner } from '@patternfly/react-core';
3
+
4
+ export const EmptyStateSpinner: React.FunctionComponent = () => (
5
+ <EmptyState>
6
+ <EmptyStateIcon variant="container" component={Spinner} />
7
+ <Title size="lg" headingLevel="h4">
8
+ Loading
9
+ </Title>
10
+ </EmptyState>
11
+ );
@@ -640,8 +640,8 @@ class InsetTabs extends React.Component {
640
640
  inset={{
641
641
  default: 'insetNone',
642
642
  md: 'insetSm',
643
- xl: 'inset2xl',
644
- '2xl': 'insetLg'
643
+ xl: 'insetLg',
644
+ '2xl': 'inset2xl'
645
645
  }}
646
646
  isBox={isBox}
647
647
  aria-label="Tabs in the inset example"