@patternfly/react-core 4.192.8 → 4.192.12
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 +41 -0
- package/dist/esm/components/Select/Select.d.ts +5 -1
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js +171 -28
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Select/SelectMenu.d.ts.map +1 -1
- package/dist/esm/components/Select/SelectMenu.js +2 -1
- package/dist/esm/components/Select/SelectMenu.js.map +1 -1
- package/dist/esm/components/Select/SelectOption.d.ts.map +1 -1
- package/dist/esm/components/Select/SelectOption.js +6 -1
- package/dist/esm/components/Select/SelectOption.js.map +1 -1
- package/dist/esm/components/Select/SelectToggle.d.ts +3 -2
- package/dist/esm/components/Select/SelectToggle.d.ts.map +1 -1
- package/dist/esm/components/Select/SelectToggle.js +26 -16
- package/dist/esm/components/Select/SelectToggle.js.map +1 -1
- package/dist/esm/components/Select/selectConstants.d.ts +1 -0
- package/dist/esm/components/Select/selectConstants.d.ts.map +1 -1
- package/dist/esm/components/Select/selectConstants.js +1 -0
- package/dist/esm/components/Select/selectConstants.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts +2 -5
- package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js +3 -3
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/helpers/util.d.ts +6 -0
- package/dist/esm/helpers/util.d.ts.map +1 -1
- package/dist/esm/helpers/util.js +12 -0
- package/dist/esm/helpers/util.js.map +1 -1
- package/dist/js/components/Select/Select.d.ts +5 -1
- package/dist/js/components/Select/Select.d.ts.map +1 -1
- package/dist/js/components/Select/Select.js +170 -27
- package/dist/js/components/Select/Select.js.map +1 -1
- package/dist/js/components/Select/SelectMenu.d.ts.map +1 -1
- package/dist/js/components/Select/SelectMenu.js +2 -1
- package/dist/js/components/Select/SelectMenu.js.map +1 -1
- package/dist/js/components/Select/SelectOption.d.ts.map +1 -1
- package/dist/js/components/Select/SelectOption.js +6 -1
- package/dist/js/components/Select/SelectOption.js.map +1 -1
- package/dist/js/components/Select/SelectToggle.d.ts +3 -2
- package/dist/js/components/Select/SelectToggle.d.ts.map +1 -1
- package/dist/js/components/Select/SelectToggle.js +25 -15
- package/dist/js/components/Select/SelectToggle.js.map +1 -1
- package/dist/js/components/Select/selectConstants.d.ts +1 -0
- package/dist/js/components/Select/selectConstants.d.ts.map +1 -1
- package/dist/js/components/Select/selectConstants.js +2 -1
- package/dist/js/components/Select/selectConstants.js.map +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts +2 -5
- package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/js/components/Tabs/Tabs.js +3 -3
- package/dist/js/components/Tabs/Tabs.js.map +1 -1
- package/dist/js/helpers/util.d.ts +6 -0
- package/dist/js/helpers/util.d.ts.map +1 -1
- package/dist/js/helpers/util.js +14 -1
- package/dist/js/helpers/util.js.map +1 -1
- package/dist/umd/react-core.css +64 -6
- package/dist/umd/react-core.js +218 -47
- package/dist/umd/react-core.min.css +78 -20
- package/dist/umd/react-core.min.js +3 -3
- package/package.json +6 -6
- package/src/components/Select/Select.tsx +166 -26
- package/src/components/Select/SelectMenu.tsx +2 -1
- package/src/components/Select/SelectOption.tsx +5 -1
- package/src/components/Select/SelectToggle.tsx +38 -17
- package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +74 -24
- package/src/components/Select/examples/Select.md +5 -1
- package/src/components/Select/selectConstants.tsx +2 -0
- package/src/components/Tabs/Tabs.tsx +6 -9
- package/src/helpers/util.ts +13 -0
|
@@ -18,6 +18,7 @@ exports[`checkbox select renders checkbox select groups successfully 1`] = `
|
|
|
18
18
|
hasInlineFilter={false}
|
|
19
19
|
hasPlaceholderStyle={false}
|
|
20
20
|
inlineFilterPlaceholderText={null}
|
|
21
|
+
inputAutoComplete="off"
|
|
21
22
|
inputIdPrefix=""
|
|
22
23
|
isCreatable={false}
|
|
23
24
|
isCreateSelectOptionObject={false}
|
|
@@ -222,6 +223,7 @@ exports[`checkbox select renders checkbox select groups successfully 1`] = `
|
|
|
222
223
|
</div>,
|
|
223
224
|
}
|
|
224
225
|
}
|
|
226
|
+
moveFocusToLastMenuItem={[Function]}
|
|
225
227
|
onClickTypeaheadToggleButton={[Function]}
|
|
226
228
|
onClose={[Function]}
|
|
227
229
|
onEnter={[Function]}
|
|
@@ -1063,6 +1065,7 @@ exports[`checkbox select renders checkbox select selections properly 1`] = `
|
|
|
1063
1065
|
hasInlineFilter={false}
|
|
1064
1066
|
hasPlaceholderStyle={false}
|
|
1065
1067
|
inlineFilterPlaceholderText={null}
|
|
1068
|
+
inputAutoComplete="off"
|
|
1066
1069
|
inputIdPrefix=""
|
|
1067
1070
|
isCreatable={false}
|
|
1068
1071
|
isCreateSelectOptionObject={false}
|
|
@@ -1143,6 +1146,7 @@ exports[`checkbox select renders checkbox select selections properly 1`] = `
|
|
|
1143
1146
|
"current": null,
|
|
1144
1147
|
}
|
|
1145
1148
|
}
|
|
1149
|
+
moveFocusToLastMenuItem={[Function]}
|
|
1146
1150
|
onClickTypeaheadToggleButton={[Function]}
|
|
1147
1151
|
onClose={[Function]}
|
|
1148
1152
|
onEnter={[Function]}
|
|
@@ -1284,6 +1288,7 @@ exports[`checkbox select renders checkbox select selections properly when isChec
|
|
|
1284
1288
|
hasInlineFilter={false}
|
|
1285
1289
|
hasPlaceholderStyle={false}
|
|
1286
1290
|
inlineFilterPlaceholderText={null}
|
|
1291
|
+
inputAutoComplete="off"
|
|
1287
1292
|
inputIdPrefix=""
|
|
1288
1293
|
isCheckboxSelectionBadgeHidden={true}
|
|
1289
1294
|
isCreatable={false}
|
|
@@ -1365,6 +1370,7 @@ exports[`checkbox select renders checkbox select selections properly when isChec
|
|
|
1365
1370
|
"current": null,
|
|
1366
1371
|
}
|
|
1367
1372
|
}
|
|
1373
|
+
moveFocusToLastMenuItem={[Function]}
|
|
1368
1374
|
onClickTypeaheadToggleButton={[Function]}
|
|
1369
1375
|
onClose={[Function]}
|
|
1370
1376
|
onEnter={[Function]}
|
|
@@ -1488,6 +1494,7 @@ exports[`checkbox select renders closed successfully 1`] = `
|
|
|
1488
1494
|
hasInlineFilter={false}
|
|
1489
1495
|
hasPlaceholderStyle={false}
|
|
1490
1496
|
inlineFilterPlaceholderText={null}
|
|
1497
|
+
inputAutoComplete="off"
|
|
1491
1498
|
inputIdPrefix=""
|
|
1492
1499
|
isCreatable={false}
|
|
1493
1500
|
isCreateSelectOptionObject={false}
|
|
@@ -1545,6 +1552,7 @@ exports[`checkbox select renders closed successfully 1`] = `
|
|
|
1545
1552
|
"current": null,
|
|
1546
1553
|
}
|
|
1547
1554
|
}
|
|
1555
|
+
moveFocusToLastMenuItem={[Function]}
|
|
1548
1556
|
onClickTypeaheadToggleButton={[Function]}
|
|
1549
1557
|
onClose={[Function]}
|
|
1550
1558
|
onEnter={[Function]}
|
|
@@ -1668,6 +1676,7 @@ exports[`checkbox select renders expanded successfully 1`] = `
|
|
|
1668
1676
|
hasInlineFilter={false}
|
|
1669
1677
|
hasPlaceholderStyle={false}
|
|
1670
1678
|
inlineFilterPlaceholderText={null}
|
|
1679
|
+
inputAutoComplete="off"
|
|
1671
1680
|
inputIdPrefix=""
|
|
1672
1681
|
isCreatable={false}
|
|
1673
1682
|
isCreateSelectOptionObject={false}
|
|
@@ -1786,6 +1795,7 @@ exports[`checkbox select renders expanded successfully 1`] = `
|
|
|
1786
1795
|
</ul>,
|
|
1787
1796
|
}
|
|
1788
1797
|
}
|
|
1798
|
+
moveFocusToLastMenuItem={[Function]}
|
|
1789
1799
|
onClickTypeaheadToggleButton={[Function]}
|
|
1790
1800
|
onClose={[Function]}
|
|
1791
1801
|
onEnter={[Function]}
|
|
@@ -2250,6 +2260,7 @@ exports[`checkbox select renders expanded successfully with custom objects 1`] =
|
|
|
2250
2260
|
hasInlineFilter={false}
|
|
2251
2261
|
hasPlaceholderStyle={false}
|
|
2252
2262
|
inlineFilterPlaceholderText={null}
|
|
2263
|
+
inputAutoComplete="off"
|
|
2253
2264
|
inputIdPrefix=""
|
|
2254
2265
|
isCreatable={false}
|
|
2255
2266
|
isCreateSelectOptionObject={false}
|
|
@@ -2354,6 +2365,7 @@ exports[`checkbox select renders expanded successfully with custom objects 1`] =
|
|
|
2354
2365
|
</ul>,
|
|
2355
2366
|
}
|
|
2356
2367
|
}
|
|
2368
|
+
moveFocusToLastMenuItem={[Function]}
|
|
2357
2369
|
onClickTypeaheadToggleButton={[Function]}
|
|
2358
2370
|
onClose={[Function]}
|
|
2359
2371
|
onEnter={[Function]}
|
|
@@ -2773,6 +2785,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
|
|
|
2773
2785
|
hasInlineFilter={true}
|
|
2774
2786
|
hasPlaceholderStyle={false}
|
|
2775
2787
|
inlineFilterPlaceholderText={null}
|
|
2788
|
+
inputAutoComplete="off"
|
|
2776
2789
|
inputIdPrefix=""
|
|
2777
2790
|
isCreatable={false}
|
|
2778
2791
|
isCreateSelectOptionObject={false}
|
|
@@ -2838,7 +2851,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
|
|
|
2838
2851
|
class="pf-c-select__menu-search"
|
|
2839
2852
|
>
|
|
2840
2853
|
<input
|
|
2841
|
-
autocomplete="
|
|
2854
|
+
autocomplete="off"
|
|
2842
2855
|
class="pf-c-form-control pf-m-search"
|
|
2843
2856
|
type="search"
|
|
2844
2857
|
/>
|
|
@@ -2906,6 +2919,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
|
|
|
2906
2919
|
</div>,
|
|
2907
2920
|
}
|
|
2908
2921
|
}
|
|
2922
|
+
moveFocusToLastMenuItem={[Function]}
|
|
2909
2923
|
onClickTypeaheadToggleButton={[Function]}
|
|
2910
2924
|
onClose={[Function]}
|
|
2911
2925
|
onEnter={[Function]}
|
|
@@ -2963,7 +2977,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
|
|
|
2963
2977
|
class="pf-c-select__menu-search"
|
|
2964
2978
|
>
|
|
2965
2979
|
<input
|
|
2966
|
-
autocomplete="
|
|
2980
|
+
autocomplete="off"
|
|
2967
2981
|
class="pf-c-form-control pf-m-search"
|
|
2968
2982
|
type="search"
|
|
2969
2983
|
/>
|
|
@@ -3129,7 +3143,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
|
|
|
3129
3143
|
class="pf-c-select__menu-search"
|
|
3130
3144
|
>
|
|
3131
3145
|
<input
|
|
3132
|
-
autocomplete="
|
|
3146
|
+
autocomplete="off"
|
|
3133
3147
|
class="pf-c-form-control pf-m-search"
|
|
3134
3148
|
type="search"
|
|
3135
3149
|
/>
|
|
@@ -3221,7 +3235,7 @@ exports[`checkbox select renders expanded with filtering successfully 1`] = `
|
|
|
3221
3235
|
key="inline-filter"
|
|
3222
3236
|
>
|
|
3223
3237
|
<input
|
|
3224
|
-
autoComplete="
|
|
3238
|
+
autoComplete="off"
|
|
3225
3239
|
className="pf-c-form-control pf-m-search"
|
|
3226
3240
|
key="inline-filter-input"
|
|
3227
3241
|
onChange={[Function]}
|
|
@@ -3428,6 +3442,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
|
|
|
3428
3442
|
hasInlineFilter={true}
|
|
3429
3443
|
hasPlaceholderStyle={false}
|
|
3430
3444
|
inlineFilterPlaceholderText={null}
|
|
3445
|
+
inputAutoComplete="off"
|
|
3431
3446
|
inputIdPrefix=""
|
|
3432
3447
|
isCreatable={false}
|
|
3433
3448
|
isCreateSelectOptionObject={false}
|
|
@@ -3493,7 +3508,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
|
|
|
3493
3508
|
class="pf-c-select__menu-search"
|
|
3494
3509
|
>
|
|
3495
3510
|
<input
|
|
3496
|
-
autocomplete="
|
|
3511
|
+
autocomplete="off"
|
|
3497
3512
|
class="pf-c-form-control pf-m-search"
|
|
3498
3513
|
type="search"
|
|
3499
3514
|
/>
|
|
@@ -3561,6 +3576,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
|
|
|
3561
3576
|
</div>,
|
|
3562
3577
|
}
|
|
3563
3578
|
}
|
|
3579
|
+
moveFocusToLastMenuItem={[Function]}
|
|
3564
3580
|
onClickTypeaheadToggleButton={[Function]}
|
|
3565
3581
|
onClose={[Function]}
|
|
3566
3582
|
onEnter={[Function]}
|
|
@@ -3618,7 +3634,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
|
|
|
3618
3634
|
class="pf-c-select__menu-search"
|
|
3619
3635
|
>
|
|
3620
3636
|
<input
|
|
3621
|
-
autocomplete="
|
|
3637
|
+
autocomplete="off"
|
|
3622
3638
|
class="pf-c-form-control pf-m-search"
|
|
3623
3639
|
type="search"
|
|
3624
3640
|
/>
|
|
@@ -3784,7 +3800,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
|
|
|
3784
3800
|
class="pf-c-select__menu-search"
|
|
3785
3801
|
>
|
|
3786
3802
|
<input
|
|
3787
|
-
autocomplete="
|
|
3803
|
+
autocomplete="off"
|
|
3788
3804
|
class="pf-c-form-control pf-m-search"
|
|
3789
3805
|
type="search"
|
|
3790
3806
|
/>
|
|
@@ -3876,7 +3892,7 @@ exports[`checkbox select renders expanded with filtering successfully 2`] = `
|
|
|
3876
3892
|
key="inline-filter"
|
|
3877
3893
|
>
|
|
3878
3894
|
<input
|
|
3879
|
-
autoComplete="
|
|
3895
|
+
autoComplete="off"
|
|
3880
3896
|
className="pf-c-form-control pf-m-search"
|
|
3881
3897
|
key="inline-filter-input"
|
|
3882
3898
|
onChange={[Function]}
|
|
@@ -4087,6 +4103,7 @@ exports[`renders select with favorites successfully 1`] = `
|
|
|
4087
4103
|
hasInlineFilter={false}
|
|
4088
4104
|
hasPlaceholderStyle={false}
|
|
4089
4105
|
inlineFilterPlaceholderText={null}
|
|
4106
|
+
inputAutoComplete="off"
|
|
4090
4107
|
inputIdPrefix=""
|
|
4091
4108
|
isCreatable={false}
|
|
4092
4109
|
isCreateSelectOptionObject={false}
|
|
@@ -4458,6 +4475,7 @@ exports[`renders select with favorites successfully 1`] = `
|
|
|
4458
4475
|
</div>,
|
|
4459
4476
|
}
|
|
4460
4477
|
}
|
|
4478
|
+
moveFocusToLastMenuItem={[Function]}
|
|
4461
4479
|
onClickTypeaheadToggleButton={[Function]}
|
|
4462
4480
|
onClose={[Function]}
|
|
4463
4481
|
onEnter={[Function]}
|
|
@@ -5891,6 +5909,7 @@ exports[`select custom select filter filters properly 1`] = `
|
|
|
5891
5909
|
hasInlineFilter={false}
|
|
5892
5910
|
hasPlaceholderStyle={false}
|
|
5893
5911
|
inlineFilterPlaceholderText={null}
|
|
5912
|
+
inputAutoComplete="off"
|
|
5894
5913
|
inputIdPrefix=""
|
|
5895
5914
|
isCreatable={false}
|
|
5896
5915
|
isCreateSelectOptionObject={false}
|
|
@@ -5992,6 +6011,7 @@ exports[`select custom select filter filters properly 1`] = `
|
|
|
5992
6011
|
</ul>,
|
|
5993
6012
|
}
|
|
5994
6013
|
}
|
|
6014
|
+
moveFocusToLastMenuItem={[Function]}
|
|
5995
6015
|
onClickTypeaheadToggleButton={[Function]}
|
|
5996
6016
|
onClose={[Function]}
|
|
5997
6017
|
onEnter={[Function]}
|
|
@@ -6012,7 +6032,7 @@ exports[`select custom select filter filters properly 1`] = `
|
|
|
6012
6032
|
>
|
|
6013
6033
|
<input
|
|
6014
6034
|
aria-label=""
|
|
6015
|
-
autocomplete="
|
|
6035
|
+
autocomplete="off"
|
|
6016
6036
|
class="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
6017
6037
|
id="custom-select-filters-select-typeahead"
|
|
6018
6038
|
placeholder=""
|
|
@@ -6108,7 +6128,7 @@ exports[`select custom select filter filters properly 1`] = `
|
|
|
6108
6128
|
<input
|
|
6109
6129
|
aria-activedescendant={null}
|
|
6110
6130
|
aria-label=""
|
|
6111
|
-
autoComplete="
|
|
6131
|
+
autoComplete="off"
|
|
6112
6132
|
className="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
6113
6133
|
disabled={false}
|
|
6114
6134
|
id="custom-select-filters-select-typeahead"
|
|
@@ -6397,6 +6417,7 @@ exports[`select renders select groups successfully 1`] = `
|
|
|
6397
6417
|
hasInlineFilter={false}
|
|
6398
6418
|
hasPlaceholderStyle={false}
|
|
6399
6419
|
inlineFilterPlaceholderText={null}
|
|
6420
|
+
inputAutoComplete="off"
|
|
6400
6421
|
inputIdPrefix=""
|
|
6401
6422
|
isCreatable={false}
|
|
6402
6423
|
isCreateSelectOptionObject={false}
|
|
@@ -6591,6 +6612,7 @@ exports[`select renders select groups successfully 1`] = `
|
|
|
6591
6612
|
</div>,
|
|
6592
6613
|
}
|
|
6593
6614
|
}
|
|
6615
|
+
moveFocusToLastMenuItem={[Function]}
|
|
6594
6616
|
onClickTypeaheadToggleButton={[Function]}
|
|
6595
6617
|
onClose={[Function]}
|
|
6596
6618
|
onEnter={[Function]}
|
|
@@ -7392,6 +7414,7 @@ exports[`select renders up direction successfully 1`] = `
|
|
|
7392
7414
|
hasInlineFilter={false}
|
|
7393
7415
|
hasPlaceholderStyle={false}
|
|
7394
7416
|
inlineFilterPlaceholderText={null}
|
|
7417
|
+
inputAutoComplete="off"
|
|
7395
7418
|
inputIdPrefix=""
|
|
7396
7419
|
isCreatable={false}
|
|
7397
7420
|
isCreateSelectOptionObject={false}
|
|
@@ -7449,6 +7472,7 @@ exports[`select renders up direction successfully 1`] = `
|
|
|
7449
7472
|
"current": null,
|
|
7450
7473
|
}
|
|
7451
7474
|
}
|
|
7475
|
+
moveFocusToLastMenuItem={[Function]}
|
|
7452
7476
|
onClickTypeaheadToggleButton={[Function]}
|
|
7453
7477
|
onClose={[Function]}
|
|
7454
7478
|
onEnter={[Function]}
|
|
@@ -7577,6 +7601,7 @@ exports[`select single select renders closed successfully 1`] = `
|
|
|
7577
7601
|
hasInlineFilter={false}
|
|
7578
7602
|
hasPlaceholderStyle={false}
|
|
7579
7603
|
inlineFilterPlaceholderText={null}
|
|
7604
|
+
inputAutoComplete="off"
|
|
7580
7605
|
inputIdPrefix=""
|
|
7581
7606
|
isCreatable={false}
|
|
7582
7607
|
isCreateSelectOptionObject={false}
|
|
@@ -7634,6 +7659,7 @@ exports[`select single select renders closed successfully 1`] = `
|
|
|
7634
7659
|
"current": null,
|
|
7635
7660
|
}
|
|
7636
7661
|
}
|
|
7662
|
+
moveFocusToLastMenuItem={[Function]}
|
|
7637
7663
|
onClickTypeaheadToggleButton={[Function]}
|
|
7638
7664
|
onClose={[Function]}
|
|
7639
7665
|
onEnter={[Function]}
|
|
@@ -7762,6 +7788,7 @@ exports[`select single select renders disabled successfully 1`] = `
|
|
|
7762
7788
|
hasInlineFilter={false}
|
|
7763
7789
|
hasPlaceholderStyle={false}
|
|
7764
7790
|
inlineFilterPlaceholderText={null}
|
|
7791
|
+
inputAutoComplete="off"
|
|
7765
7792
|
inputIdPrefix=""
|
|
7766
7793
|
isCreatable={false}
|
|
7767
7794
|
isCreateSelectOptionObject={false}
|
|
@@ -7819,6 +7846,7 @@ exports[`select single select renders disabled successfully 1`] = `
|
|
|
7819
7846
|
"current": null,
|
|
7820
7847
|
}
|
|
7821
7848
|
}
|
|
7849
|
+
moveFocusToLastMenuItem={[Function]}
|
|
7822
7850
|
onClickTypeaheadToggleButton={[Function]}
|
|
7823
7851
|
onClose={[Function]}
|
|
7824
7852
|
onEnter={[Function]}
|
|
@@ -7948,6 +7976,7 @@ exports[`select single select renders expanded successfully 1`] = `
|
|
|
7948
7976
|
hasInlineFilter={false}
|
|
7949
7977
|
hasPlaceholderStyle={false}
|
|
7950
7978
|
inlineFilterPlaceholderText={null}
|
|
7979
|
+
inputAutoComplete="off"
|
|
7951
7980
|
inputIdPrefix=""
|
|
7952
7981
|
isCreatable={false}
|
|
7953
7982
|
isCreateSelectOptionObject={false}
|
|
@@ -8062,6 +8091,7 @@ exports[`select single select renders expanded successfully 1`] = `
|
|
|
8062
8091
|
</ul>,
|
|
8063
8092
|
}
|
|
8064
8093
|
}
|
|
8094
|
+
moveFocusToLastMenuItem={[Function]}
|
|
8065
8095
|
onClickTypeaheadToggleButton={[Function]}
|
|
8066
8096
|
onClose={[Function]}
|
|
8067
8097
|
onEnter={[Function]}
|
|
@@ -8512,6 +8542,7 @@ exports[`select single select renders expanded successfully with custom objects
|
|
|
8512
8542
|
hasInlineFilter={false}
|
|
8513
8543
|
hasPlaceholderStyle={false}
|
|
8514
8544
|
inlineFilterPlaceholderText={null}
|
|
8545
|
+
inputAutoComplete="off"
|
|
8515
8546
|
inputIdPrefix=""
|
|
8516
8547
|
isCreatable={false}
|
|
8517
8548
|
isCreateSelectOptionObject={false}
|
|
@@ -8613,6 +8644,7 @@ exports[`select single select renders expanded successfully with custom objects
|
|
|
8613
8644
|
</ul>,
|
|
8614
8645
|
}
|
|
8615
8646
|
}
|
|
8647
|
+
moveFocusToLastMenuItem={[Function]}
|
|
8616
8648
|
onClickTypeaheadToggleButton={[Function]}
|
|
8617
8649
|
onClose={[Function]}
|
|
8618
8650
|
onEnter={[Function]}
|
|
@@ -9022,6 +9054,7 @@ exports[`select with custom content renders closed successfully 1`] = `
|
|
|
9022
9054
|
hasInlineFilter={false}
|
|
9023
9055
|
hasPlaceholderStyle={false}
|
|
9024
9056
|
inlineFilterPlaceholderText={null}
|
|
9057
|
+
inputAutoComplete="off"
|
|
9025
9058
|
inputIdPrefix=""
|
|
9026
9059
|
isCreatable={false}
|
|
9027
9060
|
isCreateSelectOptionObject={false}
|
|
@@ -9078,6 +9111,7 @@ exports[`select with custom content renders closed successfully 1`] = `
|
|
|
9078
9111
|
"current": null,
|
|
9079
9112
|
}
|
|
9080
9113
|
}
|
|
9114
|
+
moveFocusToLastMenuItem={[Function]}
|
|
9081
9115
|
onClickTypeaheadToggleButton={[Function]}
|
|
9082
9116
|
onClose={[Function]}
|
|
9083
9117
|
onEnter={[Function]}
|
|
@@ -9202,6 +9236,7 @@ exports[`select with custom content renders expanded successfully 1`] = `
|
|
|
9202
9236
|
hasInlineFilter={false}
|
|
9203
9237
|
hasPlaceholderStyle={false}
|
|
9204
9238
|
inlineFilterPlaceholderText={null}
|
|
9239
|
+
inputAutoComplete="off"
|
|
9205
9240
|
inputIdPrefix=""
|
|
9206
9241
|
isCreatable={false}
|
|
9207
9242
|
isCreateSelectOptionObject={false}
|
|
@@ -9262,6 +9297,7 @@ exports[`select with custom content renders expanded successfully 1`] = `
|
|
|
9262
9297
|
</div>,
|
|
9263
9298
|
}
|
|
9264
9299
|
}
|
|
9300
|
+
moveFocusToLastMenuItem={[Function]}
|
|
9265
9301
|
onClickTypeaheadToggleButton={[Function]}
|
|
9266
9302
|
onClose={[Function]}
|
|
9267
9303
|
onEnter={[Function]}
|
|
@@ -9536,6 +9572,7 @@ exports[`typeahead multi select renders closed successfully 1`] = `
|
|
|
9536
9572
|
hasInlineFilter={false}
|
|
9537
9573
|
hasPlaceholderStyle={false}
|
|
9538
9574
|
inlineFilterPlaceholderText={null}
|
|
9575
|
+
inputAutoComplete="off"
|
|
9539
9576
|
inputIdPrefix=""
|
|
9540
9577
|
isCreatable={false}
|
|
9541
9578
|
isCreateSelectOptionObject={false}
|
|
@@ -9593,6 +9630,7 @@ exports[`typeahead multi select renders closed successfully 1`] = `
|
|
|
9593
9630
|
"current": null,
|
|
9594
9631
|
}
|
|
9595
9632
|
}
|
|
9633
|
+
moveFocusToLastMenuItem={[Function]}
|
|
9596
9634
|
onClickTypeaheadToggleButton={[Function]}
|
|
9597
9635
|
onClose={[Function]}
|
|
9598
9636
|
onEnter={[Function]}
|
|
@@ -9614,7 +9652,7 @@ exports[`typeahead multi select renders closed successfully 1`] = `
|
|
|
9614
9652
|
<input
|
|
9615
9653
|
aria-invalid="false"
|
|
9616
9654
|
aria-label=""
|
|
9617
|
-
autocomplete="
|
|
9655
|
+
autocomplete="off"
|
|
9618
9656
|
class="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
9619
9657
|
id="typeahead-multi-select-closed-select-multi-typeahead-typeahead"
|
|
9620
9658
|
placeholder=""
|
|
@@ -9666,7 +9704,7 @@ exports[`typeahead multi select renders closed successfully 1`] = `
|
|
|
9666
9704
|
aria-activedescendant={null}
|
|
9667
9705
|
aria-invalid={false}
|
|
9668
9706
|
aria-label=""
|
|
9669
|
-
autoComplete="
|
|
9707
|
+
autoComplete="off"
|
|
9670
9708
|
className="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
9671
9709
|
disabled={false}
|
|
9672
9710
|
id="typeahead-multi-select-closed-select-multi-typeahead-typeahead"
|
|
@@ -9741,6 +9779,7 @@ exports[`typeahead multi select renders expanded successfully 1`] = `
|
|
|
9741
9779
|
hasInlineFilter={false}
|
|
9742
9780
|
hasPlaceholderStyle={false}
|
|
9743
9781
|
inlineFilterPlaceholderText={null}
|
|
9782
|
+
inputAutoComplete="off"
|
|
9744
9783
|
inputIdPrefix=""
|
|
9745
9784
|
isCreatable={false}
|
|
9746
9785
|
isCreateSelectOptionObject={false}
|
|
@@ -9855,6 +9894,7 @@ exports[`typeahead multi select renders expanded successfully 1`] = `
|
|
|
9855
9894
|
</ul>,
|
|
9856
9895
|
}
|
|
9857
9896
|
}
|
|
9897
|
+
moveFocusToLastMenuItem={[Function]}
|
|
9858
9898
|
onClickTypeaheadToggleButton={[Function]}
|
|
9859
9899
|
onClose={[Function]}
|
|
9860
9900
|
onEnter={[Function]}
|
|
@@ -9876,7 +9916,7 @@ exports[`typeahead multi select renders expanded successfully 1`] = `
|
|
|
9876
9916
|
<input
|
|
9877
9917
|
aria-invalid="false"
|
|
9878
9918
|
aria-label=""
|
|
9879
|
-
autocomplete="
|
|
9919
|
+
autocomplete="off"
|
|
9880
9920
|
class="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
9881
9921
|
id="pf-select-toggle-id-13-select-multi-typeahead-typeahead"
|
|
9882
9922
|
placeholder=""
|
|
@@ -9986,7 +10026,7 @@ exports[`typeahead multi select renders expanded successfully 1`] = `
|
|
|
9986
10026
|
aria-activedescendant={null}
|
|
9987
10027
|
aria-invalid={false}
|
|
9988
10028
|
aria-label=""
|
|
9989
|
-
autoComplete="
|
|
10029
|
+
autoComplete="off"
|
|
9990
10030
|
className="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
9991
10031
|
disabled={false}
|
|
9992
10032
|
id="pf-select-toggle-id-13-select-multi-typeahead-typeahead"
|
|
@@ -10329,6 +10369,7 @@ exports[`typeahead multi select renders selected successfully 1`] = `
|
|
|
10329
10369
|
hasInlineFilter={false}
|
|
10330
10370
|
hasPlaceholderStyle={false}
|
|
10331
10371
|
inlineFilterPlaceholderText={null}
|
|
10372
|
+
inputAutoComplete="off"
|
|
10332
10373
|
inputIdPrefix=""
|
|
10333
10374
|
isCreatable={false}
|
|
10334
10375
|
isCreateSelectOptionObject={false}
|
|
@@ -10484,6 +10525,7 @@ exports[`typeahead multi select renders selected successfully 1`] = `
|
|
|
10484
10525
|
</ul>,
|
|
10485
10526
|
}
|
|
10486
10527
|
}
|
|
10528
|
+
moveFocusToLastMenuItem={[Function]}
|
|
10487
10529
|
onClickTypeaheadToggleButton={[Function]}
|
|
10488
10530
|
onClose={[Function]}
|
|
10489
10531
|
onEnter={[Function]}
|
|
@@ -10606,7 +10648,7 @@ exports[`typeahead multi select renders selected successfully 1`] = `
|
|
|
10606
10648
|
<input
|
|
10607
10649
|
aria-invalid="false"
|
|
10608
10650
|
aria-label=""
|
|
10609
|
-
autocomplete="
|
|
10651
|
+
autocomplete="off"
|
|
10610
10652
|
class="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
10611
10653
|
id="typeahead-multi-select-selected-select-multi-typeahead-typeahead"
|
|
10612
10654
|
placeholder=""
|
|
@@ -10970,7 +11012,7 @@ exports[`typeahead multi select renders selected successfully 1`] = `
|
|
|
10970
11012
|
aria-activedescendant={null}
|
|
10971
11013
|
aria-invalid={false}
|
|
10972
11014
|
aria-label=""
|
|
10973
|
-
autoComplete="
|
|
11015
|
+
autoComplete="off"
|
|
10974
11016
|
className="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
10975
11017
|
disabled={false}
|
|
10976
11018
|
id="typeahead-multi-select-selected-select-multi-typeahead-typeahead"
|
|
@@ -11417,6 +11459,7 @@ exports[`typeahead select renders closed successfully 1`] = `
|
|
|
11417
11459
|
hasInlineFilter={false}
|
|
11418
11460
|
hasPlaceholderStyle={false}
|
|
11419
11461
|
inlineFilterPlaceholderText={null}
|
|
11462
|
+
inputAutoComplete="off"
|
|
11420
11463
|
inputIdPrefix=""
|
|
11421
11464
|
isCreatable={false}
|
|
11422
11465
|
isCreateSelectOptionObject={false}
|
|
@@ -11474,6 +11517,7 @@ exports[`typeahead select renders closed successfully 1`] = `
|
|
|
11474
11517
|
"current": null,
|
|
11475
11518
|
}
|
|
11476
11519
|
}
|
|
11520
|
+
moveFocusToLastMenuItem={[Function]}
|
|
11477
11521
|
onClickTypeaheadToggleButton={[Function]}
|
|
11478
11522
|
onClose={[Function]}
|
|
11479
11523
|
onEnter={[Function]}
|
|
@@ -11494,7 +11538,7 @@ exports[`typeahead select renders closed successfully 1`] = `
|
|
|
11494
11538
|
>
|
|
11495
11539
|
<input
|
|
11496
11540
|
aria-label=""
|
|
11497
|
-
autocomplete="
|
|
11541
|
+
autocomplete="off"
|
|
11498
11542
|
class="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
11499
11543
|
id="typeahead-select-closed-select-typeahead"
|
|
11500
11544
|
placeholder=""
|
|
@@ -11545,7 +11589,7 @@ exports[`typeahead select renders closed successfully 1`] = `
|
|
|
11545
11589
|
<input
|
|
11546
11590
|
aria-activedescendant={null}
|
|
11547
11591
|
aria-label=""
|
|
11548
|
-
autoComplete="
|
|
11592
|
+
autoComplete="off"
|
|
11549
11593
|
className="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
11550
11594
|
disabled={false}
|
|
11551
11595
|
id="typeahead-select-closed-select-typeahead"
|
|
@@ -11620,6 +11664,7 @@ exports[`typeahead select renders expanded successfully 1`] = `
|
|
|
11620
11664
|
hasInlineFilter={false}
|
|
11621
11665
|
hasPlaceholderStyle={false}
|
|
11622
11666
|
inlineFilterPlaceholderText={null}
|
|
11667
|
+
inputAutoComplete="off"
|
|
11623
11668
|
inputIdPrefix=""
|
|
11624
11669
|
isCreatable={false}
|
|
11625
11670
|
isCreateSelectOptionObject={false}
|
|
@@ -11734,6 +11779,7 @@ exports[`typeahead select renders expanded successfully 1`] = `
|
|
|
11734
11779
|
</ul>,
|
|
11735
11780
|
}
|
|
11736
11781
|
}
|
|
11782
|
+
moveFocusToLastMenuItem={[Function]}
|
|
11737
11783
|
onClickTypeaheadToggleButton={[Function]}
|
|
11738
11784
|
onClose={[Function]}
|
|
11739
11785
|
onEnter={[Function]}
|
|
@@ -11754,7 +11800,7 @@ exports[`typeahead select renders expanded successfully 1`] = `
|
|
|
11754
11800
|
>
|
|
11755
11801
|
<input
|
|
11756
11802
|
aria-label=""
|
|
11757
|
-
autocomplete="
|
|
11803
|
+
autocomplete="off"
|
|
11758
11804
|
class="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
11759
11805
|
id="pf-select-toggle-id-8-select-typeahead"
|
|
11760
11806
|
placeholder=""
|
|
@@ -11863,7 +11909,7 @@ exports[`typeahead select renders expanded successfully 1`] = `
|
|
|
11863
11909
|
<input
|
|
11864
11910
|
aria-activedescendant={null}
|
|
11865
11911
|
aria-label=""
|
|
11866
|
-
autoComplete="
|
|
11912
|
+
autoComplete="off"
|
|
11867
11913
|
className="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
11868
11914
|
disabled={false}
|
|
11869
11915
|
id="pf-select-toggle-id-8-select-typeahead"
|
|
@@ -12205,6 +12251,7 @@ exports[`typeahead select renders selected successfully 1`] = `
|
|
|
12205
12251
|
hasInlineFilter={false}
|
|
12206
12252
|
hasPlaceholderStyle={false}
|
|
12207
12253
|
inlineFilterPlaceholderText={null}
|
|
12254
|
+
inputAutoComplete="off"
|
|
12208
12255
|
inputIdPrefix=""
|
|
12209
12256
|
isCreatable={false}
|
|
12210
12257
|
isCreateSelectOptionObject={false}
|
|
@@ -12337,6 +12384,7 @@ exports[`typeahead select renders selected successfully 1`] = `
|
|
|
12337
12384
|
</ul>,
|
|
12338
12385
|
}
|
|
12339
12386
|
}
|
|
12387
|
+
moveFocusToLastMenuItem={[Function]}
|
|
12340
12388
|
onClickTypeaheadToggleButton={[Function]}
|
|
12341
12389
|
onClose={[Function]}
|
|
12342
12390
|
onEnter={[Function]}
|
|
@@ -12357,7 +12405,7 @@ exports[`typeahead select renders selected successfully 1`] = `
|
|
|
12357
12405
|
>
|
|
12358
12406
|
<input
|
|
12359
12407
|
aria-label=""
|
|
12360
|
-
autocomplete="
|
|
12408
|
+
autocomplete="off"
|
|
12361
12409
|
class="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
12362
12410
|
id="pf-select-toggle-id-9-select-typeahead"
|
|
12363
12411
|
placeholder=""
|
|
@@ -12484,7 +12532,7 @@ exports[`typeahead select renders selected successfully 1`] = `
|
|
|
12484
12532
|
<input
|
|
12485
12533
|
aria-activedescendant={null}
|
|
12486
12534
|
aria-label=""
|
|
12487
|
-
autoComplete="
|
|
12535
|
+
autoComplete="off"
|
|
12488
12536
|
className="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
12489
12537
|
disabled={false}
|
|
12490
12538
|
id="pf-select-toggle-id-9-select-typeahead"
|
|
@@ -12874,6 +12922,7 @@ exports[`typeahead select test select existing option on a non-creatable select
|
|
|
12874
12922
|
hasInlineFilter={false}
|
|
12875
12923
|
hasPlaceholderStyle={false}
|
|
12876
12924
|
inlineFilterPlaceholderText={null}
|
|
12925
|
+
inputAutoComplete="off"
|
|
12877
12926
|
inputIdPrefix=""
|
|
12878
12927
|
isCreatable={false}
|
|
12879
12928
|
isCreateSelectOptionObject={false}
|
|
@@ -12948,6 +12997,7 @@ exports[`typeahead select test select existing option on a non-creatable select
|
|
|
12948
12997
|
</ul>,
|
|
12949
12998
|
}
|
|
12950
12999
|
}
|
|
13000
|
+
moveFocusToLastMenuItem={[Function]}
|
|
12951
13001
|
onClickTypeaheadToggleButton={[Function]}
|
|
12952
13002
|
onClose={[Function]}
|
|
12953
13003
|
onEnter={[Function]}
|
|
@@ -12968,7 +13018,7 @@ exports[`typeahead select test select existing option on a non-creatable select
|
|
|
12968
13018
|
>
|
|
12969
13019
|
<input
|
|
12970
13020
|
aria-label=""
|
|
12971
|
-
autocomplete="
|
|
13021
|
+
autocomplete="off"
|
|
12972
13022
|
class="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
12973
13023
|
id="pf-select-toggle-id-12-select-typeahead"
|
|
12974
13024
|
placeholder=""
|
|
@@ -13038,7 +13088,7 @@ exports[`typeahead select test select existing option on a non-creatable select
|
|
|
13038
13088
|
<input
|
|
13039
13089
|
aria-activedescendant={null}
|
|
13040
13090
|
aria-label=""
|
|
13041
|
-
autoComplete="
|
|
13091
|
+
autoComplete="off"
|
|
13042
13092
|
className="pf-c-form-control pf-c-select__toggle-typeahead"
|
|
13043
13093
|
disabled={false}
|
|
13044
13094
|
id="pf-select-toggle-id-12-select-typeahead"
|
|
@@ -2400,7 +2400,11 @@ class SelectWithFooter extends React.Component {
|
|
|
2400
2400
|
aria-labelledby={titleId}
|
|
2401
2401
|
isDisabled={isDisabled}
|
|
2402
2402
|
direction={direction}
|
|
2403
|
-
footer={
|
|
2403
|
+
footer={ <>
|
|
2404
|
+
<Button variant="link" isInline>
|
|
2405
|
+
Action
|
|
2406
|
+
</Button>
|
|
2407
|
+
</>}
|
|
2404
2408
|
>
|
|
2405
2409
|
{this.options}
|
|
2406
2410
|
</Select>
|
|
@@ -18,12 +18,9 @@ export enum TabsComponent {
|
|
|
18
18
|
nav = 'nav'
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
type TabElement = React.ReactElement<TabProps, React.JSXElementConstructor<TabProps>>;
|
|
22
|
-
type TabsChild = TabElement | boolean | null | undefined;
|
|
23
|
-
|
|
24
21
|
export interface TabsProps extends Omit<React.HTMLProps<HTMLElement | HTMLDivElement>, 'onSelect'>, OUIAProps {
|
|
25
|
-
/** Content rendered inside the tabs component.
|
|
26
|
-
children:
|
|
22
|
+
/** Content rendered inside the tabs component. Must be React.ReactElement<TabProps>[] */
|
|
23
|
+
children: React.ReactNode;
|
|
27
24
|
/** Additional classes added to the tabs */
|
|
28
25
|
className?: string;
|
|
29
26
|
/** Tabs background color variant */
|
|
@@ -168,8 +165,8 @@ export class Tabs extends React.Component<TabsProps, TabsState> {
|
|
|
168
165
|
// process any tab content sections outside of the component
|
|
169
166
|
if (tabContentRef) {
|
|
170
167
|
React.Children.toArray(this.props.children)
|
|
171
|
-
.
|
|
172
|
-
.filter(
|
|
168
|
+
.map(child => child as React.ReactElement<TabProps>)
|
|
169
|
+
.filter(child => child.props && child.props.tabContentRef && child.props.tabContentRef.current)
|
|
173
170
|
.forEach(child => (child.props.tabContentRef.current.hidden = true));
|
|
174
171
|
// most recently selected tabContent
|
|
175
172
|
if (tabContentRef.current) {
|
|
@@ -318,8 +315,8 @@ export class Tabs extends React.Component<TabsProps, TabsState> {
|
|
|
318
315
|
uncontrolledActiveKey,
|
|
319
316
|
uncontrolledIsExpandedLocal
|
|
320
317
|
} = this.state;
|
|
321
|
-
const filteredChildren = React.Children.toArray(children)
|
|
322
|
-
.filter(
|
|
318
|
+
const filteredChildren = (React.Children.toArray(children) as React.ReactElement<TabProps>[])
|
|
319
|
+
.filter(Boolean)
|
|
323
320
|
.filter(child => !child.props.isHidden);
|
|
324
321
|
|
|
325
322
|
const uniqueId = id || getUniqueId();
|
package/src/helpers/util.ts
CHANGED
|
@@ -196,6 +196,19 @@ export function keyHandler(
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
/** This function returns a list of tabbable items in a container
|
|
200
|
+
*
|
|
201
|
+
* @param {any} containerRef to the container
|
|
202
|
+
* @param {string} tababbleSelectors CSS selector string of tabbable items
|
|
203
|
+
*/
|
|
204
|
+
export function findTabbableElements(containerRef: any, tababbleSelectors: string): any[] {
|
|
205
|
+
const tabbable = containerRef.current.querySelectorAll(tababbleSelectors);
|
|
206
|
+
const list = Array.prototype.filter.call(tabbable, function(item) {
|
|
207
|
+
return item.tabIndex >= '0';
|
|
208
|
+
});
|
|
209
|
+
return list;
|
|
210
|
+
}
|
|
211
|
+
|
|
199
212
|
/** This function is a helper for keyboard navigation through dropdowns.
|
|
200
213
|
*
|
|
201
214
|
* @param {number} index The index of the element you're on
|