@patternfly/react-core 6.0.0-alpha.42 → 6.0.0-alpha.44
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 +10 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/DragDrop/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
- package/dist/dynamic/deprecated/components/Select/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/favorites/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/components/LoginPage/LoginMainFooterLinksItem.d.ts +0 -8
- package/dist/esm/components/LoginPage/LoginMainFooterLinksItem.d.ts.map +1 -1
- package/dist/esm/components/LoginPage/LoginMainFooterLinksItem.js +2 -4
- package/dist/esm/components/LoginPage/LoginMainFooterLinksItem.js.map +1 -1
- package/dist/esm/components/Nav/NavList.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavList.js +6 -8
- package/dist/esm/components/Nav/NavList.js.map +1 -1
- package/dist/js/components/LoginPage/LoginMainFooterLinksItem.d.ts +0 -8
- package/dist/js/components/LoginPage/LoginMainFooterLinksItem.d.ts.map +1 -1
- package/dist/js/components/LoginPage/LoginMainFooterLinksItem.js +2 -4
- package/dist/js/components/LoginPage/LoginMainFooterLinksItem.js.map +1 -1
- package/dist/js/components/Nav/NavList.d.ts.map +1 -1
- package/dist/js/components/Nav/NavList.js +6 -8
- package/dist/js/components/Nav/NavList.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -6
- package/src/components/LoginPage/LoginMainFooterLinksItem.tsx +5 -23
- package/src/components/LoginPage/__tests__/LoginMainFooterLinksItem.test.tsx +1 -1
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooterLinksItem.test.tsx.snap +5 -18
- package/src/components/LoginPage/examples/LoginPage.md +15 -2
- package/src/components/LoginPage/examples/LoginPageBasic.tsx +27 -36
- package/src/components/LoginPage/examples/LoginPageLanguageSelect.tsx +27 -36
- package/src/components/LoginPage/examples/LoginPageShowHidePassword.tsx +27 -36
- package/src/components/Nav/NavList.tsx +6 -10
- package/src/components/Nav/__tests__/__snapshots__/Nav.test.tsx.snap +0 -124
- package/src/components/Nav/examples/Nav.md +6 -0
- package/src/components/Nav/examples/NavHorizontalNav.tsx +32 -0
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +0 -186
package/helpers/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.0.0-alpha.43","private":true}
|
package/layouts/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.0.0-alpha.43","private":true}
|
package/next/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.0.0-alpha.43","private":true}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.44",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"clean:exports": "node scripts/cleanDistExports.js"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@patternfly/react-icons": "^6.0.0-alpha.
|
|
51
|
-
"@patternfly/react-styles": "^6.0.0-alpha.
|
|
52
|
-
"@patternfly/react-tokens": "^6.0.0-alpha.
|
|
50
|
+
"@patternfly/react-icons": "^6.0.0-alpha.17",
|
|
51
|
+
"@patternfly/react-styles": "^6.0.0-alpha.17",
|
|
52
|
+
"@patternfly/react-tokens": "^6.0.0-alpha.17",
|
|
53
53
|
"focus-trap": "7.5.2",
|
|
54
54
|
"react-dropzone": "^14.2.3",
|
|
55
55
|
"tslib": "^2.5.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@patternfly/patternfly": "6.0.0-alpha.
|
|
58
|
+
"@patternfly/patternfly": "6.0.0-alpha.100",
|
|
59
59
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
60
60
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
61
61
|
"@rollup/plugin-replace": "^5.0.2",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"react": "^17 || ^18",
|
|
75
75
|
"react-dom": "^17 || ^18"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "3214a349e6c5cced83a174611ce316a2c93b6d57"
|
|
78
78
|
}
|
|
@@ -5,35 +5,17 @@ import { css } from '@patternfly/react-styles';
|
|
|
5
5
|
export interface LoginMainFooterLinksItemProps extends React.HTMLProps<HTMLLIElement> {
|
|
6
6
|
/** Content rendered inside the footer link item */
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
/** HREF for footer link item */
|
|
9
|
-
href?: string;
|
|
10
|
-
/** Target for footer link item */
|
|
11
|
-
target?: string;
|
|
12
8
|
/** Additional classes added to the footer link item */
|
|
13
9
|
className?: string;
|
|
14
|
-
/** Component used to render the footer link item */
|
|
15
|
-
linkComponent?: React.ReactNode;
|
|
16
|
-
/** Props for the LinkComponent */
|
|
17
|
-
linkComponentProps?: any;
|
|
18
10
|
}
|
|
19
11
|
|
|
20
12
|
export const LoginMainFooterLinksItem: React.FunctionComponent<LoginMainFooterLinksItemProps> = ({
|
|
21
13
|
children = null,
|
|
22
|
-
href = '',
|
|
23
|
-
target,
|
|
24
14
|
className = '',
|
|
25
|
-
linkComponent = 'a',
|
|
26
|
-
linkComponentProps,
|
|
27
15
|
...props
|
|
28
|
-
}: LoginMainFooterLinksItemProps) =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<LinkComponent href={href} target={target} {...linkComponentProps}>
|
|
34
|
-
{children}
|
|
35
|
-
</LinkComponent>
|
|
36
|
-
</li>
|
|
37
|
-
);
|
|
38
|
-
};
|
|
16
|
+
}: LoginMainFooterLinksItemProps) => (
|
|
17
|
+
<li className={css(styles.loginMainFooterLinksItem, className)} {...props}>
|
|
18
|
+
{children}
|
|
19
|
+
</li>
|
|
20
|
+
);
|
|
39
21
|
LoginMainFooterLinksItem.displayName = 'LoginMainFooterLinksItem';
|
|
@@ -4,7 +4,7 @@ import { LoginMainFooterLinksItem } from '../LoginMainFooterLinksItem';
|
|
|
4
4
|
|
|
5
5
|
describe('LoginMainFooterLinksItem', () => {
|
|
6
6
|
test('renders with PatternFly Core styles', () => {
|
|
7
|
-
const { asFragment } = render(<LoginMainFooterLinksItem
|
|
7
|
+
const { asFragment } = render(<LoginMainFooterLinksItem />);
|
|
8
8
|
expect(asFragment()).toMatchSnapshot();
|
|
9
9
|
});
|
|
10
10
|
|
package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooterLinksItem.test.tsx.snap
CHANGED
|
@@ -4,11 +4,7 @@ exports[`LoginMainFooterLinksItem className is added to the root element 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<li
|
|
6
6
|
class="pf-v6-c-login__main-footer-links-item extra-class"
|
|
7
|
-
|
|
8
|
-
<a
|
|
9
|
-
href=""
|
|
10
|
-
/>
|
|
11
|
-
</li>
|
|
7
|
+
/>
|
|
12
8
|
</DocumentFragment>
|
|
13
9
|
`;
|
|
14
10
|
|
|
@@ -16,12 +12,7 @@ exports[`LoginMainFooterLinksItem renders with PatternFly Core styles 1`] = `
|
|
|
16
12
|
<DocumentFragment>
|
|
17
13
|
<li
|
|
18
14
|
class="pf-v6-c-login__main-footer-links-item"
|
|
19
|
-
|
|
20
|
-
<a
|
|
21
|
-
href="#"
|
|
22
|
-
target=""
|
|
23
|
-
/>
|
|
24
|
-
</li>
|
|
15
|
+
/>
|
|
25
16
|
</DocumentFragment>
|
|
26
17
|
`;
|
|
27
18
|
|
|
@@ -30,13 +21,9 @@ exports[`LoginMainFooterLinksItem with custom node 1`] = `
|
|
|
30
21
|
<li
|
|
31
22
|
class="pf-v6-c-login__main-footer-links-item"
|
|
32
23
|
>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
>
|
|
36
|
-
<div>
|
|
37
|
-
My custom node
|
|
38
|
-
</div>
|
|
39
|
-
</a>
|
|
24
|
+
<div>
|
|
25
|
+
My custom node
|
|
26
|
+
</div>
|
|
40
27
|
</li>
|
|
41
28
|
</DocumentFragment>
|
|
42
29
|
`;
|
|
@@ -14,19 +14,30 @@ propComponents:
|
|
|
14
14
|
'LoginMainFooter',
|
|
15
15
|
'LoginFooterItem',
|
|
16
16
|
'LoginMainFooterBandItem',
|
|
17
|
-
'LoginMainFooterLinksItem'
|
|
17
|
+
'LoginMainFooterLinksItem'
|
|
18
18
|
]
|
|
19
19
|
---
|
|
20
|
+
|
|
20
21
|
import brandImg2 from '../../assets/brandImgColor2.svg';
|
|
21
22
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
23
|
+
import GoogleIcon from '@patternfly/react-icons/dist/esm/icons/google-icon';
|
|
24
|
+
import GithubIcon from '@patternfly/react-icons/dist/esm/icons/github-icon';
|
|
25
|
+
import DropboxIcon from '@patternfly/react-icons/dist/esm/icons/dropbox-icon';
|
|
26
|
+
import FacebookSquareIcon from '@patternfly/react-icons/dist/esm/icons/facebook-square-icon';
|
|
27
|
+
import GitlabIcon from '@patternfly/react-icons/dist/esm/icons/gitlab-icon';
|
|
22
28
|
|
|
23
29
|
## Examples
|
|
30
|
+
|
|
24
31
|
### Basic
|
|
32
|
+
|
|
25
33
|
```ts file='./LoginPageBasic.tsx' isFullscreen
|
|
34
|
+
|
|
26
35
|
```
|
|
27
36
|
|
|
28
37
|
### Show/hide password
|
|
38
|
+
|
|
29
39
|
```ts file='./LoginPageShowHidePassword.tsx' isFullscreen
|
|
40
|
+
|
|
30
41
|
```
|
|
31
42
|
|
|
32
43
|
### Customizing the header utilities
|
|
@@ -34,5 +45,7 @@ import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclam
|
|
|
34
45
|
`headerUtilities` is a prop that can be customized to allow components to be placed into the header of the login page, likely for the user to take an action. The following example demonstrates the use of a Select component to display a list a languages.
|
|
35
46
|
|
|
36
47
|
### With header utilities
|
|
48
|
+
|
|
37
49
|
```ts file='./LoginPageLanguageSelect.tsx' isFullscreen
|
|
38
|
-
|
|
50
|
+
|
|
51
|
+
```
|
|
@@ -7,9 +7,15 @@ import {
|
|
|
7
7
|
LoginMainFooterLinksItem,
|
|
8
8
|
LoginPage,
|
|
9
9
|
ListItem,
|
|
10
|
-
ListVariant
|
|
10
|
+
ListVariant,
|
|
11
|
+
Button
|
|
11
12
|
} from '@patternfly/react-core';
|
|
12
13
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
14
|
+
import GoogleIcon from '@patternfly/react-icons/dist/esm/icons/google-icon';
|
|
15
|
+
import GithubIcon from '@patternfly/react-icons/dist/esm/icons/github-icon';
|
|
16
|
+
import DropboxIcon from '@patternfly/react-icons/dist/esm/icons/dropbox-icon';
|
|
17
|
+
import FacebookSquareIcon from '@patternfly/react-icons/dist/esm/icons/facebook-square-icon';
|
|
18
|
+
import GitlabIcon from '@patternfly/react-icons/dist/esm/icons/gitlab-icon';
|
|
13
19
|
|
|
14
20
|
export const SimpleLoginPage: React.FunctionComponent = () => {
|
|
15
21
|
const [showHelperText, setShowHelperText] = React.useState(false);
|
|
@@ -40,45 +46,30 @@ export const SimpleLoginPage: React.FunctionComponent = () => {
|
|
|
40
46
|
|
|
41
47
|
const socialMediaLoginContent = (
|
|
42
48
|
<React.Fragment>
|
|
43
|
-
<LoginMainFooterLinksItem
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 488 512">
|
|
48
|
-
<path d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z" />
|
|
49
|
-
</svg>
|
|
49
|
+
<LoginMainFooterLinksItem>
|
|
50
|
+
<Button variant="plain" aria-label="Login with Google">
|
|
51
|
+
<GoogleIcon />
|
|
52
|
+
</Button>
|
|
50
53
|
</LoginMainFooterLinksItem>
|
|
51
|
-
<LoginMainFooterLinksItem
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512">
|
|
56
|
-
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z" />
|
|
57
|
-
</svg>
|
|
54
|
+
<LoginMainFooterLinksItem>
|
|
55
|
+
<Button variant="plain" aria-label="Login with Github">
|
|
56
|
+
<GithubIcon />
|
|
57
|
+
</Button>
|
|
58
58
|
</LoginMainFooterLinksItem>
|
|
59
|
-
<LoginMainFooterLinksItem
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 528 512">
|
|
64
|
-
<path d="M264.4 116.3l-132 84.3 132 84.3-132 84.3L0 284.1l132.3-84.3L0 116.3 132.3 32l132.1 84.3zM131.6 395.7l132-84.3 132 84.3-132 84.3-132-84.3zm132.8-111.6l132-84.3-132-83.6L395.7 32 528 116.3l-132.3 84.3L528 284.8l-132.3 84.3-131.3-85z" />
|
|
65
|
-
</svg>
|
|
59
|
+
<LoginMainFooterLinksItem>
|
|
60
|
+
<Button variant="plain" aria-label="Login with Dropbox">
|
|
61
|
+
<DropboxIcon />
|
|
62
|
+
</Button>
|
|
66
63
|
</LoginMainFooterLinksItem>
|
|
67
|
-
<LoginMainFooterLinksItem
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
72
|
-
<path d="M448 56.7v398.5c0 13.7-11.1 24.7-24.7 24.7H309.1V306.5h58.2l8.7-67.6h-67v-43.2c0-19.6 5.4-32.9 33.5-32.9h35.8v-60.5c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9h-58.4v67.6h58.4V480H24.7C11.1 480 0 468.9 0 455.3V56.7C0 43.1 11.1 32 24.7 32h398.5c13.7 0 24.8 11.1 24.8 24.7z" />
|
|
73
|
-
</svg>
|
|
64
|
+
<LoginMainFooterLinksItem>
|
|
65
|
+
<Button variant="plain" aria-label="Login with Facebook">
|
|
66
|
+
<FacebookSquareIcon />
|
|
67
|
+
</Button>
|
|
74
68
|
</LoginMainFooterLinksItem>
|
|
75
|
-
<LoginMainFooterLinksItem
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
80
|
-
<path d="M29.782 199.732L256 493.714 8.074 309.699c-6.856-5.142-9.712-13.996-7.141-21.993l28.849-87.974zm75.405-174.806c-3.142-8.854-15.709-8.854-18.851 0L29.782 199.732h131.961L105.187 24.926zm56.556 174.806L256 493.714l94.257-293.982H161.743zm349.324 87.974l-28.849-87.974L256 493.714l247.926-184.015c6.855-5.142 9.711-13.996 7.141-21.993zm-85.404-262.78c-3.142-8.854-15.709-8.854-18.851 0l-56.555 174.806h131.961L425.663 24.926z" />
|
|
81
|
-
</svg>
|
|
69
|
+
<LoginMainFooterLinksItem>
|
|
70
|
+
<Button variant="plain" aria-label="Login with Gitlab">
|
|
71
|
+
<GitlabIcon />
|
|
72
|
+
</Button>
|
|
82
73
|
</LoginMainFooterLinksItem>
|
|
83
74
|
</React.Fragment>
|
|
84
75
|
);
|
|
@@ -12,9 +12,15 @@ import {
|
|
|
12
12
|
MenuToggleElement,
|
|
13
13
|
Select,
|
|
14
14
|
SelectList,
|
|
15
|
-
SelectOption
|
|
15
|
+
SelectOption,
|
|
16
|
+
Button
|
|
16
17
|
} from '@patternfly/react-core';
|
|
17
18
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
19
|
+
import GoogleIcon from '@patternfly/react-icons/dist/esm/icons/google-icon';
|
|
20
|
+
import GithubIcon from '@patternfly/react-icons/dist/esm/icons/github-icon';
|
|
21
|
+
import DropboxIcon from '@patternfly/react-icons/dist/esm/icons/dropbox-icon';
|
|
22
|
+
import FacebookSquareIcon from '@patternfly/react-icons/dist/esm/icons/facebook-square-icon';
|
|
23
|
+
import GitlabIcon from '@patternfly/react-icons/dist/esm/icons/gitlab-icon';
|
|
18
24
|
|
|
19
25
|
export const LoginPageLanguageSelect: React.FunctionComponent = () => {
|
|
20
26
|
const [showHelperText, setShowHelperText] = React.useState(false);
|
|
@@ -113,45 +119,30 @@ export const LoginPageLanguageSelect: React.FunctionComponent = () => {
|
|
|
113
119
|
|
|
114
120
|
const socialMediaLoginContent = (
|
|
115
121
|
<React.Fragment>
|
|
116
|
-
<LoginMainFooterLinksItem
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 488 512">
|
|
121
|
-
<path d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z" />
|
|
122
|
-
</svg>
|
|
122
|
+
<LoginMainFooterLinksItem>
|
|
123
|
+
<Button variant="plain" aria-label="Login with Google">
|
|
124
|
+
<GoogleIcon />
|
|
125
|
+
</Button>
|
|
123
126
|
</LoginMainFooterLinksItem>
|
|
124
|
-
<LoginMainFooterLinksItem
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512">
|
|
129
|
-
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z" />
|
|
130
|
-
</svg>
|
|
127
|
+
<LoginMainFooterLinksItem>
|
|
128
|
+
<Button variant="plain" aria-label="Login with Github">
|
|
129
|
+
<GithubIcon />
|
|
130
|
+
</Button>
|
|
131
131
|
</LoginMainFooterLinksItem>
|
|
132
|
-
<LoginMainFooterLinksItem
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 528 512">
|
|
137
|
-
<path d="M264.4 116.3l-132 84.3 132 84.3-132 84.3L0 284.1l132.3-84.3L0 116.3 132.3 32l132.1 84.3zM131.6 395.7l132-84.3 132 84.3-132 84.3-132-84.3zm132.8-111.6l132-84.3-132-83.6L395.7 32 528 116.3l-132.3 84.3L528 284.8l-132.3 84.3-131.3-85z" />
|
|
138
|
-
</svg>
|
|
132
|
+
<LoginMainFooterLinksItem>
|
|
133
|
+
<Button variant="plain" aria-label="Login with Dropbox">
|
|
134
|
+
<DropboxIcon />
|
|
135
|
+
</Button>
|
|
139
136
|
</LoginMainFooterLinksItem>
|
|
140
|
-
<LoginMainFooterLinksItem
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
145
|
-
<path d="M448 56.7v398.5c0 13.7-11.1 24.7-24.7 24.7H309.1V306.5h58.2l8.7-67.6h-67v-43.2c0-19.6 5.4-32.9 33.5-32.9h35.8v-60.5c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9h-58.4v67.6h58.4V480H24.7C11.1 480 0 468.9 0 455.3V56.7C0 43.1 11.1 32 24.7 32h398.5c13.7 0 24.8 11.1 24.8 24.7z" />
|
|
146
|
-
</svg>
|
|
137
|
+
<LoginMainFooterLinksItem>
|
|
138
|
+
<Button variant="plain" aria-label="Login with Facebook">
|
|
139
|
+
<FacebookSquareIcon />
|
|
140
|
+
</Button>
|
|
147
141
|
</LoginMainFooterLinksItem>
|
|
148
|
-
<LoginMainFooterLinksItem
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
153
|
-
<path d="M29.782 199.732L256 493.714 8.074 309.699c-6.856-5.142-9.712-13.996-7.141-21.993l28.849-87.974zm75.405-174.806c-3.142-8.854-15.709-8.854-18.851 0L29.782 199.732h131.961L105.187 24.926zm56.556 174.806L256 493.714l94.257-293.982H161.743zm349.324 87.974l-28.849-87.974L256 493.714l247.926-184.015c6.855-5.142 9.711-13.996 7.141-21.993zm-85.404-262.78c-3.142-8.854-15.709-8.854-18.851 0l-56.555 174.806h131.961L425.663 24.926z" />
|
|
154
|
-
</svg>
|
|
142
|
+
<LoginMainFooterLinksItem>
|
|
143
|
+
<Button variant="plain" aria-label="Login with Gitlab">
|
|
144
|
+
<GitlabIcon />
|
|
145
|
+
</Button>
|
|
155
146
|
</LoginMainFooterLinksItem>
|
|
156
147
|
</React.Fragment>
|
|
157
148
|
);
|
|
@@ -7,9 +7,15 @@ import {
|
|
|
7
7
|
LoginMainFooterLinksItem,
|
|
8
8
|
LoginPage,
|
|
9
9
|
ListItem,
|
|
10
|
-
ListVariant
|
|
10
|
+
ListVariant,
|
|
11
|
+
Button
|
|
11
12
|
} from '@patternfly/react-core';
|
|
12
13
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
14
|
+
import GoogleIcon from '@patternfly/react-icons/dist/esm/icons/google-icon';
|
|
15
|
+
import GithubIcon from '@patternfly/react-icons/dist/esm/icons/github-icon';
|
|
16
|
+
import DropboxIcon from '@patternfly/react-icons/dist/esm/icons/dropbox-icon';
|
|
17
|
+
import FacebookSquareIcon from '@patternfly/react-icons/dist/esm/icons/facebook-square-icon';
|
|
18
|
+
import GitlabIcon from '@patternfly/react-icons/dist/esm/icons/gitlab-icon';
|
|
13
19
|
|
|
14
20
|
export const LoginPageHideShowPassword: React.FunctionComponent = () => {
|
|
15
21
|
const [showHelperText, setShowHelperText] = React.useState(false);
|
|
@@ -40,45 +46,30 @@ export const LoginPageHideShowPassword: React.FunctionComponent = () => {
|
|
|
40
46
|
|
|
41
47
|
const socialMediaLoginContent = (
|
|
42
48
|
<React.Fragment>
|
|
43
|
-
<LoginMainFooterLinksItem
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 488 512">
|
|
48
|
-
<path d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z" />
|
|
49
|
-
</svg>
|
|
49
|
+
<LoginMainFooterLinksItem>
|
|
50
|
+
<Button variant="plain" aria-label="Login with Google">
|
|
51
|
+
<GoogleIcon />
|
|
52
|
+
</Button>
|
|
50
53
|
</LoginMainFooterLinksItem>
|
|
51
|
-
<LoginMainFooterLinksItem
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512">
|
|
56
|
-
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z" />
|
|
57
|
-
</svg>
|
|
54
|
+
<LoginMainFooterLinksItem>
|
|
55
|
+
<Button variant="plain" aria-label="Login with Github">
|
|
56
|
+
<GithubIcon />
|
|
57
|
+
</Button>
|
|
58
58
|
</LoginMainFooterLinksItem>
|
|
59
|
-
<LoginMainFooterLinksItem
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 528 512">
|
|
64
|
-
<path d="M264.4 116.3l-132 84.3 132 84.3-132 84.3L0 284.1l132.3-84.3L0 116.3 132.3 32l132.1 84.3zM131.6 395.7l132-84.3 132 84.3-132 84.3-132-84.3zm132.8-111.6l132-84.3-132-83.6L395.7 32 528 116.3l-132.3 84.3L528 284.8l-132.3 84.3-131.3-85z" />
|
|
65
|
-
</svg>
|
|
59
|
+
<LoginMainFooterLinksItem>
|
|
60
|
+
<Button variant="plain" aria-label="Login with Dropbox">
|
|
61
|
+
<DropboxIcon />
|
|
62
|
+
</Button>
|
|
66
63
|
</LoginMainFooterLinksItem>
|
|
67
|
-
<LoginMainFooterLinksItem
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
72
|
-
<path d="M448 56.7v398.5c0 13.7-11.1 24.7-24.7 24.7H309.1V306.5h58.2l8.7-67.6h-67v-43.2c0-19.6 5.4-32.9 33.5-32.9h35.8v-60.5c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9h-58.4v67.6h58.4V480H24.7C11.1 480 0 468.9 0 455.3V56.7C0 43.1 11.1 32 24.7 32h398.5c13.7 0 24.8 11.1 24.8 24.7z" />
|
|
73
|
-
</svg>
|
|
64
|
+
<LoginMainFooterLinksItem>
|
|
65
|
+
<Button variant="plain" aria-label="Login with Facebook">
|
|
66
|
+
<FacebookSquareIcon />
|
|
67
|
+
</Button>
|
|
74
68
|
</LoginMainFooterLinksItem>
|
|
75
|
-
<LoginMainFooterLinksItem
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
80
|
-
<path d="M29.782 199.732L256 493.714 8.074 309.699c-6.856-5.142-9.712-13.996-7.141-21.993l28.849-87.974zm75.405-174.806c-3.142-8.854-15.709-8.854-18.851 0L29.782 199.732h131.961L105.187 24.926zm56.556 174.806L256 493.714l94.257-293.982H161.743zm349.324 87.974l-28.849-87.974L256 493.714l247.926-184.015c6.855-5.142 9.711-13.996 7.141-21.993zm-85.404-262.78c-3.142-8.854-15.709-8.854-18.851 0l-56.555 174.806h131.961L425.663 24.926z" />
|
|
81
|
-
</svg>
|
|
69
|
+
<LoginMainFooterLinksItem>
|
|
70
|
+
<Button variant="plain" aria-label="Login with Gitlab">
|
|
71
|
+
<GitlabIcon />
|
|
72
|
+
</Button>
|
|
82
73
|
</LoginMainFooterLinksItem>
|
|
83
74
|
</React.Fragment>
|
|
84
75
|
);
|
|
@@ -143,18 +143,16 @@ class NavList extends React.Component<NavListProps> {
|
|
|
143
143
|
<PageSidebarContext.Consumer>
|
|
144
144
|
{({ isSidebarOpen }) => (
|
|
145
145
|
<React.Fragment>
|
|
146
|
-
{isHorizontal && (
|
|
146
|
+
{isHorizontal && (!scrollViewAtStart || !scrollViewAtEnd) && (
|
|
147
147
|
<div className={css(styles.navScrollButton)}>
|
|
148
148
|
<Button
|
|
149
149
|
variant="plain"
|
|
150
150
|
aria-label={backScrollAriaLabel || ariaLeftScroll}
|
|
151
151
|
onClick={this.scrollBack}
|
|
152
|
-
|
|
152
|
+
isDisabled={scrollViewAtStart}
|
|
153
153
|
tabIndex={isSidebarOpen ? null : -1}
|
|
154
154
|
>
|
|
155
|
-
<
|
|
156
|
-
<AngleLeftIcon />
|
|
157
|
-
</span>
|
|
155
|
+
<AngleLeftIcon />
|
|
158
156
|
</Button>
|
|
159
157
|
</div>
|
|
160
158
|
)}
|
|
@@ -167,18 +165,16 @@ class NavList extends React.Component<NavListProps> {
|
|
|
167
165
|
>
|
|
168
166
|
{children}
|
|
169
167
|
</ul>
|
|
170
|
-
{isHorizontal && (
|
|
168
|
+
{isHorizontal && (!scrollViewAtStart || !scrollViewAtEnd) && (
|
|
171
169
|
<div className={css(styles.navScrollButton)}>
|
|
172
170
|
<Button
|
|
173
171
|
variant="plain"
|
|
174
172
|
aria-label={forwardScrollAriaLabel || ariaRightScroll}
|
|
175
173
|
onClick={this.scrollForward}
|
|
176
|
-
|
|
174
|
+
isDisabled={scrollViewAtEnd}
|
|
177
175
|
tabIndex={isSidebarOpen ? null : -1}
|
|
178
176
|
>
|
|
179
|
-
<
|
|
180
|
-
<AngleRightIcon />
|
|
181
|
-
</span>
|
|
177
|
+
<AngleRightIcon />
|
|
182
178
|
</Button>
|
|
183
179
|
</div>
|
|
184
180
|
)}
|
|
@@ -502,37 +502,6 @@ exports[`Nav Horizontal Nav List 1`] = `
|
|
|
502
502
|
data-ouia-component-type="PF5/Nav"
|
|
503
503
|
data-ouia-safe="true"
|
|
504
504
|
>
|
|
505
|
-
<div
|
|
506
|
-
class="pf-v6-c-nav__scroll-button"
|
|
507
|
-
>
|
|
508
|
-
<button
|
|
509
|
-
aria-disabled="false"
|
|
510
|
-
aria-label="Scroll back"
|
|
511
|
-
class="pf-v6-c-button pf-m-plain"
|
|
512
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-1"
|
|
513
|
-
data-ouia-component-type="PF5/Button"
|
|
514
|
-
data-ouia-safe="true"
|
|
515
|
-
type="button"
|
|
516
|
-
>
|
|
517
|
-
<span
|
|
518
|
-
class="pf-v6-c-button__icon"
|
|
519
|
-
>
|
|
520
|
-
<svg
|
|
521
|
-
aria-hidden="true"
|
|
522
|
-
class="pf-v6-svg"
|
|
523
|
-
fill="currentColor"
|
|
524
|
-
height="1em"
|
|
525
|
-
role="img"
|
|
526
|
-
viewBox="0 0 256 512"
|
|
527
|
-
width="1em"
|
|
528
|
-
>
|
|
529
|
-
<path
|
|
530
|
-
d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"
|
|
531
|
-
/>
|
|
532
|
-
</svg>
|
|
533
|
-
</span>
|
|
534
|
-
</button>
|
|
535
|
-
</div>
|
|
536
505
|
<ul
|
|
537
506
|
class="pf-v6-c-nav__list"
|
|
538
507
|
role="list"
|
|
@@ -590,37 +559,6 @@ exports[`Nav Horizontal Nav List 1`] = `
|
|
|
590
559
|
</a>
|
|
591
560
|
</li>
|
|
592
561
|
</ul>
|
|
593
|
-
<div
|
|
594
|
-
class="pf-v6-c-nav__scroll-button"
|
|
595
|
-
>
|
|
596
|
-
<button
|
|
597
|
-
aria-disabled="false"
|
|
598
|
-
aria-label="Scroll foward"
|
|
599
|
-
class="pf-v6-c-button pf-m-plain"
|
|
600
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-2"
|
|
601
|
-
data-ouia-component-type="PF5/Button"
|
|
602
|
-
data-ouia-safe="true"
|
|
603
|
-
type="button"
|
|
604
|
-
>
|
|
605
|
-
<span
|
|
606
|
-
class="pf-v6-c-button__icon"
|
|
607
|
-
>
|
|
608
|
-
<svg
|
|
609
|
-
aria-hidden="true"
|
|
610
|
-
class="pf-v6-svg"
|
|
611
|
-
fill="currentColor"
|
|
612
|
-
height="1em"
|
|
613
|
-
role="img"
|
|
614
|
-
viewBox="0 0 256 512"
|
|
615
|
-
width="1em"
|
|
616
|
-
>
|
|
617
|
-
<path
|
|
618
|
-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
619
|
-
/>
|
|
620
|
-
</svg>
|
|
621
|
-
</span>
|
|
622
|
-
</button>
|
|
623
|
-
</div>
|
|
624
562
|
</nav>
|
|
625
563
|
</DocumentFragment>
|
|
626
564
|
`;
|
|
@@ -634,37 +572,6 @@ exports[`Nav Horizontal SubNav List 1`] = `
|
|
|
634
572
|
data-ouia-component-type="PF5/Nav"
|
|
635
573
|
data-ouia-safe="true"
|
|
636
574
|
>
|
|
637
|
-
<div
|
|
638
|
-
class="pf-v6-c-nav__scroll-button"
|
|
639
|
-
>
|
|
640
|
-
<button
|
|
641
|
-
aria-disabled="false"
|
|
642
|
-
aria-label="Scroll back"
|
|
643
|
-
class="pf-v6-c-button pf-m-plain"
|
|
644
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-3"
|
|
645
|
-
data-ouia-component-type="PF5/Button"
|
|
646
|
-
data-ouia-safe="true"
|
|
647
|
-
type="button"
|
|
648
|
-
>
|
|
649
|
-
<span
|
|
650
|
-
class="pf-v6-c-button__icon"
|
|
651
|
-
>
|
|
652
|
-
<svg
|
|
653
|
-
aria-hidden="true"
|
|
654
|
-
class="pf-v6-svg"
|
|
655
|
-
fill="currentColor"
|
|
656
|
-
height="1em"
|
|
657
|
-
role="img"
|
|
658
|
-
viewBox="0 0 256 512"
|
|
659
|
-
width="1em"
|
|
660
|
-
>
|
|
661
|
-
<path
|
|
662
|
-
d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"
|
|
663
|
-
/>
|
|
664
|
-
</svg>
|
|
665
|
-
</span>
|
|
666
|
-
</button>
|
|
667
|
-
</div>
|
|
668
575
|
<ul
|
|
669
576
|
class="pf-v6-c-nav__list"
|
|
670
577
|
role="list"
|
|
@@ -722,37 +629,6 @@ exports[`Nav Horizontal SubNav List 1`] = `
|
|
|
722
629
|
</a>
|
|
723
630
|
</li>
|
|
724
631
|
</ul>
|
|
725
|
-
<div
|
|
726
|
-
class="pf-v6-c-nav__scroll-button"
|
|
727
|
-
>
|
|
728
|
-
<button
|
|
729
|
-
aria-disabled="false"
|
|
730
|
-
aria-label="Scroll foward"
|
|
731
|
-
class="pf-v6-c-button pf-m-plain"
|
|
732
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-4"
|
|
733
|
-
data-ouia-component-type="PF5/Button"
|
|
734
|
-
data-ouia-safe="true"
|
|
735
|
-
type="button"
|
|
736
|
-
>
|
|
737
|
-
<span
|
|
738
|
-
class="pf-v6-c-button__icon"
|
|
739
|
-
>
|
|
740
|
-
<svg
|
|
741
|
-
aria-hidden="true"
|
|
742
|
-
class="pf-v6-svg"
|
|
743
|
-
fill="currentColor"
|
|
744
|
-
height="1em"
|
|
745
|
-
role="img"
|
|
746
|
-
viewBox="0 0 256 512"
|
|
747
|
-
width="1em"
|
|
748
|
-
>
|
|
749
|
-
<path
|
|
750
|
-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
|
|
751
|
-
/>
|
|
752
|
-
</svg>
|
|
753
|
-
</span>
|
|
754
|
-
</button>
|
|
755
|
-
</div>
|
|
756
632
|
</nav>
|
|
757
633
|
</DocumentFragment>
|
|
758
634
|
`;
|