@patternfly/react-core 4.183.11 → 4.185.0

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/esm/components/Dropdown/Dropdown.d.ts +2 -0
  3. package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -1
  4. package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
  5. package/dist/esm/components/Dropdown/DropdownToggle.d.ts +2 -0
  6. package/dist/esm/components/Dropdown/DropdownToggle.d.ts.map +1 -1
  7. package/dist/esm/components/Dropdown/DropdownToggle.js +3 -3
  8. package/dist/esm/components/Dropdown/DropdownToggle.js.map +1 -1
  9. package/dist/esm/components/Dropdown/DropdownWithContext.d.ts.map +1 -1
  10. package/dist/esm/components/Dropdown/DropdownWithContext.js +4 -2
  11. package/dist/esm/components/Dropdown/DropdownWithContext.js.map +1 -1
  12. package/dist/esm/components/Dropdown/Toggle.d.ts +2 -0
  13. package/dist/esm/components/Dropdown/Toggle.d.ts.map +1 -1
  14. package/dist/esm/components/Dropdown/Toggle.js +4 -3
  15. package/dist/esm/components/Dropdown/Toggle.js.map +1 -1
  16. package/dist/js/components/Dropdown/Dropdown.d.ts +2 -0
  17. package/dist/js/components/Dropdown/Dropdown.d.ts.map +1 -1
  18. package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
  19. package/dist/js/components/Dropdown/DropdownToggle.d.ts +2 -0
  20. package/dist/js/components/Dropdown/DropdownToggle.d.ts.map +1 -1
  21. package/dist/js/components/Dropdown/DropdownToggle.js +3 -3
  22. package/dist/js/components/Dropdown/DropdownToggle.js.map +1 -1
  23. package/dist/js/components/Dropdown/DropdownWithContext.d.ts.map +1 -1
  24. package/dist/js/components/Dropdown/DropdownWithContext.js +4 -2
  25. package/dist/js/components/Dropdown/DropdownWithContext.js.map +1 -1
  26. package/dist/js/components/Dropdown/Toggle.d.ts +2 -0
  27. package/dist/js/components/Dropdown/Toggle.d.ts.map +1 -1
  28. package/dist/js/components/Dropdown/Toggle.js +4 -3
  29. package/dist/js/components/Dropdown/Toggle.js.map +1 -1
  30. package/dist/umd/react-core.css +16 -2
  31. package/dist/umd/react-core.js +11 -8
  32. package/dist/umd/react-core.min.css +47 -33
  33. package/dist/umd/react-core.min.js +1 -1
  34. package/package.json +6 -6
  35. package/src/components/ActionList/examples/ActionList.md +4 -201
  36. package/src/components/ActionList/examples/ActionListMultipleGroups.tsx +31 -0
  37. package/src/components/ActionList/examples/ActionListSingleGroup.tsx +86 -0
  38. package/src/components/ActionList/examples/ActionListWithCancelButton.tsx +43 -0
  39. package/src/components/ActionList/examples/ActionListWithIcons.tsx +19 -0
  40. package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncher.test.tsx.snap +1 -0
  41. package/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +18 -0
  42. package/src/components/Dropdown/Dropdown.tsx +2 -0
  43. package/src/components/Dropdown/DropdownToggle.tsx +4 -0
  44. package/src/components/Dropdown/DropdownWithContext.tsx +3 -0
  45. package/src/components/Dropdown/Toggle.tsx +5 -0
  46. package/src/components/Dropdown/__tests__/DropdownToggle.test.tsx +11 -0
  47. package/src/components/Dropdown/__tests__/Generated/__snapshots__/Dropdown.test.tsx.snap +1 -0
  48. package/src/components/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +1 -0
  49. package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +45 -0
  50. package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +94 -8
  51. package/src/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +2 -0
  52. package/src/components/Dropdown/examples/Dropdown.md +57 -0
  53. package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenu.test.tsx.snap +1 -0
  54. package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +31 -0
  55. package/src/components/Pagination/__tests__/Generated/__snapshots__/PaginationOptionsMenu.test.tsx.snap +1 -0
  56. package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +47 -0
@@ -127,6 +127,17 @@ describe('state', () => {
127
127
  expect(view).toMatchSnapshot();
128
128
  });
129
129
 
130
+ test('button variant - secondary', () => {
131
+ const view = mount(
132
+ <DropdownToggle id="Dropdown Toggle" isText isPlain parentRef={document.createElement('div')}>
133
+ Dropdown
134
+ </DropdownToggle>
135
+ );
136
+ expect(view.find('button').prop('className')).toMatch(/m-text/);
137
+ expect(view.find('button').prop('className')).toMatch(/m-plain/);
138
+ expect(view).toMatchSnapshot();
139
+ });
140
+
130
141
  test('action split button - renders primary variant', () => {
131
142
  const view = mount(
132
143
  <DropdownToggle
@@ -33,6 +33,7 @@ exports[`Dropdown should match snapshot (auto-generated) 1`] = `
33
33
  isGrouped={true}
34
34
  isOpen={true}
35
35
  isPlain={true}
36
+ isText={false}
36
37
  menuAppendTo="inline"
37
38
  onSelect={[Function]}
38
39
  position="right"
@@ -13,6 +13,7 @@ exports[`KebabToggle should match snapshot (auto-generated) 1`] = `
13
13
  isPlain={false}
14
14
  isPrimary={false}
15
15
  isSplitButton={false}
16
+ isText={false}
16
17
  onEnter={[Function]}
17
18
  onToggle={[Function]}
18
19
  parentRef={null}
@@ -17,6 +17,7 @@ exports[`KebabToggle basic 1`] = `
17
17
  isGrouped={false}
18
18
  isOpen={true}
19
19
  isPlain={false}
20
+ isText={false}
20
21
  menuAppendTo="inline"
21
22
  onSelect={[Function]}
22
23
  position="left"
@@ -38,6 +39,7 @@ exports[`KebabToggle basic 1`] = `
38
39
  id="Dropdown Toggle"
39
40
  isOpen={true}
40
41
  isPlain={false}
42
+ isText={false}
41
43
  key=".0"
42
44
  onEnter={[Function]}
43
45
  parentRef={
@@ -94,6 +96,7 @@ exports[`KebabToggle basic 1`] = `
94
96
  isPlain={false}
95
97
  isPrimary={false}
96
98
  isSplitButton={false}
99
+ isText={false}
97
100
  onEnter={[Function]}
98
101
  onToggle={[Function]}
99
102
  parentRef={
@@ -578,6 +581,7 @@ exports[`KebabToggle dropup + right aligned 1`] = `
578
581
  isGrouped={false}
579
582
  isOpen={false}
580
583
  isPlain={false}
584
+ isText={false}
581
585
  menuAppendTo="inline"
582
586
  onSelect={[Function]}
583
587
  position="right"
@@ -599,6 +603,7 @@ exports[`KebabToggle dropup + right aligned 1`] = `
599
603
  id="Dropdown Toggle"
600
604
  isOpen={false}
601
605
  isPlain={false}
606
+ isText={false}
602
607
  key=".0"
603
608
  onEnter={[Function]}
604
609
  parentRef={
@@ -648,6 +653,7 @@ exports[`KebabToggle dropup + right aligned 1`] = `
648
653
  isPlain={false}
649
654
  isPrimary={false}
650
655
  isSplitButton={false}
656
+ isText={false}
651
657
  onEnter={[Function]}
652
658
  onToggle={[Function]}
653
659
  parentRef={
@@ -1101,6 +1107,7 @@ exports[`KebabToggle dropup 1`] = `
1101
1107
  isGrouped={false}
1102
1108
  isOpen={false}
1103
1109
  isPlain={false}
1110
+ isText={false}
1104
1111
  menuAppendTo="inline"
1105
1112
  onSelect={[Function]}
1106
1113
  position="left"
@@ -1122,6 +1129,7 @@ exports[`KebabToggle dropup 1`] = `
1122
1129
  id="Dropdown Toggle"
1123
1130
  isOpen={false}
1124
1131
  isPlain={false}
1132
+ isText={false}
1125
1133
  key=".0"
1126
1134
  onEnter={[Function]}
1127
1135
  parentRef={
@@ -1171,6 +1179,7 @@ exports[`KebabToggle dropup 1`] = `
1171
1179
  isPlain={false}
1172
1180
  isPrimary={false}
1173
1181
  isSplitButton={false}
1182
+ isText={false}
1174
1183
  onEnter={[Function]}
1175
1184
  onToggle={[Function]}
1176
1185
  parentRef={
@@ -1624,6 +1633,7 @@ exports[`KebabToggle expanded 1`] = `
1624
1633
  isGrouped={false}
1625
1634
  isOpen={true}
1626
1635
  isPlain={false}
1636
+ isText={false}
1627
1637
  menuAppendTo="inline"
1628
1638
  onSelect={[Function]}
1629
1639
  position="left"
@@ -1645,6 +1655,7 @@ exports[`KebabToggle expanded 1`] = `
1645
1655
  id="Dropdown Toggle"
1646
1656
  isOpen={true}
1647
1657
  isPlain={false}
1658
+ isText={false}
1648
1659
  key=".0"
1649
1660
  onEnter={[Function]}
1650
1661
  parentRef={
@@ -1767,6 +1778,7 @@ exports[`KebabToggle expanded 1`] = `
1767
1778
  isPlain={false}
1768
1779
  isPrimary={false}
1769
1780
  isSplitButton={false}
1781
+ isText={false}
1770
1782
  onEnter={[Function]}
1771
1783
  onToggle={[Function]}
1772
1784
  parentRef={
@@ -2624,6 +2636,7 @@ exports[`KebabToggle plain 1`] = `
2624
2636
  isGrouped={false}
2625
2637
  isOpen={false}
2626
2638
  isPlain={true}
2639
+ isText={false}
2627
2640
  menuAppendTo="inline"
2628
2641
  onSelect={[Function]}
2629
2642
  position="left"
@@ -2645,6 +2658,7 @@ exports[`KebabToggle plain 1`] = `
2645
2658
  id="Dropdown Toggle"
2646
2659
  isOpen={false}
2647
2660
  isPlain={true}
2661
+ isText={false}
2648
2662
  key=".0"
2649
2663
  onEnter={[Function]}
2650
2664
  parentRef={
@@ -2694,6 +2708,7 @@ exports[`KebabToggle plain 1`] = `
2694
2708
  isPlain={true}
2695
2709
  isPrimary={false}
2696
2710
  isSplitButton={false}
2711
+ isText={false}
2697
2712
  onEnter={[Function]}
2698
2713
  onToggle={[Function]}
2699
2714
  parentRef={
@@ -3146,6 +3161,7 @@ exports[`KebabToggle regular 1`] = `
3146
3161
  isGrouped={false}
3147
3162
  isOpen={false}
3148
3163
  isPlain={false}
3164
+ isText={false}
3149
3165
  menuAppendTo="inline"
3150
3166
  onSelect={[Function]}
3151
3167
  position="left"
@@ -3167,6 +3183,7 @@ exports[`KebabToggle regular 1`] = `
3167
3183
  id="Dropdown Toggle"
3168
3184
  isOpen={false}
3169
3185
  isPlain={false}
3186
+ isText={false}
3170
3187
  key=".0"
3171
3188
  onEnter={[Function]}
3172
3189
  parentRef={
@@ -3216,6 +3233,7 @@ exports[`KebabToggle regular 1`] = `
3216
3233
  isPlain={false}
3217
3234
  isPrimary={false}
3218
3235
  isSplitButton={false}
3236
+ isText={false}
3219
3237
  onEnter={[Function]}
3220
3238
  onToggle={[Function]}
3221
3239
  parentRef={
@@ -3669,6 +3687,7 @@ exports[`KebabToggle right aligned 1`] = `
3669
3687
  isGrouped={false}
3670
3688
  isOpen={false}
3671
3689
  isPlain={false}
3690
+ isText={false}
3672
3691
  menuAppendTo="inline"
3673
3692
  onSelect={[Function]}
3674
3693
  position="right"
@@ -3690,6 +3709,7 @@ exports[`KebabToggle right aligned 1`] = `
3690
3709
  id="Dropdown Toggle"
3691
3710
  isOpen={false}
3692
3711
  isPlain={false}
3712
+ isText={false}
3693
3713
  key=".0"
3694
3714
  onEnter={[Function]}
3695
3715
  parentRef={
@@ -3739,6 +3759,7 @@ exports[`KebabToggle right aligned 1`] = `
3739
3759
  isPlain={false}
3740
3760
  isPrimary={false}
3741
3761
  isSplitButton={false}
3762
+ isText={false}
3742
3763
  onEnter={[Function]}
3743
3764
  onToggle={[Function]}
3744
3765
  parentRef={
@@ -4203,6 +4224,7 @@ exports[`dropdown alignment breakpoints 1`] = `
4203
4224
  isGrouped={false}
4204
4225
  isOpen={true}
4205
4226
  isPlain={false}
4227
+ isText={false}
4206
4228
  menuAppendTo="inline"
4207
4229
  onSelect={[Function]}
4208
4230
  position="left"
@@ -4226,6 +4248,7 @@ exports[`dropdown alignment breakpoints 1`] = `
4226
4248
  id="Dropdown Toggle"
4227
4249
  isOpen={true}
4228
4250
  isPlain={false}
4251
+ isText={false}
4229
4252
  key=".0"
4230
4253
  onEnter={[Function]}
4231
4254
  parentRef={
@@ -4361,6 +4384,7 @@ exports[`dropdown alignment breakpoints 1`] = `
4361
4384
  isPlain={false}
4362
4385
  isPrimary={false}
4363
4386
  isSplitButton={false}
4387
+ isText={false}
4364
4388
  onEnter={[Function]}
4365
4389
  onToggle={[Function]}
4366
4390
  parentRef={
@@ -4895,6 +4919,7 @@ exports[`dropdown basic 1`] = `
4895
4919
  isGrouped={false}
4896
4920
  isOpen={true}
4897
4921
  isPlain={false}
4922
+ isText={false}
4898
4923
  menuAppendTo="inline"
4899
4924
  onSelect={[Function]}
4900
4925
  position="left"
@@ -4918,6 +4943,7 @@ exports[`dropdown basic 1`] = `
4918
4943
  id="Dropdown Toggle"
4919
4944
  isOpen={true}
4920
4945
  isPlain={false}
4946
+ isText={false}
4921
4947
  key=".0"
4922
4948
  onEnter={[Function]}
4923
4949
  parentRef={
@@ -4987,6 +5013,7 @@ exports[`dropdown basic 1`] = `
4987
5013
  isPlain={false}
4988
5014
  isPrimary={false}
4989
5015
  isSplitButton={false}
5016
+ isText={false}
4990
5017
  onEnter={[Function]}
4991
5018
  onToggle={[Function]}
4992
5019
  parentRef={
@@ -5496,6 +5523,7 @@ exports[`dropdown dropup + right aligned 1`] = `
5496
5523
  isGrouped={false}
5497
5524
  isOpen={false}
5498
5525
  isPlain={false}
5526
+ isText={false}
5499
5527
  menuAppendTo="inline"
5500
5528
  onSelect={[Function]}
5501
5529
  position="right"
@@ -5519,6 +5547,7 @@ exports[`dropdown dropup + right aligned 1`] = `
5519
5547
  id="Dropdown Toggle"
5520
5548
  isOpen={false}
5521
5549
  isPlain={false}
5550
+ isText={false}
5522
5551
  key=".0"
5523
5552
  onEnter={[Function]}
5524
5553
  parentRef={
@@ -5581,6 +5610,7 @@ exports[`dropdown dropup + right aligned 1`] = `
5581
5610
  isPlain={false}
5582
5611
  isPrimary={false}
5583
5612
  isSplitButton={false}
5613
+ isText={false}
5584
5614
  onEnter={[Function]}
5585
5615
  onToggle={[Function]}
5586
5616
  parentRef={
@@ -6059,6 +6089,7 @@ exports[`dropdown dropup 1`] = `
6059
6089
  isGrouped={false}
6060
6090
  isOpen={false}
6061
6091
  isPlain={false}
6092
+ isText={false}
6062
6093
  menuAppendTo="inline"
6063
6094
  onSelect={[Function]}
6064
6095
  position="left"
@@ -6082,6 +6113,7 @@ exports[`dropdown dropup 1`] = `
6082
6113
  id="Dropdown Toggle"
6083
6114
  isOpen={false}
6084
6115
  isPlain={false}
6116
+ isText={false}
6085
6117
  key=".0"
6086
6118
  onEnter={[Function]}
6087
6119
  parentRef={
@@ -6144,6 +6176,7 @@ exports[`dropdown dropup 1`] = `
6144
6176
  isPlain={false}
6145
6177
  isPrimary={false}
6146
6178
  isSplitButton={false}
6179
+ isText={false}
6147
6180
  onEnter={[Function]}
6148
6181
  onToggle={[Function]}
6149
6182
  parentRef={
@@ -6622,6 +6655,7 @@ exports[`dropdown expanded 1`] = `
6622
6655
  isGrouped={false}
6623
6656
  isOpen={true}
6624
6657
  isPlain={false}
6658
+ isText={false}
6625
6659
  menuAppendTo="inline"
6626
6660
  onSelect={[Function]}
6627
6661
  position="left"
@@ -6645,6 +6679,7 @@ exports[`dropdown expanded 1`] = `
6645
6679
  id="Dropdown Toggle"
6646
6680
  isOpen={true}
6647
6681
  isPlain={false}
6682
+ isText={false}
6648
6683
  key=".0"
6649
6684
  onEnter={[Function]}
6650
6685
  parentRef={
@@ -6780,6 +6815,7 @@ exports[`dropdown expanded 1`] = `
6780
6815
  isPlain={false}
6781
6816
  isPrimary={false}
6782
6817
  isSplitButton={false}
6818
+ isText={false}
6783
6819
  onEnter={[Function]}
6784
6820
  onToggle={[Function]}
6785
6821
  parentRef={
@@ -7662,6 +7698,7 @@ exports[`dropdown primary 1`] = `
7662
7698
  isGrouped={false}
7663
7699
  isOpen={false}
7664
7700
  isPlain={false}
7701
+ isText={false}
7665
7702
  menuAppendTo="inline"
7666
7703
  onSelect={[Function]}
7667
7704
  position="left"
@@ -7687,6 +7724,7 @@ exports[`dropdown primary 1`] = `
7687
7724
  isOpen={false}
7688
7725
  isPlain={false}
7689
7726
  isPrimary={true}
7727
+ isText={false}
7690
7728
  key=".0"
7691
7729
  onEnter={[Function]}
7692
7730
  parentRef={
@@ -7749,6 +7787,7 @@ exports[`dropdown primary 1`] = `
7749
7787
  isPlain={false}
7750
7788
  isPrimary={true}
7751
7789
  isSplitButton={false}
7790
+ isText={false}
7752
7791
  onEnter={[Function]}
7753
7792
  onToggle={[Function]}
7754
7793
  parentRef={
@@ -8226,6 +8265,7 @@ exports[`dropdown regular 1`] = `
8226
8265
  isGrouped={false}
8227
8266
  isOpen={false}
8228
8267
  isPlain={false}
8268
+ isText={false}
8229
8269
  menuAppendTo="inline"
8230
8270
  onSelect={[Function]}
8231
8271
  position="left"
@@ -8249,6 +8289,7 @@ exports[`dropdown regular 1`] = `
8249
8289
  id="Dropdown Toggle"
8250
8290
  isOpen={false}
8251
8291
  isPlain={false}
8292
+ isText={false}
8252
8293
  key=".0"
8253
8294
  onEnter={[Function]}
8254
8295
  parentRef={
@@ -8311,6 +8352,7 @@ exports[`dropdown regular 1`] = `
8311
8352
  isPlain={false}
8312
8353
  isPrimary={false}
8313
8354
  isSplitButton={false}
8355
+ isText={false}
8314
8356
  onEnter={[Function]}
8315
8357
  onToggle={[Function]}
8316
8358
  parentRef={
@@ -8789,6 +8831,7 @@ exports[`dropdown right aligned 1`] = `
8789
8831
  isGrouped={false}
8790
8832
  isOpen={false}
8791
8833
  isPlain={false}
8834
+ isText={false}
8792
8835
  menuAppendTo="inline"
8793
8836
  onSelect={[Function]}
8794
8837
  position="right"
@@ -8812,6 +8855,7 @@ exports[`dropdown right aligned 1`] = `
8812
8855
  id="Dropdown Toggle"
8813
8856
  isOpen={false}
8814
8857
  isPlain={false}
8858
+ isText={false}
8815
8859
  key=".0"
8816
8860
  onEnter={[Function]}
8817
8861
  parentRef={
@@ -8874,6 +8918,7 @@ exports[`dropdown right aligned 1`] = `
8874
8918
  isPlain={false}
8875
8919
  isPrimary={false}
8876
8920
  isSplitButton={false}
8921
+ isText={false}
8877
8922
  onEnter={[Function]}
8878
8923
  onToggle={[Function]}
8879
8924
  parentRef={
@@ -26,7 +26,7 @@ exports[`state action split button - renders primary variant 1`] = `
26
26
  aria-label="Select"
27
27
  bubbleEvent={false}
28
28
  className=""
29
- data-ouia-component-id="OUIA-Generated-DropdownToggle-10"
29
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-11"
30
30
  data-ouia-component-type="PF4/DropdownToggle"
31
31
  data-ouia-safe={true}
32
32
  getMenuRef={null}
@@ -37,6 +37,7 @@ exports[`state action split button - renders primary variant 1`] = `
37
37
  isPlain={false}
38
38
  isPrimary={false}
39
39
  isSplitButton={true}
40
+ isText={false}
40
41
  onEnter={[Function]}
41
42
  onToggle={[Function]}
42
43
  parentRef={<div />}
@@ -46,7 +47,7 @@ exports[`state action split button - renders primary variant 1`] = `
46
47
  aria-expanded={false}
47
48
  aria-label="Select"
48
49
  className="pf-c-dropdown__toggle-button pf-m-primary"
49
- data-ouia-component-id="OUIA-Generated-DropdownToggle-10"
50
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-11"
50
51
  data-ouia-component-type="PF4/DropdownToggle"
51
52
  data-ouia-safe={true}
52
53
  disabled={false}
@@ -114,6 +115,7 @@ exports[`state active 1`] = `
114
115
  isPlain={false}
115
116
  isPrimary={false}
116
117
  isSplitButton={false}
118
+ isText={false}
117
119
  onEnter={[Function]}
118
120
  onToggle={[Function]}
119
121
  parentRef={<div />}
@@ -189,6 +191,7 @@ exports[`state button variant - primary 1`] = `
189
191
  isPlain={false}
190
192
  isPrimary={false}
191
193
  isSplitButton={false}
194
+ isText={false}
192
195
  onEnter={[Function]}
193
196
  onToggle={[Function]}
194
197
  parentRef={<div />}
@@ -264,6 +267,7 @@ exports[`state button variant - secondary 1`] = `
264
267
  isPlain={false}
265
268
  isPrimary={false}
266
269
  isSplitButton={false}
270
+ isText={false}
267
271
  onEnter={[Function]}
268
272
  onToggle={[Function]}
269
273
  parentRef={<div />}
@@ -319,6 +323,83 @@ exports[`state button variant - secondary 1`] = `
319
323
  </DropdownToggle>
320
324
  `;
321
325
 
326
+ exports[`state button variant - secondary 2`] = `
327
+ <DropdownToggle
328
+ id="Dropdown Toggle"
329
+ isPlain={true}
330
+ isText={true}
331
+ parentRef={<div />}
332
+ >
333
+ <Toggle
334
+ bubbleEvent={false}
335
+ className=""
336
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-10"
337
+ data-ouia-component-type="PF4/DropdownToggle"
338
+ data-ouia-safe={true}
339
+ getMenuRef={null}
340
+ id="Dropdown Toggle"
341
+ isActive={false}
342
+ isDisabled={false}
343
+ isOpen={false}
344
+ isPlain={true}
345
+ isPrimary={false}
346
+ isSplitButton={false}
347
+ isText={true}
348
+ onEnter={[Function]}
349
+ onToggle={[Function]}
350
+ parentRef={<div />}
351
+ toggleVariant="default"
352
+ >
353
+ <button
354
+ aria-expanded={false}
355
+ className="pf-c-dropdown__toggle pf-m-plain pf-m-text"
356
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-10"
357
+ data-ouia-component-type="PF4/DropdownToggle"
358
+ data-ouia-safe={true}
359
+ disabled={false}
360
+ id="Dropdown Toggle"
361
+ onClick={[Function]}
362
+ onKeyDown={[Function]}
363
+ type="button"
364
+ >
365
+ <span
366
+ className=""
367
+ >
368
+ Dropdown
369
+ </span>
370
+ <span
371
+ className=""
372
+ >
373
+ <CaretDownIcon
374
+ color="currentColor"
375
+ noVerticalAlign={false}
376
+ size="sm"
377
+ >
378
+ <svg
379
+ aria-hidden={true}
380
+ aria-labelledby={null}
381
+ fill="currentColor"
382
+ height="1em"
383
+ role="img"
384
+ style={
385
+ Object {
386
+ "verticalAlign": "-0.125em",
387
+ }
388
+ }
389
+ viewBox="0 0 320 512"
390
+ width="1em"
391
+ >
392
+ <path
393
+ d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
394
+ />
395
+ </svg>
396
+ </CaretDownIcon>
397
+ </span>
398
+ </button>
399
+ </Toggle>
400
+ </DropdownToggle>
401
+ `;
402
+
322
403
  exports[`state class changes 1`] = `
323
404
  <DropdownToggle
324
405
  id="Dropdown Toggle"
@@ -327,7 +408,7 @@ exports[`state class changes 1`] = `
327
408
  <Toggle
328
409
  bubbleEvent={false}
329
410
  className=""
330
- data-ouia-component-id="OUIA-Generated-DropdownToggle-12"
411
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-13"
331
412
  data-ouia-component-type="PF4/DropdownToggle"
332
413
  data-ouia-safe={true}
333
414
  getMenuRef={null}
@@ -338,6 +419,7 @@ exports[`state class changes 1`] = `
338
419
  isPlain={false}
339
420
  isPrimary={false}
340
421
  isSplitButton={false}
422
+ isText={false}
341
423
  onEnter={[Function]}
342
424
  onToggle={[Function]}
343
425
  parentRef={<div />}
@@ -346,7 +428,7 @@ exports[`state class changes 1`] = `
346
428
  <button
347
429
  aria-expanded={false}
348
430
  className="pf-c-dropdown__toggle"
349
- data-ouia-component-id="OUIA-Generated-DropdownToggle-12"
431
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-13"
350
432
  data-ouia-component-type="PF4/DropdownToggle"
351
433
  data-ouia-safe={true}
352
434
  disabled={false}
@@ -401,7 +483,7 @@ exports[`state class changes 2`] = `
401
483
  <Toggle
402
484
  bubbleEvent={false}
403
485
  className=""
404
- data-ouia-component-id="OUIA-Generated-DropdownToggle-13"
486
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-14"
405
487
  data-ouia-component-type="PF4/DropdownToggle"
406
488
  data-ouia-safe={true}
407
489
  getMenuRef={null}
@@ -412,6 +494,7 @@ exports[`state class changes 2`] = `
412
494
  isPlain={false}
413
495
  isPrimary={false}
414
496
  isSplitButton={false}
497
+ isText={false}
415
498
  onEnter={[Function]}
416
499
  onToggle={[Function]}
417
500
  parentRef={<div />}
@@ -420,7 +503,7 @@ exports[`state class changes 2`] = `
420
503
  <button
421
504
  aria-expanded={false}
422
505
  className="pf-c-dropdown__toggle"
423
- data-ouia-component-id="OUIA-Generated-DropdownToggle-13"
506
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-14"
424
507
  data-ouia-component-type="PF4/DropdownToggle"
425
508
  data-ouia-safe={true}
426
509
  disabled={false}
@@ -486,6 +569,7 @@ exports[`state focus 1`] = `
486
569
  isPlain={false}
487
570
  isPrimary={false}
488
571
  isSplitButton={false}
572
+ isText={false}
489
573
  onEnter={[Function]}
490
574
  onToggle={[Function]}
491
575
  parentRef={<div />}
@@ -560,6 +644,7 @@ exports[`state hover 1`] = `
560
644
  isPlain={false}
561
645
  isPrimary={false}
562
646
  isSplitButton={false}
647
+ isText={false}
563
648
  onEnter={[Function]}
564
649
  onToggle={[Function]}
565
650
  parentRef={<div />}
@@ -640,7 +725,7 @@ exports[`state split button - does not render primary variant 1`] = `
640
725
  aria-label="Select"
641
726
  bubbleEvent={false}
642
727
  className=""
643
- data-ouia-component-id="OUIA-Generated-DropdownToggle-11"
728
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-12"
644
729
  data-ouia-component-type="PF4/DropdownToggle"
645
730
  data-ouia-safe={true}
646
731
  getMenuRef={null}
@@ -651,6 +736,7 @@ exports[`state split button - does not render primary variant 1`] = `
651
736
  isPlain={false}
652
737
  isPrimary={false}
653
738
  isSplitButton={true}
739
+ isText={false}
654
740
  onEnter={[Function]}
655
741
  onToggle={[Function]}
656
742
  parentRef={<div />}
@@ -660,7 +746,7 @@ exports[`state split button - does not render primary variant 1`] = `
660
746
  aria-expanded={false}
661
747
  aria-label="Select"
662
748
  className="pf-c-dropdown__toggle-button pf-m-primary"
663
- data-ouia-component-id="OUIA-Generated-DropdownToggle-11"
749
+ data-ouia-component-id="OUIA-Generated-DropdownToggle-12"
664
750
  data-ouia-component-type="PF4/DropdownToggle"
665
751
  data-ouia-safe={true}
666
752
  disabled={false}
@@ -18,6 +18,7 @@ exports[`Dropdown toggle 1`] = `
18
18
  isPlain={false}
19
19
  isPrimary={false}
20
20
  isSplitButton={false}
21
+ isText={false}
21
22
  onEnter={[Function]}
22
23
  onToggle={[Function]}
23
24
  parentRef={null}
@@ -89,6 +90,7 @@ exports[`Kebab toggle 1`] = `
89
90
  isPlain={false}
90
91
  isPrimary={false}
91
92
  isSplitButton={false}
93
+ isText={false}
92
94
  onEnter={[Function]}
93
95
  onToggle={[Function]}
94
96
  parentRef={null}
@@ -402,6 +402,63 @@ const SecondaryDropdown = () => {
402
402
  };
403
403
  ```
404
404
 
405
+ ### Plain with text toggle
406
+
407
+ ```ts
408
+ import React from 'react';
409
+ import { Dropdown, DropdownToggle, DropdownItem, DropdownSeparator } from '@patternfly/react-core';
410
+ import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
411
+
412
+ const SecondaryDropdown = () => {
413
+ const [isOpen, setIsOpen] = React.useState(false);
414
+
415
+ const onFocus = () => {
416
+ const element = document.getElementById('toggle-id-plain-text');
417
+ element.focus();
418
+ };
419
+
420
+ const dropdownItems = [
421
+ <DropdownItem key="link">Link</DropdownItem>,
422
+ <DropdownItem key="action" component="button">
423
+ Action
424
+ </DropdownItem>,
425
+ <DropdownItem key="disabled link" isDisabled>
426
+ Disabled link
427
+ </DropdownItem>,
428
+ <DropdownItem key="disabled action" isDisabled component="button">
429
+ Disabled action
430
+ </DropdownItem>,
431
+ <DropdownSeparator key="separator" />,
432
+ <DropdownItem key="separated link">Separated link</DropdownItem>,
433
+ <DropdownItem key="separated action" component="button">
434
+ Separated action
435
+ </DropdownItem>
436
+ ];
437
+
438
+ return (
439
+ <Dropdown
440
+ isText
441
+ isPlain
442
+ onSelect={() => {
443
+ setIsOpen(!isOpen);
444
+ onFocus();
445
+ }}
446
+ toggle={
447
+ <DropdownToggle
448
+ onToggle={next => setIsOpen(next)}
449
+ toggleIndicator={CaretDownIcon}
450
+ id="toggle-id-plain-text"
451
+ >
452
+ Dropdown
453
+ </DropdownToggle>
454
+ }
455
+ isOpen={isOpen}
456
+ dropdownItems={dropdownItems}
457
+ />
458
+ );
459
+ };
460
+ ```
461
+
405
462
  ### Position right
406
463
 
407
464
  ```js
@@ -30,6 +30,7 @@ exports[`OptionsMenu should match snapshot (auto-generated) 1`] = `
30
30
  isGrouped={false}
31
31
  isOpen={true}
32
32
  isPlain={true}
33
+ isText={false}
33
34
  menuAppendTo="inline"
34
35
  onSelect={[Function]}
35
36
  position="right"