@veracity/vui 0.2.3 → 0.3.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.
Files changed (128) hide show
  1. package/button/context.js +2 -2
  2. package/buttonGroup/context.js +2 -2
  3. package/checkbox/context.js +2 -2
  4. package/core/types/index.d.ts +0 -1
  5. package/core/types/index.js +0 -1
  6. package/core/utils.d.ts +1 -3
  7. package/core/utils.js +1 -17
  8. package/footer/consts.d.ts +69 -0
  9. package/footer/consts.js +129 -0
  10. package/footer/footer.d.ts +15 -0
  11. package/footer/footer.js +74 -0
  12. package/footer/footer.types.d.ts +30 -0
  13. package/footer/footerColumn.d.ts +219 -0
  14. package/footer/footerColumn.js +24 -0
  15. package/footer/footerHeading.d.ts +3 -0
  16. package/footer/footerHeading.js +26 -0
  17. package/footer/footerLink.d.ts +3 -0
  18. package/footer/footerLink.js +26 -0
  19. package/footer/footerRow.d.ts +3 -0
  20. package/footer/footerRow.js +24 -0
  21. package/footer/footerSection.d.ts +3 -0
  22. package/footer/footerSection.js +46 -0
  23. package/footer/footerTrademark.d.ts +5 -0
  24. package/footer/footerTrademark.js +31 -0
  25. package/footer/helpers.d.ts +10 -0
  26. package/footer/helpers.js +55 -0
  27. package/footer/index.d.ts +9 -0
  28. package/footer/index.js +27 -0
  29. package/footer/theme.d.ts +7 -0
  30. package/footer/theme.js +12 -0
  31. package/icons/baseIcons/cub/cubPowerBi.d.ts +3 -0
  32. package/icons/baseIcons/cub/cubPowerBi.js +7 -0
  33. package/icons/baseIcons/cub/cubVeracity.d.ts +3 -0
  34. package/icons/baseIcons/cub/cubVeracity.js +7 -0
  35. package/icons/baseIcons/cul/culCircleChart.d.ts +3 -0
  36. package/icons/baseIcons/cul/culCircleChart.js +7 -0
  37. package/icons/baseIcons/cul/culCircleChartAlt.d.ts +3 -0
  38. package/icons/baseIcons/cul/culCircleChartAlt.js +7 -0
  39. package/icons/baseIcons/cul/culNumber1.d.ts +3 -0
  40. package/icons/baseIcons/cul/culNumber1.js +7 -0
  41. package/icons/baseIcons/cul/culTarget.d.ts +3 -0
  42. package/icons/baseIcons/cul/culTarget.js +7 -0
  43. package/icons/baseIcons/fab/fabYoutube.d.ts +3 -0
  44. package/icons/baseIcons/fab/fabYoutube.js +7 -0
  45. package/icons/baseIcons/fal/falLayerGroup.d.ts +3 -0
  46. package/icons/baseIcons/fal/falLayerGroup.js +7 -0
  47. package/icons/baseIcons/fal/falQuestionCircle.d.ts +3 -0
  48. package/icons/baseIcons/fal/falQuestionCircle.js +7 -0
  49. package/icons/baseIcons/fas/fasCalendarAlt.d.ts +3 -0
  50. package/icons/baseIcons/fas/fasCalendarAlt.js +7 -0
  51. package/icons/baseIcons/icons.d.ts +296 -0
  52. package/icons/baseIcons/icons.js +603 -0
  53. package/icons/baseIcons/types.d.ts +1 -1
  54. package/index.d.ts +3 -0
  55. package/index.js +3 -0
  56. package/input/context.js +2 -2
  57. package/link/context.js +2 -2
  58. package/link/link.js +1 -1
  59. package/list/context.js +2 -2
  60. package/list/listDivider.js +1 -1
  61. package/menu/context.d.ts +4 -0
  62. package/menu/context.js +23 -0
  63. package/menu/index.d.ts +6 -0
  64. package/menu/index.js +27 -0
  65. package/menu/menu.d.ts +15 -0
  66. package/menu/menu.js +63 -0
  67. package/menu/menu.types.d.ts +11 -0
  68. package/menu/menu.types.js +2 -0
  69. package/menu/menuButton.d.ts +3 -0
  70. package/menu/menuButton.js +30 -0
  71. package/menu/menuItem.d.ts +3 -0
  72. package/menu/menuItem.js +63 -0
  73. package/menu/menuList.d.ts +11 -0
  74. package/menu/menuList.js +48 -0
  75. package/menu/theme.d.ts +7 -0
  76. package/menu/theme.js +12 -0
  77. package/notification/context.js +2 -2
  78. package/notification/notificationButton.js +1 -1
  79. package/notification/theme.d.ts +0 -5
  80. package/notification/theme.js +6 -7
  81. package/package.json +4 -5
  82. package/popover/context.d.ts +4 -0
  83. package/popover/context.js +23 -0
  84. package/popover/index.d.ts +8 -0
  85. package/popover/index.js +29 -0
  86. package/popover/plugins.d.ts +3 -0
  87. package/popover/plugins.js +24 -0
  88. package/popover/popover.d.ts +9 -0
  89. package/popover/popover.js +32 -0
  90. package/popover/popover.types.d.ts +15 -0
  91. package/popover/popover.types.js +2 -0
  92. package/popover/popoverContent.d.ts +2 -0
  93. package/popover/popoverContent.js +43 -0
  94. package/popover/popoverTrigger.d.ts +2 -0
  95. package/popover/popoverTrigger.js +44 -0
  96. package/popover/theme.d.ts +7 -0
  97. package/popover/theme.js +12 -0
  98. package/popover/usePopover.d.ts +14 -0
  99. package/popover/usePopover.js +114 -0
  100. package/popover/usePopover.types.d.ts +16 -0
  101. package/popover/usePopover.types.js +2 -0
  102. package/radio/context.js +2 -2
  103. package/switch/context.js +2 -2
  104. package/system/flexboxGrids.d.ts +13 -0
  105. package/system/flexboxGrids.js +2 -0
  106. package/system/grids.d.ts +55 -0
  107. package/system/grids.js +2 -0
  108. package/system/system.d.ts +3 -1
  109. package/system/system.js +1 -1
  110. package/system/typography.d.ts +1 -0
  111. package/tag/context.js +2 -2
  112. package/tag/tagButton.js +1 -1
  113. package/tag/theme.d.ts +2 -11
  114. package/tag/theme.js +21 -18
  115. package/theme/components.d.ts +20 -16
  116. package/theme/components.js +38 -32
  117. package/theme/defaultTheme.d.ts +20 -16
  118. package/utils/assertion.d.ts +1 -1
  119. package/utils/function.d.ts +1 -1
  120. package/utils/function.js +3 -2
  121. package/utils/index.d.ts +1 -0
  122. package/utils/index.js +1 -0
  123. package/utils/react.d.ts +18 -0
  124. package/utils/react.js +83 -0
  125. package/utils/types.d.ts +11 -0
  126. package/utils/types.js +0 -1
  127. package/core/types/context.d.ts +0 -10
  128. /package/{core/types/context.js → footer/footer.types.js} +0 -0
package/button/context.js CHANGED
@@ -17,7 +17,7 @@ var __read = (this && this.__read) || function (o, n) {
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.useButton = exports.ButtonProvider = void 0;
20
- var core_1 = require("../core");
21
- var _a = __read((0, core_1.createContext)({ isOptional: true }), 2), ButtonProvider = _a[0], useButton = _a[1];
20
+ var utils_1 = require("../utils");
21
+ var _a = __read((0, utils_1.createContext)({ isOptional: true }), 2), ButtonProvider = _a[0], useButton = _a[1];
22
22
  exports.ButtonProvider = ButtonProvider;
23
23
  exports.useButton = useButton;
@@ -17,7 +17,7 @@ var __read = (this && this.__read) || function (o, n) {
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.useButtonGroup = exports.ButtonGroupProvider = void 0;
20
- var core_1 = require("../core");
21
- var _a = __read((0, core_1.createContext)({ isOptional: true }), 2), ButtonGroupProvider = _a[0], useButtonGroup = _a[1];
20
+ var utils_1 = require("../utils");
21
+ var _a = __read((0, utils_1.createContext)({ isOptional: true }), 2), ButtonGroupProvider = _a[0], useButtonGroup = _a[1];
22
22
  exports.ButtonGroupProvider = ButtonGroupProvider;
23
23
  exports.useButtonGroup = useButtonGroup;
@@ -17,7 +17,7 @@ var __read = (this && this.__read) || function (o, n) {
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.useCheckboxGroup = exports.CheckboxGroupProvider = void 0;
20
- var core_1 = require("../core");
21
- var _a = __read((0, core_1.createContext)({ isOptional: true }), 2), CheckboxGroupProvider = _a[0], useCheckboxGroup = _a[1];
20
+ var utils_1 = require("../utils");
21
+ var _a = __read((0, utils_1.createContext)({ isOptional: true }), 2), CheckboxGroupProvider = _a[0], useCheckboxGroup = _a[1];
22
22
  exports.CheckboxGroupProvider = CheckboxGroupProvider;
23
23
  exports.useCheckboxGroup = useCheckboxGroup;
@@ -1,3 +1,2 @@
1
1
  export * from './component';
2
- export * from './context';
3
2
  export * from './themeGet';
@@ -11,5 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./component"), exports);
14
- __exportStar(require("./context"), exports);
15
14
  __exportStar(require("./themeGet"), exports);
package/core/utils.d.ts CHANGED
@@ -1,11 +1,9 @@
1
1
  import { StyleGenerator } from '@xstyled/styled-components';
2
2
  import React from 'react';
3
3
  import { StyledProps } from 'styled-components';
4
- import { CreateContextOptions, CreateContextReturn, ThemeGet, VuiComponent, VuiComponentConfig } from './types';
4
+ import { ThemeGet, VuiComponent, VuiComponentConfig } from './types';
5
5
  import { Screen, ThemingProps, VuiTheme, VuiThemeExtensions } from '../theme';
6
6
  import { AnyNumber, AnyString, Dict, PropsOf } from '../utils';
7
- /** Generic function to create new Context and context access hook. */
8
- export declare function createContext<ContextType>(options?: CreateContextOptions): CreateContextReturn<ContextType>;
9
7
  /** Merges provided theme extensions and overrides with default VUI theme */
10
8
  export declare function extendTheme(extensions: VuiThemeExtensions): VuiTheme;
11
9
  /**
package/core/utils.js CHANGED
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/ban-types */
3
2
  var __assign = (this && this.__assign) || function () {
4
3
  __assign = Object.assign || function(t) {
5
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -45,27 +44,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
45
44
  return (mod && mod.__esModule) ? mod : { "default": mod };
46
45
  };
47
46
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.vui = exports.useUp = exports.useTheme = exports.useTh = exports.useStyleConfig = exports.useMedia = exports.useDown = exports.useBetween = exports.th = exports.shouldForwardProp = exports.omitThemingProps = exports.mediaUp = exports.mediaDown = exports.mediaBetween = exports.forwardPropConfig = exports.extendTheme = exports.createContext = void 0;
47
+ exports.vui = exports.useUp = exports.useTheme = exports.useTh = exports.useStyleConfig = exports.useMedia = exports.useDown = exports.useBetween = exports.th = exports.shouldForwardProp = exports.omitThemingProps = exports.mediaUp = exports.mediaDown = exports.mediaBetween = exports.forwardPropConfig = exports.extendTheme = void 0;
49
48
  var styled_components_1 = require("@xstyled/styled-components");
50
49
  var react_1 = __importStar(require("react"));
51
50
  var styled_components_2 = require("styled-components");
52
51
  var theme_1 = __importDefault(require("../theme"));
53
52
  var utils_1 = require("../utils");
54
- /** Generic function to create new Context and context access hook. */
55
- function createContext(options) {
56
- if (options === void 0) { options = {}; }
57
- var _a = options.errorMessage, errorMessage = _a === void 0 ? 'Context can only be accessed by components wrapped with the Provider.' : _a, isOptional = options.isOptional, name = options.name;
58
- var Context = react_1.default.createContext(undefined);
59
- Context.displayName = name;
60
- function useContext() {
61
- var context = react_1.default.useContext(Context);
62
- if (!isOptional && context === undefined)
63
- throw new Error(errorMessage);
64
- return context;
65
- }
66
- return [Context.Provider, useContext];
67
- }
68
- exports.createContext = createContext;
69
53
  /** Merges provided theme extensions and overrides with default VUI theme */
70
54
  function extendTheme(extensions) {
71
55
  return (0, utils_1.merge)(theme_1.default, extensions);
@@ -0,0 +1,69 @@
1
+ import { FooterColumnsData } from './footer.types';
2
+ /**
3
+ * Defines the structure of columns and sections of the Footer.
4
+ * Links' url values here are unique references to actual urls in the footerLinks dictionary.
5
+ */
6
+ export declare const footerColumnsTemplate: FooterColumnsData;
7
+ export declare const footerLinksProd: {
8
+ readonly aboutVeracity: "https://www.veracity.com/about";
9
+ readonly apiExplorer: "https://developer.veracity.com/api";
10
+ readonly assetConnect: "https://www.veracity.com/article/veracity-asset";
11
+ readonly career: "https://www.veracity.com/career";
12
+ readonly contactUs: "https://services.veracity.com/form/Support";
13
+ readonly cookiesPolicy: "https://services.veracity.com/CookieList";
14
+ readonly deepSearch: "https://store.veracity.com/veracity-deep-search";
15
+ readonly developerCommunity: "https://developer.veracity.com";
16
+ readonly documentation: "https://developer.veracity.com/docs";
17
+ readonly marketplace: "https://store.veracity.com/";
18
+ readonly news: "https://www.veracity.com";
19
+ readonly privacyStatement: "https://services.veracity.com/PrivacyStatement";
20
+ readonly sellingOnVeracity: "https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity";
21
+ readonly termsOfUse: "https://id.veracity.com/terms-of-use";
22
+ readonly veracityAdapterForPowerBI: "https://store.veracity.com/veracity-adapter-for-power-bi-vap";
23
+ readonly veracityConnectedApp: "https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile";
24
+ readonly veracityDataFabric: "https://store.veracity.com/veracity-data-fabric-secure-data-sharing";
25
+ readonly veracityPartnerProgram: "https://www.veracity.com/partner";
26
+ readonly veracityTrustCenter: "https://www.veracity.com/veracity-trust-center";
27
+ };
28
+ export declare const footerLinksStag: {
29
+ readonly aboutVeracity: "https://wwwstag.veracity.com/about";
30
+ readonly apiExplorer: "https://developer.veracity.com/api";
31
+ readonly assetConnect: "https://www.veracity.com/article/veracity-asset";
32
+ readonly career: "https://wwwstag.veracity.com/career";
33
+ readonly contactUs: "https://servicesstag.veracity.com/form/Support";
34
+ readonly cookiesPolicy: "https://servicesstag.veracity.com/CookieList";
35
+ readonly deepSearch: "https://storestag.veracity.com/veracity-deep-search";
36
+ readonly developerCommunity: "https://developerstag.veracity.com";
37
+ readonly documentation: "https://developerstag.veracity.com/docs";
38
+ readonly marketplace: "https://storestag.veracity.com/";
39
+ readonly news: "https://wwwstag.veracity.com";
40
+ readonly privacyStatement: "https://servicesstag.veracity.com/PrivacyStatement";
41
+ readonly sellingOnVeracity: "https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity";
42
+ readonly termsOfUse: "https://id.veracity.com/terms-of-use";
43
+ readonly veracityAdapterForPowerBI: "https://storestag.veracity.com/veracity-adapter-for-power-bi-vap";
44
+ readonly veracityConnectedApp: "https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile";
45
+ readonly veracityDataFabric: "https://storestag.veracity.com/veracity-data-fabric-secure-data-sharing";
46
+ readonly veracityPartnerProgram: "https://wwwstag.veracity.com/partner";
47
+ readonly veracityTrustCenter: "https://www.veracity.com/veracity-trust-center";
48
+ };
49
+ export declare const footerLinksTest: {
50
+ readonly aboutVeracity: "https://wwwtest.veracity.com/about";
51
+ readonly apiExplorer: "https://developer.veracity.com/api";
52
+ readonly assetConnect: "https://www.veracity.com/article/veracity-asset";
53
+ readonly career: "https://www.veracity.com/career";
54
+ readonly contactUs: "https://servicestest.veracity.com/form/Support";
55
+ readonly cookiesPolicy: "https://servicestest.veracity.com/CookieList";
56
+ readonly deepSearch: "https://storetest.veracity.com/veracity-deep-search";
57
+ readonly developerCommunity: "https://developertest.veracity.com";
58
+ readonly documentation: "https://developertest.veracity.com/docs";
59
+ readonly marketplace: "https://storetest.veracity.com/";
60
+ readonly news: "https://wwwtest.veracity.com";
61
+ readonly privacyStatement: "https://servicestest.veracity.com/PrivacyStatement";
62
+ readonly sellingOnVeracity: "https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity";
63
+ readonly termsOfUse: "https://id.veracity.com/terms-of-use";
64
+ readonly veracityAdapterForPowerBI: "https://storetest.veracity.com/veracity-adapter-for-power-bi-vap";
65
+ readonly veracityConnectedApp: "https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile";
66
+ readonly veracityDataFabric: "https://storetest.veracity.com/veracity-data-fabric-secure-data-sharing";
67
+ readonly veracityPartnerProgram: "https://wwwtest.veracity.com/partner";
68
+ readonly veracityTrustCenter: "https://www.veracity.com/veracity-trust-center";
69
+ };
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.footerLinksTest = exports.footerLinksStag = exports.footerLinksProd = exports.footerColumnsTemplate = void 0;
4
+ /**
5
+ * Defines the structure of columns and sections of the Footer.
6
+ * Links' url values here are unique references to actual urls in the footerLinks dictionary.
7
+ */
8
+ exports.footerColumnsTemplate = {
9
+ column1: {
10
+ section1: {
11
+ heading: 'Platform',
12
+ links: [
13
+ { text: 'About Veracity', url: 'aboutVeracity' },
14
+ { text: 'News', url: 'news' },
15
+ { text: 'Marketplace', url: 'marketplace' },
16
+ { text: 'Veracity trust center', url: 'veracityTrustCenter' },
17
+ { text: 'Career', url: 'career' }
18
+ ]
19
+ }
20
+ },
21
+ column2: {
22
+ section1: {
23
+ heading: 'Products',
24
+ links: [
25
+ { text: 'Veracity Connected app', url: 'veracityConnectedApp' },
26
+ { text: 'Veracity Data Fabric', url: 'veracityDataFabric' },
27
+ { text: 'Deep Search', url: 'deepSearch' },
28
+ { text: 'Asset Connect', url: 'assetConnect' },
29
+ { text: 'Veracity Adapter for Power BI (VAP)', url: 'veracityAdapterForPowerBI' }
30
+ ]
31
+ }
32
+ },
33
+ column3: {
34
+ section1: {
35
+ heading: 'Partnership',
36
+ links: [
37
+ { text: 'Selling on Veracity', url: 'sellingOnVeracity' },
38
+ { text: 'Veracity partner program', url: 'veracityPartnerProgram' }
39
+ ]
40
+ },
41
+ section2: {
42
+ heading: 'Developer',
43
+ links: [
44
+ { text: 'Developer community', url: 'developerCommunity' },
45
+ { text: 'Documentation', url: 'documentation' },
46
+ { text: 'API explorer', url: 'apiExplorer' }
47
+ ]
48
+ }
49
+ },
50
+ column4: {
51
+ section1: {
52
+ heading: 'Support',
53
+ links: [
54
+ { text: 'Contact us', url: 'contactUs' },
55
+ { text: 'Privacy statement', url: 'privacyStatement' }
56
+ ]
57
+ },
58
+ section2: {
59
+ heading: 'Legal',
60
+ links: [
61
+ { text: 'Terms of use', url: 'termsOfUse' },
62
+ { text: 'Cookies policy', url: 'cookiesPolicy' }
63
+ ]
64
+ }
65
+ }
66
+ };
67
+ exports.footerLinksProd = {
68
+ aboutVeracity: 'https://www.veracity.com/about',
69
+ apiExplorer: 'https://developer.veracity.com/api',
70
+ assetConnect: 'https://www.veracity.com/article/veracity-asset',
71
+ career: 'https://www.veracity.com/career',
72
+ contactUs: 'https://services.veracity.com/form/Support',
73
+ cookiesPolicy: 'https://services.veracity.com/CookieList',
74
+ deepSearch: 'https://store.veracity.com/veracity-deep-search',
75
+ developerCommunity: 'https://developer.veracity.com',
76
+ documentation: 'https://developer.veracity.com/docs',
77
+ marketplace: 'https://store.veracity.com/',
78
+ news: 'https://www.veracity.com',
79
+ privacyStatement: 'https://services.veracity.com/PrivacyStatement',
80
+ sellingOnVeracity: 'https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity',
81
+ termsOfUse: 'https://id.veracity.com/terms-of-use',
82
+ veracityAdapterForPowerBI: 'https://store.veracity.com/veracity-adapter-for-power-bi-vap',
83
+ veracityConnectedApp: 'https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile',
84
+ veracityDataFabric: 'https://store.veracity.com/veracity-data-fabric-secure-data-sharing',
85
+ veracityPartnerProgram: 'https://www.veracity.com/partner',
86
+ veracityTrustCenter: 'https://www.veracity.com/veracity-trust-center'
87
+ };
88
+ exports.footerLinksStag = {
89
+ aboutVeracity: 'https://wwwstag.veracity.com/about',
90
+ apiExplorer: 'https://developer.veracity.com/api',
91
+ assetConnect: 'https://www.veracity.com/article/veracity-asset',
92
+ career: 'https://wwwstag.veracity.com/career',
93
+ contactUs: 'https://servicesstag.veracity.com/form/Support',
94
+ cookiesPolicy: 'https://servicesstag.veracity.com/CookieList',
95
+ deepSearch: 'https://storestag.veracity.com/veracity-deep-search',
96
+ developerCommunity: 'https://developerstag.veracity.com',
97
+ documentation: 'https://developerstag.veracity.com/docs',
98
+ marketplace: 'https://storestag.veracity.com/',
99
+ news: 'https://wwwstag.veracity.com',
100
+ privacyStatement: 'https://servicesstag.veracity.com/PrivacyStatement',
101
+ sellingOnVeracity: 'https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity',
102
+ termsOfUse: 'https://id.veracity.com/terms-of-use',
103
+ veracityAdapterForPowerBI: 'https://storestag.veracity.com/veracity-adapter-for-power-bi-vap',
104
+ veracityConnectedApp: 'https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile',
105
+ veracityDataFabric: 'https://storestag.veracity.com/veracity-data-fabric-secure-data-sharing',
106
+ veracityPartnerProgram: 'https://wwwstag.veracity.com/partner',
107
+ veracityTrustCenter: 'https://www.veracity.com/veracity-trust-center'
108
+ };
109
+ exports.footerLinksTest = {
110
+ aboutVeracity: 'https://wwwtest.veracity.com/about',
111
+ apiExplorer: 'https://developer.veracity.com/api',
112
+ assetConnect: 'https://www.veracity.com/article/veracity-asset',
113
+ career: 'https://www.veracity.com/career',
114
+ contactUs: 'https://servicestest.veracity.com/form/Support',
115
+ cookiesPolicy: 'https://servicestest.veracity.com/CookieList',
116
+ deepSearch: 'https://storetest.veracity.com/veracity-deep-search',
117
+ developerCommunity: 'https://developertest.veracity.com',
118
+ documentation: 'https://developertest.veracity.com/docs',
119
+ marketplace: 'https://storetest.veracity.com/',
120
+ news: 'https://wwwtest.veracity.com',
121
+ privacyStatement: 'https://servicestest.veracity.com/PrivacyStatement',
122
+ sellingOnVeracity: 'https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity',
123
+ termsOfUse: 'https://id.veracity.com/terms-of-use',
124
+ veracityAdapterForPowerBI: 'https://storetest.veracity.com/veracity-adapter-for-power-bi-vap',
125
+ veracityConnectedApp: 'https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile',
126
+ veracityDataFabric: 'https://storetest.veracity.com/veracity-data-fabric-secure-data-sharing',
127
+ veracityPartnerProgram: 'https://wwwtest.veracity.com/partner',
128
+ veracityTrustCenter: 'https://www.veracity.com/veracity-trust-center'
129
+ };
@@ -0,0 +1,15 @@
1
+ import { VuiComponent } from '../core';
2
+ import { FooterProps } from './footer.types';
3
+ import FooterColumn from './footerColumn';
4
+ import FooterHeading from './footerHeading';
5
+ import FooterLink from './footerLink';
6
+ import FooterRow from './footerRow';
7
+ import FooterSection from './footerSection';
8
+ declare const Footer: VuiComponent<"div", FooterProps> & {
9
+ Column: typeof FooterColumn;
10
+ Heading: typeof FooterHeading;
11
+ Link: typeof FooterLink;
12
+ Row: typeof FooterRow;
13
+ Section: typeof FooterSection;
14
+ };
15
+ export default Footer;
@@ -0,0 +1,74 @@
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
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __read = (this && this.__read) || function (o, n) {
25
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
26
+ if (!m) return o;
27
+ var i = m.call(o), r, ar = [], e;
28
+ try {
29
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
30
+ }
31
+ catch (error) { e = { error: error }; }
32
+ finally {
33
+ try {
34
+ if (r && !r.done && (m = i["return"])) m.call(i);
35
+ }
36
+ finally { if (e) throw e.error; }
37
+ }
38
+ return ar;
39
+ };
40
+ var __importDefault = (this && this.__importDefault) || function (mod) {
41
+ return (mod && mod.__esModule) ? mod : { "default": mod };
42
+ };
43
+ Object.defineProperty(exports, "__esModule", { value: true });
44
+ var react_1 = __importDefault(require("react"));
45
+ var box_1 = require("../box");
46
+ var core_1 = require("../core");
47
+ var divider_1 = require("../divider");
48
+ var footerColumn_1 = __importDefault(require("./footerColumn"));
49
+ var footerHeading_1 = __importDefault(require("./footerHeading"));
50
+ var footerLink_1 = __importDefault(require("./footerLink"));
51
+ var footerRow_1 = __importDefault(require("./footerRow"));
52
+ var footerSection_1 = __importDefault(require("./footerSection"));
53
+ var footerTrademark_1 = __importDefault(require("./footerTrademark"));
54
+ var Footer = (0, core_1.vui)(function (props, ref) {
55
+ var children = props.children, columns = props.columns, rest = __rest(props, ["children", "columns"]);
56
+ return (react_1.default.createElement(box_1.Box, __assign({ bg: "prussian.80", color: "white", px: 3, py: 5, ref: ref }, rest),
57
+ react_1.default.createElement(box_1.Box, { column: true, maxW: 1200, mx: "auto", w: "100%" }, children !== null && children !== void 0 ? children : (columns && (react_1.default.createElement(footerRow_1.default, null, Object.entries(columns).map(function (_a) {
58
+ var _b = __read(_a, 2), columnName = _b[0], column = _b[1];
59
+ return (react_1.default.createElement(footerColumn_1.default, { key: columnName }, Object.entries(column).map(function (_a) {
60
+ var _b = __read(_a, 2), sectionName = _b[0], section = _b[1];
61
+ return (react_1.default.createElement(footerSection_1.default, __assign({ key: sectionName }, section)));
62
+ })));
63
+ })))),
64
+ children || columns ? react_1.default.createElement(divider_1.Divider, { borderColor: "grey.60", my: 4 }) : null,
65
+ react_1.default.createElement(footerRow_1.default, null,
66
+ react_1.default.createElement(footerTrademark_1.default, null)))));
67
+ });
68
+ Footer.displayName = 'Footer';
69
+ Footer.Column = footerColumn_1.default;
70
+ Footer.Heading = footerHeading_1.default;
71
+ Footer.Link = footerLink_1.default;
72
+ Footer.Row = footerRow_1.default;
73
+ Footer.Section = footerSection_1.default;
74
+ exports.default = Footer;
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from '../box';
3
+ import { ThemingProps } from '../theme';
4
+ declare type FooterBoxProps = Omit<BoxProps, 'size' | 'variant'>;
5
+ /** Column consists of one ore more sections with a heading and links. */
6
+ export declare type FooterColumnData = {
7
+ [section: string]: FooterSectionData;
8
+ };
9
+ export declare type FooterColumnProps = FooterBoxProps;
10
+ /** Footer consists of multiple columns */
11
+ export declare type FooterColumnsData = {
12
+ [column: string]: FooterColumnData;
13
+ };
14
+ export declare type FooterLinkData = {
15
+ text: string;
16
+ url: string;
17
+ };
18
+ export declare type FooterProps = FooterBoxProps & ThemingProps<'Footer'> & {
19
+ columns?: FooterColumnsData;
20
+ };
21
+ /** Section consists of multiple links with text (label) and url */
22
+ export declare type FooterSectionData = {
23
+ heading: string;
24
+ links: FooterLinkData[];
25
+ };
26
+ export declare type FooterSectionProps = FooterBoxProps & {
27
+ heading?: FooterSectionData['heading'] | JSX.Element;
28
+ links?: FooterSectionData['links'] | JSX.Element;
29
+ };
30
+ export {};