@pingux/astro 2.121.0-alpha.1 → 2.121.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.
- 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/components/Footer/stories/NextGenDarkFooterStory.chomatic.stories.d.ts +6 -0
- package/lib/cjs/components/Footer/stories/NextGenDarkFooterStory.chomatic.stories.js +22 -0
- package/lib/cjs/components/Footer/stories/NextGenFooterStory.chromatic.stories.d.ts +6 -0
- package/lib/cjs/components/Footer/stories/NextGenFooterStory.chromatic.stories.js +22 -0
- 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/Text/Text.styles.d.ts +7 -0
- package/lib/cjs/components/Text/Text.styles.js +8 -0
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +76 -57
- 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/text.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +5 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +2 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +52 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +5 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +2 -1
- 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/variants.d.ts +31 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
- 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/index.d.ts +1 -0
- package/lib/cjs/types/index.js +53 -42
- 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/Link/Link.styles.js +31 -1
- package/lib/components/Text/Text.styles.js +8 -0
- package/lib/index.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/text.js +3 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +2 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/variants/button.js +1 -1
- 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/variants.js +2 -0
- 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/images.js +2 -1
- package/package.json +5 -1
@@ -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
|
+
};
|
@@ -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
|
};
|
@@ -120,6 +120,13 @@ var HTags = {
|
|
120
120
|
lineHeight: '16px'
|
121
121
|
})
|
122
122
|
};
|
123
|
+
var copyRightText = {
|
124
|
+
fontSize: 'md',
|
125
|
+
fontFamily: 'standard',
|
126
|
+
color: 'gray-100',
|
127
|
+
lineHeight: 'body',
|
128
|
+
my: 'sm'
|
129
|
+
};
|
123
130
|
var attachmentTitle = _objectSpread(_objectSpread(_objectSpread({}, base), textEllipsis), {}, {
|
124
131
|
fontWeight: 2
|
125
132
|
});
|
@@ -230,5 +237,6 @@ export var text = _objectSpread(_objectSpread(_objectSpread({
|
|
230
237
|
}),
|
231
238
|
textEllipsis: textEllipsis,
|
232
239
|
title: title,
|
240
|
+
copyRightText: copyRightText,
|
233
241
|
attachmentTitle: attachmentTitle
|
234
242
|
});
|
package/lib/index.js
CHANGED
@@ -82,6 +82,8 @@ export { default as EnvironmentBreadcrumb } from './components/EnvironmentBreadc
|
|
82
82
|
export { default as FieldHelperText } from './components/FieldHelperText';
|
83
83
|
export * from './components/FieldHelperText';
|
84
84
|
export { default as FileInputField } from './components/FileInputField';
|
85
|
+
export { default as Footer } from './components/Footer';
|
86
|
+
export * from './components/Footer';
|
85
87
|
export { default as Grid } from './components/Grid';
|
86
88
|
export { default as HelpHint } from './components/HelpHint';
|
87
89
|
export * from './components/HelpHint';
|
@@ -31,9 +31,21 @@ var footerLinks = _objectSpread({}, sideNav);
|
|
31
31
|
var footerHeader = _objectSpread(_objectSpread({}, footerLinks), {}, {
|
32
32
|
fontWeight: '2'
|
33
33
|
});
|
34
|
+
var copyRightLink = _objectSpread(_objectSpread({}, nextGen), {}, {
|
35
|
+
color: 'gray-400'
|
36
|
+
});
|
37
|
+
var footerLink = _objectSpread(_objectSpread({}, nextGen), {}, {
|
38
|
+
color: 'gray-400'
|
39
|
+
});
|
40
|
+
var footerEALink = _objectSpread(_objectSpread({}, nextGen), {}, {
|
41
|
+
color: 'gray-400'
|
42
|
+
});
|
34
43
|
export default {
|
35
44
|
nextGen: nextGen,
|
36
45
|
sideNav: sideNav,
|
37
46
|
footerLinks: footerLinks,
|
38
|
-
footerHeader: footerHeader
|
47
|
+
footerHeader: footerHeader,
|
48
|
+
copyRightLink: copyRightLink,
|
49
|
+
footerLink: footerLink,
|
50
|
+
footerEALink: footerEALink
|
39
51
|
};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { avatar } from './avatar';
|
2
|
+
import { footer } from './footer';
|
2
3
|
import iconBadge from './iconBadge';
|
3
4
|
import { listView, listViewItem, lisViewItemChart } from './listview';
|
4
5
|
import { menu, menuItem } from './menu';
|
@@ -75,6 +76,7 @@ export default {
|
|
75
76
|
tab: tab,
|
76
77
|
iconBadge: iconBadge,
|
77
78
|
skeleton: skeleton,
|
79
|
+
footer: footer,
|
78
80
|
dataTable: {
|
79
81
|
selectableTableRow: {
|
80
82
|
'&.is-selected': {
|
@@ -14,5 +14,5 @@ export var astroBlacklistStory = {
|
|
14
14
|
DataTable: ['Onyx Default'],
|
15
15
|
NavBar: ['Onyx Default']
|
16
16
|
};
|
17
|
-
export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input'];
|
17
|
+
export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'];
|
18
18
|
export default nextGenConvertedComponents;
|
@@ -17,7 +17,7 @@ var primaryBlue = colors.primary,
|
|
17
17
|
var transitions = {
|
18
18
|
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out'
|
19
19
|
};
|
20
|
-
var defaultFocus = {
|
20
|
+
export var defaultFocus = {
|
21
21
|
outline: '2px solid',
|
22
22
|
outlineColor: 'active',
|
23
23
|
outlineOffset: '3px'
|
@@ -0,0 +1,35 @@
|
|
1
|
+
var container = {
|
2
|
+
fontFamily: 'standard',
|
3
|
+
justifyContent: 'center',
|
4
|
+
backgroundColor: 'gray-800'
|
5
|
+
};
|
6
|
+
var wrapper = {
|
7
|
+
px: ['1.5rem', '1.5rem', '1.5rem', '3rem', '3rem', '3rem'],
|
8
|
+
py: 'sm',
|
9
|
+
maxWidth: '1540px',
|
10
|
+
mx: 'auto',
|
11
|
+
width: '100%',
|
12
|
+
flexDirection: ['column', 'column', 'column', 'column', 'column', 'row'],
|
13
|
+
justifyContent: 'space-between',
|
14
|
+
alignItems: 'center'
|
15
|
+
};
|
16
|
+
var footerLeftSection = {
|
17
|
+
columnGap: 'sm',
|
18
|
+
flexDirection: ['column', 'column', 'column', 'column', 'column', 'row']
|
19
|
+
};
|
20
|
+
var footerNav = {
|
21
|
+
listStyle: 'none',
|
22
|
+
margin: '0',
|
23
|
+
padding: '0',
|
24
|
+
alignItems: 'center',
|
25
|
+
justifyContent: ['center', 'center', 'center', 'center', 'center', 'flex-end'],
|
26
|
+
gap: 'xs',
|
27
|
+
flexWrap: 'wrap',
|
28
|
+
my: 'sm'
|
29
|
+
};
|
30
|
+
export var footer = {
|
31
|
+
container: container,
|
32
|
+
wrapper: wrapper,
|
33
|
+
footerLeftSection: footerLeftSection,
|
34
|
+
footerNav: footerNav
|
35
|
+
};
|
@@ -9,7 +9,7 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
10
|
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; }
|
11
11
|
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; }
|
12
|
-
import buttons from './button';
|
12
|
+
import buttons, { defaultFocus } from './button';
|
13
13
|
var navBarFocus = {
|
14
14
|
outline: '2px solid',
|
15
15
|
outlineColor: 'active'
|
@@ -72,6 +72,15 @@ var navBarLogoLink = {
|
|
72
72
|
py: 'sm',
|
73
73
|
'&.is-focused': _objectSpread({}, navBarFocus)
|
74
74
|
};
|
75
|
+
var copyRightLink = {
|
76
|
+
'&.is-focused': _objectSpread({}, defaultFocus)
|
77
|
+
};
|
78
|
+
var footerLink = {
|
79
|
+
'&.is-focused': _objectSpread({}, defaultFocus)
|
80
|
+
};
|
81
|
+
var footerEALink = {
|
82
|
+
'&.is-focused': _objectSpread({}, defaultFocus)
|
83
|
+
};
|
75
84
|
export default {
|
76
85
|
nextGen: nextGen,
|
77
86
|
onyx: onyx,
|
@@ -80,5 +89,8 @@ export default {
|
|
80
89
|
footerHeader: footerHeader,
|
81
90
|
button: button,
|
82
91
|
primaryButton: primaryButton,
|
83
|
-
navBarLogoLink: navBarLogoLink
|
92
|
+
navBarLogoLink: navBarLogoLink,
|
93
|
+
copyRightLink: copyRightLink,
|
94
|
+
footerEALink: footerEALink,
|
95
|
+
footerLink: footerLink
|
84
96
|
};
|
@@ -15,6 +15,7 @@ import codeView from '../codeView/codeView';
|
|
15
15
|
import { avatar } from './avatar';
|
16
16
|
import button from './button';
|
17
17
|
import { dataTable } from './dataTable';
|
18
|
+
import { footer } from './footer';
|
18
19
|
import iconWrapper from './iconWrapper';
|
19
20
|
import { listView, listViewItem, lisViewItemChart } from './listview';
|
20
21
|
import { menu, menuItem } from './menu';
|
@@ -324,5 +325,6 @@ export default {
|
|
324
325
|
suggestion: suggestion,
|
325
326
|
response: response,
|
326
327
|
skeleton: skeleton,
|
328
|
+
footer: footer,
|
327
329
|
loader: loader
|
328
330
|
};
|
@@ -23,6 +23,7 @@ import copyText from '../../components/CopyText/CopyText.styles';
|
|
23
23
|
import dataTable from '../../components/DataTable/DataTable.styles';
|
24
24
|
import environmentBreadcrumb from '../../components/EnvironmentBreadcrumb/EnvironmentalBreadcrumb.styles';
|
25
25
|
import fieldHelperText from '../../components/FieldHelperText/FieldHelperText.styles';
|
26
|
+
import footer from '../../components/Footer/Footer.styles';
|
26
27
|
import helpHint from '../../components/HelpHint/HelpHint.styles';
|
27
28
|
import imageUpload from '../../components/ImageUploadField/imageUpload';
|
28
29
|
import listBox from '../../components/ListBox/ListBox.styles';
|
@@ -71,6 +72,7 @@ export default _objectSpread({
|
|
71
72
|
dataTable: dataTable,
|
72
73
|
environmentBreadcrumb: environmentBreadcrumb,
|
73
74
|
fieldHelperText: fieldHelperText,
|
75
|
+
footer: footer,
|
74
76
|
helpHint: helpHint,
|
75
77
|
imageUpload: imageUpload,
|
76
78
|
listBox: listBox,
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/lib/types/index.js
CHANGED