@splunk/themes 1.0.0-beta.2 → 1.0.0-beta.4
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 +34 -1
- package/design-tokens/colors.js +48 -81
- package/design-tokens/deprecated.js +75 -0
- package/design-tokens/elevation.js +2 -1
- package/design-tokens/spacing-sizing.js +6 -0
- package/enterprise/comfortable.js +1 -7
- package/enterprise/compact.js +1 -7
- package/enterprise/dark.js +51 -90
- package/enterprise/dataViz.js +0 -77
- package/enterprise/light.js +51 -116
- package/mixins/tests/utilityMixins.unit.js +1 -1
- package/mixins/utilityMixins.js +4 -4
- package/package.json +5 -5
- package/prisma/base.js +1 -40
- package/prisma/comfortable.js +1 -7
- package/prisma/compact.js +1 -11
- package/prisma/dark.js +53 -95
- package/prisma/dataViz.js +0 -197
- package/prisma/light.js +53 -95
- package/splunk-magnetic/index.js +3 -1
- package/types/design-tokens/colors.d.ts +74 -158
- package/types/design-tokens/deprecated.d.ts +150 -0
- package/types/design-tokens/elevation.d.ts +2 -2
- package/types/design-tokens/index.d.ts +43 -20
- package/types/design-tokens/spacing-sizing.d.ts +7 -0
- package/types/enterprise/comfortable.d.ts +1 -0
- package/types/enterprise/compact.d.ts +1 -0
- package/types/enterprise/dark.d.ts +45 -33
- package/types/enterprise/dataViz.d.ts +0 -5
- package/types/enterprise/light.d.ts +44 -33
- package/types/getTheme.d.ts +0 -1
- package/types/mixins/index.d.ts +1 -1
- package/types/mixins/utilityMixins.d.ts +6 -6
- package/types/prisma/base.d.ts +1 -1
- package/types/prisma/comfortable.d.ts +0 -7
- package/types/prisma/compact.d.ts +0 -11
- package/types/prisma/dark.d.ts +42 -25
- package/types/prisma/dataViz.d.ts +0 -5
- package/types/prisma/light.d.ts +42 -25
- package/types/splunk-magnetic/index.d.ts +196 -58
- package/types/storybook-addon-splunk-themes/constants.d.ts +4 -4
- package/types/storybook-addon-splunk-themes/preview.d.ts +4 -4
- package/types/storybook-addon-splunk-themes/themes.d.ts +3 -4
- package/types/storybook-addon-splunk-themes/withSplunkTheme.d.ts +1 -1
- package/types/utils.d.ts +0 -1
package/CHANGELOG.v1.md
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
1.0.0-beta.4 - April 22, 2025
|
|
5
|
+
----------
|
|
6
|
+
New Features:
|
|
7
|
+
* New `inputBorderWidth` variable (SUI-7384).
|
|
8
|
+
|
|
9
|
+
Bug Fixes:
|
|
10
|
+
* Fixes broken CSS for Splunk Magnetic's `backgroundColorNavigation` override (SUI-7653).
|
|
11
|
+
|
|
12
|
+
Deprecations:
|
|
13
|
+
* `statusColor*`s have been deprecated. Instead use the appropriate `notificationColor*` or `severityColor*`(SUI-7303)
|
|
14
|
+
|
|
15
|
+
API Changes:
|
|
16
|
+
* `typescript` version is now `^5.8.3` (SUI-7601).
|
|
17
|
+
* `borderActiveColor` has been deprecated. (SUI-7633).
|
|
18
|
+
* Use `interactiveColorBorderActive` for Data Entry components or `actionColorBorderSecondaryActive` for Buttons.
|
|
19
|
+
* `backgroundColorHover` have been deprecated. (SUI-7633).
|
|
20
|
+
* Use `interactiveColorOverlayHover` for Data Entry components or `actionColorBackgroundSecondaryHover` for Buttons.
|
|
21
|
+
* `hoverShadow` has been deprecated. See notes on `backgroundColorHover` for hover affordances. (SUI-7621)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
1.0.0-beta.3 - April 2, 2025
|
|
25
|
+
----------
|
|
26
|
+
New Features:
|
|
27
|
+
* New `neutral50` variable (SUI-7384).
|
|
28
|
+
* New `notificationColor` variables (SUI-7303).
|
|
29
|
+
* New `severityColor` variables (SUI-7303).
|
|
30
|
+
|
|
31
|
+
Bug Fixes:
|
|
32
|
+
* Updates `interactiveColorBackground` and `interactiveColorBackgroundDisabled` to be transparent in all themes (SUI-7347).
|
|
33
|
+
* The `@types/react` peer dependency is now correctly set to `^18.2.0` (SUI-7548).
|
|
34
|
+
|
|
35
|
+
Deprecations:
|
|
36
|
+
* `interactiveColorPrimary` has been deprecated (SUI-3568).
|
|
37
|
+
|
|
4
38
|
1.0.0-beta.2 - March 5, 2025
|
|
5
39
|
----------
|
|
6
40
|
New Features:
|
|
@@ -16,7 +50,6 @@ API Changes:
|
|
|
16
50
|
* `embossShadow`, `overlayShadow`, `dragShadow`, and `modalShadow` variables have been updated in Enterprise themes to match Prisma (SUI-7334).
|
|
17
51
|
* Enterprise only tokens have been deprecated: `brandColor*`, `gray*`, `accentColor*`, `errorColor*`, `alertColor*`, `warningColor*`, `successColor*`, `infoColor*`, `diverging*Color*`, and `cat*Color*`.
|
|
18
52
|
|
|
19
|
-
|
|
20
53
|
1.0.0-beta.1 - February 20, 2025
|
|
21
54
|
----------
|
|
22
55
|
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.
|
|
@@ -367,84 +370,48 @@ var uiColors = {
|
|
|
367
370
|
};
|
|
368
371
|
|
|
369
372
|
/**
|
|
370
|
-
* ####
|
|
371
|
-
*
|
|
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.
|
|
372
379
|
*
|
|
373
380
|
* @categoryColor
|
|
374
381
|
*/
|
|
375
|
-
var
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Brighter, more prominent low-priority color.
|
|
410
|
-
*/
|
|
411
|
-
statusColorLowStrong: '',
|
|
412
|
-
/**
|
|
413
|
-
* Default color for medium-priority status messages.
|
|
414
|
-
*/
|
|
415
|
-
statusColorMedium: '',
|
|
416
|
-
/**
|
|
417
|
-
* Weaker, less prominent medium-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
418
|
-
*/
|
|
419
|
-
statusColorMediumWeak: '',
|
|
420
|
-
/**
|
|
421
|
-
* Brighter, more prominent medium-priority color.
|
|
422
|
-
*/
|
|
423
|
-
statusColorMediumStrong: '',
|
|
424
|
-
/**
|
|
425
|
-
* Default color for high-priority status messages.
|
|
426
|
-
*/
|
|
427
|
-
statusColorHigh: '',
|
|
428
|
-
/**
|
|
429
|
-
* Weaker, less prominent high-priority color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
430
|
-
*/
|
|
431
|
-
statusColorHighWeak: '',
|
|
432
|
-
/**
|
|
433
|
-
* Brighter, more prominent high-priority color.
|
|
434
|
-
*/
|
|
435
|
-
statusColorHighStrong: '',
|
|
436
|
-
/**
|
|
437
|
-
* Default color for critical alerts or urgent messages.
|
|
438
|
-
*/
|
|
439
|
-
statusColorCritical: '',
|
|
440
|
-
/**
|
|
441
|
-
* Weaker, less prominent critical color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
442
|
-
*/
|
|
443
|
-
statusColorCriticalWeak: '',
|
|
444
|
-
/**
|
|
445
|
-
* Brighter, more prominent critical color.
|
|
446
|
-
*/
|
|
447
|
-
statusColorCriticalStrong: ''
|
|
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: ''
|
|
448
415
|
};
|
|
449
416
|
|
|
450
417
|
/**
|
|
@@ -490,6 +457,6 @@ var borderColors = {
|
|
|
490
457
|
*/
|
|
491
458
|
borderColorStrong: ''
|
|
492
459
|
};
|
|
493
|
-
var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), interactiveColors), neutralColors), backgroundColors), contentColors), uiColors),
|
|
460
|
+
var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, actionColors), interactiveColors), neutralColors), backgroundColors), contentColors), uiColors), notificationColors), severityColors), syntaxColors), borderColors);
|
|
494
461
|
var _default = colors;
|
|
495
462
|
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
|
*/
|
|
@@ -83,6 +88,76 @@ var deprecated = {
|
|
|
83
88
|
* Use `interactiveColorOverlayHover` for Data Entry components or `actionColorBackgroundSecondaryHover` for Buttons.
|
|
84
89
|
*/
|
|
85
90
|
backgroundColorHover: '',
|
|
91
|
+
/**
|
|
92
|
+
* Don't use hover shadows - see notes on backgroundColorHover for hover affordances.
|
|
93
|
+
*/
|
|
94
|
+
hoverShadow: '',
|
|
95
|
+
/**
|
|
96
|
+
* Use `notificationColorInfo` or `severityColorInfo`
|
|
97
|
+
*/
|
|
98
|
+
statusColorInfo: '',
|
|
99
|
+
/**
|
|
100
|
+
* Use `notificationColorInfoWeak`
|
|
101
|
+
*/
|
|
102
|
+
statusColorInfoWeak: '',
|
|
103
|
+
/**
|
|
104
|
+
* Use `notificationColorInfoStrong`
|
|
105
|
+
*/
|
|
106
|
+
statusColorInfoStrong: '',
|
|
107
|
+
/**
|
|
108
|
+
* Use `notificationColorPositive` or `severityColorNormal`
|
|
109
|
+
*/
|
|
110
|
+
statusColorNormal: '',
|
|
111
|
+
/**
|
|
112
|
+
* Use `notificationColorPositiveWeak`
|
|
113
|
+
*/
|
|
114
|
+
statusColorNormalWeak: '',
|
|
115
|
+
/**
|
|
116
|
+
* Use `notificationColorPositiveStrong`
|
|
117
|
+
*/
|
|
118
|
+
statusColorNormalStrong: '',
|
|
119
|
+
/**
|
|
120
|
+
* Use `notificationColorCaution` or `severityColorNotice`
|
|
121
|
+
*/
|
|
122
|
+
statusColorLow: '',
|
|
123
|
+
/**
|
|
124
|
+
* Use `notificationColorCautionWeak`
|
|
125
|
+
*/
|
|
126
|
+
statusColorLowWeak: '',
|
|
127
|
+
/**
|
|
128
|
+
* Use `notificationColorCautionStrong`
|
|
129
|
+
*/
|
|
130
|
+
statusColorLowStrong: '',
|
|
131
|
+
/**
|
|
132
|
+
* Use `severityColorWarning`
|
|
133
|
+
*/
|
|
134
|
+
statusColorMedium: '',
|
|
135
|
+
statusColorMediumWeak: '',
|
|
136
|
+
statusColorMediumStrong: '',
|
|
137
|
+
/**
|
|
138
|
+
* Use `notificationColorNegative` or `severityColorAlert`
|
|
139
|
+
*/
|
|
140
|
+
statusColorHigh: '',
|
|
141
|
+
/**
|
|
142
|
+
* Use `notificationColorNegativeWeak`
|
|
143
|
+
*/
|
|
144
|
+
statusColorHighWeak: '',
|
|
145
|
+
/**
|
|
146
|
+
* Use `notificationColorNegativeStrong`
|
|
147
|
+
*/
|
|
148
|
+
statusColorHighStrong: '',
|
|
149
|
+
/**
|
|
150
|
+
* Default color for critical alerts or urgent messages.
|
|
151
|
+
*/
|
|
152
|
+
statusColorCritical: '',
|
|
153
|
+
/**
|
|
154
|
+
* Weaker, less prominent critical color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
155
|
+
*/
|
|
156
|
+
statusColorCriticalWeak: '',
|
|
157
|
+
/**
|
|
158
|
+
* Brighter, more prominent critical color.
|
|
159
|
+
*/
|
|
160
|
+
statusColorCriticalStrong: '',
|
|
86
161
|
brandColorL50: '',
|
|
87
162
|
brandColorL40: '',
|
|
88
163
|
brandColorL30: '',
|
|
@@ -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
|
*/
|
|
@@ -36,7 +38,6 @@ var elevationShadows = {
|
|
|
36
38
|
modalShadow: '',
|
|
37
39
|
focusShadow: '',
|
|
38
40
|
focusShadowInset: '',
|
|
39
|
-
hoverShadow: '',
|
|
40
41
|
draggableBackground: ''
|
|
41
42
|
};
|
|
42
43
|
var elevation = _objectSpread(_objectSpread({}, zIndexes), elevationShadows);
|
|
@@ -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 = {
|
|
@@ -32,6 +37,7 @@ var spacing = {
|
|
|
32
37
|
*/
|
|
33
38
|
var measures = {
|
|
34
39
|
borderRadius: '',
|
|
40
|
+
inputBorderWidth: '',
|
|
35
41
|
inputHeight: ''
|
|
36
42
|
};
|
|
37
43
|
var spacingSizing = _objectSpread(_objectSpread({}, spacing), measures);
|
|
@@ -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',
|
|
@@ -25,6 +18,7 @@ var measures = {
|
|
|
25
18
|
spacingXLarge: '24px',
|
|
26
19
|
spacingXXLarge: '32px',
|
|
27
20
|
spacingXXXLarge: '40px',
|
|
21
|
+
inputBorderWidth: '1px',
|
|
28
22
|
inputHeight: '32px',
|
|
29
23
|
borderRadius: '4px'
|
|
30
24
|
};
|
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',
|
|
@@ -25,6 +18,7 @@ var measures = {
|
|
|
25
18
|
spacingXLarge: '24px',
|
|
26
19
|
spacingXXLarge: '32px',
|
|
27
20
|
spacingXXXLarge: '40px',
|
|
21
|
+
inputBorderWidth: '1px',
|
|
28
22
|
inputHeight: '28px',
|
|
29
23
|
borderRadius: '4px'
|
|
30
24
|
};
|
package/enterprise/dark.js
CHANGED
|
@@ -14,46 +14,35 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
14
14
|
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); }
|
|
15
15
|
var dragHandleDark = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA1SURBVHgB7dKhEQAgDAPAhHmwSKZHYtmHVtZVVNTkXS53UeG57yPYazLmrB8o6h8QgPqBOAOboRAPJUGIOAAAAABJRU5ErkJggg=="; // see babel-plugin-base64-png
|
|
16
16
|
var dark = {
|
|
17
|
-
backgroundColorHover: _light["default"].gray30,
|
|
18
17
|
borderColor: '#75797a',
|
|
19
18
|
borderColorWeak: '#404547',
|
|
20
|
-
borderColorStrong: '#9c9fa0'
|
|
21
|
-
borderActiveColor: "rgba(225,225,225, 0.5)"
|
|
19
|
+
borderColorStrong: '#9c9fa0'
|
|
22
20
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
statusColorCriticalWeak: _light["default"].errorColorD20,
|
|
48
|
-
statusColorCriticalStrong: _light["default"].errorColor
|
|
21
|
+
var notificationColors = {
|
|
22
|
+
notificationColorInfoWeak: '#2E1B4B',
|
|
23
|
+
notificationColorInfo: '#AC75FF',
|
|
24
|
+
notificationColorInfoStrong: '#D1B2FF',
|
|
25
|
+
notificationColorPositiveWeak: '#092635',
|
|
26
|
+
notificationColorPositive: '#1AB2FF',
|
|
27
|
+
notificationColorPositiveStrong: '#99DDFF',
|
|
28
|
+
notificationColorCautionWeak: '#331E00',
|
|
29
|
+
notificationColorCaution: '#FFAF0F',
|
|
30
|
+
notificationColorCautionStrong: '#FDDC9B',
|
|
31
|
+
notificationColorNegativeWeak: '#391313',
|
|
32
|
+
notificationColorNegative: '#FF5252',
|
|
33
|
+
notificationColorNegativeStrong: '#FF9999'
|
|
34
|
+
};
|
|
35
|
+
var severityColors = {
|
|
36
|
+
severityColorCustom: '#868EC2',
|
|
37
|
+
severityColorUnknown: '#889099',
|
|
38
|
+
severityColorInfo: '#A974F7',
|
|
39
|
+
severityColorNormal: '#04A4B0',
|
|
40
|
+
severityColorNotice: '#D6900D',
|
|
41
|
+
severityColorWarning: '#F26722',
|
|
42
|
+
severityColorAlert: '#FA5762',
|
|
43
|
+
severityColorCritical: '#F2638C',
|
|
44
|
+
severityColorEmergency: '#E85FC6'
|
|
49
45
|
};
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* ## Syntax colors
|
|
53
|
-
* Syntax colors are used only for code blocks.
|
|
54
|
-
*
|
|
55
|
-
* @colorSet verbose alphabetical
|
|
56
|
-
*/
|
|
57
46
|
var syntaxColors = {
|
|
58
47
|
syntaxBlue: '#6cd0f0',
|
|
59
48
|
syntaxBrown: '#fccf87',
|
|
@@ -65,13 +54,6 @@ var syntaxColors = {
|
|
|
65
54
|
syntaxRed: '#fa94aa',
|
|
66
55
|
syntaxTeal: '#45d4ba'
|
|
67
56
|
};
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* ## Content colors
|
|
71
|
-
* Content colors should be used for text, icons and dividers.
|
|
72
|
-
*
|
|
73
|
-
* @colorSet verbose
|
|
74
|
-
*/
|
|
75
57
|
var contentColors = {
|
|
76
58
|
contentBackgroundColorNegativeWeak: 'rgba(160, 29, 38, 0.28)',
|
|
77
59
|
contentColorActive: _light["default"].white,
|
|
@@ -90,14 +72,6 @@ var contentColors = {
|
|
|
90
72
|
contentColorWarning: '#f8be34',
|
|
91
73
|
contentColorLink: _light["default"].accentColorL10
|
|
92
74
|
};
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* ## Action colors
|
|
96
|
-
* Action colors should be used for buttons.
|
|
97
|
-
*
|
|
98
|
-
* @colorSet verbose
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
75
|
var actionColors = {
|
|
102
76
|
actionColorBackgroundPrimary: '#1a8929',
|
|
103
77
|
actionColorBackgroundPrimaryActive: '#6eba78',
|
|
@@ -128,15 +102,7 @@ var actionColors = {
|
|
|
128
102
|
actionColorBorderDestructiveSecondaryDisabled: '#562a25',
|
|
129
103
|
actionColorBorderDestructiveSecondaryHover: '#ff8a80'
|
|
130
104
|
};
|
|
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
105
|
var interactiveColors = {
|
|
139
|
-
interactiveColorPrimary: _light["default"].brandColor,
|
|
140
106
|
interactiveColorBorder: _light["default"].gray60,
|
|
141
107
|
interactiveColorBorderActive: _light["default"].gray60,
|
|
142
108
|
interactiveColorBorderHover: 'rgba(255, 255, 255, 0.7)',
|
|
@@ -145,22 +111,15 @@ var interactiveColors = {
|
|
|
145
111
|
interactiveColorOverlayHover: 'rgba(255, 255, 255, 0.05)',
|
|
146
112
|
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.2)',
|
|
147
113
|
interactiveColorOverlayDrag: 'rgba(57, 147, 255, 0.16)',
|
|
148
|
-
interactiveColorBackground:
|
|
149
|
-
interactiveColorBackgroundDisabled:
|
|
114
|
+
interactiveColorBackground: 'transparent',
|
|
115
|
+
interactiveColorBackgroundDisabled: 'transparent',
|
|
150
116
|
interactiveColorAccent: '#1A8929',
|
|
151
117
|
interactiveColorAccentError: _light["default"].errorColorL10,
|
|
152
118
|
interactiveColorAccentErrorStrong: '#f1b9b3'
|
|
153
119
|
};
|
|
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
120
|
var neutralColors = {
|
|
163
121
|
white: '#ffffff',
|
|
122
|
+
neutral50: '#20262a',
|
|
164
123
|
neutral100: _light["default"].gray25,
|
|
165
124
|
neutral200: _light["default"].gray30,
|
|
166
125
|
neutral300: _light["default"].gray45,
|
|
@@ -169,13 +128,6 @@ var neutralColors = {
|
|
|
169
128
|
black: '#000000',
|
|
170
129
|
transparent: 'transparent'
|
|
171
130
|
};
|
|
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
131
|
var backgroundColors = {
|
|
180
132
|
backgroundColorDialog: _light["default"].gray20,
|
|
181
133
|
backgroundColorFloating: _light["default"].white,
|
|
@@ -186,21 +138,9 @@ var backgroundColors = {
|
|
|
186
138
|
backgroundColorSection: _light["default"].gray22,
|
|
187
139
|
backgroundColorSidebar: _light["default"].black
|
|
188
140
|
};
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* ## Backgrounds
|
|
192
|
-
*
|
|
193
|
-
* @colorSet verbose
|
|
194
|
-
*/
|
|
195
141
|
var backgrounds = {
|
|
196
142
|
draggableBackground: "url('data:image/png;base64,".concat(dragHandleDark, "') 0 0 / 8px 8px repeat")
|
|
197
143
|
};
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* ## Interactive state shadows
|
|
201
|
-
*
|
|
202
|
-
* @shadowSet
|
|
203
|
-
*/
|
|
204
144
|
var shadows = {
|
|
205
145
|
focusShadow: "0 0 0 2px ".concat(backgroundColors.backgroundColorPage, ", 0 0 0 5px ").concat(_light["default"].focusColor),
|
|
206
146
|
focusShadowInset: "inset 0 0 0 3px ".concat(_light["default"].focusColor),
|
|
@@ -212,6 +152,8 @@ var shadows = {
|
|
|
212
152
|
var deprecated = {
|
|
213
153
|
backgroundColor: _light["default"].gray20,
|
|
214
154
|
// @deprecated SUI-6656
|
|
155
|
+
backgroundColorHover: _light["default"].gray30,
|
|
156
|
+
borderActiveColor: "rgba(225,225,225, 0.5)",
|
|
215
157
|
borderLightColor: _light["default"].gray60,
|
|
216
158
|
// @deprecated, SUI-5981
|
|
217
159
|
// @deprecated, SUI-6160
|
|
@@ -227,8 +169,27 @@ var deprecated = {
|
|
|
227
169
|
linkColorHover: _light["default"].accentColorL20,
|
|
228
170
|
border: "1px solid ".concat(_light["default"].gray22),
|
|
229
171
|
borderDark: "1px solid ".concat(_light["default"].black),
|
|
230
|
-
borderLight: "1px solid ".concat(_light["default"].gray60)
|
|
172
|
+
borderLight: "1px solid ".concat(_light["default"].gray60),
|
|
173
|
+
interactiveColorPrimary: _light["default"].brandColor,
|
|
174
|
+
statusColorInfo: _light["default"].infoColor,
|
|
175
|
+
statusColorInfoWeak: _light["default"].infoColorD10,
|
|
176
|
+
statusColorInfoStrong: _light["default"].infoColorL10,
|
|
177
|
+
statusColorNormal: _light["default"].successColor,
|
|
178
|
+
statusColorNormalWeak: _light["default"].successColorD10,
|
|
179
|
+
statusColorNormalStrong: _light["default"].successColorL10,
|
|
180
|
+
statusColorLow: _light["default"].warningColor,
|
|
181
|
+
statusColorLowWeak: _light["default"].warningColorD10,
|
|
182
|
+
statusColorLowStrong: _light["default"].warningColorL10,
|
|
183
|
+
statusColorMedium: _light["default"].alertColor,
|
|
184
|
+
statusColorMediumWeak: _light["default"].alertColorD10,
|
|
185
|
+
statusColorMediumStrong: _light["default"].alertColorL10,
|
|
186
|
+
statusColorHigh: _light["default"].errorColor,
|
|
187
|
+
statusColorHighWeak: _light["default"].errorColorD10,
|
|
188
|
+
statusColorHighStrong: _light["default"].errorColorL10,
|
|
189
|
+
statusColorCritical: _light["default"].errorColorD10,
|
|
190
|
+
statusColorCriticalWeak: _light["default"].errorColorD20,
|
|
191
|
+
statusColorCriticalStrong: _light["default"].errorColor
|
|
231
192
|
};
|
|
232
|
-
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _light["default"]), dark), actionColors),
|
|
193
|
+
var theme = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _light["default"]), dark), actionColors), notificationColors), severityColors), backgroundColors), neutralColors), syntaxColors), contentColors), shadows), interactiveColors), deprecated), backgrounds);
|
|
233
194
|
var _default = theme;
|
|
234
195
|
exports["default"] = _default;
|