@patternfly/react-core 5.0.0-alpha.63 → 5.0.0-alpha.65

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 (46) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/esm/components/Sidebar/Sidebar.d.ts +2 -0
  3. package/dist/esm/components/Sidebar/Sidebar.d.ts.map +1 -1
  4. package/dist/esm/components/Sidebar/Sidebar.js +2 -2
  5. package/dist/esm/components/Sidebar/Sidebar.js.map +1 -1
  6. package/dist/esm/components/Sidebar/SidebarContent.d.ts +2 -0
  7. package/dist/esm/components/Sidebar/SidebarContent.d.ts.map +1 -1
  8. package/dist/esm/components/Sidebar/SidebarContent.js +2 -2
  9. package/dist/esm/components/Sidebar/SidebarContent.js.map +1 -1
  10. package/dist/esm/components/Sidebar/SidebarPanel.d.ts +2 -0
  11. package/dist/esm/components/Sidebar/SidebarPanel.d.ts.map +1 -1
  12. package/dist/esm/components/Sidebar/SidebarPanel.js +2 -2
  13. package/dist/esm/components/Sidebar/SidebarPanel.js.map +1 -1
  14. package/dist/js/components/Sidebar/Sidebar.d.ts +2 -0
  15. package/dist/js/components/Sidebar/Sidebar.d.ts.map +1 -1
  16. package/dist/js/components/Sidebar/Sidebar.js +2 -2
  17. package/dist/js/components/Sidebar/Sidebar.js.map +1 -1
  18. package/dist/js/components/Sidebar/SidebarContent.d.ts +2 -0
  19. package/dist/js/components/Sidebar/SidebarContent.d.ts.map +1 -1
  20. package/dist/js/components/Sidebar/SidebarContent.js +2 -2
  21. package/dist/js/components/Sidebar/SidebarContent.js.map +1 -1
  22. package/dist/js/components/Sidebar/SidebarPanel.d.ts +2 -0
  23. package/dist/js/components/Sidebar/SidebarPanel.d.ts.map +1 -1
  24. package/dist/js/components/Sidebar/SidebarPanel.js +2 -2
  25. package/dist/js/components/Sidebar/SidebarPanel.js.map +1 -1
  26. package/dist/umd/react-core.min.js +1 -1
  27. package/package.json +2 -2
  28. package/src/components/MenuToggle/examples/MenuToggle.md +85 -78
  29. package/src/components/MenuToggle/examples/MenuToggleSplitButtonAction.tsx +10 -11
  30. package/src/components/MenuToggle/examples/MenuToggleSplitButtonCheckbox.tsx +4 -17
  31. package/src/components/MenuToggle/examples/MenuToggleSplitButtonCheckboxWithText.tsx +10 -11
  32. package/src/components/MenuToggle/examples/MenuToggleTypeahead.tsx +35 -0
  33. package/src/components/Sidebar/Sidebar.tsx +4 -1
  34. package/src/components/Sidebar/SidebarContent.tsx +12 -1
  35. package/src/components/Sidebar/SidebarPanel.tsx +4 -0
  36. package/src/components/Sidebar/__tests__/Sidebar.test.tsx +5 -0
  37. package/src/components/Sidebar/__tests__/SidebarContent.test.tsx +5 -0
  38. package/src/components/Sidebar/__tests__/SidebarPanel.test.tsx +6 -1
  39. package/src/components/Sidebar/examples/Sidebar.md +12 -0
  40. package/src/components/Sidebar/examples/SidebarBorder.tsx +24 -0
  41. package/src/components/Sidebar/examples/SidebarPaddingContent.tsx +25 -0
  42. package/src/components/Sidebar/examples/SidebarPaddingPanel.tsx +24 -0
  43. package/src/components/MenuToggle/examples/MenuToggleSplitButtonActionPrimary.tsx +0 -58
  44. package/src/components/MenuToggle/examples/MenuToggleSplitButtonActionSecondary.tsx +0 -58
  45. package/src/components/MenuToggle/examples/MenuToggleSplitButtonCheckboxPrimary.tsx +0 -55
  46. package/src/components/MenuToggle/examples/MenuToggleSplitButtonCheckboxSecondary.tsx +0 -55
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
3
+
4
+ export const SidebarPaddingContent: React.FunctionComponent = () => (
5
+ <Sidebar>
6
+ <SidebarPanel>Sidebar panel</SidebarPanel>
7
+ <SidebarContent hasPadding>
8
+ <p>Sidebar content, with padding.</p>
9
+ <p>
10
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse dapibus nulla id augue dictum commodo.
11
+ Donec mollis arcu massa, sollicitudin venenatis est rutrum vitae. Integer pulvinar ligula at augue mollis, ac
12
+ pulvinar arcu semper. Maecenas nisi lorem, malesuada ac lectus nec, porta pretium neque. Ut convallis libero sit
13
+ amet metus mattis, vel facilisis lorem malesuada. Duis consectetur ante sit amet magna efficitur, a interdum leo
14
+ vulputate.
15
+ </p>
16
+ <p>
17
+ Praesent at odio nec sapien ultrices tincidunt in non mauris. Orci varius natoque penatibus et magnis dis
18
+ parturient montes, nascetur ridiculus mus. Duis consectetur nisl quis facilisis faucibus. Sed eu bibendum risus.
19
+ Suspendisse porta euismod tortor, at elementum odio suscipit sed. Cras eget ultrices urna, ac feugiat lectus.
20
+ Integer a pharetra velit, in imperdiet mi. Phasellus vel hendrerit velit. Vestibulum ut augue vitae erat
21
+ vulputate bibendum a ut magna.
22
+ </p>
23
+ </SidebarContent>
24
+ </Sidebar>
25
+ );
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { Sidebar, SidebarContent, SidebarPanel } from '@patternfly/react-core';
3
+
4
+ export const SidebarPaddingPanel: React.FunctionComponent = () => (
5
+ <Sidebar>
6
+ <SidebarPanel hasPadding>Sidebar panel, with padding</SidebarPanel>
7
+ <SidebarContent>
8
+ <p>
9
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse dapibus nulla id augue dictum commodo.
10
+ Donec mollis arcu massa, sollicitudin venenatis est rutrum vitae. Integer pulvinar ligula at augue mollis, ac
11
+ pulvinar arcu semper. Maecenas nisi lorem, malesuada ac lectus nec, porta pretium neque. Ut convallis libero sit
12
+ amet metus mattis, vel facilisis lorem malesuada. Duis consectetur ante sit amet magna efficitur, a interdum leo
13
+ vulputate.
14
+ </p>
15
+ <p>
16
+ Praesent at odio nec sapien ultrices tincidunt in non mauris. Orci varius natoque penatibus et magnis dis
17
+ parturient montes, nascetur ridiculus mus. Duis consectetur nisl quis facilisis faucibus. Sed eu bibendum risus.
18
+ Suspendisse porta euismod tortor, at elementum odio suscipit sed. Cras eget ultrices urna, ac feugiat lectus.
19
+ Integer a pharetra velit, in imperdiet mi. Phasellus vel hendrerit velit. Vestibulum ut augue vitae erat
20
+ vulputate bibendum a ut magna.
21
+ </p>
22
+ </SidebarContent>
23
+ </Sidebar>
24
+ );
@@ -1,58 +0,0 @@
1
- import React from 'react';
2
- import { MenuToggleAction, MenuToggle } from '@patternfly/react-core';
3
-
4
- export const MenuToggleSplitButtonActionPrimary: React.FunctionComponent = () => (
5
- <React.Fragment>
6
- <MenuToggle
7
- isDisabled
8
- variant="primary"
9
- splitButtonOptions={{
10
- variant: 'action',
11
- items: [
12
- <MenuToggleAction
13
- id="split-button-action-primary-disabled-example-with-toggle-button"
14
- key="split-action-primary-disabled"
15
- aria-label="Action"
16
- isDisabled
17
- >
18
- Action
19
- </MenuToggleAction>
20
- ]
21
- }}
22
- aria-label="Menu toggle with action split button"
23
- />{' '}
24
- <MenuToggle
25
- variant="primary"
26
- splitButtonOptions={{
27
- variant: 'action',
28
- items: [
29
- <MenuToggleAction
30
- id="split-button-action-primary-example-with-toggle-button"
31
- key="split-action-primary"
32
- aria-label="Action"
33
- >
34
- Action
35
- </MenuToggleAction>
36
- ]
37
- }}
38
- aria-label="Menu toggle with action split button"
39
- />{' '}
40
- <MenuToggle
41
- isExpanded
42
- variant="primary"
43
- splitButtonOptions={{
44
- variant: 'action',
45
- items: [
46
- <MenuToggleAction
47
- id="split-button-action-primary-expanded-example-with-toggle-button"
48
- key="split-action-primary-expanded"
49
- aria-label="Action"
50
- >
51
- Action
52
- </MenuToggleAction>
53
- ]
54
- }}
55
- aria-label="Menu toggle with action split button"
56
- />
57
- </React.Fragment>
58
- );
@@ -1,58 +0,0 @@
1
- import React from 'react';
2
- import { MenuToggleAction, MenuToggle } from '@patternfly/react-core';
3
-
4
- export const MenuToggleSplitButtonActionSecondary: React.FunctionComponent = () => (
5
- <React.Fragment>
6
- <MenuToggle
7
- isDisabled
8
- variant="secondary"
9
- splitButtonOptions={{
10
- variant: 'action',
11
- items: [
12
- <MenuToggleAction
13
- id="split-button-action-secondary-disabled-example-with-toggle-button"
14
- key="split-action-secondary-disabled"
15
- aria-label="Action"
16
- isDisabled
17
- >
18
- Action
19
- </MenuToggleAction>
20
- ]
21
- }}
22
- aria-label="Menu toggle with action split button"
23
- />{' '}
24
- <MenuToggle
25
- variant="secondary"
26
- splitButtonOptions={{
27
- variant: 'action',
28
- items: [
29
- <MenuToggleAction
30
- id="split-button-action-secondary-example-with-toggle-button"
31
- key="split-action-secondary"
32
- aria-label="Action"
33
- >
34
- Action
35
- </MenuToggleAction>
36
- ]
37
- }}
38
- aria-label="Menu toggle with action split button"
39
- />{' '}
40
- <MenuToggle
41
- isExpanded
42
- variant="secondary"
43
- splitButtonOptions={{
44
- variant: 'action',
45
- items: [
46
- <MenuToggleAction
47
- id="split-button-action-secondary-expanded-example-with-toggle-button"
48
- key="split-action-secondary-expanded"
49
- aria-label="Action"
50
- >
51
- Action
52
- </MenuToggleAction>
53
- ]
54
- }}
55
- aria-label="Menu toggle with action split button"
56
- />
57
- </React.Fragment>
58
- );
@@ -1,55 +0,0 @@
1
- import React from 'react';
2
- import { MenuToggleCheckbox, MenuToggle } from '@patternfly/react-core';
3
-
4
- export const MenuToggleSplitButtonCheckboxPrimary: React.FunctionComponent = () => (
5
- <React.Fragment>
6
- <MenuToggle
7
- isDisabled
8
- variant="primary"
9
- splitButtonOptions={{
10
- items: [
11
- <MenuToggleCheckbox
12
- id="split-button-checkbox-primary-disabled-example"
13
- key="split-checkbox-primary-disabled"
14
- aria-label="Select all"
15
- isDisabled
16
- >
17
- 10 selected
18
- </MenuToggleCheckbox>
19
- ]
20
- }}
21
- aria-label="Primary menu toggle with checkbox split button"
22
- />{' '}
23
- <MenuToggle
24
- variant="primary"
25
- splitButtonOptions={{
26
- items: [
27
- <MenuToggleCheckbox
28
- id="split-button-checkbox-primary-example"
29
- key="split-checkbox-primary"
30
- aria-label="Select all"
31
- >
32
- 10 selected
33
- </MenuToggleCheckbox>
34
- ]
35
- }}
36
- aria-label="Primary menu toggle with checkbox split button"
37
- />{' '}
38
- <MenuToggle
39
- isExpanded
40
- variant="primary"
41
- splitButtonOptions={{
42
- items: [
43
- <MenuToggleCheckbox
44
- id="split-button-checkbox-primary-expanded-example"
45
- key="split-checkbox-expanded"
46
- aria-label="Select all"
47
- >
48
- 10 selected
49
- </MenuToggleCheckbox>
50
- ]
51
- }}
52
- aria-label="Primary menu toggle with checkbox split button"
53
- />
54
- </React.Fragment>
55
- );
@@ -1,55 +0,0 @@
1
- import React from 'react';
2
- import { MenuToggleCheckbox, MenuToggle } from '@patternfly/react-core';
3
-
4
- export const MenuToggleSplitButtonCheckboxSecondary: React.FunctionComponent = () => (
5
- <React.Fragment>
6
- <MenuToggle
7
- isDisabled
8
- variant="secondary"
9
- splitButtonOptions={{
10
- items: [
11
- <MenuToggleCheckbox
12
- id="split-button-checkbox-secondary-disabled-example"
13
- key="split-checkbox-secondary-disabled"
14
- aria-label="Select all"
15
- isDisabled
16
- >
17
- 10 selected
18
- </MenuToggleCheckbox>
19
- ]
20
- }}
21
- aria-label="Secondary menu toggle with checkbox split button"
22
- />{' '}
23
- <MenuToggle
24
- variant="secondary"
25
- splitButtonOptions={{
26
- items: [
27
- <MenuToggleCheckbox
28
- id="split-button-checkbox-secondary-example"
29
- key="split-checkbox-secondary"
30
- aria-label="Select all"
31
- >
32
- 10 selected
33
- </MenuToggleCheckbox>
34
- ]
35
- }}
36
- aria-label="Secondary menu toggle with checkbox split button"
37
- />{' '}
38
- <MenuToggle
39
- isExpanded
40
- variant="secondary"
41
- splitButtonOptions={{
42
- items: [
43
- <MenuToggleCheckbox
44
- id="split-button-checkbox-secondary-expanded-example"
45
- key="split-checkbox-secondary-expanded"
46
- aria-label="Select all"
47
- >
48
- 10 selected
49
- </MenuToggleCheckbox>
50
- ]
51
- }}
52
- aria-label="Secondary menu toggle with checkbox split button"
53
- />
54
- </React.Fragment>
55
- );