@splunk/themes 0.16.4 → 0.17.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/CHANGELOG.md +7 -2
- package/enterprise/dark.js +11 -1
- package/enterprise/light.js +11 -1
- package/package.json +5 -5
- package/prisma/base.js +11 -1
- package/prisma/dark.js +1 -0
- package/prisma/light.js +1 -0
- package/types/enterprise/dark.d.ts +2 -0
- package/types/enterprise/light.d.ts +2 -0
- package/types/prisma/base.d.ts +6 -1
- package/types/prisma/dark.d.ts +1 -0
- package/types/prisma/light.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
-
0.
|
|
4
|
+
0.17.0 - March 21, 2024
|
|
5
|
+
----------
|
|
6
|
+
New Features:
|
|
7
|
+
* Added new variable `activeBorder`.
|
|
8
|
+
|
|
9
|
+
0.16.4 - Dec 5, 2023
|
|
5
10
|
----------
|
|
6
11
|
Bug Fixes:
|
|
7
12
|
* `syntaxColors` have been updated to meet A11y_WCAG 1.4.3 contrast requirements for prisma and enterprise themes (SUI-5750).
|
|
8
13
|
|
|
9
|
-
0.16.3
|
|
14
|
+
0.16.3 - October 11, 2023
|
|
10
15
|
----------
|
|
11
16
|
Bug Fixes:
|
|
12
17
|
* This package should now load correctly in Webpack 4 environments (SUI-5802).
|
package/enterprise/dark.js
CHANGED
|
@@ -21,6 +21,7 @@ var dark = {
|
|
|
21
21
|
backgroundColor: _light["default"].gray20,
|
|
22
22
|
backgroundColorHover: _light["default"].gray30,
|
|
23
23
|
borderColor: _light["default"].gray22,
|
|
24
|
+
borderActiveColor: "rgba(225,225,225, 0.5)",
|
|
24
25
|
borderDarkColor: _light["default"].black,
|
|
25
26
|
borderLightColor: _light["default"].gray60,
|
|
26
27
|
textColor: _light["default"].white,
|
|
@@ -52,8 +53,17 @@ var syntaxColors = {
|
|
|
52
53
|
syntaxRed: '#fa94aa',
|
|
53
54
|
syntaxTeal: '#45d4ba'
|
|
54
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* ## Interactive borders
|
|
58
|
+
*
|
|
59
|
+
* @borderSet
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
var bordersInteractive = {
|
|
63
|
+
activeBorder: "".concat(dark.borderActiveColor, " double")
|
|
64
|
+
};
|
|
55
65
|
|
|
56
|
-
var theme = _objectSpread(_objectSpread(_objectSpread({}, _light["default"]), dark), syntaxColors);
|
|
66
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _light["default"]), dark), syntaxColors), bordersInteractive);
|
|
57
67
|
|
|
58
68
|
var _default = theme;
|
|
59
69
|
exports["default"] = _default;
|
package/enterprise/light.js
CHANGED
|
@@ -264,6 +264,7 @@ var usageColors = {
|
|
|
264
264
|
textDisabledColor: grays.gray80,
|
|
265
265
|
linkColor: accentColors.accentColorD10,
|
|
266
266
|
linkColorHover: accentColors.accentColor,
|
|
267
|
+
borderActiveColor: "rgba(0,0,0, 0.5)",
|
|
267
268
|
borderLightColor: grays.gray92,
|
|
268
269
|
borderColor: grays.gray80,
|
|
269
270
|
focusColor: accentColors.accentColorD10,
|
|
@@ -304,6 +305,15 @@ var shadows = {
|
|
|
304
305
|
focusShadowInset: "inset 0 0 1px 1px ".concat(grays.white, ", inset 0 0 0 3px ").concat(usageColors.focusColor),
|
|
305
306
|
overlayShadow: '0 4px 8px rgba(0, 0, 0, 0.2)'
|
|
306
307
|
};
|
|
308
|
+
/**
|
|
309
|
+
* ## Interactive borders
|
|
310
|
+
*
|
|
311
|
+
* @borderSet
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
var bordersInteractive = {
|
|
315
|
+
activeBorder: "".concat(usageColors.borderActiveColor, " double")
|
|
316
|
+
};
|
|
307
317
|
/**
|
|
308
318
|
* ## Backgrounds
|
|
309
319
|
*
|
|
@@ -368,7 +378,7 @@ var zindexes = {
|
|
|
368
378
|
zindexToastMessages: 2000
|
|
369
379
|
};
|
|
370
380
|
|
|
371
|
-
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, brandColors), grays), accentColors), errorColors), alertColors), warningColors), successColors), infoColors), categoricalColors), divergingColors), syntaxColors), fontFamily), fontWeights), usageColors), backgrounds), shadows), borders), zindexes);
|
|
381
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, brandColors), grays), accentColors), errorColors), alertColors), warningColors), successColors), infoColors), categoricalColors), divergingColors), syntaxColors), fontFamily), fontWeights), usageColors), backgrounds), shadows), bordersInteractive), borders), zindexes);
|
|
372
382
|
|
|
373
383
|
var _default = theme;
|
|
374
384
|
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/themes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Theme variables and mixins for the Splunk design language",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"babel": "babel src -d . --ignore src/babel-plugin-base64-png,src/tests --ignore \"**/docs\" --extensions .js,.ts,.tsx",
|
|
@@ -55,10 +55,6 @@
|
|
|
55
55
|
"license": "Apache-2.0",
|
|
56
56
|
"author": "Splunk Inc.",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@types/lodash": "^4.14.156",
|
|
59
|
-
"@types/react": "^16.9.38",
|
|
60
|
-
"@types/styled-components": "^5.1.0",
|
|
61
|
-
"@types/tinycolor2": "^1.4.2",
|
|
62
58
|
"color-blend": "^2.0.9",
|
|
63
59
|
"lodash": "^4.17.14",
|
|
64
60
|
"tinycolor2": "^1.4.1"
|
|
@@ -76,6 +72,10 @@
|
|
|
76
72
|
"@testing-library/jest-dom": "^5.16.1",
|
|
77
73
|
"@testing-library/react": "^12.1.2",
|
|
78
74
|
"@testing-library/react-hooks": "^7.0.2",
|
|
75
|
+
"@types/lodash": "^4.14.156",
|
|
76
|
+
"@types/react": "^16.9.38",
|
|
77
|
+
"@types/styled-components": "^5.1.0",
|
|
78
|
+
"@types/tinycolor2": "^1.4.2",
|
|
79
79
|
"@typescript-eslint/eslint-plugin": "^3.4.0",
|
|
80
80
|
"@typescript-eslint/parser": "^3.4.0",
|
|
81
81
|
"babel-eslint": "^10.1.0",
|
package/prisma/base.js
CHANGED
|
@@ -51,6 +51,16 @@ function createPrismaBase(_ref) {
|
|
|
51
51
|
focusShadow: "0 0 0 2px ".concat(colorSchemeVars.backgroundColorPage, ", 0 0 0 5px ").concat(usageColors.focusColor),
|
|
52
52
|
focusShadowInset: "inset 0 0 0 3px ".concat(usageColors.focusColor)
|
|
53
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* ## Interactive state borders
|
|
56
|
+
*
|
|
57
|
+
* @borderSet
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
var borders = {
|
|
62
|
+
activeBorder: "double ".concat(colorSchemeVars.interactiveColorBorderActive)
|
|
63
|
+
};
|
|
54
64
|
/**
|
|
55
65
|
* ## Backgrounds
|
|
56
66
|
*
|
|
@@ -104,7 +114,7 @@ function createPrismaBase(_ref) {
|
|
|
104
114
|
zindexPopover: 1060,
|
|
105
115
|
zindexToastMessages: 2000
|
|
106
116
|
};
|
|
107
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontFamily), fontWeights), usageColors), _dataViz["default"]), shadows), backgrounds), zindexes);
|
|
117
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontFamily), fontWeights), usageColors), _dataViz["default"]), shadows), borders), backgrounds), zindexes);
|
|
108
118
|
}
|
|
109
119
|
|
|
110
120
|
var _default = createPrismaBase;
|
package/prisma/dark.js
CHANGED
|
@@ -53,6 +53,7 @@ var contentColors = {
|
|
|
53
53
|
var interactiveColors = {
|
|
54
54
|
interactiveColorPrimary: '#3993FF',
|
|
55
55
|
interactiveColorBorder: 'rgba(255, 255, 255, 0.5)',
|
|
56
|
+
interactiveColorBorderActive: 'rgba(225,225,225, 0.5)',
|
|
56
57
|
interactiveColorBorderHover: 'rgba(255, 255, 255, 0.7)',
|
|
57
58
|
interactiveColorBorderDisabled: 'rgba(255, 255, 255, 0.30)',
|
|
58
59
|
interactiveColorOverlaySelected: 'rgba(255, 255, 255, 0.1)',
|
package/prisma/light.js
CHANGED
|
@@ -53,6 +53,7 @@ var contentColors = {
|
|
|
53
53
|
var interactiveColors = {
|
|
54
54
|
interactiveColorPrimary: '#0264d7',
|
|
55
55
|
interactiveColorBorder: 'rgba(0, 0, 0, 0.4)',
|
|
56
|
+
interactiveColorBorderActive: 'rgba(0, 0, 0, 0.5)',
|
|
56
57
|
interactiveColorBorderHover: 'rgba(0, 0, 0, 0.6)',
|
|
57
58
|
interactiveColorBorderDisabled: 'rgba(0, 0, 0, 0.3)',
|
|
58
59
|
interactiveColorOverlaySelected: 'rgba(0, 0, 0, 0.04)',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
+
activeBorder: string;
|
|
2
3
|
syntaxBlue: string;
|
|
3
4
|
syntaxBrown: string;
|
|
4
5
|
syntaxGray: string;
|
|
@@ -11,6 +12,7 @@ declare const theme: {
|
|
|
11
12
|
backgroundColor: string;
|
|
12
13
|
backgroundColorHover: string;
|
|
13
14
|
borderColor: string;
|
|
15
|
+
borderActiveColor: string;
|
|
14
16
|
borderDarkColor: string;
|
|
15
17
|
borderLightColor: string;
|
|
16
18
|
textColor: string;
|
|
@@ -7,6 +7,7 @@ declare const theme: {
|
|
|
7
7
|
zindexToastMessages: number;
|
|
8
8
|
borderRadius: string;
|
|
9
9
|
border: string;
|
|
10
|
+
activeBorder: string;
|
|
10
11
|
focusShadow: string;
|
|
11
12
|
focusShadowInset: string;
|
|
12
13
|
overlayShadow: string;
|
|
@@ -16,6 +17,7 @@ declare const theme: {
|
|
|
16
17
|
textDisabledColor: string;
|
|
17
18
|
linkColor: string;
|
|
18
19
|
linkColorHover: string;
|
|
20
|
+
borderActiveColor: string;
|
|
19
21
|
borderLightColor: string;
|
|
20
22
|
borderColor: string;
|
|
21
23
|
focusColor: string;
|
package/types/prisma/base.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare function createPrismaBase({ colorScheme }: {
|
|
|
9
9
|
zindexPopover: number;
|
|
10
10
|
zindexToastMessages: number;
|
|
11
11
|
draggableBackground: string;
|
|
12
|
+
activeBorder: string;
|
|
12
13
|
hoverShadow: string;
|
|
13
14
|
focusShadow: string;
|
|
14
15
|
focusShadowInset: string;
|
|
@@ -188,7 +189,11 @@ declare function createPrismaBase({ colorScheme }: {
|
|
|
188
189
|
categorical1L4: string;
|
|
189
190
|
categorical1L5: string;
|
|
190
191
|
categorical1L6: string;
|
|
191
|
-
categorical1L7: string;
|
|
192
|
+
categorical1L7: string; /**
|
|
193
|
+
* ## Backgrounds
|
|
194
|
+
*
|
|
195
|
+
* @colorSet verbose
|
|
196
|
+
*/
|
|
192
197
|
categorical1D1: string;
|
|
193
198
|
categorical1D2: string;
|
|
194
199
|
categorical1D3: string;
|
package/types/prisma/dark.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const theme: {
|
|
|
16
16
|
syntaxTeal: string;
|
|
17
17
|
interactiveColorPrimary: string;
|
|
18
18
|
interactiveColorBorder: string;
|
|
19
|
+
interactiveColorBorderActive: string;
|
|
19
20
|
interactiveColorBorderHover: string;
|
|
20
21
|
interactiveColorBorderDisabled: string;
|
|
21
22
|
interactiveColorOverlaySelected: string;
|
package/types/prisma/light.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const theme: {
|
|
|
16
16
|
syntaxTeal: string;
|
|
17
17
|
interactiveColorPrimary: string;
|
|
18
18
|
interactiveColorBorder: string;
|
|
19
|
+
interactiveColorBorderActive: string;
|
|
19
20
|
interactiveColorBorderHover: string;
|
|
20
21
|
interactiveColorBorderDisabled: string;
|
|
21
22
|
interactiveColorOverlaySelected: string;
|