@veracity/vui 0.4.0 → 0.5.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/button/button.d.ts +15 -1
- package/button/button.js +3 -3
- package/button/theme.d.ts +2 -0
- package/button/theme.js +3 -2
- package/buttonGroup/buttonGroup.d.ts +1 -1
- package/buttonGroup/buttonGroup.js +1 -1
- package/buttonGroup/helpers.js +3 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/core/consts.d.ts +7 -0
- package/core/consts.js +8 -1
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/links.d.ts +20 -0
- package/core/links.js +173 -0
- package/dialog/consts.d.ts +3 -0
- package/dialog/consts.js +30 -0
- package/dialog/context.d.ts +4 -0
- package/dialog/context.js +23 -0
- package/dialog/dialog.d.ts +26 -0
- package/dialog/dialog.js +122 -0
- package/dialog/dialog.types.d.ts +47 -0
- package/dialog/dialog.types.js +2 -0
- package/dialog/dialogBody.d.ts +9 -0
- package/dialog/dialogBody.js +85 -0
- package/dialog/dialogCancelButton.d.ts +4 -0
- package/dialog/dialogCancelButton.js +30 -0
- package/dialog/dialogCloseButton.d.ts +4 -0
- package/dialog/dialogCloseButton.js +30 -0
- package/dialog/dialogFooter.d.ts +4 -0
- package/dialog/dialogFooter.js +45 -0
- package/dialog/dialogHeader.d.ts +4 -0
- package/dialog/dialogHeader.js +53 -0
- package/dialog/dialogIcon.d.ts +4 -0
- package/dialog/dialogIcon.js +32 -0
- package/dialog/dialogSubmitButton.d.ts +4 -0
- package/dialog/dialogSubmitButton.js +28 -0
- package/dialog/dialogTitle.d.ts +4 -0
- package/dialog/dialogTitle.js +30 -0
- package/dialog/index.d.ts +13 -0
- package/dialog/index.js +30 -0
- package/dialog/theme.d.ts +22 -0
- package/dialog/theme.js +28 -0
- package/footer/context.d.ts +4 -0
- package/footer/context.js +23 -0
- package/footer/footer.d.ts +2 -0
- package/footer/footer.js +11 -29
- package/footer/footer.types.d.ts +19 -16
- package/footer/footerColumn.d.ts +2 -218
- package/footer/footerColumn.js +16 -2
- package/footer/footerContent.d.ts +3 -0
- package/footer/footerContent.js +28 -0
- package/footer/footerHeading.js +2 -1
- package/footer/footerLink.js +2 -1
- package/footer/footerRow.js +2 -1
- package/footer/footerSection.js +4 -3
- package/footer/footerTrademark.d.ts +3 -5
- package/footer/footerTrademark.js +23 -6
- package/footer/helpers.d.ts +6 -8
- package/footer/helpers.js +79 -21
- package/footer/index.d.ts +1 -1
- package/footer/index.js +1 -1
- package/footer/theme.js +1 -1
- package/grid/grid.d.ts +5 -0
- package/grid/grid.js +47 -0
- package/grid/grid.types.d.ts +3 -0
- package/grid/grid.types.js +2 -0
- package/grid/index.d.ts +3 -0
- package/grid/index.js +20 -0
- package/grid/theme.d.ts +7 -0
- package/grid/theme.js +12 -0
- package/header/header.d.ts +7 -6
- package/header/header.js +12 -12
- package/header/header.types.d.ts +27 -31
- package/header/headerAccount.d.ts +5 -1
- package/header/headerAccount.js +17 -38
- package/header/headerAccount.types.d.ts +12 -12
- package/header/headerAccountUserInfo.d.ts +4 -0
- package/header/headerAccountUserInfo.js +46 -0
- package/header/headerContent.d.ts +2 -3
- package/header/headerContent.js +2 -2
- package/header/headerCreateAccount.js +4 -4
- package/header/headerLogo.js +6 -4
- package/header/headerMainLinks.d.ts +4 -0
- package/header/{headerLinksList.js → headerMainLinks.js} +5 -5
- package/header/headerNotifications.js +8 -7
- package/header/headerServices.d.ts +5 -1
- package/header/headerServices.js +18 -13
- package/header/headerServicesMessage.d.ts +4 -0
- package/header/headerServicesMessage.js +49 -0
- package/header/headerSignIn.js +4 -2
- package/header/helpers.d.ts +6 -15
- package/header/helpers.js +82 -33
- package/header/index.d.ts +3 -2
- package/header/index.js +3 -2
- package/header/loggedInHeader.js +9 -9
- package/header/loggedOutHeader.js +9 -9
- package/header/theme.d.ts +8 -6
- package/header/theme.js +9 -5
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/input/input.js +1 -1
- package/link/linkText.js +1 -1
- package/list/listHeading.js +1 -1
- package/list/listItem.js +1 -1
- package/list/theme.d.ts +2 -4
- package/list/theme.js +2 -4
- package/modal/{modalBackdrop.d.ts → ModalBackdrop.d.ts} +1 -1
- package/modal/{modalBackdrop.js → ModalBackdrop.js} +6 -7
- package/modal/ModalContent.d.ts +4 -0
- package/modal/ModalContent.js +38 -0
- package/modal/index.d.ts +2 -0
- package/modal/index.js +2 -0
- package/modal/modal.d.ts +7 -2
- package/modal/modal.js +30 -26
- package/modal/modal.types.d.ts +8 -2
- package/modal/theme.d.ts +1 -0
- package/modal/theme.js +2 -0
- package/notification/theme.js +1 -1
- package/package.json +1 -1
- package/popover/popoverTrigger.js +7 -2
- package/radio/radio.d.ts +1 -1
- package/radio/radioGroup.js +1 -1
- package/system/custom.d.ts +0 -4
- package/system/custom.js +1 -15
- package/system/effects.d.ts +4 -4
- package/system/grids.d.ts +5 -3
- package/system/system.d.ts +2 -2
- package/system/system.js +1 -1
- package/system/transitions.d.ts +1 -1
- package/tag/tag.js +1 -2
- package/tag/theme.d.ts +1 -0
- package/tag/theme.js +2 -1
- package/textarea/textarea.js +2 -2
- package/theme/components.d.ts +47 -10
- package/theme/components.js +48 -42
- package/theme/defaultTheme.d.ts +76 -11
- package/theme/foundations/gridTemplateColumns.d.ts +15 -0
- package/theme/foundations/gridTemplateColumns.js +16 -0
- package/theme/foundations/gridTemplateRows.d.ts +9 -0
- package/theme/foundations/gridTemplateRows.js +10 -0
- package/theme/foundations/index.d.ts +29 -1
- package/theme/foundations/index.js +6 -0
- package/theme/foundations/timingFunctions.d.ts +2 -0
- package/theme/foundations/timingFunctions.js +3 -0
- package/theme/foundations/zIndices.d.ts +6 -1
- package/theme/foundations/zIndices.js +6 -1
- package/theme/types.d.ts +9 -1
- package/utils/assertion.d.ts +2 -0
- package/utils/assertion.js +6 -1
- package/utils/function.d.ts +4 -0
- package/utils/function.js +19 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.js +1 -1
- package/utils/number.d.ts +2 -0
- package/utils/number.js +10 -0
- package/utils/object.js +9 -17
- package/utils/react.d.ts +2 -0
- package/utils/react.js +6 -1
- package/footer/consts.d.ts +0 -169
- package/footer/consts.js +0 -141
- package/header/consts.d.ts +0 -58
- package/header/consts.js +0 -76
- package/header/headerLinksList.d.ts +0 -4
- package/utils/string.d.ts +0 -5
- package/utils/string.js +0 -19
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
1: 'repeat(1, minmax(0, 1fr))',
|
|
5
|
+
2: 'repeat(2, minmax(0, 1fr))',
|
|
6
|
+
3: 'repeat(3, minmax(0, 1fr))',
|
|
7
|
+
4: 'repeat(4, minmax(0, 1fr))',
|
|
8
|
+
5: 'repeat(5, minmax(0, 1fr))',
|
|
9
|
+
6: 'repeat(6, minmax(0, 1fr))',
|
|
10
|
+
7: 'repeat(7, minmax(0, 1fr))',
|
|
11
|
+
8: 'repeat(8, minmax(0, 1fr))',
|
|
12
|
+
9: 'repeat(9, minmax(0, 1fr))',
|
|
13
|
+
10: 'repeat(10, minmax(0, 1fr))',
|
|
14
|
+
11: 'repeat(11, minmax(0, 1fr))',
|
|
15
|
+
12: 'repeat(12, minmax(0, 1fr))'
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
1: 'repeat(1, minmax(0, 1fr))',
|
|
5
|
+
2: 'repeat(2, minmax(0, 1fr))',
|
|
6
|
+
3: 'repeat(3, minmax(0, 1fr))',
|
|
7
|
+
4: 'repeat(4, minmax(0, 1fr))',
|
|
8
|
+
5: 'repeat(5, minmax(0, 1fr))',
|
|
9
|
+
6: 'repeat(6, minmax(0, 1fr))'
|
|
10
|
+
};
|
|
@@ -123,6 +123,28 @@ declare const _default: {
|
|
|
123
123
|
demi: string;
|
|
124
124
|
bold: string;
|
|
125
125
|
};
|
|
126
|
+
gridTemplateColumns: {
|
|
127
|
+
1: string;
|
|
128
|
+
2: string;
|
|
129
|
+
3: string;
|
|
130
|
+
4: string;
|
|
131
|
+
5: string;
|
|
132
|
+
6: string;
|
|
133
|
+
7: string;
|
|
134
|
+
8: string;
|
|
135
|
+
9: string;
|
|
136
|
+
10: string;
|
|
137
|
+
11: string;
|
|
138
|
+
12: string;
|
|
139
|
+
};
|
|
140
|
+
gridTemplateRows: {
|
|
141
|
+
1: string;
|
|
142
|
+
2: string;
|
|
143
|
+
3: string;
|
|
144
|
+
4: string;
|
|
145
|
+
5: string;
|
|
146
|
+
6: string;
|
|
147
|
+
};
|
|
126
148
|
radii: {
|
|
127
149
|
none: number;
|
|
128
150
|
sm: number;
|
|
@@ -165,6 +187,12 @@ declare const _default: {
|
|
|
165
187
|
};
|
|
166
188
|
transforms: {};
|
|
167
189
|
transitions: {};
|
|
168
|
-
|
|
190
|
+
timingFunctions: {};
|
|
191
|
+
zIndices: {
|
|
192
|
+
drawer: number;
|
|
193
|
+
modal: number;
|
|
194
|
+
toast: number;
|
|
195
|
+
tooltip: number;
|
|
196
|
+
};
|
|
169
197
|
};
|
|
170
198
|
export default _default;
|
|
@@ -10,12 +10,15 @@ var durations_1 = __importDefault(require("./durations"));
|
|
|
10
10
|
var fonts_1 = __importDefault(require("./fonts"));
|
|
11
11
|
var fontSizes_1 = __importDefault(require("./fontSizes"));
|
|
12
12
|
var fontWeights_1 = __importDefault(require("./fontWeights"));
|
|
13
|
+
var gridTemplateColumns_1 = __importDefault(require("./gridTemplateColumns"));
|
|
14
|
+
var gridTemplateRows_1 = __importDefault(require("./gridTemplateRows"));
|
|
13
15
|
var radii_1 = __importDefault(require("./radii"));
|
|
14
16
|
var ringWidths_1 = __importDefault(require("./ringWidths"));
|
|
15
17
|
var screens_1 = __importDefault(require("./screens"));
|
|
16
18
|
var shadows_1 = __importDefault(require("./shadows"));
|
|
17
19
|
var sizes_1 = __importDefault(require("./sizes"));
|
|
18
20
|
var spaces_1 = __importDefault(require("./spaces"));
|
|
21
|
+
var timingFunctions_1 = __importDefault(require("./timingFunctions"));
|
|
19
22
|
var transformers_1 = __importDefault(require("./transformers"));
|
|
20
23
|
var transforms_1 = __importDefault(require("./transforms"));
|
|
21
24
|
var transitions_1 = __importDefault(require("./transitions"));
|
|
@@ -28,6 +31,8 @@ exports.default = {
|
|
|
28
31
|
fonts: fonts_1.default,
|
|
29
32
|
fontSizes: fontSizes_1.default,
|
|
30
33
|
fontWeights: fontWeights_1.default,
|
|
34
|
+
gridTemplateColumns: gridTemplateColumns_1.default,
|
|
35
|
+
gridTemplateRows: gridTemplateRows_1.default,
|
|
31
36
|
radii: radii_1.default,
|
|
32
37
|
ringWidths: ringWidths_1.default,
|
|
33
38
|
screens: screens_1.default,
|
|
@@ -37,5 +42,6 @@ exports.default = {
|
|
|
37
42
|
transformers: transformers_1.default,
|
|
38
43
|
transforms: transforms_1.default,
|
|
39
44
|
transitions: transitions_1.default,
|
|
45
|
+
timingFunctions: timingFunctions_1.default,
|
|
40
46
|
zIndices: zIndices_1.default
|
|
41
47
|
};
|
package/theme/types.d.ts
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import defaultTheme from './defaultTheme';
|
|
2
2
|
export declare type Animation = keyof VuiTheme['animations'];
|
|
3
|
+
export declare type Border = keyof VuiTheme['borders'];
|
|
3
4
|
export declare type Color = keyof VuiTheme['colors'];
|
|
4
5
|
export declare type Component = keyof VuiTheme['components'];
|
|
6
|
+
export declare type Font = keyof VuiTheme['fonts'];
|
|
5
7
|
export declare type FontSize = keyof VuiTheme['fontSizes'];
|
|
6
8
|
export declare type FontWeight = keyof VuiTheme['fontWeights'];
|
|
7
|
-
export declare type
|
|
9
|
+
export declare type GridTemplateColumn = keyof VuiTheme['gridTemplateColumns'];
|
|
10
|
+
export declare type GridTemplateRow = keyof VuiTheme['gridTemplateRows'];
|
|
8
11
|
export declare type Radius = keyof VuiTheme['radii'];
|
|
12
|
+
export declare type RingWidth = keyof VuiTheme['ringWidths'];
|
|
9
13
|
export declare type Screen = keyof VuiTheme['screens'];
|
|
10
14
|
export declare type Shadow = keyof VuiTheme['shadows'];
|
|
15
|
+
export declare type Size = keyof VuiTheme['sizes'];
|
|
16
|
+
export declare type Space = keyof VuiTheme['spaces'];
|
|
17
|
+
export declare type Transform = keyof VuiTheme['transforms'];
|
|
11
18
|
export declare type TransitionDuration = keyof VuiTheme['durations'];
|
|
19
|
+
export declare type ZIndex = keyof VuiTheme['zIndices'];
|
|
12
20
|
export declare type VuiThemeDefaults = typeof defaultTheme;
|
|
13
21
|
/** Can be extended to add new properties to the theme or override default ones */
|
|
14
22
|
export interface VuiThemeExtensions {
|
package/utils/assertion.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { Dict } from './types';
|
|
|
4
4
|
export declare function isArray<T>(value: any): value is T[];
|
|
5
5
|
/** Is value a function. */
|
|
6
6
|
export declare function isFunction<T extends Function = Function>(value: any): value is T;
|
|
7
|
+
/** Is value JSX / React Element */
|
|
8
|
+
export declare function isJsx<T = JSX.Element>(value: any): value is T;
|
|
7
9
|
/** Is value a number. */
|
|
8
10
|
export declare function isNumber(value: any): value is number;
|
|
9
11
|
/** Is value a regular object (functions, arrays and React elements excluded). */
|
package/utils/assertion.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.isString = exports.isReactText = exports.isObject = exports.isNumber = exports.isFunction = exports.isArray = void 0;
|
|
6
|
+
exports.isString = exports.isReactText = exports.isObject = exports.isNumber = exports.isJsx = exports.isFunction = exports.isArray = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
8
|
/** Is value an array. */
|
|
9
9
|
function isArray(value) {
|
|
@@ -15,6 +15,11 @@ function isFunction(value) {
|
|
|
15
15
|
return typeof value === 'function';
|
|
16
16
|
}
|
|
17
17
|
exports.isFunction = isFunction;
|
|
18
|
+
/** Is value JSX / React Element */
|
|
19
|
+
function isJsx(value) {
|
|
20
|
+
return react_1.default.isValidElement(value);
|
|
21
|
+
}
|
|
22
|
+
exports.isJsx = isJsx;
|
|
18
23
|
/** Is value a number. */
|
|
19
24
|
function isNumber(value) {
|
|
20
25
|
return typeof value === 'number';
|
package/utils/function.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { AnyFunction } from './types';
|
|
2
|
+
/** Calls each provided function with the same set of arguments. Useful for merging multiple callbacks. */
|
|
3
|
+
export declare function callAll(...fns: (AnyFunction | undefined)[]): (...args: any[]) => void;
|
|
4
|
+
export declare function noop(): void;
|
|
1
5
|
/**
|
|
2
6
|
* If given value is a function, it's called with any additional arguments provided.
|
|
3
7
|
* Otherwise, the provided value is returned directly.
|
package/utils/function.js
CHANGED
|
@@ -25,8 +25,26 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
25
25
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.runIfFn = void 0;
|
|
28
|
+
exports.runIfFn = exports.noop = exports.callAll = void 0;
|
|
29
29
|
var assertion_1 = require("./assertion");
|
|
30
|
+
/** Calls each provided function with the same set of arguments. Useful for merging multiple callbacks. */
|
|
31
|
+
function callAll() {
|
|
32
|
+
var fns = [];
|
|
33
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
34
|
+
fns[_i] = arguments[_i];
|
|
35
|
+
}
|
|
36
|
+
return function () {
|
|
37
|
+
var args = [];
|
|
38
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
39
|
+
args[_i] = arguments[_i];
|
|
40
|
+
}
|
|
41
|
+
return fns.forEach(function (fn) { return typeof fn === 'function' && fn.apply(void 0, __spreadArray([], __read(args), false)); });
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.callAll = callAll;
|
|
45
|
+
// Used as a safe default to be called when no function is provided.
|
|
46
|
+
function noop() { }
|
|
47
|
+
exports.noop = noop;
|
|
30
48
|
/**
|
|
31
49
|
* If given value is a function, it's called with any additional arguments provided.
|
|
32
50
|
* Otherwise, the provided value is returned directly.
|
package/utils/index.d.ts
CHANGED
package/utils/index.js
CHANGED
|
@@ -12,8 +12,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./assertion"), exports);
|
|
14
14
|
__exportStar(require("./function"), exports);
|
|
15
|
+
__exportStar(require("./number"), exports);
|
|
15
16
|
__exportStar(require("./object"), exports);
|
|
16
17
|
__exportStar(require("./react"), exports);
|
|
17
|
-
__exportStar(require("./string"), exports);
|
|
18
18
|
__exportStar(require("./styles"), exports);
|
|
19
19
|
__exportStar(require("./types"), exports);
|
package/utils/number.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.random = void 0;
|
|
4
|
+
/** Returns a random integer within the provided range. Default: 0 - 1000000 */
|
|
5
|
+
function random(start, end) {
|
|
6
|
+
if (start === void 0) { start = 0; }
|
|
7
|
+
if (end === void 0) { end = 1000000; }
|
|
8
|
+
return Math.floor(Math.random() * end) + start;
|
|
9
|
+
}
|
|
10
|
+
exports.random = random;
|
package/utils/object.js
CHANGED
|
@@ -19,25 +19,17 @@ function merge() {
|
|
|
19
19
|
Object.keys(source).forEach(function (key) {
|
|
20
20
|
if (key === '__proto__')
|
|
21
21
|
return;
|
|
22
|
-
if (target[key]
|
|
23
|
-
//
|
|
24
|
-
target[key] = source[key];
|
|
22
|
+
if ((0, assertion_1.isObject)(target[key]) && (0, assertion_1.isObject)(source[key])) {
|
|
23
|
+
// Merge objects
|
|
24
|
+
target[key] = merge(target[key], source[key]);
|
|
25
25
|
}
|
|
26
|
-
else if (
|
|
27
|
-
//
|
|
28
|
-
|
|
29
|
-
target[key] = merge(target[key], source[key]);
|
|
30
|
-
}
|
|
31
|
-
else if ((0, assertion_1.isArray)(source[key])) {
|
|
32
|
-
target[key] = target[key].concat(source[key]);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
target[key] = source[key];
|
|
36
|
-
}
|
|
37
|
-
// Different types
|
|
26
|
+
else if ((0, assertion_1.isArray)(target[key]) && (0, assertion_1.isArray)(source[key])) {
|
|
27
|
+
// Concat arrays
|
|
28
|
+
target[key] = target[key].concat(source[key]);
|
|
38
29
|
}
|
|
39
|
-
else {
|
|
40
|
-
|
|
30
|
+
else if (source[key] !== undefined) {
|
|
31
|
+
// Pick source if it exists
|
|
32
|
+
target[key] = source[key];
|
|
41
33
|
}
|
|
42
34
|
});
|
|
43
35
|
});
|
package/utils/react.d.ts
CHANGED
|
@@ -20,4 +20,6 @@ export declare function useCallbackRef<T extends AnyFunction>(callback?: T): T;
|
|
|
20
20
|
* @param events - array of events listened for (default: ['mousedown', 'touchstart'])
|
|
21
21
|
*/
|
|
22
22
|
export declare function useClickOutside(ref: RefObject<HTMLElement | null> | RefObject<HTMLElement | null>[], callback?: (event: Event) => void, events?: string[]): void;
|
|
23
|
+
/** Returns an array with each prefix added to the id. Useful for aria attributes in compound components. */
|
|
24
|
+
export declare function useIds(id: string, prefixes: string[]): string[];
|
|
23
25
|
export {};
|
package/utils/react.js
CHANGED
|
@@ -45,7 +45,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
45
45
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.useClickOutside = exports.useCallbackRef = exports.mergeRefs = exports.createContext = exports.assignRef = void 0;
|
|
48
|
+
exports.useIds = exports.useClickOutside = exports.useCallbackRef = exports.mergeRefs = exports.createContext = exports.assignRef = void 0;
|
|
49
49
|
var react_1 = __importStar(require("react"));
|
|
50
50
|
var assertion_1 = require("./assertion");
|
|
51
51
|
/**
|
|
@@ -136,3 +136,8 @@ function useClickOutside(ref, callback, events) {
|
|
|
136
136
|
}, [eventsString, ref]);
|
|
137
137
|
}
|
|
138
138
|
exports.useClickOutside = useClickOutside;
|
|
139
|
+
/** Returns an array with each prefix added to the id. Useful for aria attributes in compound components. */
|
|
140
|
+
function useIds(id, prefixes) {
|
|
141
|
+
return prefixes.map(function (prefix) { return prefix + "-" + id; });
|
|
142
|
+
}
|
|
143
|
+
exports.useIds = useIds;
|
package/footer/consts.d.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { Environment } from '../utils';
|
|
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: {
|
|
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
|
-
};
|
|
100
|
-
/** Footer link URLs used in Production environment. */
|
|
101
|
-
export declare const footerLinksProd: {
|
|
102
|
-
readonly aboutVeracity: "https://www.veracity.com/about";
|
|
103
|
-
readonly apiExplorer: "https://developer.veracity.com/api";
|
|
104
|
-
readonly assetConnect: "https://www.veracity.com/article/veracity-asset";
|
|
105
|
-
readonly career: "https://www.veracity.com/career";
|
|
106
|
-
readonly contactUs: "https://support.veracity.com";
|
|
107
|
-
readonly cookiesPolicy: "https://services.veracity.com/CookieList";
|
|
108
|
-
readonly deepSearch: "https://store.veracity.com/veracity-deep-search";
|
|
109
|
-
readonly developerCommunity: "https://developer.veracity.com";
|
|
110
|
-
readonly documentation: "https://developer.veracity.com/docs";
|
|
111
|
-
readonly helpCenter: "https://help-center.veracity.com";
|
|
112
|
-
readonly marketplace: "https://store.veracity.com";
|
|
113
|
-
readonly news: "https://www.veracity.com";
|
|
114
|
-
readonly privacyStatement: "https://services.veracity.com/PrivacyStatement";
|
|
115
|
-
readonly sellingOnVeracity: "https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity";
|
|
116
|
-
readonly termsOfUse: "https://id.veracity.com/terms-of-use";
|
|
117
|
-
readonly veracityAdapterForPowerBI: "https://store.veracity.com/veracity-adapter-for-power-bi-vap";
|
|
118
|
-
readonly veracityConnectedApp: "https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile";
|
|
119
|
-
readonly veracityDataFabric: "https://store.veracity.com/veracity-data-fabric-secure-data-sharing";
|
|
120
|
-
readonly veracityPartnerProgram: "https://www.veracity.com/partner";
|
|
121
|
-
readonly veracityTrustCenter: "https://www.veracity.com/veracity-trust-center";
|
|
122
|
-
};
|
|
123
|
-
/** Footer link URLs used in Staging environment. */
|
|
124
|
-
export declare const footerLinksStag: {
|
|
125
|
-
readonly aboutVeracity: "https://wwwstag.veracity.com/about";
|
|
126
|
-
readonly apiExplorer: "https://developer.veracity.com/api";
|
|
127
|
-
readonly assetConnect: "https://www.veracity.com/article/veracity-asset";
|
|
128
|
-
readonly career: "https://wwwstag.veracity.com/career";
|
|
129
|
-
readonly contactUs: "https://support.veracity.com";
|
|
130
|
-
readonly cookiesPolicy: "https://servicesstag.veracity.com/CookieList";
|
|
131
|
-
readonly deepSearch: "https://storestag.veracity.com/veracity-deep-search";
|
|
132
|
-
readonly developerCommunity: "https://developerstag.veracity.com";
|
|
133
|
-
readonly documentation: "https://developerstag.veracity.com/docs";
|
|
134
|
-
readonly helpCenter: "https://help-center.veracity.com";
|
|
135
|
-
readonly marketplace: "https://storestag.veracity.com";
|
|
136
|
-
readonly news: "https://wwwstag.veracity.com";
|
|
137
|
-
readonly privacyStatement: "https://servicesstag.veracity.com/PrivacyStatement";
|
|
138
|
-
readonly sellingOnVeracity: "https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity";
|
|
139
|
-
readonly termsOfUse: "https://id.veracity.com/terms-of-use";
|
|
140
|
-
readonly veracityAdapterForPowerBI: "https://storestag.veracity.com/veracity-adapter-for-power-bi-vap";
|
|
141
|
-
readonly veracityConnectedApp: "https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile";
|
|
142
|
-
readonly veracityDataFabric: "https://storestag.veracity.com/veracity-data-fabric-secure-data-sharing";
|
|
143
|
-
readonly veracityPartnerProgram: "https://wwwstag.veracity.com/partner";
|
|
144
|
-
readonly veracityTrustCenter: "https://www.veracity.com/veracity-trust-center";
|
|
145
|
-
};
|
|
146
|
-
/** Footer link URLs used in Test environment. */
|
|
147
|
-
export declare const footerLinksTest: {
|
|
148
|
-
readonly aboutVeracity: "https://wwwtest.veracity.com/about";
|
|
149
|
-
readonly apiExplorer: "https://developer.veracity.com/api";
|
|
150
|
-
readonly assetConnect: "https://www.veracity.com/article/veracity-asset";
|
|
151
|
-
readonly career: "https://www.veracity.com/career";
|
|
152
|
-
readonly contactUs: "https://support.veracity.com";
|
|
153
|
-
readonly cookiesPolicy: "https://servicestest.veracity.com/CookieList";
|
|
154
|
-
readonly deepSearch: "https://storetest.veracity.com/veracity-deep-search";
|
|
155
|
-
readonly developerCommunity: "https://developertest.veracity.com";
|
|
156
|
-
readonly documentation: "https://developertest.veracity.com/docs";
|
|
157
|
-
readonly helpCenter: "https://help-center.veracity.com";
|
|
158
|
-
readonly marketplace: "https://storetest.veracity.com";
|
|
159
|
-
readonly news: "https://wwwtest.veracity.com";
|
|
160
|
-
readonly privacyStatement: "https://servicestest.veracity.com/PrivacyStatement";
|
|
161
|
-
readonly sellingOnVeracity: "https://developer.veracity.com/article/are-you-ready-to-sell-on-veracity";
|
|
162
|
-
readonly termsOfUse: "https://id.veracity.com/terms-of-use";
|
|
163
|
-
readonly veracityAdapterForPowerBI: "https://storetest.veracity.com/veracity-adapter-for-power-bi-vap";
|
|
164
|
-
readonly veracityConnectedApp: "https://www.veracity.com/article/veracity-connected-bringing-veracity-to-your-mobile";
|
|
165
|
-
readonly veracityDataFabric: "https://storetest.veracity.com/veracity-data-fabric-secure-data-sharing";
|
|
166
|
-
readonly veracityPartnerProgram: "https://wwwtest.veracity.com/partner";
|
|
167
|
-
readonly veracityTrustCenter: "https://www.veracity.com/veracity-trust-center";
|
|
168
|
-
};
|
|
169
|
-
export declare const footerLinks: Record<Environment, Record<string, string>>;
|