@patternfly/react-core 4.227.0 → 4.227.1
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.css +160 -160
- package/package.json +5 -5
- package/src/components/Page/examples/Page.md +25 -12
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.227.1 (2022-07-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# 4.227.0 (2022-07-26)
|
|
7
15
|
|
|
8
16
|
|
package/dist/umd/react-core.css
CHANGED
|
@@ -19153,6 +19153,166 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
19153
19153
|
transform: rotate(720deg);
|
|
19154
19154
|
}
|
|
19155
19155
|
}
|
|
19156
|
+
.pf-c-switch {
|
|
19157
|
+
--pf-c-switch--FontSize: var(--pf-global--FontSize--md);
|
|
19158
|
+
--pf-c-switch__label--PaddingLeft: var(--pf-global--spacer--md);
|
|
19159
|
+
--pf-c-switch--ColumnGap: var(--pf-c-switch__label--PaddingLeft);
|
|
19160
|
+
--pf-c-switch__toggle-icon--FontSize: calc(var(--pf-c-switch--FontSize) * .625);
|
|
19161
|
+
--pf-c-switch__toggle-icon--Color: var(--pf-global--Color--light-100);
|
|
19162
|
+
--pf-c-switch__toggle-icon--Left: calc(var(--pf-c-switch--FontSize) * .4);
|
|
19163
|
+
--pf-c-switch__toggle-icon--Offset: 0.125rem;
|
|
19164
|
+
--pf-c-switch--LineHeight: var(--pf-global--LineHeight--md);
|
|
19165
|
+
--pf-c-switch--Height: auto;
|
|
19166
|
+
--pf-c-switch__input--checked__toggle--BackgroundColor: var(--pf-global--primary-color--100);
|
|
19167
|
+
--pf-c-switch__input--checked__toggle--before--TranslateX: calc(100% + var(--pf-c-switch__toggle-icon--Offset));
|
|
19168
|
+
--pf-c-switch__input--checked__label--Color: var(--pf-global--Color--dark-100);
|
|
19169
|
+
--pf-c-switch__input--not-checked__label--Color: var(--pf-global--disabled-color--100);
|
|
19170
|
+
--pf-c-switch__input--disabled__label--Color: var(--pf-global--disabled-color--100);
|
|
19171
|
+
--pf-c-switch__input--disabled__toggle--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
19172
|
+
--pf-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-global--palette--black-150);
|
|
19173
|
+
--pf-c-switch__input--focus__toggle--OutlineWidth: var(--pf-global--BorderWidth--md);
|
|
19174
|
+
--pf-c-switch__input--focus__toggle--OutlineOffset: var(--pf-global--spacer--sm);
|
|
19175
|
+
--pf-c-switch__input--focus__toggle--OutlineColor: var(--pf-global--primary-color--100);
|
|
19176
|
+
--pf-c-switch__toggle--Height: calc(var(--pf-c-switch--FontSize) * var(--pf-c-switch--LineHeight));
|
|
19177
|
+
--pf-c-switch__toggle--BackgroundColor: var(--pf-global--palette--black-500);
|
|
19178
|
+
--pf-c-switch__toggle--BorderRadius: var(--pf-c-switch__toggle--Height);
|
|
19179
|
+
--pf-c-switch__toggle--before--Width: calc(var(--pf-c-switch--FontSize) - var(--pf-c-switch__toggle-icon--Offset));
|
|
19180
|
+
--pf-c-switch__toggle--before--Height: var(--pf-c-switch__toggle--before--Width);
|
|
19181
|
+
--pf-c-switch__toggle--before--Top: calc((var(--pf-c-switch__toggle--Height) - var(--pf-c-switch__toggle--before--Height)) / 2);
|
|
19182
|
+
--pf-c-switch__toggle--before--Left: var(--pf-c-switch__toggle--before--Top);
|
|
19183
|
+
--pf-c-switch__toggle--before--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
19184
|
+
--pf-c-switch__toggle--before--BorderRadius: var(--pf-global--BorderRadius--lg);
|
|
19185
|
+
--pf-c-switch__toggle--before--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
19186
|
+
--pf-c-switch__toggle--before--Transition: transform .25s ease 0s;
|
|
19187
|
+
--pf-c-switch__toggle--Width: calc(var(--pf-c-switch__toggle--Height) + var(--pf-c-switch__toggle-icon--Offset) + var(--pf-c-switch__toggle--before--Width));
|
|
19188
|
+
--pf-c-switch__label--Color: var(--pf-global--Color--dark-100);
|
|
19189
|
+
position: relative;
|
|
19190
|
+
display: inline-grid;
|
|
19191
|
+
grid-template-columns: auto;
|
|
19192
|
+
grid-auto-columns: 1fr;
|
|
19193
|
+
column-gap: var(--pf-c-switch--ColumnGap);
|
|
19194
|
+
height: var(--pf-c-switch--Height);
|
|
19195
|
+
font-size: var(--pf-c-switch--FontSize);
|
|
19196
|
+
line-height: var(--pf-c-switch--LineHeight);
|
|
19197
|
+
vertical-align: middle;
|
|
19198
|
+
cursor: pointer;
|
|
19199
|
+
}
|
|
19200
|
+
|
|
19201
|
+
.pf-c-switch.pf-m-reverse .pf-c-switch__label,
|
|
19202
|
+
.pf-c-switch.pf-m-reverse .pf-c-switch__toggle {
|
|
19203
|
+
grid-row: 1;
|
|
19204
|
+
}
|
|
19205
|
+
|
|
19206
|
+
.pf-c-switch.pf-m-reverse .pf-c-switch__label {
|
|
19207
|
+
grid-column: 1;
|
|
19208
|
+
}
|
|
19209
|
+
|
|
19210
|
+
.pf-c-switch__input {
|
|
19211
|
+
position: absolute;
|
|
19212
|
+
cursor: pointer;
|
|
19213
|
+
opacity: 0;
|
|
19214
|
+
}
|
|
19215
|
+
|
|
19216
|
+
.pf-c-switch__input:focus ~ .pf-c-switch__toggle {
|
|
19217
|
+
outline: var(--pf-c-switch__input--focus__toggle--OutlineWidth) solid var(--pf-c-switch__input--focus__toggle--OutlineColor);
|
|
19218
|
+
outline-offset: var(--pf-c-switch__input--focus__toggle--OutlineOffset);
|
|
19219
|
+
}
|
|
19220
|
+
|
|
19221
|
+
.pf-c-switch__input:checked ~ .pf-c-switch__label {
|
|
19222
|
+
color: var(--pf-c-switch__input--checked__label--Color);
|
|
19223
|
+
}
|
|
19224
|
+
|
|
19225
|
+
.pf-c-switch__input:checked ~ .pf-c-switch__toggle {
|
|
19226
|
+
background-color: var(--pf-c-switch__input--checked__toggle--BackgroundColor);
|
|
19227
|
+
}
|
|
19228
|
+
|
|
19229
|
+
.pf-c-switch__input:checked ~ .pf-c-switch__toggle::before {
|
|
19230
|
+
transform: translateX(var(--pf-c-switch__input--checked__toggle--before--TranslateX));
|
|
19231
|
+
}
|
|
19232
|
+
|
|
19233
|
+
.pf-c-switch__input:checked ~ .pf-m-off {
|
|
19234
|
+
display: none;
|
|
19235
|
+
}
|
|
19236
|
+
|
|
19237
|
+
.pf-c-switch__input:not(:checked) ~ .pf-c-switch__label {
|
|
19238
|
+
color: var(--pf-c-switch__input--not-checked__label--Color);
|
|
19239
|
+
}
|
|
19240
|
+
|
|
19241
|
+
.pf-c-switch__input:not(:checked) ~ .pf-c-switch__toggle .pf-c-switch__toggle-icon {
|
|
19242
|
+
display: none;
|
|
19243
|
+
visibility: hidden;
|
|
19244
|
+
}
|
|
19245
|
+
|
|
19246
|
+
.pf-c-switch__input:not(:checked) ~ .pf-m-on {
|
|
19247
|
+
display: none;
|
|
19248
|
+
}
|
|
19249
|
+
|
|
19250
|
+
.pf-c-switch__input:disabled {
|
|
19251
|
+
cursor: not-allowed;
|
|
19252
|
+
}
|
|
19253
|
+
|
|
19254
|
+
.pf-c-switch__input:disabled ~ .pf-c-switch__label {
|
|
19255
|
+
color: var(--pf-c-switch__input--disabled__label--Color);
|
|
19256
|
+
cursor: not-allowed;
|
|
19257
|
+
}
|
|
19258
|
+
|
|
19259
|
+
.pf-c-switch__input:disabled ~ .pf-c-switch__toggle {
|
|
19260
|
+
cursor: not-allowed;
|
|
19261
|
+
background-color: var(--pf-c-switch__input--disabled__toggle--BackgroundColor);
|
|
19262
|
+
}
|
|
19263
|
+
|
|
19264
|
+
.pf-c-switch__input:disabled ~ .pf-c-switch__toggle::before {
|
|
19265
|
+
background-color: var(--pf-c-switch__input--disabled__toggle--before--BackgroundColor);
|
|
19266
|
+
}
|
|
19267
|
+
|
|
19268
|
+
.pf-c-switch__toggle {
|
|
19269
|
+
position: relative;
|
|
19270
|
+
display: inline-block;
|
|
19271
|
+
width: var(--pf-c-switch__toggle--Width);
|
|
19272
|
+
height: var(--pf-c-switch__toggle--Height);
|
|
19273
|
+
background-color: var(--pf-c-switch__toggle--BackgroundColor);
|
|
19274
|
+
border-radius: var(--pf-c-switch__toggle--BorderRadius);
|
|
19275
|
+
}
|
|
19276
|
+
|
|
19277
|
+
.pf-c-switch__toggle::before {
|
|
19278
|
+
position: absolute;
|
|
19279
|
+
top: var(--pf-c-switch__toggle--before--Top);
|
|
19280
|
+
left: var(--pf-c-switch__toggle--before--Left);
|
|
19281
|
+
display: block;
|
|
19282
|
+
width: var(--pf-c-switch__toggle--before--Width);
|
|
19283
|
+
height: var(--pf-c-switch__toggle--before--Height);
|
|
19284
|
+
content: "";
|
|
19285
|
+
background-color: var(--pf-c-switch__toggle--before--BackgroundColor);
|
|
19286
|
+
border-radius: var(--pf-c-switch__toggle--before--BorderRadius);
|
|
19287
|
+
box-shadow: var(--pf-c-switch__toggle--before--BoxShadow);
|
|
19288
|
+
transition: var(--pf-c-switch__toggle--before--Transition);
|
|
19289
|
+
}
|
|
19290
|
+
|
|
19291
|
+
.pf-c-switch__toggle-icon {
|
|
19292
|
+
position: absolute;
|
|
19293
|
+
top: 0;
|
|
19294
|
+
bottom: 0;
|
|
19295
|
+
left: var(--pf-c-switch__toggle-icon--Left);
|
|
19296
|
+
display: flex;
|
|
19297
|
+
align-items: center;
|
|
19298
|
+
font-size: var(--pf-c-switch__toggle-icon--FontSize);
|
|
19299
|
+
color: var(--pf-c-switch__toggle-icon--Color);
|
|
19300
|
+
}
|
|
19301
|
+
|
|
19302
|
+
.pf-c-switch__label {
|
|
19303
|
+
display: inline-block;
|
|
19304
|
+
grid-column: 2;
|
|
19305
|
+
color: var(--pf-c-switch__label--Color);
|
|
19306
|
+
vertical-align: top;
|
|
19307
|
+
}
|
|
19308
|
+
|
|
19309
|
+
:where(.pf-theme-dark) .pf-c-switch {
|
|
19310
|
+
--pf-c-switch__toggle-icon--Color: var(--pf-global--BackgroundColor--100);
|
|
19311
|
+
--pf-c-switch__input--not-checked__label--Color: var(--pf-global--Color--100);
|
|
19312
|
+
--pf-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-global--disabled-color--100);
|
|
19313
|
+
--pf-c-switch__toggle--before--BoxShadow: none;
|
|
19314
|
+
}
|
|
19315
|
+
|
|
19156
19316
|
.pf-c-tabs {
|
|
19157
19317
|
--pf-c-tabs--inset: 0;
|
|
19158
19318
|
--pf-c-tabs--Width: auto;
|
|
@@ -20157,166 +20317,6 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
20157
20317
|
--pf-c-tab-content__body--PaddingLeft: var(--pf-c-tab-content__body--m-padding--PaddingLeft);
|
|
20158
20318
|
}
|
|
20159
20319
|
|
|
20160
|
-
.pf-c-switch {
|
|
20161
|
-
--pf-c-switch--FontSize: var(--pf-global--FontSize--md);
|
|
20162
|
-
--pf-c-switch__label--PaddingLeft: var(--pf-global--spacer--md);
|
|
20163
|
-
--pf-c-switch--ColumnGap: var(--pf-c-switch__label--PaddingLeft);
|
|
20164
|
-
--pf-c-switch__toggle-icon--FontSize: calc(var(--pf-c-switch--FontSize) * .625);
|
|
20165
|
-
--pf-c-switch__toggle-icon--Color: var(--pf-global--Color--light-100);
|
|
20166
|
-
--pf-c-switch__toggle-icon--Left: calc(var(--pf-c-switch--FontSize) * .4);
|
|
20167
|
-
--pf-c-switch__toggle-icon--Offset: 0.125rem;
|
|
20168
|
-
--pf-c-switch--LineHeight: var(--pf-global--LineHeight--md);
|
|
20169
|
-
--pf-c-switch--Height: auto;
|
|
20170
|
-
--pf-c-switch__input--checked__toggle--BackgroundColor: var(--pf-global--primary-color--100);
|
|
20171
|
-
--pf-c-switch__input--checked__toggle--before--TranslateX: calc(100% + var(--pf-c-switch__toggle-icon--Offset));
|
|
20172
|
-
--pf-c-switch__input--checked__label--Color: var(--pf-global--Color--dark-100);
|
|
20173
|
-
--pf-c-switch__input--not-checked__label--Color: var(--pf-global--disabled-color--100);
|
|
20174
|
-
--pf-c-switch__input--disabled__label--Color: var(--pf-global--disabled-color--100);
|
|
20175
|
-
--pf-c-switch__input--disabled__toggle--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
20176
|
-
--pf-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-global--palette--black-150);
|
|
20177
|
-
--pf-c-switch__input--focus__toggle--OutlineWidth: var(--pf-global--BorderWidth--md);
|
|
20178
|
-
--pf-c-switch__input--focus__toggle--OutlineOffset: var(--pf-global--spacer--sm);
|
|
20179
|
-
--pf-c-switch__input--focus__toggle--OutlineColor: var(--pf-global--primary-color--100);
|
|
20180
|
-
--pf-c-switch__toggle--Height: calc(var(--pf-c-switch--FontSize) * var(--pf-c-switch--LineHeight));
|
|
20181
|
-
--pf-c-switch__toggle--BackgroundColor: var(--pf-global--palette--black-500);
|
|
20182
|
-
--pf-c-switch__toggle--BorderRadius: var(--pf-c-switch__toggle--Height);
|
|
20183
|
-
--pf-c-switch__toggle--before--Width: calc(var(--pf-c-switch--FontSize) - var(--pf-c-switch__toggle-icon--Offset));
|
|
20184
|
-
--pf-c-switch__toggle--before--Height: var(--pf-c-switch__toggle--before--Width);
|
|
20185
|
-
--pf-c-switch__toggle--before--Top: calc((var(--pf-c-switch__toggle--Height) - var(--pf-c-switch__toggle--before--Height)) / 2);
|
|
20186
|
-
--pf-c-switch__toggle--before--Left: var(--pf-c-switch__toggle--before--Top);
|
|
20187
|
-
--pf-c-switch__toggle--before--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
20188
|
-
--pf-c-switch__toggle--before--BorderRadius: var(--pf-global--BorderRadius--lg);
|
|
20189
|
-
--pf-c-switch__toggle--before--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
20190
|
-
--pf-c-switch__toggle--before--Transition: transform .25s ease 0s;
|
|
20191
|
-
--pf-c-switch__toggle--Width: calc(var(--pf-c-switch__toggle--Height) + var(--pf-c-switch__toggle-icon--Offset) + var(--pf-c-switch__toggle--before--Width));
|
|
20192
|
-
--pf-c-switch__label--Color: var(--pf-global--Color--dark-100);
|
|
20193
|
-
position: relative;
|
|
20194
|
-
display: inline-grid;
|
|
20195
|
-
grid-template-columns: auto;
|
|
20196
|
-
grid-auto-columns: 1fr;
|
|
20197
|
-
column-gap: var(--pf-c-switch--ColumnGap);
|
|
20198
|
-
height: var(--pf-c-switch--Height);
|
|
20199
|
-
font-size: var(--pf-c-switch--FontSize);
|
|
20200
|
-
line-height: var(--pf-c-switch--LineHeight);
|
|
20201
|
-
vertical-align: middle;
|
|
20202
|
-
cursor: pointer;
|
|
20203
|
-
}
|
|
20204
|
-
|
|
20205
|
-
.pf-c-switch.pf-m-reverse .pf-c-switch__label,
|
|
20206
|
-
.pf-c-switch.pf-m-reverse .pf-c-switch__toggle {
|
|
20207
|
-
grid-row: 1;
|
|
20208
|
-
}
|
|
20209
|
-
|
|
20210
|
-
.pf-c-switch.pf-m-reverse .pf-c-switch__label {
|
|
20211
|
-
grid-column: 1;
|
|
20212
|
-
}
|
|
20213
|
-
|
|
20214
|
-
.pf-c-switch__input {
|
|
20215
|
-
position: absolute;
|
|
20216
|
-
cursor: pointer;
|
|
20217
|
-
opacity: 0;
|
|
20218
|
-
}
|
|
20219
|
-
|
|
20220
|
-
.pf-c-switch__input:focus ~ .pf-c-switch__toggle {
|
|
20221
|
-
outline: var(--pf-c-switch__input--focus__toggle--OutlineWidth) solid var(--pf-c-switch__input--focus__toggle--OutlineColor);
|
|
20222
|
-
outline-offset: var(--pf-c-switch__input--focus__toggle--OutlineOffset);
|
|
20223
|
-
}
|
|
20224
|
-
|
|
20225
|
-
.pf-c-switch__input:checked ~ .pf-c-switch__label {
|
|
20226
|
-
color: var(--pf-c-switch__input--checked__label--Color);
|
|
20227
|
-
}
|
|
20228
|
-
|
|
20229
|
-
.pf-c-switch__input:checked ~ .pf-c-switch__toggle {
|
|
20230
|
-
background-color: var(--pf-c-switch__input--checked__toggle--BackgroundColor);
|
|
20231
|
-
}
|
|
20232
|
-
|
|
20233
|
-
.pf-c-switch__input:checked ~ .pf-c-switch__toggle::before {
|
|
20234
|
-
transform: translateX(var(--pf-c-switch__input--checked__toggle--before--TranslateX));
|
|
20235
|
-
}
|
|
20236
|
-
|
|
20237
|
-
.pf-c-switch__input:checked ~ .pf-m-off {
|
|
20238
|
-
display: none;
|
|
20239
|
-
}
|
|
20240
|
-
|
|
20241
|
-
.pf-c-switch__input:not(:checked) ~ .pf-c-switch__label {
|
|
20242
|
-
color: var(--pf-c-switch__input--not-checked__label--Color);
|
|
20243
|
-
}
|
|
20244
|
-
|
|
20245
|
-
.pf-c-switch__input:not(:checked) ~ .pf-c-switch__toggle .pf-c-switch__toggle-icon {
|
|
20246
|
-
display: none;
|
|
20247
|
-
visibility: hidden;
|
|
20248
|
-
}
|
|
20249
|
-
|
|
20250
|
-
.pf-c-switch__input:not(:checked) ~ .pf-m-on {
|
|
20251
|
-
display: none;
|
|
20252
|
-
}
|
|
20253
|
-
|
|
20254
|
-
.pf-c-switch__input:disabled {
|
|
20255
|
-
cursor: not-allowed;
|
|
20256
|
-
}
|
|
20257
|
-
|
|
20258
|
-
.pf-c-switch__input:disabled ~ .pf-c-switch__label {
|
|
20259
|
-
color: var(--pf-c-switch__input--disabled__label--Color);
|
|
20260
|
-
cursor: not-allowed;
|
|
20261
|
-
}
|
|
20262
|
-
|
|
20263
|
-
.pf-c-switch__input:disabled ~ .pf-c-switch__toggle {
|
|
20264
|
-
cursor: not-allowed;
|
|
20265
|
-
background-color: var(--pf-c-switch__input--disabled__toggle--BackgroundColor);
|
|
20266
|
-
}
|
|
20267
|
-
|
|
20268
|
-
.pf-c-switch__input:disabled ~ .pf-c-switch__toggle::before {
|
|
20269
|
-
background-color: var(--pf-c-switch__input--disabled__toggle--before--BackgroundColor);
|
|
20270
|
-
}
|
|
20271
|
-
|
|
20272
|
-
.pf-c-switch__toggle {
|
|
20273
|
-
position: relative;
|
|
20274
|
-
display: inline-block;
|
|
20275
|
-
width: var(--pf-c-switch__toggle--Width);
|
|
20276
|
-
height: var(--pf-c-switch__toggle--Height);
|
|
20277
|
-
background-color: var(--pf-c-switch__toggle--BackgroundColor);
|
|
20278
|
-
border-radius: var(--pf-c-switch__toggle--BorderRadius);
|
|
20279
|
-
}
|
|
20280
|
-
|
|
20281
|
-
.pf-c-switch__toggle::before {
|
|
20282
|
-
position: absolute;
|
|
20283
|
-
top: var(--pf-c-switch__toggle--before--Top);
|
|
20284
|
-
left: var(--pf-c-switch__toggle--before--Left);
|
|
20285
|
-
display: block;
|
|
20286
|
-
width: var(--pf-c-switch__toggle--before--Width);
|
|
20287
|
-
height: var(--pf-c-switch__toggle--before--Height);
|
|
20288
|
-
content: "";
|
|
20289
|
-
background-color: var(--pf-c-switch__toggle--before--BackgroundColor);
|
|
20290
|
-
border-radius: var(--pf-c-switch__toggle--before--BorderRadius);
|
|
20291
|
-
box-shadow: var(--pf-c-switch__toggle--before--BoxShadow);
|
|
20292
|
-
transition: var(--pf-c-switch__toggle--before--Transition);
|
|
20293
|
-
}
|
|
20294
|
-
|
|
20295
|
-
.pf-c-switch__toggle-icon {
|
|
20296
|
-
position: absolute;
|
|
20297
|
-
top: 0;
|
|
20298
|
-
bottom: 0;
|
|
20299
|
-
left: var(--pf-c-switch__toggle-icon--Left);
|
|
20300
|
-
display: flex;
|
|
20301
|
-
align-items: center;
|
|
20302
|
-
font-size: var(--pf-c-switch__toggle-icon--FontSize);
|
|
20303
|
-
color: var(--pf-c-switch__toggle-icon--Color);
|
|
20304
|
-
}
|
|
20305
|
-
|
|
20306
|
-
.pf-c-switch__label {
|
|
20307
|
-
display: inline-block;
|
|
20308
|
-
grid-column: 2;
|
|
20309
|
-
color: var(--pf-c-switch__label--Color);
|
|
20310
|
-
vertical-align: top;
|
|
20311
|
-
}
|
|
20312
|
-
|
|
20313
|
-
:where(.pf-theme-dark) .pf-c-switch {
|
|
20314
|
-
--pf-c-switch__toggle-icon--Color: var(--pf-global--BackgroundColor--100);
|
|
20315
|
-
--pf-c-switch__input--not-checked__label--Color: var(--pf-global--Color--100);
|
|
20316
|
-
--pf-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-global--disabled-color--100);
|
|
20317
|
-
--pf-c-switch__toggle--before--BoxShadow: none;
|
|
20318
|
-
}
|
|
20319
|
-
|
|
20320
20320
|
.pf-c-content {
|
|
20321
20321
|
--pf-c-content--MarginBottom: var(--pf-global--spacer--md);
|
|
20322
20322
|
--pf-c-content--LineHeight: var(--pf-global--LineHeight--md);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.227.
|
|
3
|
+
"version": "4.227.1",
|
|
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.78.
|
|
38
|
-
"@patternfly/react-styles": "^4.77.
|
|
39
|
-
"@patternfly/react-tokens": "^4.79.
|
|
37
|
+
"@patternfly/react-icons": "^4.78.1",
|
|
38
|
+
"@patternfly/react-styles": "^4.77.1",
|
|
39
|
+
"@patternfly/react-tokens": "^4.79.1",
|
|
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": "
|
|
63
|
+
"gitHead": "7bfaee093d3c85392a9d21a34ff661ffe29b0f47"
|
|
64
64
|
}
|
|
@@ -89,7 +89,7 @@ class VerticalPage extends React.Component {
|
|
|
89
89
|
<MastheadContent>{headerToolbar}</MastheadContent>
|
|
90
90
|
</Masthead>
|
|
91
91
|
);
|
|
92
|
-
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="vertical-sidebar"/>;
|
|
92
|
+
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="vertical-sidebar" />;
|
|
93
93
|
|
|
94
94
|
return (
|
|
95
95
|
<Page header={Header} sidebar={Sidebar}>
|
|
@@ -262,7 +262,7 @@ class FillPage extends React.Component {
|
|
|
262
262
|
<MastheadContent>{headerToolbar}</MastheadContent>
|
|
263
263
|
</Masthead>
|
|
264
264
|
);
|
|
265
|
-
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="fill-sidebar"/>;
|
|
265
|
+
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="fill-sidebar" />;
|
|
266
266
|
|
|
267
267
|
return (
|
|
268
268
|
<Page header={Header} sidebar={Sidebar}>
|
|
@@ -344,7 +344,7 @@ class VerticalPage extends React.Component {
|
|
|
344
344
|
<MastheadContent>{headerToolbar}</MastheadContent>
|
|
345
345
|
</Masthead>
|
|
346
346
|
);
|
|
347
|
-
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="main-padding-sidebar"/>;
|
|
347
|
+
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="main-padding-sidebar" />;
|
|
348
348
|
|
|
349
349
|
return (
|
|
350
350
|
<Page header={Header} sidebar={Sidebar}>
|
|
@@ -410,7 +410,7 @@ class UncontrolledNavPage extends React.Component {
|
|
|
410
410
|
<MastheadContent>{headerToolbar}</MastheadContent>
|
|
411
411
|
</Masthead>
|
|
412
412
|
);
|
|
413
|
-
const Sidebar = <PageSidebar nav="Navigation" id="uncontrolled-sidebar"/>;
|
|
413
|
+
const Sidebar = <PageSidebar nav="Navigation" id="uncontrolled-sidebar" />;
|
|
414
414
|
|
|
415
415
|
return (
|
|
416
416
|
<Page isManagedSidebar header={Header} sidebar={Sidebar}>
|
|
@@ -497,7 +497,7 @@ class GroupPage extends React.Component {
|
|
|
497
497
|
<MastheadContent>{headerToolbar}</MastheadContent>
|
|
498
498
|
</Masthead>
|
|
499
499
|
);
|
|
500
|
-
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="group-section-sidebar"/>;
|
|
500
|
+
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="group-section-sidebar" />;
|
|
501
501
|
|
|
502
502
|
return (
|
|
503
503
|
<Page header={Header} sidebar={Sidebar}>
|
|
@@ -505,13 +505,21 @@ class GroupPage extends React.Component {
|
|
|
505
505
|
<PageNavigation>
|
|
506
506
|
<Nav aria-label="Group section navigation" variant="tertiary">
|
|
507
507
|
<NavList>
|
|
508
|
-
<NavItem itemId={0} isActive>
|
|
508
|
+
<NavItem href="#" itemId={0} isActive>
|
|
509
509
|
System panel
|
|
510
510
|
</NavItem>
|
|
511
|
-
<NavItem itemId={1}>
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
<NavItem itemId={
|
|
511
|
+
<NavItem href="#" itemId={1}>
|
|
512
|
+
Policy
|
|
513
|
+
</NavItem>
|
|
514
|
+
<NavItem href="#" itemId={2}>
|
|
515
|
+
Authentication
|
|
516
|
+
</NavItem>
|
|
517
|
+
<NavItem href="#" itemId={3}>
|
|
518
|
+
Network services
|
|
519
|
+
</NavItem>
|
|
520
|
+
<NavItem href="#" itemId={4}>
|
|
521
|
+
Server
|
|
522
|
+
</NavItem>
|
|
515
523
|
</NavList>
|
|
516
524
|
</Nav>
|
|
517
525
|
</PageNavigation>
|
|
@@ -582,7 +590,7 @@ class VerticalPage extends React.Component {
|
|
|
582
590
|
navToggleId="vertical-pageheader-toggle"
|
|
583
591
|
/>
|
|
584
592
|
);
|
|
585
|
-
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="vertical-pageheader-sidebar"/>;
|
|
593
|
+
const Sidebar = <PageSidebar nav="Navigation" isNavOpen={isNavOpen} id="vertical-pageheader-sidebar" />;
|
|
586
594
|
|
|
587
595
|
return (
|
|
588
596
|
<Page header={Header} sidebar={Sidebar}>
|
|
@@ -630,7 +638,12 @@ CenterAlignedPageSection = () => {
|
|
|
630
638
|
const Header = (
|
|
631
639
|
<Masthead>
|
|
632
640
|
<MastheadToggle>
|
|
633
|
-
<PageToggleButton
|
|
641
|
+
<PageToggleButton
|
|
642
|
+
variant="plain"
|
|
643
|
+
aria-label="Global navigation"
|
|
644
|
+
onNavToggle={this.onNavToggle}
|
|
645
|
+
id="centered-nav-toggle"
|
|
646
|
+
>
|
|
634
647
|
<BarsIcon />
|
|
635
648
|
</PageToggleButton>
|
|
636
649
|
</MastheadToggle>
|