@snyk-mktg/brand-ui 2.4.2-canary.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scss/base/_fonts.scss +4 -4
- package/dist/scss/base/variables/_icons.scss +2 -0
- package/package.json +2 -3
- package/dist/js/cjs/helpers/caseFormats.d.ts +0 -1
- package/dist/js/cjs/helpers/caseFormats.js +0 -47
- package/dist/js/cjs/helpers/classnames.d.ts +0 -1
- package/dist/js/cjs/helpers/classnames.js +0 -9
- package/dist/js/cjs/helpers/getInitials.d.ts +0 -1
- package/dist/js/cjs/helpers/getInitials.js +0 -14
- package/dist/js/cjs/helpers/grid.d.ts +0 -17
- package/dist/js/cjs/helpers/grid.js +0 -62
- package/dist/js/cjs/helpers/incrementDisplayValue.d.ts +0 -8
- package/dist/js/cjs/helpers/incrementDisplayValue.js +0 -15
- package/dist/js/cjs/helpers/index.d.ts +0 -9
- package/dist/js/cjs/helpers/index.js +0 -30
- package/dist/js/cjs/helpers/range.d.ts +0 -4
- package/dist/js/cjs/helpers/range.js +0 -8
- package/dist/js/cjs/helpers/scroll.d.ts +0 -5
- package/dist/js/cjs/helpers/scroll.js +0 -14
- package/dist/js/cjs/helpers/uid.d.ts +0 -4
- package/dist/js/cjs/helpers/uid.js +0 -8
- package/dist/js/cjs/index.d.ts +0 -3
- package/dist/js/cjs/index.js +0 -19
- package/dist/js/cjs/types/buttonVariants.d.ts +0 -1
- package/dist/js/cjs/types/buttonVariants.js +0 -2
- package/dist/js/cjs/types/colors.d.ts +0 -3
- package/dist/js/cjs/types/colors.js +0 -2
- package/dist/js/cjs/types/downloadableFiles.d.ts +0 -1
- package/dist/js/cjs/types/downloadableFiles.js +0 -2
- package/dist/js/cjs/types/icons.d.ts +0 -5
- package/dist/js/cjs/types/icons.js +0 -2
- package/dist/js/cjs/types/index.d.ts +0 -8
- package/dist/js/cjs/types/index.js +0 -24
- package/dist/js/cjs/types/logos.d.ts +0 -3
- package/dist/js/cjs/types/logos.js +0 -2
- package/dist/js/cjs/types/mediaCategories.d.ts +0 -1
- package/dist/js/cjs/types/mediaCategories.js +0 -2
- package/dist/js/cjs/types/patchPoses.d.ts +0 -1
- package/dist/js/cjs/types/patchPoses.js +0 -2
- package/dist/js/cjs/types/sizes.d.ts +0 -4
- package/dist/js/cjs/types/sizes.js +0 -2
- package/dist/js/cjs/utilities/buttonVariants.d.ts +0 -3
- package/dist/js/cjs/utilities/buttonVariants.js +0 -4
- package/dist/js/cjs/utilities/colors.d.ts +0 -42
- package/dist/js/cjs/utilities/colors.js +0 -86
- package/dist/js/cjs/utilities/downloadableFiles.d.ts +0 -2
- package/dist/js/cjs/utilities/downloadableFiles.js +0 -21
- package/dist/js/cjs/utilities/icons.d.ts +0 -7
- package/dist/js/cjs/utilities/icons.js +0 -238
- package/dist/js/cjs/utilities/index.d.ts +0 -8
- package/dist/js/cjs/utilities/index.js +0 -24
- package/dist/js/cjs/utilities/logos.d.ts +0 -5
- package/dist/js/cjs/utilities/logos.js +0 -29
- package/dist/js/cjs/utilities/mediaCategories.d.ts +0 -3
- package/dist/js/cjs/utilities/mediaCategories.js +0 -24
- package/dist/js/cjs/utilities/patchPoses.d.ts +0 -3
- package/dist/js/cjs/utilities/patchPoses.js +0 -5
- package/dist/js/cjs/utilities/sizes.d.ts +0 -5
- package/dist/js/cjs/utilities/sizes.js +0 -20
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
// ********************
|
|
6
6
|
@font-face {
|
|
7
7
|
font-family: 'brandui-icons';
|
|
8
|
-
src: url('https://res.cloudinary.com/snyk/raw/upload/snyk-mktg-brandui/icons-font/v1.0.
|
|
9
|
-
src: url('https://res.cloudinary.com/snyk/raw/upload/snyk-mktg-brandui/icons-font/v1.0.
|
|
10
|
-
url('https://res.cloudinary.com/snyk/raw/upload/snyk-mktg-brandui/icons-font/v1.0.
|
|
11
|
-
url('https://res.cloudinary.com/snyk/raw/upload/snyk-mktg-brandui/icons-font/v1.0.
|
|
8
|
+
src: url('https://res.cloudinary.com/snyk/raw/upload/snyk-mktg-brandui/icons-font/v1.0.11/brandui-icons.eot');
|
|
9
|
+
src: url('https://res.cloudinary.com/snyk/raw/upload/snyk-mktg-brandui/icons-font/v1.0.11/brandui-icons.eot#iefix') format('embedded-opentype'),
|
|
10
|
+
url('https://res.cloudinary.com/snyk/raw/upload/snyk-mktg-brandui/icons-font/v1.0.11/brandui-icons.ttf') format('truetype'),
|
|
11
|
+
url('https://res.cloudinary.com/snyk/raw/upload/snyk-mktg-brandui/icons-font/v1.0.11/brandui-icons.woff') format('woff');
|
|
12
12
|
font-weight: normal;
|
|
13
13
|
font-style: normal;
|
|
14
14
|
font-display: block;
|
|
@@ -218,6 +218,7 @@ $brandui-general-icons: (
|
|
|
218
218
|
'reddit': '\e973',
|
|
219
219
|
'remove': '\e934',
|
|
220
220
|
'risk': '\e971',
|
|
221
|
+
'risk-based-prioritization': '\e980',
|
|
221
222
|
'search': '\e935',
|
|
222
223
|
'send-mail': '\e97a',
|
|
223
224
|
'services': '\e95c',
|
|
@@ -232,6 +233,7 @@ $brandui-general-icons: (
|
|
|
232
233
|
'snyk-iac': '\e964',
|
|
233
234
|
'snyk-learn': '\e965',
|
|
234
235
|
'snyk-oss': '\e966',
|
|
236
|
+
'snyk-studio': '\e97f',
|
|
235
237
|
'snyk-support': '\e967',
|
|
236
238
|
'spotify': '\e936',
|
|
237
239
|
'star-outline': '\e97b',
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snyk-mktg/brand-ui",
|
|
3
|
-
"version": "2.4.2
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "The official style library for Snyk’s BrandUI Design System",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev:css": "gulp devCss",
|
|
7
7
|
"build": "gulp",
|
|
8
8
|
"test": "jest",
|
|
9
9
|
"lint": "sass-lint -v",
|
|
10
|
-
"lint:fix": "sass-lint-auto-fix"
|
|
11
|
-
"compile": "rm -rf dist/js && tsc -p tsconfig.build.json && tsc -p tsconfig.build.json --module CommonJs --moduleResolution node --outDir dist/js/cjs"
|
|
10
|
+
"lint:fix": "sass-lint-auto-fix"
|
|
12
11
|
},
|
|
13
12
|
"type": "module",
|
|
14
13
|
"repository": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function formatCase(text: string, convertCase: 'kebab' | 'snake' | 'space' | 'camel' | 'sentence' | 'capitalize' | 'capitalizeSentence' | string): string;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatCase = formatCase;
|
|
4
|
-
function formatCase(text, convertCase) {
|
|
5
|
-
if (!text || !convertCase)
|
|
6
|
-
return text;
|
|
7
|
-
const regex = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g;
|
|
8
|
-
const capitalize = (str) => str?.charAt(0)?.toUpperCase() + str?.slice(1);
|
|
9
|
-
const camelCase = (str) => {
|
|
10
|
-
const words = str?.match(regex);
|
|
11
|
-
if (!words)
|
|
12
|
-
return '';
|
|
13
|
-
const firstWord = words[0]?.toLowerCase();
|
|
14
|
-
const restWords = words?.slice(1)?.map(capitalize);
|
|
15
|
-
return [firstWord, ...restWords]?.join('');
|
|
16
|
-
};
|
|
17
|
-
const sentenceCase = (str) => {
|
|
18
|
-
const words = str?.match(regex);
|
|
19
|
-
if (!words)
|
|
20
|
-
return '';
|
|
21
|
-
return words?.map((word, index) => (index === 0 ? capitalize(word?.toLowerCase()) : word?.toLowerCase()))?.join(' ');
|
|
22
|
-
};
|
|
23
|
-
const capitalizeSentence = (str) => {
|
|
24
|
-
const words = str?.match(regex);
|
|
25
|
-
if (!words)
|
|
26
|
-
return '';
|
|
27
|
-
return words?.map((word) => capitalize(word?.toLowerCase()))?.join(' ');
|
|
28
|
-
};
|
|
29
|
-
switch (convertCase) {
|
|
30
|
-
case 'kebab':
|
|
31
|
-
return text?.match(regex)?.join('-')?.toLowerCase() || text;
|
|
32
|
-
case 'snake':
|
|
33
|
-
return text?.match(regex)?.join('_')?.toLowerCase() || text;
|
|
34
|
-
case 'space':
|
|
35
|
-
return text?.match(regex)?.join(' ')?.toLowerCase() || text;
|
|
36
|
-
case 'camel':
|
|
37
|
-
return camelCase(text);
|
|
38
|
-
case 'sentence':
|
|
39
|
-
return sentenceCase(text);
|
|
40
|
-
case 'capitalize':
|
|
41
|
-
return capitalize(text);
|
|
42
|
-
case 'capitalizeSentence':
|
|
43
|
-
return capitalizeSentence(capitalize(text));
|
|
44
|
-
default:
|
|
45
|
-
return text;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function classNames(...classes: string[]): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getInitials: (fullName: string) => string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getInitials = void 0;
|
|
4
|
-
const getInitials = (fullName) => {
|
|
5
|
-
const allNames = fullName.trim().split(' ');
|
|
6
|
-
const initials = allNames.reduce((acc, curr, index) => {
|
|
7
|
-
if (index === 0 || index === allNames.length - 1) {
|
|
8
|
-
acc = `${acc}${curr.charAt(0).toUpperCase()}`;
|
|
9
|
-
}
|
|
10
|
-
return acc;
|
|
11
|
-
}, '');
|
|
12
|
-
return initials;
|
|
13
|
-
};
|
|
14
|
-
exports.getInitials = getInitials;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Function to specify grid columns based on the number of grid items available
|
|
3
|
-
* @param {number} count The number of grid items to be split
|
|
4
|
-
* @param {number} maxCols The max number of columns wanted for the grid
|
|
5
|
-
* @returns {number}
|
|
6
|
-
*/
|
|
7
|
-
export declare const gridSplit: (count: number, maxCols?: number) => number;
|
|
8
|
-
/**
|
|
9
|
-
* This function takes a number of columns in the grid and returns the grid gap and items padding.
|
|
10
|
-
* The values are defined in the Cards file in Figma.
|
|
11
|
-
* @param {number} cols The number of columns passed to the function.
|
|
12
|
-
* @returns {object}
|
|
13
|
-
*/
|
|
14
|
-
export declare const gridSpacing: (cols: number) => {
|
|
15
|
-
hasMaxWidth: boolean;
|
|
16
|
-
gap: string;
|
|
17
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Function to specify grid columns based on the number of grid items available
|
|
4
|
-
* @param {number} count The number of grid items to be split
|
|
5
|
-
* @param {number} maxCols The max number of columns wanted for the grid
|
|
6
|
-
* @returns {number}
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.gridSpacing = exports.gridSplit = void 0;
|
|
10
|
-
const gridSplit = (count, maxCols = 5) => {
|
|
11
|
-
let columns = 1;
|
|
12
|
-
switch (true) {
|
|
13
|
-
// The count is less than maxCols, so the columns is set to the count
|
|
14
|
-
case count > 0 && count < maxCols:
|
|
15
|
-
columns = count;
|
|
16
|
-
break;
|
|
17
|
-
// The count is greater than or equal to maxCols, so columns is set to maxCols
|
|
18
|
-
case count >= maxCols:
|
|
19
|
-
columns = maxCols;
|
|
20
|
-
break;
|
|
21
|
-
// The max number of columns of the grid is 12, so if maxCols is set to a greater number, columns is set to 12
|
|
22
|
-
case maxCols >= 12:
|
|
23
|
-
columns = 12;
|
|
24
|
-
break;
|
|
25
|
-
// The default number of columns is 1
|
|
26
|
-
default:
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
return columns;
|
|
30
|
-
};
|
|
31
|
-
exports.gridSplit = gridSplit;
|
|
32
|
-
/**
|
|
33
|
-
* This function takes a number of columns in the grid and returns the grid gap and items padding.
|
|
34
|
-
* The values are defined in the Cards file in Figma.
|
|
35
|
-
* @param {number} cols The number of columns passed to the function.
|
|
36
|
-
* @returns {object}
|
|
37
|
-
*/
|
|
38
|
-
const gridSpacing = (cols) => {
|
|
39
|
-
// Sets the default values for the grid gap and max-width, as well as the items' padding
|
|
40
|
-
let spacing = {
|
|
41
|
-
hasMaxWidth: false,
|
|
42
|
-
gap: 'medium',
|
|
43
|
-
};
|
|
44
|
-
switch (true) {
|
|
45
|
-
// If the columns are less than or equal to 2, the grid has a max width
|
|
46
|
-
case cols <= 2:
|
|
47
|
-
spacing.hasMaxWidth = true;
|
|
48
|
-
break;
|
|
49
|
-
// If the columns are equal to 4
|
|
50
|
-
case cols === 4:
|
|
51
|
-
break;
|
|
52
|
-
// If the columns are greater than 4
|
|
53
|
-
case cols > 4:
|
|
54
|
-
spacing.gap = 'small';
|
|
55
|
-
break;
|
|
56
|
-
// Else, just return the default object.
|
|
57
|
-
default:
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
return spacing;
|
|
61
|
-
};
|
|
62
|
-
exports.gridSpacing = gridSpacing;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Function to increment display value for loader animations
|
|
3
|
-
* @param {number} displayedValue The current displayed value of the loader
|
|
4
|
-
* @param {number} value The final value of the loader
|
|
5
|
-
* @param {function} setDisplayedValue the function to set the display value
|
|
6
|
-
* @returns {number}
|
|
7
|
-
*/
|
|
8
|
-
export declare function incrementDisplayValue(displayedValue: number, value: number, setDisplayedValue: (value: number) => any | void): void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Function to increment display value for loader animations
|
|
4
|
-
* @param {number} displayedValue The current displayed value of the loader
|
|
5
|
-
* @param {number} value The final value of the loader
|
|
6
|
-
* @param {function} setDisplayedValue the function to set the display value
|
|
7
|
-
* @returns {number}
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.incrementDisplayValue = incrementDisplayValue;
|
|
11
|
-
function incrementDisplayValue(displayedValue, value, setDisplayedValue) {
|
|
12
|
-
if (displayedValue < value) {
|
|
13
|
-
setDisplayedValue(displayedValue + 1);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import classNames from './classnames';
|
|
2
|
-
import { getInitials } from './getInitials';
|
|
3
|
-
export * from './caseFormats';
|
|
4
|
-
export * from './grid';
|
|
5
|
-
export * from './incrementDisplayValue';
|
|
6
|
-
export * from './range';
|
|
7
|
-
export * from './scroll';
|
|
8
|
-
export * from './uid';
|
|
9
|
-
export { classNames, getInitials };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.getInitials = exports.classNames = void 0;
|
|
21
|
-
const classnames_1 = __importDefault(require("./classnames"));
|
|
22
|
-
exports.classNames = classnames_1.default;
|
|
23
|
-
const getInitials_1 = require("./getInitials");
|
|
24
|
-
Object.defineProperty(exports, "getInitials", { enumerable: true, get: function () { return getInitials_1.getInitials; } });
|
|
25
|
-
__exportStar(require("./caseFormats"), exports);
|
|
26
|
-
__exportStar(require("./grid"), exports);
|
|
27
|
-
__exportStar(require("./incrementDisplayValue"), exports);
|
|
28
|
-
__exportStar(require("./range"), exports);
|
|
29
|
-
__exportStar(require("./scroll"), exports);
|
|
30
|
-
__exportStar(require("./uid"), exports);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Function to generate a numeric range array
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.range = void 0;
|
|
7
|
-
const range = (start, stop, step) => step === 0 ? [] : Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
|
|
8
|
-
exports.range = range;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Function to scroll an elements contents vertically or horizontally
|
|
3
|
-
*/
|
|
4
|
-
export declare const scrollHorizontal: (scrollTargetClass: string, scrollValue: number) => void;
|
|
5
|
-
export declare const scrollVertical: (scrollTargetClass: string, scrollValue: number) => void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Function to scroll an elements contents vertically or horizontally
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.scrollVertical = exports.scrollHorizontal = void 0;
|
|
7
|
-
const scrollHorizontal = (scrollTargetClass, scrollValue) => {
|
|
8
|
-
document.querySelector(scrollTargetClass).scrollLeft += scrollValue;
|
|
9
|
-
};
|
|
10
|
-
exports.scrollHorizontal = scrollHorizontal;
|
|
11
|
-
const scrollVertical = (scrollTargetClass, scrollValue) => {
|
|
12
|
-
document.querySelector(scrollTargetClass).scrollLeft += scrollValue;
|
|
13
|
-
};
|
|
14
|
-
exports.scrollVertical = scrollVertical;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uid = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Function to generate a random ID
|
|
6
|
-
*/
|
|
7
|
-
const uid = () => Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
|
|
8
|
-
exports.uid = uid;
|
package/dist/js/cjs/index.d.ts
DELETED
package/dist/js/cjs/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./utilities"), exports);
|
|
19
|
-
__exportStar(require("./helpers"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type BranduiButtonVariants = 'default' | 'primary' | 'secondary' | 'tertiary' | 'glyph' | 'underline' | 'external' | 'destroy';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export type BranduiTypographyColors = 'theme-solid' | 'theme-gradient' | 'ui-hero' | 'ui-headline' | 'ui-body';
|
|
2
|
-
export type BranduiChartBarColors = 'autumn' | 'bubblegum' | 'dark-teal' | 'deep-sea' | 'hot-pink' | 'lavender' | 'lilac' | 'purple' | 'rose' | 'salmon' | 'sky' | 'summer' | 'tiger' | 'turquoise' | 'vibe';
|
|
3
|
-
export type BranduiChartBarGradients = 'bubblegum-to-dark-purple' | 'daffodil-to-salmon' | 'daffodil-to-teal' | 'daffodil-to-tiger' | 'dark-purple-to-bubblegum' | 'dark-teal-to-vibe' | 'electric-blue-to-vibe' | 'hot-pink-to-dark-purple' | 'hot-pink-to-lavender' | 'hot-pink-to-purple' | 'hot-pink-to-tiger' | 'purple-to-dark-purple' | 'purple-to-deep-sea' | 'purple-to-hot-pink' | 'sky-to-deep-sea' | 'tiger-to-hot-pink';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type BranduiDownloadableFiles = 'doc' | 'docx' | 'odt' | 'pdf' | 'xls' | 'xlsx' | 'ods' | 'ppt' | 'pptx' | 'txt' | 'png' | 'jpg' | 'jpeg' | 'svg' | 'gif';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type BranduiBrandIcons = 'actionable-results' | 'admin' | 'advisor-1' | 'advisor' | 'ai-generated-code' | 'ai-solutions' | 'ai-vulnerable-code' | 'ai' | 'alert-high' | 'alert-info' | 'alert-low' | 'alert-med' | 'api' | 'application-security' | 'assessments' | 'assignments' | 'attention' | 'automate' | 'care-deeply' | 'certificates' | 'ci-cd' | 'cli' | 'climate' | 'cloud-and-back' | 'cloud-launch' | 'cloud-security' | 'code-to-cloud' | 'code' | 'coding' | 'community' | 'compliance-automation' | 'customer-centricity' | 'design-applications' | 'dev-ai' | 'dev-friendly' | 'developer-security' | 'docs-published' | 'documentation' | 'donate' | 'efficiency' | 'enablement-and-education' | 'expert' | 'false-positive-rate' | 'family' | 'fast-and-accurate' | 'feedback' | 'fix-faster' | 'flexible' | 'forward-thinking' | 'get-started' | 'git-security' | 'ide' | 'integrations' | 'learn-always' | 'learn-snyk-1' | 'learn-snyk' | 'learning-paths' | 'live-environment' | 'live-video' | 'machine-learning' | 'meetup' | 'office-hours' | 'onboarding' | 'one-team' | 'ongoing' | 'platform' | 'pull-request' | 'query-cloud' | 'real-time-scan' | 'remediate-faster' | 'roadmap' | 'scaleable' | 'scanning' | 'secure-dependencies' | 'secure-projects' | 'security-automation' | 'security-awareness' | 'security-outnumbered' | 'security-team' | 'self-serve' | 'ship-it' | 'snyk-code-knowledgebase' | 'supply-chain-security' | 'support' | 'swag' | 'tech' | 'think-bigger' | 'tsd' | 'unified-policy-engine' | 'user-admin' | 'visibility-and-intelligence' | 'vuln-database' | 'write-policies' | 'zero-day';
|
|
2
|
-
export type BranduiGeneralIcons = 'account' | 'add' | 'ai-sparkles' | 'ambassadors' | 'apple-podcasts' | 'arrow-back' | 'arrow-down' | 'arrow-forward' | 'arrow-left' | 'arrow-right' | 'arrow-top-right' | 'arrow-up' | 'article' | 'api-web' | 'attachment' | 'ballot' | 'bio' | 'bitbucket' | 'blocks' | 'blog' | 'booklet' | 'brain' | 'briefcase' | 'bug' | 'build-code' | 'byline' | 'calendar-today' | 'case-study' | 'check' | 'check-circle' | 'check-shield' | 'checkbox-hover' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'close' | 'collapse' | 'compliance' | 'contact' | 'copy-link' | 'copy-to-clipboard' | 'customers' | 'developer' | 'discord' | 'discord-bubble' | 'east' | 'ebook' | 'eclipse' | 'events' | 'expand' | 'facebook' | 'facebook-circle' | 'filter' | 'fix' | 'git-fork' | 'git-issue' | 'github' | 'glassdoor' | 'glossary' | 'google' | 'government' | 'grading' | 'hand-wave' | 'handbook' | 'headphones' | 'info-scan' | 'info-warning' | 'infographic' | 'insert-chart' | 'insert-drive-file' | 'instagram' | 'keyboard-arrow-down' | 'labs' | 'language' | 'library' | 'light-bulb' | 'linkedin' | 'livestream' | 'location' | 'lock-heart' | 'mail-inbox' | 'mail-outline' | 'menu' | 'mic' | 'monetization' | 'moon' | 'more-horizontal' | 'newsroom' | 'npm' | 'open-in-new' | 'partners' | 'pie-chart' | 'play-circle' | 'play' | 'podcast' | 'press-release' | 'quote' | 'reddit' | 'remove' | 'risk' | 'search' | 'send-mail' | 'services' | 'shield-ai' | 'shield-chevron-up' | 'shield-star' | 'shield' | 'snyk-apprisk' | 'snyk-code' | 'snyk-container' | 'snyk-docs' | 'snyk-iac' | 'snyk-learn' | 'snyk-oss' | 'snyk-support' | 'spotify' | 'star-outline' | 'sun' | 'supply-chain' | 'time' | 'twitch' | 'twitter' | 'updates' | 'videocam' | 'vuln-db' | 'vulnvortex' | 'workflows' | 'x' | 'youtube';
|
|
3
|
-
export type AllIcons = BranduiBrandIcons | BranduiGeneralIcons;
|
|
4
|
-
export type BranduiIconSizes = 'sm' | 'rg' | 'md' | 'lg';
|
|
5
|
-
export type BranduiGeneralIconSizes = 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large' | 'huge';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./buttonVariants"), exports);
|
|
18
|
-
__exportStar(require("./colors"), exports);
|
|
19
|
-
__exportStar(require("./downloadableFiles"), exports);
|
|
20
|
-
__exportStar(require("./icons"), exports);
|
|
21
|
-
__exportStar(require("./logos"), exports);
|
|
22
|
-
__exportStar(require("./mediaCategories"), exports);
|
|
23
|
-
__exportStar(require("./patchPoses"), exports);
|
|
24
|
-
__exportStar(require("./sizes"), exports);
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export type BranduiSnykLogos = 'default' | 'default-solid' | 'icon' | 'icon-solid' | 'vertical' | 'vertical-solid' | 'wordmark' | 'security-labs-solid' | 'icon-security-labs-solid' | 'labs-solid' | 'labs-mono' | 'labs-mono-reverse';
|
|
2
|
-
export type BranduiProductLogos = 'snyk-apprisk' | 'snyk-cloud' | 'snyk-code' | 'snyk-container' | 'snyk-deepcodeai' | 'snyk-iac' | 'snyk-learn' | 'snyk-oss';
|
|
3
|
-
export type AllLogos = BranduiSnykLogos | BranduiProductLogos;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type BranduiMediaCategories = 'analyst-report' | 'article' | 'blog' | 'byline' | 'buyers-guide' | 'case-study' | 'cheat-sheet' | 'ebook' | 'event' | 'infographic' | 'lesson' | 'live-stream' | 'podcast' | 'press-release' | 'report' | 'video' | 'webinar' | 'white-paper';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type BranduiPatchPoses = 'pose-alert' | 'pose-standing';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type BranduiSizing = 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large' | 'huge';
|
|
2
|
-
export type BranduiPadding = BranduiSizing | 'none' | 'hairline' | 'thin' | 'slim' | 'full';
|
|
3
|
-
export type BranduiSpacing = BranduiSizing | 'none' | 'full';
|
|
4
|
-
export type BranduiAvatarSizes = BranduiSizing;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { BranduiTypographyColors, BranduiChartBarColors, BranduiChartBarGradients } from '../types';
|
|
2
|
-
export declare const branduiTypographyColors: BranduiTypographyColors[];
|
|
3
|
-
export declare const branduiChartBarColors: BranduiChartBarColors[];
|
|
4
|
-
export declare const branduiChartBarGradients: BranduiChartBarGradients[];
|
|
5
|
-
export declare const brandColors: {
|
|
6
|
-
'dark-purple': string;
|
|
7
|
-
purple: string;
|
|
8
|
-
lavender: string;
|
|
9
|
-
black: string;
|
|
10
|
-
space: string;
|
|
11
|
-
midnight: string;
|
|
12
|
-
ocean: string;
|
|
13
|
-
dawn: string;
|
|
14
|
-
steel: string;
|
|
15
|
-
smoke: string;
|
|
16
|
-
snow: string;
|
|
17
|
-
white: string;
|
|
18
|
-
rose: string;
|
|
19
|
-
salmon: string;
|
|
20
|
-
'hot-pink': string;
|
|
21
|
-
bubblegum: string;
|
|
22
|
-
autumn: string;
|
|
23
|
-
tiger: string;
|
|
24
|
-
summer: string;
|
|
25
|
-
daffodil: string;
|
|
26
|
-
turquoise: string;
|
|
27
|
-
'dark-teal': string;
|
|
28
|
-
teal: string;
|
|
29
|
-
vibe: string;
|
|
30
|
-
'deep-sea': string;
|
|
31
|
-
'electric-blue': string;
|
|
32
|
-
'electric-blue-dark': string;
|
|
33
|
-
periwinkle: string;
|
|
34
|
-
lilac: string;
|
|
35
|
-
sky: string;
|
|
36
|
-
'cotton-candy': string;
|
|
37
|
-
};
|
|
38
|
-
export declare const brandHexes: {
|
|
39
|
-
[x: string]: string;
|
|
40
|
-
};
|
|
41
|
-
declare const _default: string[];
|
|
42
|
-
export default _default;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.brandHexes = exports.brandColors = exports.branduiChartBarGradients = exports.branduiChartBarColors = exports.branduiTypographyColors = void 0;
|
|
4
|
-
// Used for the colors that certain typography elements use
|
|
5
|
-
exports.branduiTypographyColors = ['theme-solid', 'theme-gradient', 'ui-hero', 'ui-headline', 'ui-body'];
|
|
6
|
-
// Used for charts' bars
|
|
7
|
-
exports.branduiChartBarColors = [
|
|
8
|
-
'autumn',
|
|
9
|
-
'bubblegum',
|
|
10
|
-
'dark-teal',
|
|
11
|
-
'deep-sea',
|
|
12
|
-
'hot-pink',
|
|
13
|
-
'lavender',
|
|
14
|
-
'lilac',
|
|
15
|
-
'purple',
|
|
16
|
-
'rose',
|
|
17
|
-
'salmon',
|
|
18
|
-
'sky',
|
|
19
|
-
'summer',
|
|
20
|
-
'tiger',
|
|
21
|
-
'turquoise',
|
|
22
|
-
'vibe',
|
|
23
|
-
];
|
|
24
|
-
// Used for charts' bars
|
|
25
|
-
exports.branduiChartBarGradients = [
|
|
26
|
-
'bubblegum-to-dark-purple',
|
|
27
|
-
'daffodil-to-salmon',
|
|
28
|
-
'daffodil-to-teal',
|
|
29
|
-
'daffodil-to-tiger',
|
|
30
|
-
'dark-purple-to-bubblegum',
|
|
31
|
-
'dark-teal-to-vibe',
|
|
32
|
-
'electric-blue-to-vibe',
|
|
33
|
-
'hot-pink-to-dark-purple',
|
|
34
|
-
'hot-pink-to-lavender',
|
|
35
|
-
'hot-pink-to-purple',
|
|
36
|
-
'hot-pink-to-tiger',
|
|
37
|
-
'purple-to-dark-purple',
|
|
38
|
-
'purple-to-deep-sea',
|
|
39
|
-
'purple-to-hot-pink',
|
|
40
|
-
'sky-to-deep-sea',
|
|
41
|
-
'tiger-to-hot-pink',
|
|
42
|
-
];
|
|
43
|
-
// Used for pie charts. Consider different implementation in the future
|
|
44
|
-
exports.brandColors = {
|
|
45
|
-
'dark-purple': '#441c99',
|
|
46
|
-
purple: '#9043c6',
|
|
47
|
-
lavender: '#c481f3',
|
|
48
|
-
black: '#000',
|
|
49
|
-
space: '#01011e',
|
|
50
|
-
midnight: '#030328',
|
|
51
|
-
ocean: '#181846',
|
|
52
|
-
dawn: '#383f76',
|
|
53
|
-
steel: '#555463',
|
|
54
|
-
smoke: '#6d6d9c',
|
|
55
|
-
snow: '#f6f7fb',
|
|
56
|
-
white: '#fff',
|
|
57
|
-
rose: '#c82d53',
|
|
58
|
-
salmon: '#f97a99',
|
|
59
|
-
'hot-pink': '#e555ac',
|
|
60
|
-
bubblegum: '#ff78e1',
|
|
61
|
-
autumn: '#c04c0a',
|
|
62
|
-
tiger: '#f99048',
|
|
63
|
-
summer: '#f9c748',
|
|
64
|
-
daffodil: '#ffe792',
|
|
65
|
-
turquoise: '#097d98',
|
|
66
|
-
'dark-teal': '#168982',
|
|
67
|
-
teal: '#43b59a',
|
|
68
|
-
vibe: '#4bd6b5',
|
|
69
|
-
'deep-sea': '#0a26b8',
|
|
70
|
-
'electric-blue': '#145deb',
|
|
71
|
-
'electric-blue-dark': '#3ea2ff',
|
|
72
|
-
periwinkle: '#9bcfff',
|
|
73
|
-
lilac: '#8598fb',
|
|
74
|
-
sky: '#14c4eb',
|
|
75
|
-
'cotton-candy': '#c0f5f2',
|
|
76
|
-
};
|
|
77
|
-
exports.brandHexes = Object.entries(exports.brandColors)
|
|
78
|
-
.map(([key, value]) => ({ [key]: value }))
|
|
79
|
-
.reduce((result, obj) => {
|
|
80
|
-
const key = Object.keys(obj)[0];
|
|
81
|
-
const value = obj[key];
|
|
82
|
-
return { ...result, [key]: value };
|
|
83
|
-
}, {});
|
|
84
|
-
// All brand colors and gradients, but not inlcuding the base colors
|
|
85
|
-
// eslint-disable-next-line import/no-anonymous-default-export
|
|
86
|
-
exports.default = [...Object.keys(exports.brandColors)];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DOWNLOADABLE_FILES = void 0;
|
|
4
|
-
// Array of downloadable files on the site
|
|
5
|
-
exports.DOWNLOADABLE_FILES = [
|
|
6
|
-
'doc',
|
|
7
|
-
'docx',
|
|
8
|
-
'odt',
|
|
9
|
-
'pdf',
|
|
10
|
-
'xls',
|
|
11
|
-
'xlsx',
|
|
12
|
-
'ods',
|
|
13
|
-
'ppt',
|
|
14
|
-
'pptx',
|
|
15
|
-
'txt',
|
|
16
|
-
'png',
|
|
17
|
-
'jpg',
|
|
18
|
-
'jpeg',
|
|
19
|
-
'svg',
|
|
20
|
-
'gif',
|
|
21
|
-
];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BranduiBrandIcons, BranduiGeneralIcons, AllIcons, BranduiIconSizes, BranduiGeneralIconSizes } from '../types';
|
|
2
|
-
export declare const brandIcons: BranduiBrandIcons[];
|
|
3
|
-
export declare const generalIcons: BranduiGeneralIcons[];
|
|
4
|
-
export declare const branduiIconSizes: BranduiIconSizes[];
|
|
5
|
-
export declare const branduiGeneralIconSizes: BranduiGeneralIconSizes[];
|
|
6
|
-
declare const allIcons: Readonly<AllIcons[]>;
|
|
7
|
-
export default allIcons;
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.branduiGeneralIconSizes = exports.branduiIconSizes = exports.generalIcons = exports.brandIcons = void 0;
|
|
4
|
-
// List of all Brand and General Icons
|
|
5
|
-
exports.brandIcons = [
|
|
6
|
-
'actionable-results',
|
|
7
|
-
'admin',
|
|
8
|
-
'advisor-1',
|
|
9
|
-
'advisor',
|
|
10
|
-
'ai-generated-code',
|
|
11
|
-
'ai-solutions',
|
|
12
|
-
'ai-vulnerable-code',
|
|
13
|
-
'ai',
|
|
14
|
-
'alert-high',
|
|
15
|
-
'alert-info',
|
|
16
|
-
'alert-low',
|
|
17
|
-
'alert-med',
|
|
18
|
-
'api',
|
|
19
|
-
'application-security',
|
|
20
|
-
'assessments',
|
|
21
|
-
'assignments',
|
|
22
|
-
'attention',
|
|
23
|
-
'automate',
|
|
24
|
-
'care-deeply',
|
|
25
|
-
'certificates',
|
|
26
|
-
'ci-cd',
|
|
27
|
-
'cli',
|
|
28
|
-
'climate',
|
|
29
|
-
'cloud-and-back',
|
|
30
|
-
'cloud-launch',
|
|
31
|
-
'cloud-security',
|
|
32
|
-
'code-to-cloud',
|
|
33
|
-
'code',
|
|
34
|
-
'coding',
|
|
35
|
-
'community',
|
|
36
|
-
'compliance-automation',
|
|
37
|
-
'customer-centricity',
|
|
38
|
-
'design-applications',
|
|
39
|
-
'dev-ai',
|
|
40
|
-
'dev-friendly',
|
|
41
|
-
'developer-security',
|
|
42
|
-
'docs-published',
|
|
43
|
-
'documentation',
|
|
44
|
-
'donate',
|
|
45
|
-
'efficiency',
|
|
46
|
-
'enablement-and-education',
|
|
47
|
-
'expert',
|
|
48
|
-
'false-positive-rate',
|
|
49
|
-
'family',
|
|
50
|
-
'fast-and-accurate',
|
|
51
|
-
'feedback',
|
|
52
|
-
'fix-faster',
|
|
53
|
-
'flexible',
|
|
54
|
-
'forward-thinking',
|
|
55
|
-
'get-started',
|
|
56
|
-
'git-security',
|
|
57
|
-
'ide',
|
|
58
|
-
'integrations',
|
|
59
|
-
'learn-always',
|
|
60
|
-
'learn-snyk-1',
|
|
61
|
-
'learn-snyk',
|
|
62
|
-
'learning-paths',
|
|
63
|
-
'live-environment',
|
|
64
|
-
'live-video',
|
|
65
|
-
'machine-learning',
|
|
66
|
-
'meetup',
|
|
67
|
-
'office-hours',
|
|
68
|
-
'onboarding',
|
|
69
|
-
'one-team',
|
|
70
|
-
'ongoing',
|
|
71
|
-
'platform',
|
|
72
|
-
'pull-request',
|
|
73
|
-
'query-cloud',
|
|
74
|
-
'real-time-scan',
|
|
75
|
-
'remediate-faster',
|
|
76
|
-
'roadmap',
|
|
77
|
-
'scaleable',
|
|
78
|
-
'scanning',
|
|
79
|
-
'secure-dependencies',
|
|
80
|
-
'secure-projects',
|
|
81
|
-
'security-automation',
|
|
82
|
-
'security-awareness',
|
|
83
|
-
'security-outnumbered',
|
|
84
|
-
'security-team',
|
|
85
|
-
'self-serve',
|
|
86
|
-
'ship-it',
|
|
87
|
-
'snyk-code-knowledgebase',
|
|
88
|
-
'supply-chain-security',
|
|
89
|
-
'support',
|
|
90
|
-
'swag',
|
|
91
|
-
'tech',
|
|
92
|
-
'think-bigger',
|
|
93
|
-
'tsd',
|
|
94
|
-
'unified-policy-engine',
|
|
95
|
-
'user-admin',
|
|
96
|
-
'visibility-and-intelligence',
|
|
97
|
-
'vuln-database',
|
|
98
|
-
'write-policies',
|
|
99
|
-
'zero-day',
|
|
100
|
-
];
|
|
101
|
-
exports.generalIcons = [
|
|
102
|
-
'account',
|
|
103
|
-
'add',
|
|
104
|
-
'ai-sparkles',
|
|
105
|
-
'ambassadors',
|
|
106
|
-
'apple-podcasts',
|
|
107
|
-
'arrow-back',
|
|
108
|
-
'arrow-down',
|
|
109
|
-
'arrow-forward',
|
|
110
|
-
'arrow-left',
|
|
111
|
-
'arrow-right',
|
|
112
|
-
'arrow-top-right',
|
|
113
|
-
'arrow-up',
|
|
114
|
-
'article',
|
|
115
|
-
'api-web',
|
|
116
|
-
'attachment',
|
|
117
|
-
'ballot',
|
|
118
|
-
'bio',
|
|
119
|
-
'bitbucket',
|
|
120
|
-
'blocks',
|
|
121
|
-
'blog',
|
|
122
|
-
'booklet',
|
|
123
|
-
'brain',
|
|
124
|
-
'briefcase',
|
|
125
|
-
'bug',
|
|
126
|
-
'build-code',
|
|
127
|
-
'byline',
|
|
128
|
-
'calendar-today',
|
|
129
|
-
'case-study',
|
|
130
|
-
'check',
|
|
131
|
-
'check-circle',
|
|
132
|
-
'check-shield',
|
|
133
|
-
'checkbox-hover',
|
|
134
|
-
'chevron-down',
|
|
135
|
-
'chevron-left',
|
|
136
|
-
'chevron-right',
|
|
137
|
-
'chevron-up',
|
|
138
|
-
'close',
|
|
139
|
-
'collapse',
|
|
140
|
-
'compliance',
|
|
141
|
-
'contact',
|
|
142
|
-
'copy-link',
|
|
143
|
-
'copy-to-clipboard',
|
|
144
|
-
'customers',
|
|
145
|
-
'developer',
|
|
146
|
-
'discord',
|
|
147
|
-
'discord-bubble',
|
|
148
|
-
'east',
|
|
149
|
-
'ebook',
|
|
150
|
-
'eclipse',
|
|
151
|
-
'events',
|
|
152
|
-
'expand',
|
|
153
|
-
'facebook',
|
|
154
|
-
'facebook-circle',
|
|
155
|
-
'filter',
|
|
156
|
-
'fix',
|
|
157
|
-
'git-fork',
|
|
158
|
-
'git-issue',
|
|
159
|
-
'github',
|
|
160
|
-
'glassdoor',
|
|
161
|
-
'glossary',
|
|
162
|
-
'google',
|
|
163
|
-
'government',
|
|
164
|
-
'grading',
|
|
165
|
-
'hand-wave',
|
|
166
|
-
'handbook',
|
|
167
|
-
'headphones',
|
|
168
|
-
'info-scan',
|
|
169
|
-
'info-warning',
|
|
170
|
-
'infographic',
|
|
171
|
-
'insert-chart',
|
|
172
|
-
'insert-drive-file',
|
|
173
|
-
'instagram',
|
|
174
|
-
'keyboard-arrow-down',
|
|
175
|
-
'labs',
|
|
176
|
-
'language',
|
|
177
|
-
'library',
|
|
178
|
-
'light-bulb',
|
|
179
|
-
'linkedin',
|
|
180
|
-
'livestream',
|
|
181
|
-
'location',
|
|
182
|
-
'lock-heart',
|
|
183
|
-
'mail-inbox',
|
|
184
|
-
'mail-outline',
|
|
185
|
-
'menu',
|
|
186
|
-
'mic',
|
|
187
|
-
'monetization',
|
|
188
|
-
'moon',
|
|
189
|
-
'more-horizontal',
|
|
190
|
-
'newsroom',
|
|
191
|
-
'npm',
|
|
192
|
-
'open-in-new',
|
|
193
|
-
'partners',
|
|
194
|
-
'pie-chart',
|
|
195
|
-
'play-circle',
|
|
196
|
-
'play',
|
|
197
|
-
'podcast',
|
|
198
|
-
'press-release',
|
|
199
|
-
'quote',
|
|
200
|
-
'reddit',
|
|
201
|
-
'remove',
|
|
202
|
-
'risk',
|
|
203
|
-
'search',
|
|
204
|
-
'send-mail',
|
|
205
|
-
'services',
|
|
206
|
-
'shield-ai',
|
|
207
|
-
'shield-chevron-up',
|
|
208
|
-
'shield-star',
|
|
209
|
-
'shield',
|
|
210
|
-
'snyk-apprisk',
|
|
211
|
-
'snyk-code',
|
|
212
|
-
'snyk-container',
|
|
213
|
-
'snyk-docs',
|
|
214
|
-
'snyk-iac',
|
|
215
|
-
'snyk-learn',
|
|
216
|
-
'snyk-oss',
|
|
217
|
-
'snyk-support',
|
|
218
|
-
'spotify',
|
|
219
|
-
'star-outline',
|
|
220
|
-
'sun',
|
|
221
|
-
'supply-chain',
|
|
222
|
-
'time',
|
|
223
|
-
'twitch',
|
|
224
|
-
'twitter',
|
|
225
|
-
'updates',
|
|
226
|
-
'videocam',
|
|
227
|
-
'vuln-db',
|
|
228
|
-
'vulnvortex',
|
|
229
|
-
'workflows',
|
|
230
|
-
'x',
|
|
231
|
-
'youtube',
|
|
232
|
-
];
|
|
233
|
-
// Used for BrandIcons, whih are images
|
|
234
|
-
exports.branduiIconSizes = ['sm', 'rg', 'md', 'lg'];
|
|
235
|
-
// Used for GeneralIcons, which are fonts
|
|
236
|
-
exports.branduiGeneralIconSizes = ['extra-small', 'small', 'medium', 'large', 'extra-large', 'huge'];
|
|
237
|
-
const allIcons = [...exports.brandIcons, ...exports.generalIcons];
|
|
238
|
-
exports.default = allIcons;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./buttonVariants"), exports);
|
|
18
|
-
__exportStar(require("./colors"), exports);
|
|
19
|
-
__exportStar(require("./downloadableFiles"), exports);
|
|
20
|
-
__exportStar(require("./icons"), exports);
|
|
21
|
-
__exportStar(require("./logos"), exports);
|
|
22
|
-
__exportStar(require("./mediaCategories"), exports);
|
|
23
|
-
__exportStar(require("./patchPoses"), exports);
|
|
24
|
-
__exportStar(require("./sizes"), exports);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.productLogos = exports.snykLogos = void 0;
|
|
4
|
-
exports.snykLogos = [
|
|
5
|
-
'default',
|
|
6
|
-
'default-solid',
|
|
7
|
-
'icon',
|
|
8
|
-
'icon-solid',
|
|
9
|
-
'vertical',
|
|
10
|
-
'vertical-solid',
|
|
11
|
-
'wordmark',
|
|
12
|
-
'security-labs-solid',
|
|
13
|
-
'icon-security-labs-solid',
|
|
14
|
-
'labs-solid',
|
|
15
|
-
'labs-mono',
|
|
16
|
-
'labs-mono-reverse',
|
|
17
|
-
];
|
|
18
|
-
exports.productLogos = [
|
|
19
|
-
'snyk-apprisk',
|
|
20
|
-
'snyk-cloud',
|
|
21
|
-
'snyk-code',
|
|
22
|
-
'snyk-container',
|
|
23
|
-
'snyk-deepcodeai',
|
|
24
|
-
'snyk-iac',
|
|
25
|
-
'snyk-learn',
|
|
26
|
-
'snyk-oss',
|
|
27
|
-
];
|
|
28
|
-
const allLogos = [...exports.productLogos, ...exports.snykLogos];
|
|
29
|
-
exports.default = allLogos;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// List of all media categories
|
|
4
|
-
const mediaCategories = [
|
|
5
|
-
'analyst-report',
|
|
6
|
-
'article',
|
|
7
|
-
'blog',
|
|
8
|
-
'byline',
|
|
9
|
-
'buyers-guide',
|
|
10
|
-
'case-study',
|
|
11
|
-
'cheat-sheet',
|
|
12
|
-
'ebook',
|
|
13
|
-
'event',
|
|
14
|
-
'infographic',
|
|
15
|
-
'lesson',
|
|
16
|
-
'live-stream',
|
|
17
|
-
'podcast',
|
|
18
|
-
'press-release',
|
|
19
|
-
'report',
|
|
20
|
-
'video',
|
|
21
|
-
'webinar',
|
|
22
|
-
'white-paper',
|
|
23
|
-
];
|
|
24
|
-
exports.default = mediaCategories;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BranduiPadding, BranduiSpacing, BranduiAvatarSizes } from '../types';
|
|
2
|
-
export declare const layoutSizes: string[];
|
|
3
|
-
export declare const branduiPadding: BranduiPadding[];
|
|
4
|
-
export declare const branduiSpacing: BranduiSpacing[];
|
|
5
|
-
export declare const avatarSizes: BranduiAvatarSizes[];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.avatarSizes = exports.branduiSpacing = exports.branduiPadding = exports.layoutSizes = void 0;
|
|
4
|
-
// List of all Size variants
|
|
5
|
-
exports.layoutSizes = [...Array(13).keys()].map(String); //Not sure how to tyoe this yet
|
|
6
|
-
exports.branduiPadding = [
|
|
7
|
-
'none',
|
|
8
|
-
'hairline',
|
|
9
|
-
'thin',
|
|
10
|
-
'slim',
|
|
11
|
-
'extra-small',
|
|
12
|
-
'small',
|
|
13
|
-
'medium',
|
|
14
|
-
'large',
|
|
15
|
-
'extra-large',
|
|
16
|
-
'huge',
|
|
17
|
-
'full',
|
|
18
|
-
];
|
|
19
|
-
exports.branduiSpacing = ['none', 'extra-small', 'small', 'medium', 'large', 'extra-large', 'huge', 'full'];
|
|
20
|
-
exports.avatarSizes = ['extra-small', 'small', 'medium', 'large', 'extra-large', 'huge'];
|