@splunk/themes 1.0.0-beta.2 → 1.0.0-beta.3
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.v1.md +14 -1
- package/design-tokens/colors.js +56 -7
- package/design-tokens/deprecated.js +5 -0
- package/design-tokens/elevation.js +2 -0
- package/design-tokens/spacing-sizing.js +5 -0
- package/enterprise/comfortable.js +0 -7
- package/enterprise/compact.js +0 -7
- package/enterprise/dark.js +31 -68
- package/enterprise/dataViz.js +0 -77
- package/enterprise/light.js +31 -94
- package/mixins/tests/utilityMixins.unit.js +1 -1
- package/mixins/utilityMixins.js +4 -4
- package/package.json +2 -2
- package/prisma/base.js +0 -39
- package/prisma/comfortable.js +0 -7
- package/prisma/compact.js +0 -11
- package/prisma/dark.js +31 -74
- package/prisma/dataViz.js +0 -197
- package/prisma/light.js +31 -74
- package/types/design-tokens/colors.d.ts +81 -11
- package/types/design-tokens/deprecated.d.ts +10 -0
- package/types/design-tokens/elevation.d.ts +2 -0
- package/types/design-tokens/index.d.ts +23 -1
- package/types/design-tokens/spacing-sizing.d.ts +5 -0
- package/types/enterprise/dark.d.ts +25 -13
- package/types/enterprise/dataViz.d.ts +0 -5
- package/types/enterprise/light.d.ts +24 -13
- package/types/mixins/utilityMixins.d.ts +4 -4
- package/types/prisma/comfortable.d.ts +0 -7
- package/types/prisma/compact.d.ts +0 -11
- package/types/prisma/dark.d.ts +24 -7
- package/types/prisma/dataViz.d.ts +0 -5
- package/types/prisma/light.d.ts +24 -7
- package/types/splunk-magnetic/index.d.ts +138 -6
package/CHANGELOG.v1.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
1.0.0-beta.3 - April 2, 2025
|
|
5
|
+
----------
|
|
6
|
+
New Features:
|
|
7
|
+
* New `neutral50` variable (SUI-7384).
|
|
8
|
+
* New `notificationColor` variables (SUI-7303).
|
|
9
|
+
* New `severityColor` variables (SUI-7303).
|
|
10
|
+
|
|
11
|
+
Bug Fixes:
|
|
12
|
+
* Updates `interactiveColorBackground` and `interactiveColorBackgroundDisabled` to be transparent in all themes (SUI-7347).
|
|
13
|
+
* The `@types/react` peer dependency is now correctly set to `^18.2.0` (SUI-7548).
|
|
14
|
+
|
|
15
|
+
Deprecations:
|
|
16
|
+
* `interactiveColorPrimary` has been deprecated (SUI-3568).
|
|
17
|
+
|
|
4
18
|
1.0.0-beta.2 - March 5, 2025
|
|
5
19
|
----------
|
|
6
20
|
New Features:
|
|
@@ -16,7 +30,6 @@ API Changes:
|
|
|
16
30
|
* `embossShadow`, `overlayShadow`, `dragShadow`, and `modalShadow` variables have been updated in Enterprise themes to match Prisma (SUI-7334).
|
|
17
31
|
* Enterprise only tokens have been deprecated: `brandColor*`, `gray*`, `accentColor*`, `errorColor*`, `alertColor*`, `warningColor*`, `successColor*`, `infoColor*`, `diverging*Color*`, and `cat*Color*`.
|
|
18
32
|
|
|
19
|
-
|
|
20
33
|
1.0.0-beta.1 - February 20, 2025
|
|
21
34
|
----------
|
|
22
35
|
New Features:
|
package/design-tokens/colors.js
CHANGED
|
@@ -13,7 +13,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
13
13
|
/**
|
|
14
14
|
* #### Action colors
|
|
15
15
|
*
|
|
16
|
-
* Action colors are used **exclusively** for
|
|
16
|
+
* Action colors are used **exclusively** for styling Buttons borders and backgrounds.
|
|
17
17
|
* They define interaction states for primary, secondary, subtle, and destructive buttons.
|
|
18
18
|
*
|
|
19
19
|
* @categoryColor
|
|
@@ -138,13 +138,12 @@ var actionColors = {
|
|
|
138
138
|
*
|
|
139
139
|
* Interactive colors should be used **exclusively** for styling Data Entry components: Input, Select, etc.
|
|
140
140
|
*
|
|
141
|
+
* "Overlay" colors are intended to be placed over the default background color, such as `interactiveColorAccent`.
|
|
142
|
+
* If the default background color is not transparent, the `blend` mixin can be used to create a new color that combines the two.
|
|
143
|
+
*
|
|
141
144
|
* @categoryColor
|
|
142
145
|
*/
|
|
143
146
|
var interactiveColors = {
|
|
144
|
-
/**
|
|
145
|
-
* Primary color for interactive elements in Data entry components.
|
|
146
|
-
*/
|
|
147
|
-
interactiveColorPrimary: '',
|
|
148
147
|
/**
|
|
149
148
|
* Default border color for Data entry components.
|
|
150
149
|
*/
|
|
@@ -215,6 +214,10 @@ var neutralColors = {
|
|
|
215
214
|
/**
|
|
216
215
|
* Least visually emphasized. Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
217
216
|
*/
|
|
217
|
+
neutral50: '',
|
|
218
|
+
/**
|
|
219
|
+
* Do not use this as the background for Data Entry components, does not pass 3:1 graphical contrast.
|
|
220
|
+
*/
|
|
218
221
|
neutral100: '',
|
|
219
222
|
/**
|
|
220
223
|
* Not for text, does not pass 3:1 graphical contrast in light & dark color schemes.
|
|
@@ -366,9 +369,55 @@ var uiColors = {
|
|
|
366
369
|
focusColor: ''
|
|
367
370
|
};
|
|
368
371
|
|
|
372
|
+
/**
|
|
373
|
+
* #### Notification colors
|
|
374
|
+
*
|
|
375
|
+
* Use notifications colors to communicate messages and guidance directly to users.
|
|
376
|
+
* For example in Message Bars, Toasts, or other notification components to set tone and urgency in a conversational context.
|
|
377
|
+
*
|
|
378
|
+
* Weak variants do not meet graphical or text contrast and should only be used decoratively.
|
|
379
|
+
*
|
|
380
|
+
* @categoryColor
|
|
381
|
+
*/
|
|
382
|
+
var notificationColors = {
|
|
383
|
+
notificationColorInfoWeak: '',
|
|
384
|
+
notificationColorInfo: '',
|
|
385
|
+
notificationColorInfoStrong: '',
|
|
386
|
+
notificationColorPositiveWeak: '',
|
|
387
|
+
notificationColorPositive: '',
|
|
388
|
+
notificationColorPositiveStrong: '',
|
|
389
|
+
notificationColorCautionWeak: '',
|
|
390
|
+
notificationColorCaution: '',
|
|
391
|
+
notificationColorCautionStrong: '',
|
|
392
|
+
notificationColorNegativeWeak: '',
|
|
393
|
+
notificationColorNegative: '',
|
|
394
|
+
notificationColorNegativeStrong: ''
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* #### Severity colors
|
|
399
|
+
*
|
|
400
|
+
* Use severity colors for icons, indicators, and visual signals to help users quickly scan for criticality, risk, or state without relying only on text.
|
|
401
|
+
* Severity colors should be used to aid identifying the semantic meaning of an element; not used to communicate tone.
|
|
402
|
+
*
|
|
403
|
+
* @categoryColor
|
|
404
|
+
*/
|
|
405
|
+
var severityColors = {
|
|
406
|
+
severityColorCustom: '',
|
|
407
|
+
severityColorUnknown: '',
|
|
408
|
+
severityColorInfo: '',
|
|
409
|
+
severityColorNormal: '',
|
|
410
|
+
severityColorNotice: '',
|
|
411
|
+
severityColorWarning: '',
|
|
412
|
+
severityColorAlert: '',
|
|
413
|
+
severityColorCritical: '',
|
|
414
|
+
severityColorEmergency: ''
|
|
415
|
+
};
|
|
416
|
+
|
|
369
417
|
/**
|
|
370
418
|
* #### Status colors
|
|
371
|
-
*
|
|
419
|
+
* Use status colors to convey informative, positive, caution or negative content status.
|
|
420
|
+
* Weak variants do not meet graphical or text contrast and should only be used decoratively.
|
|
372
421
|
*
|
|
373
422
|
* @categoryColor
|
|
374
423
|
*/
|
|
@@ -490,6 +539,6 @@ var borderColors = {
|
|
|
490
539
|
*/
|
|
491
540
|
borderColorStrong: ''
|
|
492
541
|
};
|
|
493
|
-
var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), interactiveColors), neutralColors), backgroundColors), contentColors), uiColors), statusColors), syntaxColors), borderColors);
|
|
542
|
+
var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), interactiveColors), neutralColors), backgroundColors), contentColors), uiColors), notificationColors), severityColors), statusColors), syntaxColors), borderColors);
|
|
494
543
|
var _default = colors;
|
|
495
544
|
exports["default"] = _default;
|
|
@@ -16,6 +16,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
16
16
|
* @categoryValue
|
|
17
17
|
*/
|
|
18
18
|
var deprecated = {
|
|
19
|
+
/**
|
|
20
|
+
* Use a more specific token based on the semantic use case:
|
|
21
|
+
* [`interactiveColorAccent`](#interactiveColorAccent), [`contentColorAccent`](#contentColorAccent), or [`focusColor`](#focusColor).
|
|
22
|
+
*/
|
|
23
|
+
interactiveColorPrimary: '',
|
|
19
24
|
/**
|
|
20
25
|
* Use `statusColorNormal`, `accentColor`, or ...
|
|
21
26
|
*/
|
|
@@ -12,6 +12,8 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
13
|
/**
|
|
14
14
|
* #### Z Indexes
|
|
15
|
+
* Used to position elements in the z-axis.
|
|
16
|
+
* If a variable does not suit your purpose, set a value relatively, such as `zindexModal +1`.
|
|
15
17
|
*
|
|
16
18
|
* @categoryValue
|
|
17
19
|
*/
|
|
@@ -13,6 +13,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
13
13
|
/**
|
|
14
14
|
* #### Spacing
|
|
15
15
|
*
|
|
16
|
+
* Use these tokens for adding margin between elements or padding within containers.
|
|
17
|
+
*
|
|
18
|
+
* Just because a spacing token is equal to a pixel value you may need, it does not mean it's appropriate to
|
|
19
|
+
* use the spacing variables.
|
|
20
|
+
*
|
|
16
21
|
* @categorySpacing
|
|
17
22
|
*/
|
|
18
23
|
var spacing = {
|
|
@@ -10,13 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
/**
|
|
14
|
-
* ## Measures
|
|
15
|
-
* Spacing is used for margin on any element or padding on containers, but can be used for other
|
|
16
|
-
* properties that position elements.
|
|
17
|
-
*
|
|
18
|
-
* @valueSet
|
|
19
|
-
*/
|
|
20
13
|
var measures = {
|
|
21
14
|
spacingXSmall: '4px',
|
|
22
15
|
spacingSmall: '8px',
|
package/enterprise/compact.js
CHANGED
|
@@ -10,13 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
/**
|
|
14
|
-
* ## Measures
|
|
15
|
-
* Spacing is used for margin on any element or padding on containers, but can be used for other
|
|
16
|
-
* properties that position elements.
|
|
17
|
-
*
|
|
18
|
-
* @valueSet
|
|
19
|
-
*/
|
|
20
13
|
var measures = {
|
|
21
14
|
spacingXSmall: '4px',
|
|
22
15
|
spacingSmall: '8px',
|
package/enterprise/dark.js
CHANGED
|
@@ -20,13 +20,31 @@ var dark = {
|
|
|
20
20
|
borderColorStrong: '#9c9fa0',
|
|
21
21
|
borderActiveColor: "rgba(225,225,225, 0.5)"
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
var notificationColors = {
|
|
24
|
+
notificationColorInfoWeak: '#2E1B4B',
|
|
25
|
+
notificationColorInfo: '#AC75FF',
|
|
26
|
+
notificationColorInfoStrong: '#D1B2FF',
|
|
27
|
+
notificationColorPositiveWeak: '#092635',
|
|
28
|
+
notificationColorPositive: '#1AB2FF',
|
|
29
|
+
notificationColorPositiveStrong: '#99DDFF',
|
|
30
|
+
notificationColorCautionWeak: '#331E00',
|
|
31
|
+
notificationColorCaution: '#FFAF0F',
|
|
32
|
+
notificationColorCautionStrong: '#FDDC9B',
|
|
33
|
+
notificationColorNegativeWeak: '#391313',
|
|
34
|
+
notificationColorNegative: '#FF5252',
|
|
35
|
+
notificationColorNegativeStrong: '#FF9999'
|
|
36
|
+
};
|
|
37
|
+
var severityColors = {
|
|
38
|
+
severityColorCustom: '#868EC2',
|
|
39
|
+
severityColorUnknown: '#889099',
|
|
40
|
+
severityColorInfo: '#A974F7',
|
|
41
|
+
severityColorNormal: '#04A4B0',
|
|
42
|
+
severityColorNotice: '#D6900D',
|
|
43
|
+
severityColorWarning: '#F26722',
|
|
44
|
+
severityColorAlert: '#FA5762',
|
|
45
|
+
severityColorCritical: '#F2638C',
|
|
46
|
+
severityColorEmergency: '#E85FC6'
|
|
47
|
+
};
|
|
30
48
|
var statusColors = {
|
|
31
49
|
statusColorInfo: _light["default"].infoColor,
|
|
32
50
|
statusColorInfoWeak: _light["default"].infoColorD10,
|
|
@@ -47,13 +65,6 @@ var statusColors = {
|
|
|
47
65
|
statusColorCriticalWeak: _light["default"].errorColorD20,
|
|
48
66
|
statusColorCriticalStrong: _light["default"].errorColor
|
|
49
67
|
};
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* ## Syntax colors
|
|
53
|
-
* Syntax colors are used only for code blocks.
|
|
54
|
-
*
|
|
55
|
-
* @colorSet verbose alphabetical
|
|
56
|
-
*/
|
|
57
68
|
var syntaxColors = {
|
|
58
69
|
syntaxBlue: '#6cd0f0',
|
|
59
70
|
syntaxBrown: '#fccf87',
|
|
@@ -65,13 +76,6 @@ var syntaxColors = {
|
|
|
65
76
|
syntaxRed: '#fa94aa',
|
|
66
77
|
syntaxTeal: '#45d4ba'
|
|
67
78
|
};
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* ## Content colors
|
|
71
|
-
* Content colors should be used for text, icons and dividers.
|
|
72
|
-
*
|
|
73
|
-
* @colorSet verbose
|
|
74
|
-
*/
|
|
75
79
|
var contentColors = {
|
|
76
80
|
contentBackgroundColorNegativeWeak: 'rgba(160, 29, 38, 0.28)',
|
|
77
81
|
contentColorActive: _light["default"].white,
|
|
@@ -90,14 +94,6 @@ var contentColors = {
|
|
|
90
94
|
contentColorWarning: '#f8be34',
|
|
91
95
|
contentColorLink: _light["default"].accentColorL10
|
|
92
96
|
};
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* ## Action colors
|
|
96
|
-
* Action colors should be used for buttons.
|
|
97
|
-
*
|
|
98
|
-
* @colorSet verbose
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
97
|
var actionColors = {
|
|
102
98
|
actionColorBackgroundPrimary: '#1a8929',
|
|
103
99
|
actionColorBackgroundPrimaryActive: '#6eba78',
|
|
@@ -128,15 +124,7 @@ var actionColors = {
|
|
|
128
124
|
actionColorBorderDestructiveSecondaryDisabled: '#562a25',
|
|
129
125
|
actionColorBorderDestructiveSecondaryHover: '#ff8a80'
|
|
130
126
|
};
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* ## Interactive colors
|
|
134
|
-
* Interactive colors are specifically chosen for borders and backgrounds of controls and other interactive content.
|
|
135
|
-
*
|
|
136
|
-
* @colorSet verbose
|
|
137
|
-
*/
|
|
138
127
|
var interactiveColors = {
|
|
139
|
-
interactiveColorPrimary: _light["default"].brandColor,
|
|
140
128
|
interactiveColorBorder: _light["default"].gray60,
|
|
141
129
|
interactiveColorBorderActive: _light["default"].gray60,
|
|
142
130
|
interactiveColorBorderHover: 'rgba(255, 255, 255, 0.7)',
|
|
@@ -145,22 +133,15 @@ var interactiveColors = {
|
|
|
145
133
|
interactiveColorOverlayHover: 'rgba(255, 255, 255, 0.05)',
|
|
146
134
|
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.2)',
|
|
147
135
|
interactiveColorOverlayDrag: 'rgba(57, 147, 255, 0.16)',
|
|
148
|
-
interactiveColorBackground:
|
|
149
|
-
interactiveColorBackgroundDisabled:
|
|
136
|
+
interactiveColorBackground: 'transparent',
|
|
137
|
+
interactiveColorBackgroundDisabled: 'transparent',
|
|
150
138
|
interactiveColorAccent: '#1A8929',
|
|
151
139
|
interactiveColorAccentError: _light["default"].errorColorL10,
|
|
152
140
|
interactiveColorAccentErrorStrong: '#f1b9b3'
|
|
153
141
|
};
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* ## Neutral colors
|
|
157
|
-
* Neutrals are used for dividers and as backup colors that can sparingly be used for cases, when the other defined colors are not enough.
|
|
158
|
-
*
|
|
159
|
-
* @colorSet verbose
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
142
|
var neutralColors = {
|
|
163
143
|
white: '#ffffff',
|
|
144
|
+
neutral50: '#20262a',
|
|
164
145
|
neutral100: _light["default"].gray25,
|
|
165
146
|
neutral200: _light["default"].gray30,
|
|
166
147
|
neutral300: _light["default"].gray45,
|
|
@@ -169,13 +150,6 @@ var neutralColors = {
|
|
|
169
150
|
black: '#000000',
|
|
170
151
|
transparent: 'transparent'
|
|
171
152
|
};
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* ## Background colors
|
|
175
|
-
* Background colors should be used only for backgrounds of higher level sections & containers of a UI.
|
|
176
|
-
*
|
|
177
|
-
* @colorSet verbose
|
|
178
|
-
*/
|
|
179
153
|
var backgroundColors = {
|
|
180
154
|
backgroundColorDialog: _light["default"].gray20,
|
|
181
155
|
backgroundColorFloating: _light["default"].white,
|
|
@@ -186,21 +160,9 @@ var backgroundColors = {
|
|
|
186
160
|
backgroundColorSection: _light["default"].gray22,
|
|
187
161
|
backgroundColorSidebar: _light["default"].black
|
|
188
162
|
};
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* ## Backgrounds
|
|
192
|
-
*
|
|
193
|
-
* @colorSet verbose
|
|
194
|
-
*/
|
|
195
163
|
var backgrounds = {
|
|
196
164
|
draggableBackground: "url('data:image/png;base64,".concat(dragHandleDark, "') 0 0 / 8px 8px repeat")
|
|
197
165
|
};
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* ## Interactive state shadows
|
|
201
|
-
*
|
|
202
|
-
* @shadowSet
|
|
203
|
-
*/
|
|
204
166
|
var shadows = {
|
|
205
167
|
focusShadow: "0 0 0 2px ".concat(backgroundColors.backgroundColorPage, ", 0 0 0 5px ").concat(_light["default"].focusColor),
|
|
206
168
|
focusShadowInset: "inset 0 0 0 3px ".concat(_light["default"].focusColor),
|
|
@@ -227,8 +189,9 @@ var deprecated = {
|
|
|
227
189
|
linkColorHover: _light["default"].accentColorL20,
|
|
228
190
|
border: "1px solid ".concat(_light["default"].gray22),
|
|
229
191
|
borderDark: "1px solid ".concat(_light["default"].black),
|
|
230
|
-
borderLight: "1px solid ".concat(_light["default"].gray60)
|
|
192
|
+
borderLight: "1px solid ".concat(_light["default"].gray60),
|
|
193
|
+
interactiveColorPrimary: _light["default"].brandColor
|
|
231
194
|
};
|
|
232
|
-
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _light["default"]), dark), actionColors), statusColors), backgroundColors), neutralColors), syntaxColors), contentColors), shadows), interactiveColors), deprecated), backgrounds);
|
|
195
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _light["default"]), dark), actionColors), notificationColors), severityColors), statusColors), backgroundColors), neutralColors), syntaxColors), contentColors), shadows), interactiveColors), deprecated), backgrounds);
|
|
233
196
|
var _default = theme;
|
|
234
197
|
exports["default"] = _default;
|
package/enterprise/dataViz.js
CHANGED
|
@@ -10,11 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
/**
|
|
14
|
-
* #### Static colors
|
|
15
|
-
*
|
|
16
|
-
* @colorSet verbose
|
|
17
|
-
*/
|
|
18
13
|
var staticColors = {
|
|
19
14
|
static1: '#7B56DB',
|
|
20
15
|
static2: '#009CEB',
|
|
@@ -37,12 +32,6 @@ var staticColors = {
|
|
|
37
32
|
static19: '#FF969E',
|
|
38
33
|
static20: '#E47BFE'
|
|
39
34
|
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* #### Categorical 1D
|
|
43
|
-
*
|
|
44
|
-
* @colorSet verbose
|
|
45
|
-
*/
|
|
46
35
|
exports.staticColors = staticColors;
|
|
47
36
|
var categorical1D = {
|
|
48
37
|
categorical1D1: '#5C33FF',
|
|
@@ -53,12 +42,6 @@ var categorical1D = {
|
|
|
53
42
|
categorical1D6: '#2F8811',
|
|
54
43
|
categorical1D7: '#555555'
|
|
55
44
|
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* #### Categorical 1L
|
|
59
|
-
*
|
|
60
|
-
* @colorSet verbose
|
|
61
|
-
*/
|
|
62
45
|
var categorical1L = {
|
|
63
46
|
categorical1L1: '#9980FF',
|
|
64
47
|
categorical1L2: '#45D4BA',
|
|
@@ -68,12 +51,6 @@ var categorical1L = {
|
|
|
68
51
|
categorical1L6: '#88EE66',
|
|
69
52
|
categorical1L7: '#F0B000'
|
|
70
53
|
};
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* #### Categorical 2D
|
|
74
|
-
*
|
|
75
|
-
* @colorSet verbose
|
|
76
|
-
*/
|
|
77
54
|
var categorical2D = {
|
|
78
55
|
categorical2D1: '#1F4D5B',
|
|
79
56
|
categorical2D2: '#CC0AD6',
|
|
@@ -83,12 +60,6 @@ var categorical2D = {
|
|
|
83
60
|
categorical2D6: '#348350',
|
|
84
61
|
categorical2D7: '#555555'
|
|
85
62
|
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* #### Categorical 2L
|
|
89
|
-
*
|
|
90
|
-
* @colorSet verbose
|
|
91
|
-
*/
|
|
92
63
|
var categorical2L = {
|
|
93
64
|
categorical2L1: '#5599BE',
|
|
94
65
|
categorical2L2: '#FB9DFB',
|
|
@@ -99,12 +70,6 @@ var categorical2L = {
|
|
|
99
70
|
categorical2L7: '#F58B00'
|
|
100
71
|
};
|
|
101
72
|
var categorical = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, categorical1D), categorical1L), categorical2D), categorical2L);
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* #### Divergent 1D
|
|
105
|
-
*
|
|
106
|
-
* @colorSet verbose
|
|
107
|
-
*/
|
|
108
73
|
exports.categorical = categorical;
|
|
109
74
|
var divergent1D = {
|
|
110
75
|
divergent1D1: '#118832',
|
|
@@ -115,12 +80,6 @@ var divergent1D = {
|
|
|
115
80
|
divergent1D6: '#9E2520',
|
|
116
81
|
divergent1D7: '#D41F1F'
|
|
117
82
|
};
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* #### Divergent 1L
|
|
121
|
-
*
|
|
122
|
-
* @colorSet verbose
|
|
123
|
-
*/
|
|
124
83
|
var divergent1L = {
|
|
125
84
|
divergent1L1: '#08AE37',
|
|
126
85
|
divergent1L2: '#55C169',
|
|
@@ -130,12 +89,6 @@ var divergent1L = {
|
|
|
130
89
|
divergent1L6: '#F98C83',
|
|
131
90
|
divergent1L7: '#FF5E5E'
|
|
132
91
|
};
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* #### Divergent 2D
|
|
136
|
-
*
|
|
137
|
-
* @colorSet verbose
|
|
138
|
-
*/
|
|
139
92
|
var divergent2D = {
|
|
140
93
|
divergent2D1: '#0070F3',
|
|
141
94
|
divergent2D2: '#115BAD',
|
|
@@ -145,12 +98,6 @@ var divergent2D = {
|
|
|
145
98
|
divergent2D6: '#9E2520',
|
|
146
99
|
divergent2D7: '#D41F1F'
|
|
147
100
|
};
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* #### Divergent 2L
|
|
151
|
-
*
|
|
152
|
-
* @colorSet verbose
|
|
153
|
-
*/
|
|
154
101
|
var divergent2L = {
|
|
155
102
|
divergent2L1: '#2A99FF',
|
|
156
103
|
divergent2L2: '#6BB3EE',
|
|
@@ -160,12 +107,6 @@ var divergent2L = {
|
|
|
160
107
|
divergent2L6: '#F98C83',
|
|
161
108
|
divergent2L7: '#FF5E5E'
|
|
162
109
|
};
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* #### Divergent 3D
|
|
166
|
-
*
|
|
167
|
-
* @colorSet verbose
|
|
168
|
-
*/
|
|
169
110
|
var divergent3D = {
|
|
170
111
|
divergent3D1: '#299986',
|
|
171
112
|
divergent3D2: '#277C52',
|
|
@@ -175,12 +116,6 @@ var divergent3D = {
|
|
|
175
116
|
divergent3D6: '#602CA1',
|
|
176
117
|
divergent3D7: '#8747DA'
|
|
177
118
|
};
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* #### Divergent 3L
|
|
181
|
-
*
|
|
182
|
-
* @colorSet verbose
|
|
183
|
-
*/
|
|
184
119
|
var divergent3L = {
|
|
185
120
|
divergent3L1: '#14846C',
|
|
186
121
|
divergent3L2: '#45D4BA',
|
|
@@ -190,12 +125,6 @@ var divergent3L = {
|
|
|
190
125
|
divergent3L6: '#C093F9',
|
|
191
126
|
divergent3L7: '#9156DD'
|
|
192
127
|
};
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* #### Divergent 4D
|
|
196
|
-
*
|
|
197
|
-
* @colorSet verbose
|
|
198
|
-
*/
|
|
199
128
|
var divergent4D = {
|
|
200
129
|
divergent4D1: '#0D8387',
|
|
201
130
|
divergent4D2: '#1A6765',
|
|
@@ -205,12 +134,6 @@ var divergent4D = {
|
|
|
205
134
|
divergent4D6: '#9F3B23',
|
|
206
135
|
divergent4D7: '#D54124'
|
|
207
136
|
};
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* #### Divergent 4L
|
|
211
|
-
*
|
|
212
|
-
* @colorSet verbose
|
|
213
|
-
*/
|
|
214
137
|
var divergent4L = {
|
|
215
138
|
divergent4L1: '#008287',
|
|
216
139
|
divergent4L2: '#2EA39B',
|