@veracity/vui 0.3.2 → 0.4.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/avatar/avatar.js +1 -1
- package/button/button.types.d.ts +4 -4
- package/button/consts.js +2 -2
- package/footer/consts.d.ts +105 -8
- package/footer/consts.js +18 -9
- package/footer/footerColumn.d.ts +1 -1
- package/footer/helpers.d.ts +2 -3
- package/footer/helpers.js +16 -16
- package/header/consts.d.ts +58 -0
- package/header/consts.js +76 -0
- package/header/context.d.ts +2 -2
- package/header/context.js +3 -3
- package/header/header.d.ts +7 -7
- package/header/header.js +30 -15
- package/header/header.types.d.ts +41 -22
- package/header/headerAccount.d.ts +4 -0
- package/header/{headerProfile.js → headerAccount.js} +17 -9
- package/header/headerAccount.types.d.ts +35 -0
- package/header/headerContent.js +1 -1
- package/header/headerCreateAccount.js +7 -4
- package/header/headerDivider.js +2 -2
- package/header/headerLinkItem.d.ts +4 -0
- package/header/headerLinkItem.js +53 -0
- package/header/headerLinksList.d.ts +4 -0
- package/header/{headerLinks.js → headerLinksList.js} +10 -7
- package/header/headerLogo.js +5 -9
- package/header/headerMobileContent.js +4 -3
- package/header/headerMobileToggle.d.ts +2 -2
- package/header/headerMobileToggle.js +6 -7
- package/header/headerNotifications.js +5 -6
- package/header/headerServices.js +15 -11
- package/header/headerSignIn.js +1 -1
- package/header/helpers.d.ts +17 -0
- package/header/helpers.js +66 -0
- package/header/index.d.ts +7 -3
- package/header/index.js +7 -3
- package/header/loggedInHeader.d.ts +1 -1
- package/header/loggedInHeader.js +12 -8
- package/header/loggedOutHeader.js +13 -10
- package/header/theme.d.ts +60 -7
- package/header/theme.js +49 -12
- package/icons/baseIcons/fas/fasCalendarAlt.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/input/consts.js +2 -2
- package/input/input.types.d.ts +3 -3
- package/link/link.types.d.ts +4 -4
- package/list/listItem.js +1 -1
- package/menu/menuItem.js +7 -22
- package/menu/menuList.js +1 -1
- package/modal/context.d.ts +4 -0
- package/modal/context.js +23 -0
- package/modal/focusLock.d.ts +9 -0
- package/modal/focusLock.js +47 -0
- package/modal/focusLock.types.d.ts +28 -0
- package/modal/focusLock.types.js +2 -0
- package/modal/index.d.ts +7 -0
- package/modal/index.js +24 -0
- package/modal/modal.d.ts +10 -0
- package/modal/modal.js +109 -0
- package/modal/modal.types.d.ts +40 -0
- package/modal/modal.types.js +2 -0
- package/modal/modalBackdrop.d.ts +4 -0
- package/modal/modalBackdrop.js +38 -0
- package/modal/modalManager.d.ts +12 -0
- package/modal/modalManager.js +33 -0
- package/modal/theme.d.ts +7 -0
- package/modal/theme.js +12 -0
- package/notification/consts.js +2 -2
- package/notification/notification.types.d.ts +1 -2
- package/package.json +3 -1
- package/popover/popover.d.ts +1 -1
- package/popover/popover.js +5 -4
- package/popover/popoverContent.js +1 -1
- package/popover/usePopover.js +7 -9
- package/popover/usePopover.types.d.ts +1 -1
- package/portal/index.d.ts +3 -0
- package/portal/index.js +20 -0
- package/portal/portal.d.ts +5 -0
- package/portal/portal.js +56 -0
- package/portal/portal.types.d.ts +7 -0
- package/portal/portal.types.js +2 -0
- package/svg/svg.js +9 -7
- package/svg/svg.types.d.ts +2 -2
- package/tag/tag.types.d.ts +3 -4
- package/theme/components.d.ts +60 -7
- package/theme/defaultTheme.d.ts +60 -7
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/react.d.ts +10 -5
- package/utils/react.js +64 -9
- package/utils/string.d.ts +5 -0
- package/utils/string.js +19 -0
- package/utils/types.d.ts +4 -2
- package/header/headerLink.d.ts +0 -4
- package/header/headerLink.js +0 -43
- package/header/headerLinks.d.ts +0 -4
- package/header/headerProfile.d.ts +0 -4
- package/header/headerProfile.types.d.ts +0 -35
- /package/header/{headerProfile.types.js → headerAccount.types.js} +0 -0
package/avatar/avatar.js
CHANGED
|
@@ -36,7 +36,7 @@ var icon_1 = __importDefault(require("../icon"));
|
|
|
36
36
|
var image_1 = __importDefault(require("../image"));
|
|
37
37
|
var utils_1 = require("../utils");
|
|
38
38
|
var helpers_1 = require("./helpers");
|
|
39
|
-
exports.AvatarBase = core_1.styled.spanBox(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tfont-weight: medium;\n\tjustify-content: center;\n\tline-height: normal;\n\toutline: none;\n\ttransition-duration: fast;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n"], ["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tfont-weight: medium;\n\tjustify-content: center;\n\tline-height: normal;\n\toutline: none;\n\ttransition-duration: fast;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n"
|
|
39
|
+
exports.AvatarBase = core_1.styled.spanBox(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tfont-weight: medium;\n\tjustify-content: center;\n\tline-height: normal;\n\toutline: none;\n\toverflow: hidden;\n\ttransition-duration: fast;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n"], ["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tfont-weight: medium;\n\tjustify-content: center;\n\tline-height: normal;\n\toutline: none;\n\toverflow: hidden;\n\ttransition-duration: fast;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n"
|
|
40
40
|
/** Displays user data, such as name initials or profile image. */
|
|
41
41
|
])));
|
|
42
42
|
/** Displays user data, such as name initials or profile image. */
|
package/button/button.types.d.ts
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { IconProp, IconProps } from '../icon';
|
|
3
3
|
import { SystemProps } from '../system';
|
|
4
4
|
import { ThemingProps } from '../theme';
|
|
5
|
-
import {
|
|
5
|
+
import { AnyString } from '../utils';
|
|
6
6
|
export declare type ButtonProps = SystemProps & ThemingProps<'Button'> & {
|
|
7
7
|
/** Available theme colors for this component. @default prussian */
|
|
8
8
|
colorScheme?: 'blue' | 'green' | 'pink' | 'prussian' | 'red';
|
|
9
9
|
/** Icon that replaces any other content. */
|
|
10
|
-
icon?: IconProp |
|
|
10
|
+
icon?: IconProp | JSX.Element;
|
|
11
11
|
/** Socket displaying icon on the left side. */
|
|
12
|
-
iconLeft?: IconProp |
|
|
12
|
+
iconLeft?: IconProp | JSX.Element;
|
|
13
13
|
/** Socket displaying icon on the right side. */
|
|
14
|
-
iconRight?: IconProp |
|
|
14
|
+
iconRight?: IconProp | JSX.Element;
|
|
15
15
|
/** Adds box shadow style. @default false */
|
|
16
16
|
isElevated?: boolean;
|
|
17
17
|
/** Makes the button take full width of the container. @deprecated */
|
package/button/consts.js
CHANGED
|
@@ -13,8 +13,8 @@ exports.buttonStateMapping = {
|
|
|
13
13
|
colorScheme: 'blue',
|
|
14
14
|
iconProps: {
|
|
15
15
|
animation: 'vui-spin 0.6s linear infinite',
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
name: 'fadSpinnerThird',
|
|
17
|
+
pathFill: ['', 'transparent']
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
success: {
|
package/footer/consts.d.ts
CHANGED
|
@@ -1,21 +1,115 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Environment } from '../utils';
|
|
2
2
|
/**
|
|
3
3
|
* Defines the structure of columns and sections of the Footer.
|
|
4
4
|
* Links' url values here are unique references to actual urls in the footerLinks dictionary.
|
|
5
5
|
*/
|
|
6
|
-
export declare const footerColumnsTemplate:
|
|
6
|
+
export declare const footerColumnsTemplate: {
|
|
7
|
+
readonly column1: {
|
|
8
|
+
readonly section1: {
|
|
9
|
+
readonly heading: "Platform";
|
|
10
|
+
readonly links: readonly [{
|
|
11
|
+
readonly text: "About Veracity";
|
|
12
|
+
readonly url: "aboutVeracity";
|
|
13
|
+
}, {
|
|
14
|
+
readonly text: "News";
|
|
15
|
+
readonly url: "news";
|
|
16
|
+
}, {
|
|
17
|
+
readonly text: "Marketplace";
|
|
18
|
+
readonly url: "marketplace";
|
|
19
|
+
}, {
|
|
20
|
+
readonly text: "Veracity trust center";
|
|
21
|
+
readonly url: "veracityTrustCenter";
|
|
22
|
+
}, {
|
|
23
|
+
readonly text: "Career";
|
|
24
|
+
readonly url: "career";
|
|
25
|
+
}];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly column2: {
|
|
29
|
+
readonly section1: {
|
|
30
|
+
readonly heading: "Products";
|
|
31
|
+
readonly links: readonly [{
|
|
32
|
+
readonly text: "Veracity Connected app";
|
|
33
|
+
readonly url: "veracityConnectedApp";
|
|
34
|
+
}, {
|
|
35
|
+
readonly text: "Veracity Data Fabric";
|
|
36
|
+
readonly url: "veracityDataFabric";
|
|
37
|
+
}, {
|
|
38
|
+
readonly text: "Deep Search";
|
|
39
|
+
readonly url: "deepSearch";
|
|
40
|
+
}, {
|
|
41
|
+
readonly text: "Asset Connect";
|
|
42
|
+
readonly url: "assetConnect";
|
|
43
|
+
}, {
|
|
44
|
+
readonly text: "Veracity Adapter for Power BI (VAP)";
|
|
45
|
+
readonly url: "veracityAdapterForPowerBI";
|
|
46
|
+
}];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly column3: {
|
|
50
|
+
readonly section1: {
|
|
51
|
+
readonly heading: "Partnership";
|
|
52
|
+
readonly links: readonly [{
|
|
53
|
+
readonly text: "Selling on Veracity";
|
|
54
|
+
readonly url: "sellingOnVeracity";
|
|
55
|
+
}, {
|
|
56
|
+
readonly text: "Veracity partner program";
|
|
57
|
+
readonly url: "veracityPartnerProgram";
|
|
58
|
+
}];
|
|
59
|
+
};
|
|
60
|
+
readonly section2: {
|
|
61
|
+
readonly heading: "Developer";
|
|
62
|
+
readonly links: readonly [{
|
|
63
|
+
readonly text: "Developer community";
|
|
64
|
+
readonly url: "developerCommunity";
|
|
65
|
+
}, {
|
|
66
|
+
readonly text: "Documentation";
|
|
67
|
+
readonly url: "documentation";
|
|
68
|
+
}, {
|
|
69
|
+
readonly text: "API explorer";
|
|
70
|
+
readonly url: "apiExplorer";
|
|
71
|
+
}];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly column4: {
|
|
75
|
+
readonly section1: {
|
|
76
|
+
readonly heading: "Support";
|
|
77
|
+
readonly links: readonly [{
|
|
78
|
+
readonly text: "Help center";
|
|
79
|
+
readonly url: "helpCenter";
|
|
80
|
+
}, {
|
|
81
|
+
readonly text: "Contact us";
|
|
82
|
+
readonly url: "contactUs";
|
|
83
|
+
}];
|
|
84
|
+
};
|
|
85
|
+
readonly section2: {
|
|
86
|
+
readonly heading: "Legal";
|
|
87
|
+
readonly links: readonly [{
|
|
88
|
+
readonly text: "Privacy statement";
|
|
89
|
+
readonly url: "privacyStatement";
|
|
90
|
+
}, {
|
|
91
|
+
readonly text: "Terms of use";
|
|
92
|
+
readonly url: "termsOfUse";
|
|
93
|
+
}, {
|
|
94
|
+
readonly text: "Cookies policy";
|
|
95
|
+
readonly url: "cookiesPolicy";
|
|
96
|
+
}];
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
7
100
|
/** Footer link URLs used in Production environment. */
|
|
8
101
|
export declare const footerLinksProd: {
|
|
9
102
|
readonly aboutVeracity: "https://www.veracity.com/about";
|
|
10
103
|
readonly apiExplorer: "https://developer.veracity.com/api";
|
|
11
104
|
readonly assetConnect: "https://www.veracity.com/article/veracity-asset";
|
|
12
105
|
readonly career: "https://www.veracity.com/career";
|
|
13
|
-
readonly contactUs: "https://
|
|
106
|
+
readonly contactUs: "https://support.veracity.com";
|
|
14
107
|
readonly cookiesPolicy: "https://services.veracity.com/CookieList";
|
|
15
108
|
readonly deepSearch: "https://store.veracity.com/veracity-deep-search";
|
|
16
109
|
readonly developerCommunity: "https://developer.veracity.com";
|
|
17
110
|
readonly documentation: "https://developer.veracity.com/docs";
|
|
18
|
-
readonly
|
|
111
|
+
readonly helpCenter: "https://help-center.veracity.com";
|
|
112
|
+
readonly marketplace: "https://store.veracity.com";
|
|
19
113
|
readonly news: "https://www.veracity.com";
|
|
20
114
|
readonly privacyStatement: "https://services.veracity.com/PrivacyStatement";
|
|
21
115
|
readonly sellingOnVeracity: "https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity";
|
|
@@ -32,12 +126,13 @@ export declare const footerLinksStag: {
|
|
|
32
126
|
readonly apiExplorer: "https://developer.veracity.com/api";
|
|
33
127
|
readonly assetConnect: "https://www.veracity.com/article/veracity-asset";
|
|
34
128
|
readonly career: "https://wwwstag.veracity.com/career";
|
|
35
|
-
readonly contactUs: "https://
|
|
129
|
+
readonly contactUs: "https://support.veracity.com";
|
|
36
130
|
readonly cookiesPolicy: "https://servicesstag.veracity.com/CookieList";
|
|
37
131
|
readonly deepSearch: "https://storestag.veracity.com/veracity-deep-search";
|
|
38
132
|
readonly developerCommunity: "https://developerstag.veracity.com";
|
|
39
133
|
readonly documentation: "https://developerstag.veracity.com/docs";
|
|
40
|
-
readonly
|
|
134
|
+
readonly helpCenter: "https://help-center.veracity.com";
|
|
135
|
+
readonly marketplace: "https://storestag.veracity.com";
|
|
41
136
|
readonly news: "https://wwwstag.veracity.com";
|
|
42
137
|
readonly privacyStatement: "https://servicesstag.veracity.com/PrivacyStatement";
|
|
43
138
|
readonly sellingOnVeracity: "https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity";
|
|
@@ -54,12 +149,13 @@ export declare const footerLinksTest: {
|
|
|
54
149
|
readonly apiExplorer: "https://developer.veracity.com/api";
|
|
55
150
|
readonly assetConnect: "https://www.veracity.com/article/veracity-asset";
|
|
56
151
|
readonly career: "https://www.veracity.com/career";
|
|
57
|
-
readonly contactUs: "https://
|
|
152
|
+
readonly contactUs: "https://support.veracity.com";
|
|
58
153
|
readonly cookiesPolicy: "https://servicestest.veracity.com/CookieList";
|
|
59
154
|
readonly deepSearch: "https://storetest.veracity.com/veracity-deep-search";
|
|
60
155
|
readonly developerCommunity: "https://developertest.veracity.com";
|
|
61
156
|
readonly documentation: "https://developertest.veracity.com/docs";
|
|
62
|
-
readonly
|
|
157
|
+
readonly helpCenter: "https://help-center.veracity.com";
|
|
158
|
+
readonly marketplace: "https://storetest.veracity.com";
|
|
63
159
|
readonly news: "https://wwwtest.veracity.com";
|
|
64
160
|
readonly privacyStatement: "https://servicestest.veracity.com/PrivacyStatement";
|
|
65
161
|
readonly sellingOnVeracity: "https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity";
|
|
@@ -70,3 +166,4 @@ export declare const footerLinksTest: {
|
|
|
70
166
|
readonly veracityPartnerProgram: "https://wwwtest.veracity.com/partner";
|
|
71
167
|
readonly veracityTrustCenter: "https://www.veracity.com/veracity-trust-center";
|
|
72
168
|
};
|
|
169
|
+
export declare const footerLinks: Record<Environment, Record<string, string>>;
|
package/footer/consts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.footerLinksTest = exports.footerLinksStag = exports.footerLinksProd = exports.footerColumnsTemplate = void 0;
|
|
3
|
+
exports.footerLinks = exports.footerLinksTest = exports.footerLinksStag = exports.footerLinksProd = exports.footerColumnsTemplate = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Defines the structure of columns and sections of the Footer.
|
|
6
6
|
* Links' url values here are unique references to actual urls in the footerLinks dictionary.
|
|
@@ -51,13 +51,14 @@ exports.footerColumnsTemplate = {
|
|
|
51
51
|
section1: {
|
|
52
52
|
heading: 'Support',
|
|
53
53
|
links: [
|
|
54
|
-
{ text: '
|
|
55
|
-
{ text: '
|
|
54
|
+
{ text: 'Help center', url: 'helpCenter' },
|
|
55
|
+
{ text: 'Contact us', url: 'contactUs' }
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
section2: {
|
|
59
59
|
heading: 'Legal',
|
|
60
60
|
links: [
|
|
61
|
+
{ text: 'Privacy statement', url: 'privacyStatement' },
|
|
61
62
|
{ text: 'Terms of use', url: 'termsOfUse' },
|
|
62
63
|
{ text: 'Cookies policy', url: 'cookiesPolicy' }
|
|
63
64
|
]
|
|
@@ -70,12 +71,13 @@ exports.footerLinksProd = {
|
|
|
70
71
|
apiExplorer: 'https://developer.veracity.com/api',
|
|
71
72
|
assetConnect: 'https://www.veracity.com/article/veracity-asset',
|
|
72
73
|
career: 'https://www.veracity.com/career',
|
|
73
|
-
contactUs: 'https://
|
|
74
|
+
contactUs: 'https://support.veracity.com',
|
|
74
75
|
cookiesPolicy: 'https://services.veracity.com/CookieList',
|
|
75
76
|
deepSearch: 'https://store.veracity.com/veracity-deep-search',
|
|
76
77
|
developerCommunity: 'https://developer.veracity.com',
|
|
77
78
|
documentation: 'https://developer.veracity.com/docs',
|
|
78
|
-
|
|
79
|
+
helpCenter: 'https://help-center.veracity.com',
|
|
80
|
+
marketplace: 'https://store.veracity.com',
|
|
79
81
|
news: 'https://www.veracity.com',
|
|
80
82
|
privacyStatement: 'https://services.veracity.com/PrivacyStatement',
|
|
81
83
|
sellingOnVeracity: 'https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity',
|
|
@@ -92,12 +94,13 @@ exports.footerLinksStag = {
|
|
|
92
94
|
apiExplorer: 'https://developer.veracity.com/api',
|
|
93
95
|
assetConnect: 'https://www.veracity.com/article/veracity-asset',
|
|
94
96
|
career: 'https://wwwstag.veracity.com/career',
|
|
95
|
-
contactUs: 'https://
|
|
97
|
+
contactUs: 'https://support.veracity.com',
|
|
96
98
|
cookiesPolicy: 'https://servicesstag.veracity.com/CookieList',
|
|
97
99
|
deepSearch: 'https://storestag.veracity.com/veracity-deep-search',
|
|
98
100
|
developerCommunity: 'https://developerstag.veracity.com',
|
|
99
101
|
documentation: 'https://developerstag.veracity.com/docs',
|
|
100
|
-
|
|
102
|
+
helpCenter: 'https://help-center.veracity.com',
|
|
103
|
+
marketplace: 'https://storestag.veracity.com',
|
|
101
104
|
news: 'https://wwwstag.veracity.com',
|
|
102
105
|
privacyStatement: 'https://servicesstag.veracity.com/PrivacyStatement',
|
|
103
106
|
sellingOnVeracity: 'https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity',
|
|
@@ -114,12 +117,13 @@ exports.footerLinksTest = {
|
|
|
114
117
|
apiExplorer: 'https://developer.veracity.com/api',
|
|
115
118
|
assetConnect: 'https://www.veracity.com/article/veracity-asset',
|
|
116
119
|
career: 'https://www.veracity.com/career',
|
|
117
|
-
contactUs: 'https://
|
|
120
|
+
contactUs: 'https://support.veracity.com',
|
|
118
121
|
cookiesPolicy: 'https://servicestest.veracity.com/CookieList',
|
|
119
122
|
deepSearch: 'https://storetest.veracity.com/veracity-deep-search',
|
|
120
123
|
developerCommunity: 'https://developertest.veracity.com',
|
|
121
124
|
documentation: 'https://developertest.veracity.com/docs',
|
|
122
|
-
|
|
125
|
+
helpCenter: 'https://help-center.veracity.com',
|
|
126
|
+
marketplace: 'https://storetest.veracity.com',
|
|
123
127
|
news: 'https://wwwtest.veracity.com',
|
|
124
128
|
privacyStatement: 'https://servicestest.veracity.com/PrivacyStatement',
|
|
125
129
|
sellingOnVeracity: 'https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity',
|
|
@@ -130,3 +134,8 @@ exports.footerLinksTest = {
|
|
|
130
134
|
veracityPartnerProgram: 'https://wwwtest.veracity.com/partner',
|
|
131
135
|
veracityTrustCenter: 'https://www.veracity.com/veracity-trust-center'
|
|
132
136
|
};
|
|
137
|
+
exports.footerLinks = {
|
|
138
|
+
Prod: exports.footerLinksProd,
|
|
139
|
+
Stag: exports.footerLinksStag,
|
|
140
|
+
Test: exports.footerLinksTest
|
|
141
|
+
};
|
package/footer/footerColumn.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
declare const FooterColumn: import("../core").VuiComponent<"div", {
|
|
3
3
|
col?: (string | number | true | import("@xstyled/system").BreakpointsProps<string | number | true, import("..").VuiTheme>) | undefined;
|
|
4
4
|
p?: (((string | number) & {}) | import("@xstyled/system").BreakpointsProps<(string | number) & {}, import("..").VuiTheme>) | undefined;
|
|
5
|
+
resize?: (import("csstype").Property.Resize | import("@xstyled/system").BreakpointsProps<import("csstype").Property.Resize, import("..").VuiTheme>) | undefined;
|
|
5
6
|
column?: boolean | undefined;
|
|
6
7
|
row?: (boolean | import("@xstyled/system").BreakpointsProps<boolean, import("..").VuiTheme>) | undefined;
|
|
7
8
|
activeBg?: (import("..").ColorGetter | import("@xstyled/system").BreakpointsProps<import("..").ColorGetter, import("..").VuiTheme>) | undefined;
|
|
@@ -81,7 +82,6 @@ declare const FooterColumn: import("../core").VuiComponent<"div", {
|
|
|
81
82
|
overflowX?: (import("csstype").Property.OverflowX | import("@xstyled/system").BreakpointsProps<import("csstype").Property.OverflowX, import("..").VuiTheme>) | undefined;
|
|
82
83
|
overflowY?: (import("csstype").Property.OverflowY | import("@xstyled/system").BreakpointsProps<import("csstype").Property.OverflowY, import("..").VuiTheme>) | undefined;
|
|
83
84
|
position?: (import("csstype").Property.Position | import("@xstyled/system").BreakpointsProps<import("csstype").Property.Position, import("..").VuiTheme>) | undefined;
|
|
84
|
-
resize?: (import("csstype").Property.Resize | import("@xstyled/system").BreakpointsProps<import("csstype").Property.Resize, import("..").VuiTheme>) | undefined;
|
|
85
85
|
rowGap?: (0 | (string & {}) | (number & {}) | "normal" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("@xstyled/system").BreakpointsProps<0 | (string & {}) | (number & {}) | "normal" | "-moz-initial" | "inherit" | "initial" | "revert" | "unset", import("..").VuiTheme>) | undefined;
|
|
86
86
|
tableLayout?: (import("csstype").Property.TableLayout | import("@xstyled/system").BreakpointsProps<import("csstype").Property.TableLayout, import("..").VuiTheme>) | undefined;
|
|
87
87
|
textAlign?: (import("csstype").Property.TextAlign | import("@xstyled/system").BreakpointsProps<import("csstype").Property.TextAlign, import("..").VuiTheme>) | undefined;
|
package/footer/helpers.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { Environment } from '../utils';
|
|
1
2
|
import { FooterColumnsData } from './footer.types';
|
|
2
|
-
declare type Environment = 'Prod' | 'Stag' | 'Test';
|
|
3
3
|
/**
|
|
4
|
-
* Computes
|
|
4
|
+
* Computes Footer columns with appropriate sections and links.
|
|
5
5
|
* Links are selected per environment and modified based on log in state.
|
|
6
6
|
* @param environment current application environment
|
|
7
7
|
* @param isLoggedIn is current user logged in
|
|
8
8
|
*/
|
|
9
9
|
export declare function getFooterColumns(environment: Environment, isLoggedIn?: boolean): FooterColumnsData;
|
|
10
|
-
export {};
|
package/footer/helpers.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __read = (this && this.__read) || function (o, n) {
|
|
3
14
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
15
|
if (!m) return o;
|
|
@@ -17,14 +28,10 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
17
28
|
};
|
|
18
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
30
|
exports.getFooterColumns = void 0;
|
|
31
|
+
var utils_1 = require("../utils");
|
|
20
32
|
var consts_1 = require("./consts");
|
|
21
|
-
var envLinks = {
|
|
22
|
-
Prod: consts_1.footerLinksProd,
|
|
23
|
-
Stag: consts_1.footerLinksStag,
|
|
24
|
-
Test: consts_1.footerLinksTest
|
|
25
|
-
};
|
|
26
33
|
/**
|
|
27
|
-
* Computes
|
|
34
|
+
* Computes Footer columns with appropriate sections and links.
|
|
28
35
|
* Links are selected per environment and modified based on log in state.
|
|
29
36
|
* @param environment current application environment
|
|
30
37
|
* @param isLoggedIn is current user logged in
|
|
@@ -37,17 +44,10 @@ function getFooterColumns(environment, isLoggedIn) {
|
|
|
37
44
|
var _b = __read(_a, 2), columnName = _b[0], column = _b[1];
|
|
38
45
|
Object.entries(column).forEach(function (_a) {
|
|
39
46
|
var _b = __read(_a, 2), sectionName = _b[0], section = _b[1];
|
|
40
|
-
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
var url = (_b = envLinks[environment][urlId]) !== null && _b !== void 0 ? _b : '';
|
|
44
|
-
if (urlId === 'contactUs' && !isLoggedIn)
|
|
45
|
-
url += 'Anonymous';
|
|
46
|
-
if (isLoggedIn)
|
|
47
|
-
url += '?loggedin=1';
|
|
48
|
-
return { text: text, url: url };
|
|
47
|
+
columns[columnName][sectionName].links = section.links.map(function (link) {
|
|
48
|
+
var url = consts_1.footerLinks[environment][link.url];
|
|
49
|
+
return __assign(__assign({}, link), { url: (0, utils_1.getLoggedInLink)(url, isLoggedIn) });
|
|
49
50
|
});
|
|
50
|
-
columns[columnName][sectionName].links = links;
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
return columns;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Environment } from '../utils';
|
|
2
|
+
import { HeaderLinkKey } from './header.types';
|
|
3
|
+
/**
|
|
4
|
+
* Defines the structure of Header's account popover sections with links.
|
|
5
|
+
* Links' url values here are unique references to actual urls in the headerLinks dictionary.
|
|
6
|
+
*/
|
|
7
|
+
export declare const headerAccountSectionsTemplate: {
|
|
8
|
+
readonly section1: {
|
|
9
|
+
readonly links: readonly [{
|
|
10
|
+
readonly icon: "falUser";
|
|
11
|
+
readonly text: "User settings";
|
|
12
|
+
readonly url: "userSettings";
|
|
13
|
+
}];
|
|
14
|
+
};
|
|
15
|
+
readonly section2: {
|
|
16
|
+
readonly links: readonly [{
|
|
17
|
+
readonly icon: "falEnvelope";
|
|
18
|
+
readonly text: "Invite to Veracity";
|
|
19
|
+
readonly url: "invite";
|
|
20
|
+
}];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
/** Header link URLs used in Production environment. */
|
|
24
|
+
export declare const headerLinksProd: {
|
|
25
|
+
readonly createAccount: "https://id.veracity.com/sign-up";
|
|
26
|
+
readonly home: "https://www.veracity.com";
|
|
27
|
+
readonly invite: "https://id.veracity.com/invite";
|
|
28
|
+
readonly marketplace: "https://store.veracity.com";
|
|
29
|
+
readonly myData: "https://data.veracity.com";
|
|
30
|
+
readonly myServices: "https://services.veracity.com";
|
|
31
|
+
readonly notifications: "https://services.veracity.com/Notifications";
|
|
32
|
+
readonly signIn: "https://login.veracity.com";
|
|
33
|
+
readonly support: "https://support.veracity.com";
|
|
34
|
+
readonly userSettings: "https://id.veracity.com/settings";
|
|
35
|
+
};
|
|
36
|
+
/** Header link URLs used in Staging environment. */
|
|
37
|
+
export declare const headerLinksStag: Record<HeaderLinkKey, string>;
|
|
38
|
+
/** Header link URLs used in Test environment. */
|
|
39
|
+
export declare const headerLinksTest: Record<HeaderLinkKey, string>;
|
|
40
|
+
/** Dictionary of Header links for each environment (Prod, Stag, Test). */
|
|
41
|
+
export declare const headerLinks: Record<Environment, Record<HeaderLinkKey, string>>;
|
|
42
|
+
/**
|
|
43
|
+
* Defines the structure of Header's main links.
|
|
44
|
+
* Links' url values here are unique references to actual urls in the headerLinks dictionary.
|
|
45
|
+
*/
|
|
46
|
+
export declare const headerMainLinksTemplate: readonly [{
|
|
47
|
+
readonly text: "Marketplace";
|
|
48
|
+
readonly url: "marketplace";
|
|
49
|
+
}, {
|
|
50
|
+
readonly text: "My services";
|
|
51
|
+
readonly url: "myServices";
|
|
52
|
+
}, {
|
|
53
|
+
readonly text: "My data";
|
|
54
|
+
readonly url: "myData";
|
|
55
|
+
}, {
|
|
56
|
+
readonly text: "Support";
|
|
57
|
+
readonly url: "support";
|
|
58
|
+
}];
|
package/header/consts.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.headerMainLinksTemplate = exports.headerLinks = exports.headerLinksTest = exports.headerLinksStag = exports.headerLinksProd = exports.headerAccountSectionsTemplate = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Defines the structure of Header's account popover sections with links.
|
|
6
|
+
* Links' url values here are unique references to actual urls in the headerLinks dictionary.
|
|
7
|
+
*/
|
|
8
|
+
exports.headerAccountSectionsTemplate = {
|
|
9
|
+
section1: {
|
|
10
|
+
links: [
|
|
11
|
+
{ icon: 'falUser', text: 'User settings', url: 'userSettings' }
|
|
12
|
+
// { icon: 'falShoppingBasket', text: 'Subscriptions and payments', url: 'subscriptionsAndPayments' }
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
section2: {
|
|
16
|
+
links: [{ icon: 'falEnvelope', text: 'Invite to Veracity', url: 'invite' }]
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
/** Header link URLs used in Production environment. */
|
|
20
|
+
exports.headerLinksProd = {
|
|
21
|
+
createAccount: 'https://id.veracity.com/sign-up',
|
|
22
|
+
home: 'https://www.veracity.com',
|
|
23
|
+
invite: 'https://id.veracity.com/invite',
|
|
24
|
+
marketplace: 'https://store.veracity.com',
|
|
25
|
+
myData: 'https://data.veracity.com',
|
|
26
|
+
myServices: 'https://services.veracity.com',
|
|
27
|
+
notifications: 'https://services.veracity.com/Notifications',
|
|
28
|
+
signIn: 'https://login.veracity.com',
|
|
29
|
+
// subscriptionsAndPayments: 'ADD LINK',
|
|
30
|
+
support: 'https://support.veracity.com',
|
|
31
|
+
userSettings: 'https://id.veracity.com/settings'
|
|
32
|
+
};
|
|
33
|
+
/** Header link URLs used in Staging environment. */
|
|
34
|
+
exports.headerLinksStag = {
|
|
35
|
+
createAccount: 'https://idstag.veracity.com/sign-up',
|
|
36
|
+
home: 'https://wwwstag.veracity.com',
|
|
37
|
+
invite: 'https://idstag.veracity.com/invite',
|
|
38
|
+
marketplace: 'https://storestag.veracity.com',
|
|
39
|
+
myData: 'https://datastag.veracity.com',
|
|
40
|
+
myServices: 'https://servicesstag.veracity.com',
|
|
41
|
+
notifications: 'https://servicesstag.veracity.com/Notifications',
|
|
42
|
+
signIn: 'https://loginstag.veracity.com',
|
|
43
|
+
// subscriptionsAndPayments: 'ADD LINK',
|
|
44
|
+
support: 'https://support.veracity.com',
|
|
45
|
+
userSettings: 'https://idstag.veracity.com/settings'
|
|
46
|
+
};
|
|
47
|
+
/** Header link URLs used in Test environment. */
|
|
48
|
+
exports.headerLinksTest = {
|
|
49
|
+
createAccount: 'https://idtest.veracity.com/sign-up',
|
|
50
|
+
home: 'https://wwwtest.veracity.com',
|
|
51
|
+
invite: 'https://idtest.veracity.com/invite',
|
|
52
|
+
marketplace: 'https://storetest.veracity.com',
|
|
53
|
+
myData: 'https://datatest.veracity.com',
|
|
54
|
+
myServices: 'https://servicestest.veracity.com',
|
|
55
|
+
notifications: 'https://servicestest.veracity.com/Notifications',
|
|
56
|
+
signIn: 'https://logintest.veracity.com',
|
|
57
|
+
// subscriptionsAndPayments: 'ADD LINK',
|
|
58
|
+
support: 'https://support.veracity.com',
|
|
59
|
+
userSettings: 'https://idtest.veracity.com/settings'
|
|
60
|
+
};
|
|
61
|
+
/** Dictionary of Header links for each environment (Prod, Stag, Test). */
|
|
62
|
+
exports.headerLinks = {
|
|
63
|
+
Prod: exports.headerLinksProd,
|
|
64
|
+
Stag: exports.headerLinksStag,
|
|
65
|
+
Test: exports.headerLinksTest
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Defines the structure of Header's main links.
|
|
69
|
+
* Links' url values here are unique references to actual urls in the headerLinks dictionary.
|
|
70
|
+
*/
|
|
71
|
+
exports.headerMainLinksTemplate = [
|
|
72
|
+
{ text: 'Marketplace', url: 'marketplace' },
|
|
73
|
+
{ text: 'My services', url: 'myServices' },
|
|
74
|
+
{ text: 'My data', url: 'myData' },
|
|
75
|
+
{ text: 'Support', url: 'support' }
|
|
76
|
+
];
|
package/header/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HeaderContext } from './header.types';
|
|
3
|
-
declare const HeaderProvider: import("react").Provider<HeaderContext>,
|
|
4
|
-
export { HeaderProvider,
|
|
3
|
+
declare const HeaderProvider: import("react").Provider<HeaderContext>, useHeaderContext: () => HeaderContext;
|
|
4
|
+
export { HeaderProvider, useHeaderContext };
|
package/header/context.js
CHANGED
|
@@ -16,8 +16,8 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
16
16
|
return ar;
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.useHeaderContext = exports.HeaderProvider = void 0;
|
|
20
20
|
var utils_1 = require("../utils");
|
|
21
|
-
var _a = __read((0, utils_1.createContext)({ isOptional: true }), 2), HeaderProvider = _a[0],
|
|
21
|
+
var _a = __read((0, utils_1.createContext)({ isOptional: true }), 2), HeaderProvider = _a[0], useHeaderContext = _a[1];
|
|
22
22
|
exports.HeaderProvider = HeaderProvider;
|
|
23
|
-
exports.
|
|
23
|
+
exports.useHeaderContext = useHeaderContext;
|
package/header/header.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { VuiComponent } from '../core';
|
|
2
2
|
import { HeaderProps } from './header.types';
|
|
3
|
+
import HeaderAccount from './headerAccount';
|
|
3
4
|
import HeaderContent from './headerContent';
|
|
4
5
|
import HeaderCreateAccount from './headerCreateAccount';
|
|
5
6
|
import HeaderDivider from './headerDivider';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
7
|
+
import HeaderLinkItem from './headerLinkItem';
|
|
8
|
+
import HeaderLinksList from './headerLinksList';
|
|
8
9
|
import HeaderLogo from './headerLogo';
|
|
9
10
|
import HeaderMobileContent from './headerMobileContent';
|
|
10
11
|
import HeaderMobileToggle from './headerMobileToggle';
|
|
11
12
|
import HeaderNotifications from './headerNotifications';
|
|
12
|
-
import HeaderProfile from './headerProfile';
|
|
13
13
|
import HeaderServices from './headerServices';
|
|
14
14
|
import HeaderSignIn from './headerSignIn';
|
|
15
15
|
export declare const HeaderBase: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
|
|
16
16
|
/**
|
|
17
|
-
* Branded Veracity Header with logo, links, services,
|
|
17
|
+
* Branded Veracity Header with logo, links, services, account and other data. Controls max-width of the content.
|
|
18
18
|
* Exposes some props to the children via context.
|
|
19
19
|
*/
|
|
20
20
|
export declare const Header: VuiComponent<"header", HeaderProps> & {
|
|
21
|
+
Account: typeof HeaderAccount;
|
|
21
22
|
Content: typeof HeaderContent;
|
|
22
23
|
CreateAccount: typeof HeaderCreateAccount;
|
|
23
24
|
Divider: typeof HeaderDivider;
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
LinkItem: typeof HeaderLinkItem;
|
|
26
|
+
LinksList: typeof HeaderLinksList;
|
|
26
27
|
Logo: typeof HeaderLogo;
|
|
27
28
|
MobileContent: typeof HeaderMobileContent;
|
|
28
29
|
MobileToggle: typeof HeaderMobileToggle;
|
|
29
30
|
Notifications: typeof HeaderNotifications;
|
|
30
|
-
Profile: typeof HeaderProfile;
|
|
31
31
|
Services: typeof HeaderServices;
|
|
32
32
|
SignIn: typeof HeaderSignIn;
|
|
33
33
|
};
|