@pingux/astro 2.121.0-alpha.0 → 2.121.0-alpha.2
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/lib/cjs/components/Footer/CopyrightText.d.ts +4 -0
- package/lib/cjs/components/Footer/CopyrightText.js +28 -0
- package/lib/cjs/components/Footer/Footer.d.ts +3 -0
- package/lib/cjs/components/Footer/Footer.js +35 -0
- package/lib/cjs/components/Footer/Footer.mdx +30 -0
- package/lib/cjs/components/Footer/Footer.stories.d.ts +5 -0
- package/lib/cjs/components/Footer/Footer.stories.js +148 -0
- package/lib/cjs/components/Footer/Footer.styles.js +9 -0
- package/lib/cjs/components/Footer/Footer.test.d.ts +1 -0
- package/lib/cjs/components/Footer/Footer.test.js +109 -0
- package/lib/cjs/components/Footer/FooterNav.d.ts +4 -0
- package/lib/cjs/components/Footer/FooterNav.js +25 -0
- package/lib/cjs/components/Footer/FooterNavItem.d.ts +6 -0
- package/lib/cjs/components/Footer/FooterNavItem.js +23 -0
- package/lib/cjs/components/Footer/index.d.ts +4 -0
- package/lib/cjs/components/Footer/index.js +35 -0
- package/lib/cjs/components/Footer/stories/FooterNextGenComponent.d.ts +2 -0
- package/lib/cjs/components/Footer/stories/FooterNextGenComponent.js +126 -0
- package/lib/cjs/{recipes/NextGen/ListViewNextGen.stories.js → components/Footer/stories/NextGenDarkFooterStory.chomatic.stories.js} +6 -7
- package/lib/cjs/components/Footer/stories/NextGenFooterStory.chromatic.stories.js +22 -0
- package/lib/cjs/components/Icon/Icon.js +13 -10
- package/lib/cjs/components/IconButton/IconButton.styles.d.ts +37 -0
- package/lib/cjs/components/IconButton/IconButton.styles.js +6 -1
- package/lib/cjs/components/IconWrapper/iconWrapperAttributes.js +1 -1
- package/lib/cjs/components/Link/Link.styles.d.ts +37 -0
- package/lib/cjs/components/Link/Link.styles.js +31 -1
- package/lib/cjs/components/ListView/ListView.js +5 -0
- package/lib/cjs/components/ListView/ListView.stories.d.ts +3 -3
- package/lib/cjs/components/ListView/ListView.stories.js +27 -458
- package/lib/cjs/components/ListView/ListViewExpandableItem.js +1 -0
- package/lib/cjs/components/ListView/ListViewItem.js +4 -1
- package/lib/cjs/{styles/themes/next-gen/stories/NextGenListView.chromatic.stories.js → components/ListView/stories/ListView.chromatic.stories.js} +2 -2
- package/lib/cjs/components/ListView/stories/ListViewNextGenComponent.js +144 -0
- package/lib/cjs/components/ListView/stories/ListViewOnyxDark.stories.d.ts +6 -0
- package/lib/cjs/{styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.js → components/ListView/stories/ListViewOnyxDark.stories.js} +3 -3
- package/lib/cjs/components/ListViewItem/ListViewItem.js +16 -5
- package/lib/cjs/components/ListViewItem/ListViewItem.stories.js +40 -3
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +15 -1
- package/lib/cjs/components/ListViewItem/controls/ListViewItemEditButton.js +1 -1
- package/lib/cjs/components/ListViewItem/controls/ListViewItemMenu.js +9 -3
- package/lib/cjs/components/ListViewItem/controls/ListViewItemMenu.test.js +1 -0
- package/lib/cjs/components/ListViewItem/controls/chart/ListViewItemChart.js +5 -1
- package/lib/cjs/components/Pagination/Pagination.stories.js +3 -3
- package/lib/cjs/components/SearchField/SearchField.js +2 -8
- package/lib/cjs/components/Text/Text.styles.d.ts +7 -0
- package/lib/cjs/components/Text/Text.styles.js +8 -0
- package/lib/cjs/hooks/useExpandableListViewItem/useExpandableListViewItem.js +9 -3
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +2 -0
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +76 -57
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +4 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +4 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/nextGenDarkModeOverride.js +2 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/footer.d.ts +5 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/footer.js +14 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.d.ts +27 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.js +13 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/listview.d.ts +58 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/{lsitview.js → listview.js} +37 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +18 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +26 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +39 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +6 -3
- package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +1 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.js +2 -1
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.js +4 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +2 -2
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +2 -1
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +175 -18
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +29 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +14 -2
- package/lib/cjs/styles/themes/next-gen/variants/footer.d.ts +31 -0
- package/lib/cjs/styles/themes/next-gen/variants/footer.js +43 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +21 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.js +18 -2
- package/lib/cjs/styles/themes/next-gen/variants/listview.d.ts +79 -17
- package/lib/cjs/styles/themes/next-gen/variants/listview.js +89 -24
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +13 -1
- package/lib/cjs/styles/themes/next-gen/variants/text.js +16 -4
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +113 -17
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +10 -1
- package/lib/cjs/styles/variants/variants.js +2 -0
- package/lib/cjs/types/footer.d.ts +11 -0
- package/lib/cjs/types/footer.js +6 -0
- package/lib/cjs/types/iconWrapper.d.ts +1 -1
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +53 -42
- package/lib/cjs/utils/devUtils/constants/animals.js +449 -1
- package/lib/cjs/utils/devUtils/constants/images.d.ts +1 -0
- package/lib/cjs/utils/devUtils/constants/images.js +4 -2
- package/lib/components/Footer/CopyrightText.js +19 -0
- package/lib/components/Footer/Footer.js +21 -0
- package/lib/components/Footer/Footer.mdx +30 -0
- package/lib/components/Footer/Footer.stories.js +138 -0
- package/lib/components/Footer/Footer.styles.js +1 -0
- package/lib/components/Footer/Footer.test.js +100 -0
- package/lib/components/Footer/FooterNav.js +16 -0
- package/lib/components/Footer/FooterNavItem.js +14 -0
- package/lib/components/Footer/index.js +4 -0
- package/lib/components/Footer/stories/FooterNextGenComponent.js +117 -0
- package/lib/components/Footer/stories/NextGenDarkFooterStory.chomatic.stories.js +12 -0
- package/lib/components/Footer/stories/NextGenFooterStory.chromatic.stories.js +12 -0
- package/lib/components/Icon/Icon.js +13 -10
- package/lib/components/IconButton/IconButton.styles.js +6 -1
- package/lib/components/IconWrapper/iconWrapperAttributes.js +1 -1
- package/lib/components/Link/Link.styles.js +31 -1
- package/lib/components/ListView/ListView.js +5 -0
- package/lib/components/ListView/ListView.stories.js +25 -455
- package/lib/components/ListView/ListViewExpandableItem.js +1 -0
- package/lib/components/ListView/ListViewItem.js +4 -1
- package/lib/{styles/themes/next-gen/stories/NextGenListView.chromatic.stories.js → components/ListView/stories/ListView.chromatic.stories.js} +2 -2
- package/lib/components/ListView/stories/ListViewNextGenComponent.js +130 -0
- package/lib/{styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.js → components/ListView/stories/ListViewOnyxDark.stories.js} +3 -3
- package/lib/components/ListViewItem/ListViewItem.js +18 -7
- package/lib/components/ListViewItem/ListViewItem.stories.js +40 -3
- package/lib/components/ListViewItem/ListViewItem.styles.js +15 -1
- package/lib/components/ListViewItem/controls/ListViewItemEditButton.js +1 -1
- package/lib/components/ListViewItem/controls/ListViewItemMenu.js +9 -3
- package/lib/components/ListViewItem/controls/ListViewItemMenu.test.js +1 -0
- package/lib/components/ListViewItem/controls/chart/ListViewItemChart.js +5 -1
- package/lib/components/Pagination/Pagination.stories.js +1 -1
- package/lib/components/SearchField/SearchField.js +2 -8
- package/lib/components/Text/Text.styles.js +8 -0
- package/lib/hooks/useExpandableListViewItem/useExpandableListViewItem.js +9 -3
- package/lib/index.js +2 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +4 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/nextGenDarkModeOverride.js +2 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/footer.js +6 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/links.js +13 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/listview.js +58 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +18 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +4 -1
- package/lib/styles/themes/astro/customProperties/icons.js +2 -1
- package/lib/styles/themes/next-gen/colors/iconWrapper.js +4 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +2 -2
- package/lib/styles/themes/next-gen/customProperties/icons.js +2 -1
- package/lib/styles/themes/next-gen/variants/button.js +13 -2
- package/lib/styles/themes/next-gen/variants/footer.js +35 -0
- package/lib/styles/themes/next-gen/variants/links.js +14 -2
- package/lib/styles/themes/next-gen/variants/listview.js +84 -22
- package/lib/styles/themes/next-gen/variants/text.js +16 -4
- package/lib/styles/themes/next-gen/variants/variants.js +11 -2
- package/lib/styles/variants/variants.js +2 -0
- package/lib/types/footer.js +1 -0
- package/lib/types/index.js +1 -0
- package/lib/utils/devUtils/constants/animals.js +449 -1
- package/lib/utils/devUtils/constants/images.js +2 -1
- package/package.json +5 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/lsitview.d.ts +0 -24
- package/lib/cjs/styles/themes/next-gen/stories/ListViewItemNextGen.d.ts +0 -29
- package/lib/cjs/styles/themes/next-gen/stories/ListViewItemNextGen.js +0 -84
- package/lib/cjs/styles/themes/next-gen/stories/ListViewNextGenComponent.js +0 -67
- package/lib/cjs/styles/themes/next-gen/stories/NextGenListViewItem.stories.js +0 -35
- package/lib/recipes/NextGen/ListViewNextGen.stories.js +0 -13
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/lsitview.js +0 -24
- package/lib/styles/themes/next-gen/stories/ListViewItemNextGen.js +0 -75
- package/lib/styles/themes/next-gen/stories/ListViewNextGenComponent.js +0 -58
- package/lib/styles/themes/next-gen/stories/NextGenListViewItem.stories.js +0 -25
- /package/lib/cjs/{styles/themeOverrides/nextGenDarkMode/stories/NextGenDarkListView.chromatic.stories.d.ts → components/Footer/stories/NextGenDarkFooterStory.chomatic.stories.d.ts} +0 -0
- /package/lib/cjs/{styles/themes/next-gen/stories/NextGenListView.chromatic.stories.d.ts → components/Footer/stories/NextGenFooterStory.chromatic.stories.d.ts} +0 -0
- /package/lib/cjs/{styles/themes/next-gen/stories/NextGenListViewItem.stories.d.ts → components/ListView/stories/ListView.chromatic.stories.d.ts} +0 -0
- /package/lib/cjs/{styles/themes/next-gen → components/ListView}/stories/ListViewNextGenComponent.d.ts +0 -0
@@ -0,0 +1,100 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
3
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
4
|
+
import React from 'react';
|
5
|
+
import { render, screen } from '@testing-library/react';
|
6
|
+
import { Link } from '../..';
|
7
|
+
import { universalComponentTests } from '../../utils/testUtils/universalComponentTest';
|
8
|
+
import Footer, { CopyrightText, FooterNav, FooterNavItem } from '.';
|
9
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
10
|
+
var legalLinks = [{
|
11
|
+
key: 'Legal',
|
12
|
+
text: 'Legal',
|
13
|
+
linkProps: {
|
14
|
+
href: 'https://www.pingidentity.com/en/legal.html',
|
15
|
+
'aria-label': 'Legal'
|
16
|
+
}
|
17
|
+
}, {
|
18
|
+
key: 'Privacy',
|
19
|
+
text: 'Privacy',
|
20
|
+
linkProps: {
|
21
|
+
href: 'https://www.pingidentity.com/en-us/docs/legal/privacy',
|
22
|
+
'aria-label': 'Privacy'
|
23
|
+
}
|
24
|
+
}, {
|
25
|
+
key: 'Security',
|
26
|
+
text: 'Security',
|
27
|
+
linkProps: {
|
28
|
+
href: 'https://www.pingidentity.com/en/company/security-at-ping-identity.html',
|
29
|
+
'aria-label': 'Security'
|
30
|
+
}
|
31
|
+
}, {
|
32
|
+
key: 'SMS Campaigns',
|
33
|
+
text: 'SMS Campaigns',
|
34
|
+
linkProps: {
|
35
|
+
href: 'https://www.pingidentity.com/en/legal/pingmfa-campaign-terms-of-service.html',
|
36
|
+
'aria-label': 'SMS Campaigns'
|
37
|
+
}
|
38
|
+
}];
|
39
|
+
var testId = 'test-footer';
|
40
|
+
var org = 'Ping Identity';
|
41
|
+
var year = new Date().getFullYear();
|
42
|
+
var defaultProps = {
|
43
|
+
'data-testid': testId
|
44
|
+
};
|
45
|
+
var getComponent = function getComponent() {
|
46
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
47
|
+
return render(___EmotionJSX(Footer, _extends({}, props, defaultProps), ___EmotionJSX(CopyrightText, {
|
48
|
+
linkProps: {
|
49
|
+
href: '#',
|
50
|
+
children: org
|
51
|
+
}
|
52
|
+
}), ___EmotionJSX(FooterNav, null, _mapInstanceProperty(legalLinks).call(legalLinks, function (link) {
|
53
|
+
return ___EmotionJSX(FooterNavItem, {
|
54
|
+
key: link.key
|
55
|
+
}, ___EmotionJSX(Link, _extends({
|
56
|
+
variant: "footerLink"
|
57
|
+
}, link.linkProps), link.text));
|
58
|
+
}))));
|
59
|
+
};
|
60
|
+
|
61
|
+
// Needs to be added to each components test file
|
62
|
+
universalComponentTests({
|
63
|
+
renderComponent: function renderComponent(props) {
|
64
|
+
return ___EmotionJSX(Footer, props, ___EmotionJSX(CopyrightText, {
|
65
|
+
linkProps: {
|
66
|
+
href: '#',
|
67
|
+
children: org
|
68
|
+
}
|
69
|
+
}), ___EmotionJSX(FooterNav, null, _mapInstanceProperty(legalLinks).call(legalLinks, function (link) {
|
70
|
+
return ___EmotionJSX(FooterNavItem, {
|
71
|
+
key: link.key
|
72
|
+
}, ___EmotionJSX(Link, _extends({
|
73
|
+
variant: "footerLink"
|
74
|
+
}, link.linkProps), link.text));
|
75
|
+
})));
|
76
|
+
}
|
77
|
+
});
|
78
|
+
test('default Footer', function () {
|
79
|
+
getComponent();
|
80
|
+
var footer = screen.getByTestId(testId);
|
81
|
+
expect(footer).toBeInTheDocument();
|
82
|
+
expect(footer).toBeInstanceOf(HTMLElement);
|
83
|
+
expect(footer.tagName).toBe('FOOTER');
|
84
|
+
});
|
85
|
+
test('Footer have copyright text and year', function () {
|
86
|
+
getComponent();
|
87
|
+
var copyRightText = screen.getByText(org);
|
88
|
+
expect(copyRightText).toBeInstanceOf(HTMLAnchorElement);
|
89
|
+
expect(copyRightText).toHaveAttribute('href', '#');
|
90
|
+
var footer = screen.getByTestId(testId);
|
91
|
+
expect(footer).toHaveTextContent("".concat(year));
|
92
|
+
});
|
93
|
+
test('Footer have legal links', function () {
|
94
|
+
getComponent();
|
95
|
+
_forEachInstanceProperty(legalLinks).call(legalLinks, function (link) {
|
96
|
+
var legalLink = screen.getByText(link.text);
|
97
|
+
expect(legalLink).toBeInstanceOf(HTMLAnchorElement);
|
98
|
+
expect(legalLink).toHaveAttribute('href', link.linkProps.href);
|
99
|
+
});
|
100
|
+
});
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
3
|
+
var _excluded = ["children"];
|
4
|
+
import React from 'react';
|
5
|
+
import { Box } from '../..';
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
7
|
+
var FooterNav = function FooterNav(props) {
|
8
|
+
var children = props.children,
|
9
|
+
others = _objectWithoutProperties(props, _excluded);
|
10
|
+
return ___EmotionJSX(Box, _extends({
|
11
|
+
as: "ul",
|
12
|
+
isRow: true,
|
13
|
+
variant: "footer.footerNav"
|
14
|
+
}, others), children);
|
15
|
+
};
|
16
|
+
export default FooterNav;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
3
|
+
var _excluded = ["children"];
|
4
|
+
import React from 'react';
|
5
|
+
import { Box } from '../..';
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
7
|
+
var FooterNavItem = function FooterNavItem(props) {
|
8
|
+
var children = props.children,
|
9
|
+
others = _objectWithoutProperties(props, _excluded);
|
10
|
+
return ___EmotionJSX(Box, _extends({
|
11
|
+
as: "li"
|
12
|
+
}, others), children);
|
13
|
+
};
|
14
|
+
export default FooterNavItem;
|
@@ -0,0 +1,117 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
3
|
+
import React from 'react';
|
4
|
+
import { fab } from '@fortawesome/free-brands-svg-icons';
|
5
|
+
import { far } from '@fortawesome/free-regular-svg-icons';
|
6
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
7
|
+
import { Box, CopyrightText, Footer, FooterNav, FooterNavItem, Image, Link } from '../../..';
|
8
|
+
import { eAIcon } from '../../../utils/devUtils/constants/images';
|
9
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
10
|
+
export var FooterNextGenComponent = function FooterNextGenComponent() {
|
11
|
+
var legalLinks = [{
|
12
|
+
key: 'Legal',
|
13
|
+
text: 'Legal',
|
14
|
+
linkProps: {
|
15
|
+
href: 'https://www.pingidentity.com/en/legal.html',
|
16
|
+
'aria-label': 'Legal'
|
17
|
+
}
|
18
|
+
}, {
|
19
|
+
key: 'Privacy',
|
20
|
+
text: 'Privacy',
|
21
|
+
linkProps: {
|
22
|
+
href: 'https://www.pingidentity.com/en-us/docs/legal/privacy',
|
23
|
+
'aria-label': 'Privacy'
|
24
|
+
}
|
25
|
+
}, {
|
26
|
+
key: 'Security',
|
27
|
+
text: 'Security',
|
28
|
+
linkProps: {
|
29
|
+
href: 'https://www.pingidentity.com/en/company/security-at-ping-identity.html',
|
30
|
+
'aria-label': 'Security'
|
31
|
+
}
|
32
|
+
}];
|
33
|
+
var socialLinks = [{
|
34
|
+
key: 'twitter',
|
35
|
+
iconClass: fab.faXTwitter,
|
36
|
+
linkProps: {
|
37
|
+
href: 'https://twitter.com/pingidentity',
|
38
|
+
'aria-label': 'Connect with us via X Social Media'
|
39
|
+
}
|
40
|
+
}, {
|
41
|
+
key: 'linkedin',
|
42
|
+
iconClass: fab.faLinkedinIn,
|
43
|
+
linkProps: {
|
44
|
+
href: 'https://www.linkedin.com/company/ping-identity',
|
45
|
+
'aria-label': 'Connect with us via LinkedIn'
|
46
|
+
}
|
47
|
+
}, {
|
48
|
+
key: 'facebook',
|
49
|
+
iconClass: fab.faFacebookF,
|
50
|
+
linkProps: {
|
51
|
+
href: 'https://www.facebook.com/pingidentitypage',
|
52
|
+
'aria-label': 'Connect with us via Facebook'
|
53
|
+
}
|
54
|
+
}, {
|
55
|
+
key: 'youtube',
|
56
|
+
iconClass: fab.faYoutube,
|
57
|
+
linkProps: {
|
58
|
+
href: 'https://www.youtube.com/user/pingidentitytv',
|
59
|
+
'aria-label': 'Connect with us via YouTube'
|
60
|
+
}
|
61
|
+
}, {
|
62
|
+
key: 'github',
|
63
|
+
iconClass: fab.faGithub,
|
64
|
+
linkProps: {
|
65
|
+
href: 'https://github.com/pingidentity',
|
66
|
+
'aria-label': 'Connect with us via Github'
|
67
|
+
}
|
68
|
+
}, {
|
69
|
+
key: 'mail',
|
70
|
+
iconClass: far.faEnvelope,
|
71
|
+
linkProps: {
|
72
|
+
href: 'https://4.pingidentity.com/PreferenceCenter.html',
|
73
|
+
'aria-label': 'Connect with us via Mail'
|
74
|
+
}
|
75
|
+
}, {
|
76
|
+
key: 'instagram',
|
77
|
+
iconClass: fab.faInstagram,
|
78
|
+
linkProps: {
|
79
|
+
href: 'https://www.instagram.com/pingidentity',
|
80
|
+
'aria-label': 'Connect with us via Instagram'
|
81
|
+
}
|
82
|
+
}];
|
83
|
+
return ___EmotionJSX(Footer, null, ___EmotionJSX(Box, {
|
84
|
+
alignItems: "center",
|
85
|
+
justifyContent: "flex-start",
|
86
|
+
variant: "footer.footerLeftSection",
|
87
|
+
flex: "1 0 auto"
|
88
|
+
}, ___EmotionJSX(CopyrightText, {
|
89
|
+
linkProps: {
|
90
|
+
href: 'https://www.pingidentity.com',
|
91
|
+
children: 'Ping Identity'
|
92
|
+
}
|
93
|
+
}), ___EmotionJSX(Link, {
|
94
|
+
variant: "footerEALink",
|
95
|
+
href: "https://www.levelaccess.com/a/pingidentity"
|
96
|
+
}, ___EmotionJSX(Image, {
|
97
|
+
src: eAIcon,
|
98
|
+
alt: "Essential Accessibility Icon"
|
99
|
+
})), ___EmotionJSX(FooterNav, null, _mapInstanceProperty(legalLinks).call(legalLinks, function (link) {
|
100
|
+
return ___EmotionJSX(FooterNavItem, {
|
101
|
+
key: link.key
|
102
|
+
}, ___EmotionJSX(Link, _extends({
|
103
|
+
variant: "footerLink"
|
104
|
+
}, link.linkProps), link.text));
|
105
|
+
}))), ___EmotionJSX(Box, {
|
106
|
+
flex: "1 0 auto"
|
107
|
+
}, ___EmotionJSX(FooterNav, null, _mapInstanceProperty(socialLinks).call(socialLinks, function (link) {
|
108
|
+
return ___EmotionJSX(FooterNavItem, {
|
109
|
+
key: link.key
|
110
|
+
}, ___EmotionJSX(Link, _extends({
|
111
|
+
variant: "footerLink"
|
112
|
+
}, link.linkProps), ___EmotionJSX(FontAwesomeIcon, {
|
113
|
+
icon: link.iconClass,
|
114
|
+
size: "lg"
|
115
|
+
})));
|
116
|
+
}))));
|
117
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { AstroProvider, NextGenDarkTheme } from '../../..';
|
3
|
+
import { FooterNextGenComponent } from './FooterNextGenComponent';
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
|
+
export default {
|
6
|
+
title: 'Chromatic Only Onyx Dark Footer'
|
7
|
+
};
|
8
|
+
export var Default = function Default() {
|
9
|
+
return ___EmotionJSX(AstroProvider, {
|
10
|
+
themeOverrides: [NextGenDarkTheme]
|
11
|
+
}, ___EmotionJSX(FooterNextGenComponent, null));
|
12
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { AstroProvider, NextGenTheme } from '../../..';
|
3
|
+
import { FooterNextGenComponent } from './FooterNextGenComponent';
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
|
+
export default {
|
6
|
+
title: 'Chromatic Only Onyx Footer'
|
7
|
+
};
|
8
|
+
export var Default = function Default() {
|
9
|
+
return ___EmotionJSX(AstroProvider, {
|
10
|
+
theme: NextGenTheme
|
11
|
+
}, ___EmotionJSX(FooterNextGenComponent, null));
|
12
|
+
};
|
@@ -9,6 +9,8 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
|
|
9
9
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
10
10
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
11
11
|
import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
|
12
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
13
|
+
var _excluded = ["color", "icon", "sx", "size", "variant", "title"];
|
12
14
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
13
15
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
14
16
|
import React, { forwardRef } from 'react';
|
@@ -19,31 +21,32 @@ var Icon = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
19
21
|
var color = props.color,
|
20
22
|
IconComponent = props.icon,
|
21
23
|
sx = props.sx,
|
22
|
-
size = props.size
|
24
|
+
_props$size = props.size,
|
25
|
+
size = _props$size === void 0 ? 'sm' : _props$size,
|
26
|
+
variant = props.variant,
|
27
|
+
title = props.title,
|
28
|
+
others = _objectWithoutProperties(props, _excluded);
|
23
29
|
var theme = useGetTheme();
|
24
30
|
var _useTShirtSize = useTShirtSize({
|
25
31
|
size: size,
|
26
32
|
sizes: theme.tShirtSizes
|
27
33
|
}),
|
28
34
|
sizeProps = _useTShirtSize.sizeProps;
|
29
|
-
var
|
35
|
+
var resolvedTitle = title !== null && title !== void 0 ? title : _typeof(IconComponent) === 'object' && 'type' in IconComponent ? {
|
30
36
|
name: IconComponent.type.name
|
31
|
-
} : ''
|
37
|
+
} : '';
|
32
38
|
return ___EmotionJSX(Box, _extends({
|
33
39
|
as: IconComponent,
|
34
40
|
ref: ref,
|
35
|
-
title: title
|
36
|
-
}, props, {
|
37
|
-
size: sizeProps.size,
|
38
41
|
role: "img",
|
42
|
+
title: resolvedTitle,
|
43
|
+
variant: variant,
|
44
|
+
size: sizeProps.size,
|
39
45
|
sx: _objectSpread({
|
40
46
|
fill: color,
|
41
47
|
minWidth: sizeProps.size
|
42
48
|
}, sx)
|
43
|
-
}));
|
49
|
+
}, others));
|
44
50
|
});
|
45
|
-
Icon.defaultProps = {
|
46
|
-
size: 20
|
47
|
-
};
|
48
51
|
Icon.displayName = 'Icon';
|
49
52
|
export default Icon;
|
@@ -134,6 +134,10 @@ var applicationPortalPinned = _objectSpread(_objectSpread({}, base), {}, {
|
|
134
134
|
}
|
135
135
|
}
|
136
136
|
});
|
137
|
+
var searchClearButton = _objectSpread(_objectSpread({}, base), {}, {
|
138
|
+
position: 'absolute',
|
139
|
+
right: 10
|
140
|
+
});
|
137
141
|
export default {
|
138
142
|
base: base,
|
139
143
|
bidirectional: bidirectional,
|
@@ -159,5 +163,6 @@ export default {
|
|
159
163
|
},
|
160
164
|
// Recipe related variants
|
161
165
|
applicationPortal: applicationPortal,
|
162
|
-
applicationPortalPinned: applicationPortalPinned
|
166
|
+
applicationPortalPinned: applicationPortalPinned,
|
167
|
+
searchClearButton: searchClearButton
|
163
168
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var colorOptions = ['cyan', 'orange', 'red', 'green', 'purple', 'yellow', 'teal', 'pink'];
|
1
|
+
var colorOptions = ['cyan', 'orange', 'red', 'green', 'purple', 'yellow', 'teal', 'pink', 'blue', 'indigo'];
|
2
2
|
var sizes = ['sm', 'md', 'lg'];
|
3
3
|
export var iconWrapperArgTypes = {
|
4
4
|
color: {
|
@@ -44,8 +44,38 @@ var popover = _objectSpread(_objectSpread({}, app), {}, {
|
|
44
44
|
cursor: 'pointer'
|
45
45
|
}
|
46
46
|
});
|
47
|
+
var copyRightLink = {
|
48
|
+
fontFamily: 'standard',
|
49
|
+
color: 'gray-100',
|
50
|
+
fontSize: 'md',
|
51
|
+
textDecoration: 'none',
|
52
|
+
borderRadius: '1px',
|
53
|
+
'&.is-hovered': {
|
54
|
+
color: '#c5d2df'
|
55
|
+
}
|
56
|
+
};
|
57
|
+
var footerLink = {
|
58
|
+
fontFamily: 'standard',
|
59
|
+
px: 'md',
|
60
|
+
py: 'sm',
|
61
|
+
fontSize: 'md',
|
62
|
+
color: 'gray-100',
|
63
|
+
textDecoration: 'none',
|
64
|
+
borderRadius: '1px',
|
65
|
+
'&.is-hovered': {
|
66
|
+
color: '#c5d2df'
|
67
|
+
}
|
68
|
+
};
|
69
|
+
var footerEALink = _objectSpread(_objectSpread({}, footerLink), {}, {
|
70
|
+
display: 'flex',
|
71
|
+
flexShrink: '0',
|
72
|
+
justifyContent: 'center'
|
73
|
+
});
|
47
74
|
export default {
|
48
75
|
app: app,
|
49
76
|
popover: popover,
|
50
|
-
web: web
|
77
|
+
web: web,
|
78
|
+
copyRightLink: copyRightLink,
|
79
|
+
footerLink: footerLink,
|
80
|
+
footerEALink: footerEALink
|
51
81
|
};
|
@@ -160,6 +160,11 @@ var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
160
160
|
onScroll: resetHoverState,
|
161
161
|
tabIndex: isFocusable ? 0 : -1,
|
162
162
|
shouldUseVirtualFocus: !isFocusable
|
163
|
+
// added to remove the outline when using keyboard navigation encountered during UIP-7501
|
164
|
+
,
|
165
|
+
style: {
|
166
|
+
outline: 'none'
|
167
|
+
}
|
163
168
|
}), function (type, item) {
|
164
169
|
if (type === 'item') {
|
165
170
|
if (props.selectionMode === 'expansion') {
|