@patternfly/react-table 4.111.31 → 4.111.32
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 +11 -0
- package/dist/umd/react-table.css +160 -160
- package/dist/umd/react-table.js +7 -11
- package/dist/umd/react-table.min.css +511 -511
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +3 -3
- package/src/docs/demos/table-demos/ColumnManagement.jsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.111.32](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@4.111.31...@patternfly/react-table@4.111.32) (2022-10-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **Pagination:** prevented regenerating random id on each render ([#8175](https://github.com/patternfly/patternfly-react/issues/8175)) ([873cff7](https://github.com/patternfly/patternfly-react/commit/873cff7c4ec5443408dc66306cf168888f5e5580))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [4.111.31](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@4.111.30...@patternfly/react-table@4.111.31) (2022-10-26)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @patternfly/react-table
|
package/dist/umd/react-table.css
CHANGED
|
@@ -23906,6 +23906,166 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
23906
23906
|
margin-left: var(--pf-c-slider__main--actions--MarginLeft);
|
|
23907
23907
|
}
|
|
23908
23908
|
|
|
23909
|
+
.pf-c-switch {
|
|
23910
|
+
--pf-c-switch--FontSize: var(--pf-global--FontSize--md);
|
|
23911
|
+
--pf-c-switch__label--PaddingLeft: var(--pf-global--spacer--md);
|
|
23912
|
+
--pf-c-switch--ColumnGap: var(--pf-c-switch__label--PaddingLeft);
|
|
23913
|
+
--pf-c-switch__toggle-icon--FontSize: calc(var(--pf-c-switch--FontSize) * .625);
|
|
23914
|
+
--pf-c-switch__toggle-icon--Color: var(--pf-global--Color--light-100);
|
|
23915
|
+
--pf-c-switch__toggle-icon--Left: calc(var(--pf-c-switch--FontSize) * .4);
|
|
23916
|
+
--pf-c-switch__toggle-icon--Offset: 0.125rem;
|
|
23917
|
+
--pf-c-switch--LineHeight: var(--pf-global--LineHeight--md);
|
|
23918
|
+
--pf-c-switch--Height: auto;
|
|
23919
|
+
--pf-c-switch__input--checked__toggle--BackgroundColor: var(--pf-global--primary-color--100);
|
|
23920
|
+
--pf-c-switch__input--checked__toggle--before--TranslateX: calc(100% + var(--pf-c-switch__toggle-icon--Offset));
|
|
23921
|
+
--pf-c-switch__input--checked__label--Color: var(--pf-global--Color--dark-100);
|
|
23922
|
+
--pf-c-switch__input--not-checked__label--Color: var(--pf-global--disabled-color--100);
|
|
23923
|
+
--pf-c-switch__input--disabled__label--Color: var(--pf-global--disabled-color--100);
|
|
23924
|
+
--pf-c-switch__input--disabled__toggle--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
23925
|
+
--pf-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-global--palette--black-150);
|
|
23926
|
+
--pf-c-switch__input--focus__toggle--OutlineWidth: var(--pf-global--BorderWidth--md);
|
|
23927
|
+
--pf-c-switch__input--focus__toggle--OutlineOffset: var(--pf-global--spacer--sm);
|
|
23928
|
+
--pf-c-switch__input--focus__toggle--OutlineColor: var(--pf-global--primary-color--100);
|
|
23929
|
+
--pf-c-switch__toggle--Height: calc(var(--pf-c-switch--FontSize) * var(--pf-c-switch--LineHeight));
|
|
23930
|
+
--pf-c-switch__toggle--BackgroundColor: var(--pf-global--palette--black-500);
|
|
23931
|
+
--pf-c-switch__toggle--BorderRadius: var(--pf-c-switch__toggle--Height);
|
|
23932
|
+
--pf-c-switch__toggle--before--Width: calc(var(--pf-c-switch--FontSize) - var(--pf-c-switch__toggle-icon--Offset));
|
|
23933
|
+
--pf-c-switch__toggle--before--Height: var(--pf-c-switch__toggle--before--Width);
|
|
23934
|
+
--pf-c-switch__toggle--before--Top: calc((var(--pf-c-switch__toggle--Height) - var(--pf-c-switch__toggle--before--Height)) / 2);
|
|
23935
|
+
--pf-c-switch__toggle--before--Left: var(--pf-c-switch__toggle--before--Top);
|
|
23936
|
+
--pf-c-switch__toggle--before--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
23937
|
+
--pf-c-switch__toggle--before--BorderRadius: var(--pf-global--BorderRadius--lg);
|
|
23938
|
+
--pf-c-switch__toggle--before--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
23939
|
+
--pf-c-switch__toggle--before--Transition: transform .25s ease 0s;
|
|
23940
|
+
--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));
|
|
23941
|
+
--pf-c-switch__label--Color: var(--pf-global--Color--dark-100);
|
|
23942
|
+
position: relative;
|
|
23943
|
+
display: inline-grid;
|
|
23944
|
+
grid-template-columns: auto;
|
|
23945
|
+
grid-auto-columns: 1fr;
|
|
23946
|
+
column-gap: var(--pf-c-switch--ColumnGap);
|
|
23947
|
+
height: var(--pf-c-switch--Height);
|
|
23948
|
+
font-size: var(--pf-c-switch--FontSize);
|
|
23949
|
+
line-height: var(--pf-c-switch--LineHeight);
|
|
23950
|
+
vertical-align: middle;
|
|
23951
|
+
cursor: pointer;
|
|
23952
|
+
}
|
|
23953
|
+
|
|
23954
|
+
.pf-c-switch.pf-m-reverse .pf-c-switch__label,
|
|
23955
|
+
.pf-c-switch.pf-m-reverse .pf-c-switch__toggle {
|
|
23956
|
+
grid-row: 1;
|
|
23957
|
+
}
|
|
23958
|
+
|
|
23959
|
+
.pf-c-switch.pf-m-reverse .pf-c-switch__label {
|
|
23960
|
+
grid-column: 1;
|
|
23961
|
+
}
|
|
23962
|
+
|
|
23963
|
+
.pf-c-switch__input {
|
|
23964
|
+
position: absolute;
|
|
23965
|
+
cursor: pointer;
|
|
23966
|
+
opacity: 0;
|
|
23967
|
+
}
|
|
23968
|
+
|
|
23969
|
+
.pf-c-switch__input:focus ~ .pf-c-switch__toggle {
|
|
23970
|
+
outline: var(--pf-c-switch__input--focus__toggle--OutlineWidth) solid var(--pf-c-switch__input--focus__toggle--OutlineColor);
|
|
23971
|
+
outline-offset: var(--pf-c-switch__input--focus__toggle--OutlineOffset);
|
|
23972
|
+
}
|
|
23973
|
+
|
|
23974
|
+
.pf-c-switch__input:checked ~ .pf-c-switch__label {
|
|
23975
|
+
color: var(--pf-c-switch__input--checked__label--Color);
|
|
23976
|
+
}
|
|
23977
|
+
|
|
23978
|
+
.pf-c-switch__input:checked ~ .pf-c-switch__toggle {
|
|
23979
|
+
background-color: var(--pf-c-switch__input--checked__toggle--BackgroundColor);
|
|
23980
|
+
}
|
|
23981
|
+
|
|
23982
|
+
.pf-c-switch__input:checked ~ .pf-c-switch__toggle::before {
|
|
23983
|
+
transform: translateX(var(--pf-c-switch__input--checked__toggle--before--TranslateX));
|
|
23984
|
+
}
|
|
23985
|
+
|
|
23986
|
+
.pf-c-switch__input:checked ~ .pf-m-off {
|
|
23987
|
+
display: none;
|
|
23988
|
+
}
|
|
23989
|
+
|
|
23990
|
+
.pf-c-switch__input:not(:checked) ~ .pf-c-switch__label {
|
|
23991
|
+
color: var(--pf-c-switch__input--not-checked__label--Color);
|
|
23992
|
+
}
|
|
23993
|
+
|
|
23994
|
+
.pf-c-switch__input:not(:checked) ~ .pf-c-switch__toggle .pf-c-switch__toggle-icon {
|
|
23995
|
+
display: none;
|
|
23996
|
+
visibility: hidden;
|
|
23997
|
+
}
|
|
23998
|
+
|
|
23999
|
+
.pf-c-switch__input:not(:checked) ~ .pf-m-on {
|
|
24000
|
+
display: none;
|
|
24001
|
+
}
|
|
24002
|
+
|
|
24003
|
+
.pf-c-switch__input:disabled {
|
|
24004
|
+
cursor: not-allowed;
|
|
24005
|
+
}
|
|
24006
|
+
|
|
24007
|
+
.pf-c-switch__input:disabled ~ .pf-c-switch__label {
|
|
24008
|
+
color: var(--pf-c-switch__input--disabled__label--Color);
|
|
24009
|
+
cursor: not-allowed;
|
|
24010
|
+
}
|
|
24011
|
+
|
|
24012
|
+
.pf-c-switch__input:disabled ~ .pf-c-switch__toggle {
|
|
24013
|
+
cursor: not-allowed;
|
|
24014
|
+
background-color: var(--pf-c-switch__input--disabled__toggle--BackgroundColor);
|
|
24015
|
+
}
|
|
24016
|
+
|
|
24017
|
+
.pf-c-switch__input:disabled ~ .pf-c-switch__toggle::before {
|
|
24018
|
+
background-color: var(--pf-c-switch__input--disabled__toggle--before--BackgroundColor);
|
|
24019
|
+
}
|
|
24020
|
+
|
|
24021
|
+
.pf-c-switch__toggle {
|
|
24022
|
+
position: relative;
|
|
24023
|
+
display: inline-block;
|
|
24024
|
+
width: var(--pf-c-switch__toggle--Width);
|
|
24025
|
+
height: var(--pf-c-switch__toggle--Height);
|
|
24026
|
+
background-color: var(--pf-c-switch__toggle--BackgroundColor);
|
|
24027
|
+
border-radius: var(--pf-c-switch__toggle--BorderRadius);
|
|
24028
|
+
}
|
|
24029
|
+
|
|
24030
|
+
.pf-c-switch__toggle::before {
|
|
24031
|
+
position: absolute;
|
|
24032
|
+
top: var(--pf-c-switch__toggle--before--Top);
|
|
24033
|
+
left: var(--pf-c-switch__toggle--before--Left);
|
|
24034
|
+
display: block;
|
|
24035
|
+
width: var(--pf-c-switch__toggle--before--Width);
|
|
24036
|
+
height: var(--pf-c-switch__toggle--before--Height);
|
|
24037
|
+
content: "";
|
|
24038
|
+
background-color: var(--pf-c-switch__toggle--before--BackgroundColor);
|
|
24039
|
+
border-radius: var(--pf-c-switch__toggle--before--BorderRadius);
|
|
24040
|
+
box-shadow: var(--pf-c-switch__toggle--before--BoxShadow);
|
|
24041
|
+
transition: var(--pf-c-switch__toggle--before--Transition);
|
|
24042
|
+
}
|
|
24043
|
+
|
|
24044
|
+
.pf-c-switch__toggle-icon {
|
|
24045
|
+
position: absolute;
|
|
24046
|
+
top: 0;
|
|
24047
|
+
bottom: 0;
|
|
24048
|
+
left: var(--pf-c-switch__toggle-icon--Left);
|
|
24049
|
+
display: flex;
|
|
24050
|
+
align-items: center;
|
|
24051
|
+
font-size: var(--pf-c-switch__toggle-icon--FontSize);
|
|
24052
|
+
color: var(--pf-c-switch__toggle-icon--Color);
|
|
24053
|
+
}
|
|
24054
|
+
|
|
24055
|
+
.pf-c-switch__label {
|
|
24056
|
+
display: inline-block;
|
|
24057
|
+
grid-column: 2;
|
|
24058
|
+
color: var(--pf-c-switch__label--Color);
|
|
24059
|
+
vertical-align: top;
|
|
24060
|
+
}
|
|
24061
|
+
|
|
24062
|
+
:where(.pf-theme-dark) .pf-c-switch {
|
|
24063
|
+
--pf-c-switch__toggle-icon--Color: var(--pf-global--BackgroundColor--100);
|
|
24064
|
+
--pf-c-switch__input--not-checked__label--Color: var(--pf-global--Color--100);
|
|
24065
|
+
--pf-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-global--disabled-color--100);
|
|
24066
|
+
--pf-c-switch__toggle--before--BoxShadow: none;
|
|
24067
|
+
}
|
|
24068
|
+
|
|
23909
24069
|
.pf-c-tabs {
|
|
23910
24070
|
--pf-c-tabs--inset: 0;
|
|
23911
24071
|
--pf-c-tabs--Width: auto;
|
|
@@ -25202,166 +25362,6 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
25202
25362
|
font-weight: var(--pf-global--FontWeight--light);
|
|
25203
25363
|
}
|
|
25204
25364
|
|
|
25205
|
-
.pf-c-switch {
|
|
25206
|
-
--pf-c-switch--FontSize: var(--pf-global--FontSize--md);
|
|
25207
|
-
--pf-c-switch__label--PaddingLeft: var(--pf-global--spacer--md);
|
|
25208
|
-
--pf-c-switch--ColumnGap: var(--pf-c-switch__label--PaddingLeft);
|
|
25209
|
-
--pf-c-switch__toggle-icon--FontSize: calc(var(--pf-c-switch--FontSize) * .625);
|
|
25210
|
-
--pf-c-switch__toggle-icon--Color: var(--pf-global--Color--light-100);
|
|
25211
|
-
--pf-c-switch__toggle-icon--Left: calc(var(--pf-c-switch--FontSize) * .4);
|
|
25212
|
-
--pf-c-switch__toggle-icon--Offset: 0.125rem;
|
|
25213
|
-
--pf-c-switch--LineHeight: var(--pf-global--LineHeight--md);
|
|
25214
|
-
--pf-c-switch--Height: auto;
|
|
25215
|
-
--pf-c-switch__input--checked__toggle--BackgroundColor: var(--pf-global--primary-color--100);
|
|
25216
|
-
--pf-c-switch__input--checked__toggle--before--TranslateX: calc(100% + var(--pf-c-switch__toggle-icon--Offset));
|
|
25217
|
-
--pf-c-switch__input--checked__label--Color: var(--pf-global--Color--dark-100);
|
|
25218
|
-
--pf-c-switch__input--not-checked__label--Color: var(--pf-global--disabled-color--100);
|
|
25219
|
-
--pf-c-switch__input--disabled__label--Color: var(--pf-global--disabled-color--100);
|
|
25220
|
-
--pf-c-switch__input--disabled__toggle--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
25221
|
-
--pf-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-global--palette--black-150);
|
|
25222
|
-
--pf-c-switch__input--focus__toggle--OutlineWidth: var(--pf-global--BorderWidth--md);
|
|
25223
|
-
--pf-c-switch__input--focus__toggle--OutlineOffset: var(--pf-global--spacer--sm);
|
|
25224
|
-
--pf-c-switch__input--focus__toggle--OutlineColor: var(--pf-global--primary-color--100);
|
|
25225
|
-
--pf-c-switch__toggle--Height: calc(var(--pf-c-switch--FontSize) * var(--pf-c-switch--LineHeight));
|
|
25226
|
-
--pf-c-switch__toggle--BackgroundColor: var(--pf-global--palette--black-500);
|
|
25227
|
-
--pf-c-switch__toggle--BorderRadius: var(--pf-c-switch__toggle--Height);
|
|
25228
|
-
--pf-c-switch__toggle--before--Width: calc(var(--pf-c-switch--FontSize) - var(--pf-c-switch__toggle-icon--Offset));
|
|
25229
|
-
--pf-c-switch__toggle--before--Height: var(--pf-c-switch__toggle--before--Width);
|
|
25230
|
-
--pf-c-switch__toggle--before--Top: calc((var(--pf-c-switch__toggle--Height) - var(--pf-c-switch__toggle--before--Height)) / 2);
|
|
25231
|
-
--pf-c-switch__toggle--before--Left: var(--pf-c-switch__toggle--before--Top);
|
|
25232
|
-
--pf-c-switch__toggle--before--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
25233
|
-
--pf-c-switch__toggle--before--BorderRadius: var(--pf-global--BorderRadius--lg);
|
|
25234
|
-
--pf-c-switch__toggle--before--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
25235
|
-
--pf-c-switch__toggle--before--Transition: transform .25s ease 0s;
|
|
25236
|
-
--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));
|
|
25237
|
-
--pf-c-switch__label--Color: var(--pf-global--Color--dark-100);
|
|
25238
|
-
position: relative;
|
|
25239
|
-
display: inline-grid;
|
|
25240
|
-
grid-template-columns: auto;
|
|
25241
|
-
grid-auto-columns: 1fr;
|
|
25242
|
-
column-gap: var(--pf-c-switch--ColumnGap);
|
|
25243
|
-
height: var(--pf-c-switch--Height);
|
|
25244
|
-
font-size: var(--pf-c-switch--FontSize);
|
|
25245
|
-
line-height: var(--pf-c-switch--LineHeight);
|
|
25246
|
-
vertical-align: middle;
|
|
25247
|
-
cursor: pointer;
|
|
25248
|
-
}
|
|
25249
|
-
|
|
25250
|
-
.pf-c-switch.pf-m-reverse .pf-c-switch__label,
|
|
25251
|
-
.pf-c-switch.pf-m-reverse .pf-c-switch__toggle {
|
|
25252
|
-
grid-row: 1;
|
|
25253
|
-
}
|
|
25254
|
-
|
|
25255
|
-
.pf-c-switch.pf-m-reverse .pf-c-switch__label {
|
|
25256
|
-
grid-column: 1;
|
|
25257
|
-
}
|
|
25258
|
-
|
|
25259
|
-
.pf-c-switch__input {
|
|
25260
|
-
position: absolute;
|
|
25261
|
-
cursor: pointer;
|
|
25262
|
-
opacity: 0;
|
|
25263
|
-
}
|
|
25264
|
-
|
|
25265
|
-
.pf-c-switch__input:focus ~ .pf-c-switch__toggle {
|
|
25266
|
-
outline: var(--pf-c-switch__input--focus__toggle--OutlineWidth) solid var(--pf-c-switch__input--focus__toggle--OutlineColor);
|
|
25267
|
-
outline-offset: var(--pf-c-switch__input--focus__toggle--OutlineOffset);
|
|
25268
|
-
}
|
|
25269
|
-
|
|
25270
|
-
.pf-c-switch__input:checked ~ .pf-c-switch__label {
|
|
25271
|
-
color: var(--pf-c-switch__input--checked__label--Color);
|
|
25272
|
-
}
|
|
25273
|
-
|
|
25274
|
-
.pf-c-switch__input:checked ~ .pf-c-switch__toggle {
|
|
25275
|
-
background-color: var(--pf-c-switch__input--checked__toggle--BackgroundColor);
|
|
25276
|
-
}
|
|
25277
|
-
|
|
25278
|
-
.pf-c-switch__input:checked ~ .pf-c-switch__toggle::before {
|
|
25279
|
-
transform: translateX(var(--pf-c-switch__input--checked__toggle--before--TranslateX));
|
|
25280
|
-
}
|
|
25281
|
-
|
|
25282
|
-
.pf-c-switch__input:checked ~ .pf-m-off {
|
|
25283
|
-
display: none;
|
|
25284
|
-
}
|
|
25285
|
-
|
|
25286
|
-
.pf-c-switch__input:not(:checked) ~ .pf-c-switch__label {
|
|
25287
|
-
color: var(--pf-c-switch__input--not-checked__label--Color);
|
|
25288
|
-
}
|
|
25289
|
-
|
|
25290
|
-
.pf-c-switch__input:not(:checked) ~ .pf-c-switch__toggle .pf-c-switch__toggle-icon {
|
|
25291
|
-
display: none;
|
|
25292
|
-
visibility: hidden;
|
|
25293
|
-
}
|
|
25294
|
-
|
|
25295
|
-
.pf-c-switch__input:not(:checked) ~ .pf-m-on {
|
|
25296
|
-
display: none;
|
|
25297
|
-
}
|
|
25298
|
-
|
|
25299
|
-
.pf-c-switch__input:disabled {
|
|
25300
|
-
cursor: not-allowed;
|
|
25301
|
-
}
|
|
25302
|
-
|
|
25303
|
-
.pf-c-switch__input:disabled ~ .pf-c-switch__label {
|
|
25304
|
-
color: var(--pf-c-switch__input--disabled__label--Color);
|
|
25305
|
-
cursor: not-allowed;
|
|
25306
|
-
}
|
|
25307
|
-
|
|
25308
|
-
.pf-c-switch__input:disabled ~ .pf-c-switch__toggle {
|
|
25309
|
-
cursor: not-allowed;
|
|
25310
|
-
background-color: var(--pf-c-switch__input--disabled__toggle--BackgroundColor);
|
|
25311
|
-
}
|
|
25312
|
-
|
|
25313
|
-
.pf-c-switch__input:disabled ~ .pf-c-switch__toggle::before {
|
|
25314
|
-
background-color: var(--pf-c-switch__input--disabled__toggle--before--BackgroundColor);
|
|
25315
|
-
}
|
|
25316
|
-
|
|
25317
|
-
.pf-c-switch__toggle {
|
|
25318
|
-
position: relative;
|
|
25319
|
-
display: inline-block;
|
|
25320
|
-
width: var(--pf-c-switch__toggle--Width);
|
|
25321
|
-
height: var(--pf-c-switch__toggle--Height);
|
|
25322
|
-
background-color: var(--pf-c-switch__toggle--BackgroundColor);
|
|
25323
|
-
border-radius: var(--pf-c-switch__toggle--BorderRadius);
|
|
25324
|
-
}
|
|
25325
|
-
|
|
25326
|
-
.pf-c-switch__toggle::before {
|
|
25327
|
-
position: absolute;
|
|
25328
|
-
top: var(--pf-c-switch__toggle--before--Top);
|
|
25329
|
-
left: var(--pf-c-switch__toggle--before--Left);
|
|
25330
|
-
display: block;
|
|
25331
|
-
width: var(--pf-c-switch__toggle--before--Width);
|
|
25332
|
-
height: var(--pf-c-switch__toggle--before--Height);
|
|
25333
|
-
content: "";
|
|
25334
|
-
background-color: var(--pf-c-switch__toggle--before--BackgroundColor);
|
|
25335
|
-
border-radius: var(--pf-c-switch__toggle--before--BorderRadius);
|
|
25336
|
-
box-shadow: var(--pf-c-switch__toggle--before--BoxShadow);
|
|
25337
|
-
transition: var(--pf-c-switch__toggle--before--Transition);
|
|
25338
|
-
}
|
|
25339
|
-
|
|
25340
|
-
.pf-c-switch__toggle-icon {
|
|
25341
|
-
position: absolute;
|
|
25342
|
-
top: 0;
|
|
25343
|
-
bottom: 0;
|
|
25344
|
-
left: var(--pf-c-switch__toggle-icon--Left);
|
|
25345
|
-
display: flex;
|
|
25346
|
-
align-items: center;
|
|
25347
|
-
font-size: var(--pf-c-switch__toggle-icon--FontSize);
|
|
25348
|
-
color: var(--pf-c-switch__toggle-icon--Color);
|
|
25349
|
-
}
|
|
25350
|
-
|
|
25351
|
-
.pf-c-switch__label {
|
|
25352
|
-
display: inline-block;
|
|
25353
|
-
grid-column: 2;
|
|
25354
|
-
color: var(--pf-c-switch__label--Color);
|
|
25355
|
-
vertical-align: top;
|
|
25356
|
-
}
|
|
25357
|
-
|
|
25358
|
-
:where(.pf-theme-dark) .pf-c-switch {
|
|
25359
|
-
--pf-c-switch__toggle-icon--Color: var(--pf-global--BackgroundColor--100);
|
|
25360
|
-
--pf-c-switch__input--not-checked__label--Color: var(--pf-global--Color--100);
|
|
25361
|
-
--pf-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-global--disabled-color--100);
|
|
25362
|
-
--pf-c-switch__toggle--before--BoxShadow: none;
|
|
25363
|
-
}
|
|
25364
|
-
|
|
25365
25365
|
.pf-c-tile {
|
|
25366
25366
|
--pf-c-tile--PaddingTop: var(--pf-global--spacer--lg);
|
|
25367
25367
|
--pf-c-tile--PaddingRight: var(--pf-global--spacer--lg);
|
package/dist/umd/react-table.js
CHANGED
|
@@ -4887,12 +4887,10 @@
|
|
|
4887
4887
|
renderedContent = React__namespace.Children.toArray(children);
|
|
4888
4888
|
}
|
|
4889
4889
|
const openedOnEnter = this.openedOnEnter;
|
|
4890
|
+
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
4890
4891
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ baseClass, baseComponent, id: contextId, ouiaId, ouiaComponentType, ouiaSafe, alignments }) => {
|
|
4891
4892
|
const BaseComponent = baseComponent;
|
|
4892
|
-
const menuContainer = (React__namespace.createElement(DropdownMenu
|
|
4893
|
-
// This removes the `position: absolute` styling from the `.pf-c-dropdown__menu`
|
|
4894
|
-
// allowing the menu to flip correctly
|
|
4895
|
-
, Object.assign({}, (isFlipEnabled && { style: { position: 'revert', minWidth: 'min-content' } }), { setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }), renderedContent));
|
|
4893
|
+
const menuContainer = (React__namespace.createElement(DropdownMenu, { className: css(isStatic && styles$8.modifiers.static), setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }, renderedContent));
|
|
4896
4894
|
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === DropdownDirection.up && styles$8.modifiers.top, position === DropdownPosition.right && styles$8.modifiers.alignRight, isOpen && styles$8.modifiers.expanded, className) }, isOpen && menuContainer));
|
|
4897
4895
|
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === DropdownDirection.up && styles$8.modifiers.top, position === DropdownPosition.right && styles$8.modifiers.alignRight, isOpen && styles$8.modifiers.expanded, isFullHeight && styles$8.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
|
|
4898
4896
|
React__namespace.Children.map(toggle, oneToggle => React__namespace.cloneElement(oneToggle, {
|
|
@@ -4934,14 +4932,14 @@
|
|
|
4934
4932
|
onSelect: () => undefined,
|
|
4935
4933
|
autoFocus: true,
|
|
4936
4934
|
menuAppendTo: 'inline',
|
|
4937
|
-
isFlipEnabled:
|
|
4935
|
+
isFlipEnabled: true
|
|
4938
4936
|
};
|
|
4939
4937
|
|
|
4940
4938
|
const Dropdown = (_a) => {
|
|
4941
4939
|
var { onSelect,
|
|
4942
4940
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4943
4941
|
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
4944
|
-
ouiaId, ouiaSafe, alignments, contextProps, menuAppendTo = 'inline', isFlipEnabled =
|
|
4942
|
+
ouiaId, ouiaSafe, alignments, contextProps, menuAppendTo = 'inline', isFlipEnabled = true, removeFindDomNode = false } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps", "menuAppendTo", "isFlipEnabled", "removeFindDomNode"]);
|
|
4945
4943
|
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$8.dropdownToggleText, toggleIconClass: styles$8.dropdownToggleImage, toggleIndicatorClass: styles$8.dropdownToggleIcon, menuClass: styles$8.dropdownMenu, itemClass: styles$8.dropdownMenuItem, toggleClass: styles$8.dropdownToggle, baseClass: styles$8.dropdown, baseComponent: 'div', sectionClass: styles$8.dropdownGroup, sectionTitleClass: styles$8.dropdownGroupTitle, sectionComponent: 'section', disabledClass: styles$8.modifiers.disabled, plainTextClass: styles$8.modifiers.text, ouiaId: useOUIAId(Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: Dropdown.displayName, alignments }, contextProps) },
|
|
4946
4944
|
React__namespace.createElement(DropdownWithContext, Object.assign({ menuAppendTo: menuAppendTo, isFlipEnabled: isFlipEnabled, removeFindDomNode: removeFindDomNode }, props))));
|
|
4947
4945
|
};
|
|
@@ -7181,10 +7179,8 @@
|
|
|
7181
7179
|
break;
|
|
7182
7180
|
}
|
|
7183
7181
|
}
|
|
7184
|
-
const
|
|
7185
|
-
|
|
7186
|
-
// allowing the menu to flip correctly
|
|
7187
|
-
, Object.assign({}, (isFlipEnabled && { style: { position: 'revert' } }), props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
|
|
7182
|
+
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
7183
|
+
const innerMenu = (React__namespace.createElement(SelectMenu, Object.assign({ className: css(isStatic && styles$6.modifiers.static) }, props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
|
|
7188
7184
|
const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$6.selectMenu) },
|
|
7189
7185
|
" ",
|
|
7190
7186
|
innerMenu,
|
|
@@ -7294,7 +7290,7 @@
|
|
|
7294
7290
|
isInputFilterPersisted: false,
|
|
7295
7291
|
isCreateSelectOptionObject: false,
|
|
7296
7292
|
shouldResetOnSelect: true,
|
|
7297
|
-
isFlipEnabled:
|
|
7293
|
+
isFlipEnabled: true,
|
|
7298
7294
|
removeFindDomNode: false
|
|
7299
7295
|
};
|
|
7300
7296
|
|