@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
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
* @categoryValue
|
|
5
5
|
*/
|
|
6
6
|
declare const deprecated: {
|
|
7
|
+
/**
|
|
8
|
+
* Use a more specific token based on the semantic use case:
|
|
9
|
+
* [`interactiveColorAccent`](#interactiveColorAccent), [`contentColorAccent`](#contentColorAccent), or [`focusColor`](#focusColor).
|
|
10
|
+
*/
|
|
11
|
+
interactiveColorPrimary: string;
|
|
7
12
|
/**
|
|
8
13
|
* Use `statusColorNormal`, `accentColor`, or ...
|
|
9
14
|
*/
|
|
@@ -71,6 +76,76 @@ declare const deprecated: {
|
|
|
71
76
|
* Use `interactiveColorOverlayHover` for Data Entry components or `actionColorBackgroundSecondaryHover` for Buttons.
|
|
72
77
|
*/
|
|
73
78
|
backgroundColorHover: string;
|
|
79
|
+
/**
|
|
80
|
+
* Don't use hover shadows - see notes on backgroundColorHover for hover affordances.
|
|
81
|
+
*/
|
|
82
|
+
hoverShadow: string;
|
|
83
|
+
/**
|
|
84
|
+
* Use `notificationColorInfo` or `severityColorInfo`
|
|
85
|
+
*/
|
|
86
|
+
statusColorInfo: string;
|
|
87
|
+
/**
|
|
88
|
+
* Use `notificationColorInfoWeak`
|
|
89
|
+
*/
|
|
90
|
+
statusColorInfoWeak: string;
|
|
91
|
+
/**
|
|
92
|
+
* Use `notificationColorInfoStrong`
|
|
93
|
+
*/
|
|
94
|
+
statusColorInfoStrong: string;
|
|
95
|
+
/**
|
|
96
|
+
* Use `notificationColorPositive` or `severityColorNormal`
|
|
97
|
+
*/
|
|
98
|
+
statusColorNormal: string;
|
|
99
|
+
/**
|
|
100
|
+
* Use `notificationColorPositiveWeak`
|
|
101
|
+
*/
|
|
102
|
+
statusColorNormalWeak: string;
|
|
103
|
+
/**
|
|
104
|
+
* Use `notificationColorPositiveStrong`
|
|
105
|
+
*/
|
|
106
|
+
statusColorNormalStrong: string;
|
|
107
|
+
/**
|
|
108
|
+
* Use `notificationColorCaution` or `severityColorNotice`
|
|
109
|
+
*/
|
|
110
|
+
statusColorLow: string;
|
|
111
|
+
/**
|
|
112
|
+
* Use `notificationColorCautionWeak`
|
|
113
|
+
*/
|
|
114
|
+
statusColorLowWeak: string;
|
|
115
|
+
/**
|
|
116
|
+
* Use `notificationColorCautionStrong`
|
|
117
|
+
*/
|
|
118
|
+
statusColorLowStrong: string;
|
|
119
|
+
/**
|
|
120
|
+
* Use `severityColorWarning`
|
|
121
|
+
*/
|
|
122
|
+
statusColorMedium: string;
|
|
123
|
+
statusColorMediumWeak: string;
|
|
124
|
+
statusColorMediumStrong: string;
|
|
125
|
+
/**
|
|
126
|
+
* Use `notificationColorNegative` or `severityColorAlert`
|
|
127
|
+
*/
|
|
128
|
+
statusColorHigh: string;
|
|
129
|
+
/**
|
|
130
|
+
* Use `notificationColorNegativeWeak`
|
|
131
|
+
*/
|
|
132
|
+
statusColorHighWeak: string;
|
|
133
|
+
/**
|
|
134
|
+
* Use `notificationColorNegativeStrong`
|
|
135
|
+
*/
|
|
136
|
+
statusColorHighStrong: string;
|
|
137
|
+
/**
|
|
138
|
+
* Default color for critical alerts or urgent messages.
|
|
139
|
+
*/
|
|
140
|
+
statusColorCritical: string;
|
|
141
|
+
/**
|
|
142
|
+
* Weaker, less prominent critical color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
143
|
+
*/
|
|
144
|
+
statusColorCriticalWeak: string;
|
|
145
|
+
/**
|
|
146
|
+
* Brighter, more prominent critical color.
|
|
147
|
+
*/
|
|
148
|
+
statusColorCriticalStrong: string;
|
|
74
149
|
brandColorL50: string;
|
|
75
150
|
brandColorL40: string;
|
|
76
151
|
brandColorL30: string;
|
|
@@ -236,6 +311,11 @@ declare const deprecated: {
|
|
|
236
311
|
type Deprecated = typeof deprecated;
|
|
237
312
|
export type { Deprecated };
|
|
238
313
|
declare const _default: {
|
|
314
|
+
/**
|
|
315
|
+
* Use a more specific token based on the semantic use case:
|
|
316
|
+
* [`interactiveColorAccent`](#interactiveColorAccent), [`contentColorAccent`](#contentColorAccent), or [`focusColor`](#focusColor).
|
|
317
|
+
*/
|
|
318
|
+
interactiveColorPrimary: string;
|
|
239
319
|
/**
|
|
240
320
|
* Use `statusColorNormal`, `accentColor`, or ...
|
|
241
321
|
*/
|
|
@@ -303,6 +383,76 @@ declare const _default: {
|
|
|
303
383
|
* Use `interactiveColorOverlayHover` for Data Entry components or `actionColorBackgroundSecondaryHover` for Buttons.
|
|
304
384
|
*/
|
|
305
385
|
backgroundColorHover: string;
|
|
386
|
+
/**
|
|
387
|
+
* Don't use hover shadows - see notes on backgroundColorHover for hover affordances.
|
|
388
|
+
*/
|
|
389
|
+
hoverShadow: string;
|
|
390
|
+
/**
|
|
391
|
+
* Use `notificationColorInfo` or `severityColorInfo`
|
|
392
|
+
*/
|
|
393
|
+
statusColorInfo: string;
|
|
394
|
+
/**
|
|
395
|
+
* Use `notificationColorInfoWeak`
|
|
396
|
+
*/
|
|
397
|
+
statusColorInfoWeak: string;
|
|
398
|
+
/**
|
|
399
|
+
* Use `notificationColorInfoStrong`
|
|
400
|
+
*/
|
|
401
|
+
statusColorInfoStrong: string;
|
|
402
|
+
/**
|
|
403
|
+
* Use `notificationColorPositive` or `severityColorNormal`
|
|
404
|
+
*/
|
|
405
|
+
statusColorNormal: string;
|
|
406
|
+
/**
|
|
407
|
+
* Use `notificationColorPositiveWeak`
|
|
408
|
+
*/
|
|
409
|
+
statusColorNormalWeak: string;
|
|
410
|
+
/**
|
|
411
|
+
* Use `notificationColorPositiveStrong`
|
|
412
|
+
*/
|
|
413
|
+
statusColorNormalStrong: string;
|
|
414
|
+
/**
|
|
415
|
+
* Use `notificationColorCaution` or `severityColorNotice`
|
|
416
|
+
*/
|
|
417
|
+
statusColorLow: string;
|
|
418
|
+
/**
|
|
419
|
+
* Use `notificationColorCautionWeak`
|
|
420
|
+
*/
|
|
421
|
+
statusColorLowWeak: string;
|
|
422
|
+
/**
|
|
423
|
+
* Use `notificationColorCautionStrong`
|
|
424
|
+
*/
|
|
425
|
+
statusColorLowStrong: string;
|
|
426
|
+
/**
|
|
427
|
+
* Use `severityColorWarning`
|
|
428
|
+
*/
|
|
429
|
+
statusColorMedium: string;
|
|
430
|
+
statusColorMediumWeak: string;
|
|
431
|
+
statusColorMediumStrong: string;
|
|
432
|
+
/**
|
|
433
|
+
* Use `notificationColorNegative` or `severityColorAlert`
|
|
434
|
+
*/
|
|
435
|
+
statusColorHigh: string;
|
|
436
|
+
/**
|
|
437
|
+
* Use `notificationColorNegativeWeak`
|
|
438
|
+
*/
|
|
439
|
+
statusColorHighWeak: string;
|
|
440
|
+
/**
|
|
441
|
+
* Use `notificationColorNegativeStrong`
|
|
442
|
+
*/
|
|
443
|
+
statusColorHighStrong: string;
|
|
444
|
+
/**
|
|
445
|
+
* Default color for critical alerts or urgent messages.
|
|
446
|
+
*/
|
|
447
|
+
statusColorCritical: string;
|
|
448
|
+
/**
|
|
449
|
+
* Weaker, less prominent critical color, does not pass 3:1 graphical or 4.5:1 text contrast.
|
|
450
|
+
*/
|
|
451
|
+
statusColorCriticalWeak: string;
|
|
452
|
+
/**
|
|
453
|
+
* Brighter, more prominent critical color.
|
|
454
|
+
*/
|
|
455
|
+
statusColorCriticalStrong: string;
|
|
306
456
|
brandColorL50: string;
|
|
307
457
|
brandColorL40: string;
|
|
308
458
|
brandColorL30: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* #### Z Indexes
|
|
3
|
+
* Used to position elements in the z-axis.
|
|
4
|
+
* If a variable does not suit your purpose, set a value relatively, such as `zindexModal +1`.
|
|
3
5
|
*
|
|
4
6
|
* @categoryValue
|
|
5
7
|
*/
|
|
@@ -23,7 +25,6 @@ declare const elevationShadows: {
|
|
|
23
25
|
modalShadow: string;
|
|
24
26
|
focusShadow: string;
|
|
25
27
|
focusShadowInset: string;
|
|
26
|
-
hoverShadow: string;
|
|
27
28
|
draggableBackground: string;
|
|
28
29
|
};
|
|
29
30
|
declare const elevation: {
|
|
@@ -33,7 +34,6 @@ declare const elevation: {
|
|
|
33
34
|
modalShadow: string;
|
|
34
35
|
focusShadow: string;
|
|
35
36
|
focusShadowInset: string;
|
|
36
|
-
hoverShadow: string;
|
|
37
37
|
draggableBackground: string;
|
|
38
38
|
zindexLayer: number;
|
|
39
39
|
zindexFixedNavbar: number;
|
|
@@ -228,6 +228,7 @@ declare const designTokens: {
|
|
|
228
228
|
serifFontFamily: string;
|
|
229
229
|
monoFontFamily: string;
|
|
230
230
|
borderRadius: string;
|
|
231
|
+
inputBorderWidth: string;
|
|
231
232
|
inputHeight: string;
|
|
232
233
|
spacingXSmall: string;
|
|
233
234
|
spacingSmall: string;
|
|
@@ -242,7 +243,6 @@ declare const designTokens: {
|
|
|
242
243
|
modalShadow: string;
|
|
243
244
|
focusShadow: string;
|
|
244
245
|
focusShadowInset: string;
|
|
245
|
-
hoverShadow: string;
|
|
246
246
|
draggableBackground: string;
|
|
247
247
|
zindexLayer: number;
|
|
248
248
|
zindexFixedNavbar: number;
|
|
@@ -250,6 +250,7 @@ declare const designTokens: {
|
|
|
250
250
|
zindexModal: number;
|
|
251
251
|
zindexPopover: number;
|
|
252
252
|
zindexToastMessages: number;
|
|
253
|
+
interactiveColorPrimary: string;
|
|
253
254
|
accentColorPositive: string;
|
|
254
255
|
accentColorWarning: string;
|
|
255
256
|
accentColorAlert: string;
|
|
@@ -269,6 +270,25 @@ declare const designTokens: {
|
|
|
269
270
|
borderLight: string;
|
|
270
271
|
borderActiveColor: string;
|
|
271
272
|
backgroundColorHover: string;
|
|
273
|
+
hoverShadow: string;
|
|
274
|
+
statusColorInfo: string;
|
|
275
|
+
statusColorInfoWeak: string;
|
|
276
|
+
statusColorInfoStrong: string;
|
|
277
|
+
statusColorNormal: string;
|
|
278
|
+
statusColorNormalWeak: string;
|
|
279
|
+
statusColorNormalStrong: string;
|
|
280
|
+
statusColorLow: string;
|
|
281
|
+
statusColorLowWeak: string;
|
|
282
|
+
statusColorLowStrong: string;
|
|
283
|
+
statusColorMedium: string;
|
|
284
|
+
statusColorMediumWeak: string;
|
|
285
|
+
statusColorMediumStrong: string;
|
|
286
|
+
statusColorHigh: string;
|
|
287
|
+
statusColorHighWeak: string;
|
|
288
|
+
statusColorHighStrong: string;
|
|
289
|
+
statusColorCritical: string;
|
|
290
|
+
statusColorCriticalWeak: string;
|
|
291
|
+
statusColorCriticalStrong: string;
|
|
272
292
|
brandColorL50: string;
|
|
273
293
|
brandColorL40: string;
|
|
274
294
|
brandColorL30: string;
|
|
@@ -442,24 +462,27 @@ declare const designTokens: {
|
|
|
442
462
|
syntaxPurple: string;
|
|
443
463
|
syntaxRed: string;
|
|
444
464
|
syntaxTeal: string;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
465
|
+
severityColorCustom: string;
|
|
466
|
+
severityColorUnknown: string;
|
|
467
|
+
severityColorInfo: string;
|
|
468
|
+
severityColorNormal: string;
|
|
469
|
+
severityColorNotice: string;
|
|
470
|
+
severityColorWarning: string;
|
|
471
|
+
severityColorAlert: string;
|
|
472
|
+
severityColorCritical: string;
|
|
473
|
+
severityColorEmergency: string;
|
|
474
|
+
notificationColorInfoWeak: string;
|
|
475
|
+
notificationColorInfo: string;
|
|
476
|
+
notificationColorInfoStrong: string;
|
|
477
|
+
notificationColorPositiveWeak: string;
|
|
478
|
+
notificationColorPositive: string;
|
|
479
|
+
notificationColorPositiveStrong: string;
|
|
480
|
+
notificationColorCautionWeak: string;
|
|
481
|
+
notificationColorCaution: string;
|
|
482
|
+
notificationColorCautionStrong: string;
|
|
483
|
+
notificationColorNegativeWeak: string;
|
|
484
|
+
notificationColorNegative: string;
|
|
485
|
+
notificationColorNegativeStrong: string;
|
|
463
486
|
focusColor: string;
|
|
464
487
|
contentBackgroundColorNegativeWeak: string;
|
|
465
488
|
contentColorLink: string;
|
|
@@ -486,6 +509,7 @@ declare const designTokens: {
|
|
|
486
509
|
backgroundColorFloating: string;
|
|
487
510
|
backgroundColorScrim: string;
|
|
488
511
|
black: string;
|
|
512
|
+
neutral50: string;
|
|
489
513
|
neutral100: string;
|
|
490
514
|
neutral200: string;
|
|
491
515
|
neutral300: string;
|
|
@@ -493,7 +517,6 @@ declare const designTokens: {
|
|
|
493
517
|
neutral500: string;
|
|
494
518
|
white: string;
|
|
495
519
|
transparent: string;
|
|
496
|
-
interactiveColorPrimary: string;
|
|
497
520
|
interactiveColorBorder: string;
|
|
498
521
|
interactiveColorBorderActive: string;
|
|
499
522
|
interactiveColorBorderHover: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* #### Spacing
|
|
3
3
|
*
|
|
4
|
+
* Use these tokens for adding margin between elements or padding within containers.
|
|
5
|
+
*
|
|
6
|
+
* Just because a spacing token is equal to a pixel value you may need, it does not mean it's appropriate to
|
|
7
|
+
* use the spacing variables.
|
|
8
|
+
*
|
|
4
9
|
* @categorySpacing
|
|
5
10
|
*/
|
|
6
11
|
declare const spacing: {
|
|
@@ -19,10 +24,12 @@ declare const spacing: {
|
|
|
19
24
|
*/
|
|
20
25
|
declare const measures: {
|
|
21
26
|
borderRadius: string;
|
|
27
|
+
inputBorderWidth: string;
|
|
22
28
|
inputHeight: string;
|
|
23
29
|
};
|
|
24
30
|
declare const spacingSizing: {
|
|
25
31
|
borderRadius: string;
|
|
32
|
+
inputBorderWidth: string;
|
|
26
33
|
inputHeight: string;
|
|
27
34
|
spacingXSmall: string;
|
|
28
35
|
spacingSmall: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
2
|
draggableBackground: string;
|
|
3
|
+
interactiveColorPrimary: string;
|
|
3
4
|
accentColorPositive: string;
|
|
4
5
|
accentColorWarning: string;
|
|
5
6
|
accentColorAlert: string;
|
|
@@ -14,7 +15,26 @@ declare const theme: {
|
|
|
14
15
|
border: string;
|
|
15
16
|
borderDark: string;
|
|
16
17
|
borderLight: string;
|
|
17
|
-
|
|
18
|
+
borderActiveColor: string;
|
|
19
|
+
backgroundColorHover: string;
|
|
20
|
+
statusColorInfo: string;
|
|
21
|
+
statusColorInfoWeak: string;
|
|
22
|
+
statusColorInfoStrong: string;
|
|
23
|
+
statusColorNormal: string;
|
|
24
|
+
statusColorNormalWeak: string;
|
|
25
|
+
statusColorNormalStrong: string;
|
|
26
|
+
statusColorLow: string;
|
|
27
|
+
statusColorLowWeak: string;
|
|
28
|
+
statusColorLowStrong: string;
|
|
29
|
+
statusColorMedium: string;
|
|
30
|
+
statusColorMediumWeak: string;
|
|
31
|
+
statusColorMediumStrong: string;
|
|
32
|
+
statusColorHigh: string;
|
|
33
|
+
statusColorHighWeak: string;
|
|
34
|
+
statusColorHighStrong: string;
|
|
35
|
+
statusColorCritical: string;
|
|
36
|
+
statusColorCriticalWeak: string;
|
|
37
|
+
statusColorCriticalStrong: string;
|
|
18
38
|
interactiveColorBorder: string;
|
|
19
39
|
interactiveColorBorderActive: string;
|
|
20
40
|
interactiveColorBorderHover: string;
|
|
@@ -60,6 +80,7 @@ declare const theme: {
|
|
|
60
80
|
syntaxRed: string;
|
|
61
81
|
syntaxTeal: string;
|
|
62
82
|
black: string;
|
|
83
|
+
neutral50: string;
|
|
63
84
|
neutral100: string;
|
|
64
85
|
neutral200: string;
|
|
65
86
|
neutral300: string;
|
|
@@ -75,24 +96,27 @@ declare const theme: {
|
|
|
75
96
|
backgroundColorPopup: string;
|
|
76
97
|
backgroundColorFloating: string;
|
|
77
98
|
backgroundColorScrim: string;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
severityColorCustom: string;
|
|
100
|
+
severityColorUnknown: string;
|
|
101
|
+
severityColorInfo: string;
|
|
102
|
+
severityColorNormal: string;
|
|
103
|
+
severityColorNotice: string;
|
|
104
|
+
severityColorWarning: string;
|
|
105
|
+
severityColorAlert: string;
|
|
106
|
+
severityColorCritical: string;
|
|
107
|
+
severityColorEmergency: string;
|
|
108
|
+
notificationColorInfoWeak: string;
|
|
109
|
+
notificationColorInfo: string;
|
|
110
|
+
notificationColorInfoStrong: string;
|
|
111
|
+
notificationColorPositiveWeak: string;
|
|
112
|
+
notificationColorPositive: string;
|
|
113
|
+
notificationColorPositiveStrong: string;
|
|
114
|
+
notificationColorCautionWeak: string;
|
|
115
|
+
notificationColorCaution: string;
|
|
116
|
+
notificationColorCautionStrong: string;
|
|
117
|
+
notificationColorNegativeWeak: string;
|
|
118
|
+
notificationColorNegative: string;
|
|
119
|
+
notificationColorNegativeStrong: string;
|
|
96
120
|
actionColorBackgroundPrimary: string;
|
|
97
121
|
actionColorBackgroundPrimaryActive: string;
|
|
98
122
|
actionColorBackgroundPrimaryDisabled: string;
|
|
@@ -107,12 +131,7 @@ declare const theme: {
|
|
|
107
131
|
actionColorBackgroundSubtleHover: string;
|
|
108
132
|
actionColorBackgroundDestructive: string;
|
|
109
133
|
actionColorBackgroundDestructiveActive: string;
|
|
110
|
-
actionColorBackgroundDestructiveDisabled: string;
|
|
111
|
-
* ## Syntax colors
|
|
112
|
-
* Syntax colors are used only for code blocks.
|
|
113
|
-
*
|
|
114
|
-
* @colorSet verbose alphabetical
|
|
115
|
-
*/
|
|
134
|
+
actionColorBackgroundDestructiveDisabled: string;
|
|
116
135
|
actionColorBackgroundDestructiveHover: string;
|
|
117
136
|
actionColorBackgroundDestructiveSecondary: string;
|
|
118
137
|
actionColorBackgroundDestructiveSecondaryActive: string;
|
|
@@ -126,11 +145,9 @@ declare const theme: {
|
|
|
126
145
|
actionColorBorderDestructiveSecondaryActive: string;
|
|
127
146
|
actionColorBorderDestructiveSecondaryDisabled: string;
|
|
128
147
|
actionColorBorderDestructiveSecondaryHover: string;
|
|
129
|
-
backgroundColorHover: string;
|
|
130
148
|
borderColor: string;
|
|
131
149
|
borderColorWeak: string;
|
|
132
150
|
borderColorStrong: string;
|
|
133
|
-
borderActiveColor: string;
|
|
134
151
|
brandColorL50: string;
|
|
135
152
|
brandColorL40: string;
|
|
136
153
|
brandColorL30: string;
|
|
@@ -295,12 +312,7 @@ declare const theme: {
|
|
|
295
312
|
sequential6D4: string;
|
|
296
313
|
sequential6D5: string;
|
|
297
314
|
sequential6D6: string;
|
|
298
|
-
sequential6D7: string;
|
|
299
|
-
* ## Background colors
|
|
300
|
-
* Background colors should be used only for backgrounds of higher level sections & containers of a UI.
|
|
301
|
-
*
|
|
302
|
-
* @colorSet verbose
|
|
303
|
-
*/
|
|
315
|
+
sequential6D7: string;
|
|
304
316
|
sequential5L1: string;
|
|
305
317
|
sequential5L2: string;
|
|
306
318
|
sequential5L3: string;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { Categorical, DataViz, Divergent, HighLow, Sequential, StaticColors } from '../design-tokens/dataViz';
|
|
2
|
-
/**
|
|
3
|
-
* #### Static colors
|
|
4
|
-
*
|
|
5
|
-
* @colorSet verbose
|
|
6
|
-
*/
|
|
7
2
|
declare const staticColors: StaticColors;
|
|
8
3
|
declare const categorical: Categorical;
|
|
9
4
|
declare const divergent: Divergent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
+
interactiveColorPrimary: string;
|
|
2
3
|
accentColorPositive: string;
|
|
3
4
|
accentColorWarning: string;
|
|
4
5
|
accentColorAlert: string;
|
|
@@ -11,6 +12,26 @@ declare const theme: {
|
|
|
11
12
|
textDisabledColor: string;
|
|
12
13
|
backgroundColor: string;
|
|
13
14
|
border: string;
|
|
15
|
+
borderActiveColor: string;
|
|
16
|
+
backgroundColorHover: string;
|
|
17
|
+
statusColorInfo: string;
|
|
18
|
+
statusColorInfoWeak: string;
|
|
19
|
+
statusColorInfoStrong: string;
|
|
20
|
+
statusColorNormal: string;
|
|
21
|
+
statusColorNormalWeak: string;
|
|
22
|
+
statusColorNormalStrong: string;
|
|
23
|
+
statusColorLow: string;
|
|
24
|
+
statusColorLowWeak: string;
|
|
25
|
+
statusColorLowStrong: string;
|
|
26
|
+
statusColorMedium: string;
|
|
27
|
+
statusColorMediumWeak: string;
|
|
28
|
+
statusColorMediumStrong: string;
|
|
29
|
+
statusColorHigh: string;
|
|
30
|
+
statusColorHighWeak: string;
|
|
31
|
+
statusColorHighStrong: string;
|
|
32
|
+
statusColorCritical: string;
|
|
33
|
+
statusColorCriticalWeak: string;
|
|
34
|
+
statusColorCriticalStrong: string;
|
|
14
35
|
brandColorL50: string;
|
|
15
36
|
brandColorL40: string;
|
|
16
37
|
brandColorL30: string;
|
|
@@ -293,12 +314,7 @@ declare const theme: {
|
|
|
293
314
|
divergent1L3: string;
|
|
294
315
|
divergent1L4: string;
|
|
295
316
|
divergent1L5: string;
|
|
296
|
-
divergent1L6: string;
|
|
297
|
-
* ## Neutral colors
|
|
298
|
-
* Neutrals are used for dividers and as backup colors that can sparingly be used for cases, when the other defined colors are not enough.
|
|
299
|
-
*
|
|
300
|
-
* @colorSet verbose
|
|
301
|
-
*/
|
|
317
|
+
divergent1L6: string;
|
|
302
318
|
divergent1L7: string;
|
|
303
319
|
divergent1D1: string;
|
|
304
320
|
divergent1D2: string;
|
|
@@ -361,7 +377,6 @@ declare const theme: {
|
|
|
361
377
|
zindexModal: number;
|
|
362
378
|
zindexPopover: number;
|
|
363
379
|
zindexToastMessages: number;
|
|
364
|
-
interactiveColorPrimary: string;
|
|
365
380
|
interactiveColorBorder: string;
|
|
366
381
|
interactiveColorBorderActive: string;
|
|
367
382
|
interactiveColorBorderHover: string;
|
|
@@ -412,8 +427,6 @@ declare const theme: {
|
|
|
412
427
|
focusShadow: string;
|
|
413
428
|
focusShadowInset: string;
|
|
414
429
|
draggableBackground: string;
|
|
415
|
-
borderActiveColor: string;
|
|
416
|
-
backgroundColorHover: string;
|
|
417
430
|
borderColor: string;
|
|
418
431
|
borderColorWeak: string;
|
|
419
432
|
borderColorStrong: string;
|
|
@@ -431,31 +444,29 @@ declare const theme: {
|
|
|
431
444
|
overlayShadow: string;
|
|
432
445
|
dragShadow: string;
|
|
433
446
|
modalShadow: string;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
statusColorCritical: string;
|
|
456
|
-
statusColorCriticalWeak: string;
|
|
457
|
-
statusColorCriticalStrong: string;
|
|
447
|
+
severityColorCustom: string;
|
|
448
|
+
severityColorUnknown: string;
|
|
449
|
+
severityColorInfo: string;
|
|
450
|
+
severityColorNormal: string;
|
|
451
|
+
severityColorNotice: string;
|
|
452
|
+
severityColorWarning: string;
|
|
453
|
+
severityColorAlert: string;
|
|
454
|
+
severityColorCritical: string;
|
|
455
|
+
severityColorEmergency: string;
|
|
456
|
+
notificationColorInfoWeak: string;
|
|
457
|
+
notificationColorInfo: string;
|
|
458
|
+
notificationColorInfoStrong: string;
|
|
459
|
+
notificationColorPositiveWeak: string;
|
|
460
|
+
notificationColorPositive: string;
|
|
461
|
+
notificationColorPositiveStrong: string;
|
|
462
|
+
notificationColorCautionWeak: string;
|
|
463
|
+
notificationColorCaution: string;
|
|
464
|
+
notificationColorCautionStrong: string;
|
|
465
|
+
notificationColorNegativeWeak: string;
|
|
466
|
+
notificationColorNegative: string;
|
|
467
|
+
notificationColorNegativeStrong: string;
|
|
458
468
|
black: string;
|
|
469
|
+
neutral50: string;
|
|
459
470
|
neutral100: string;
|
|
460
471
|
neutral200: string;
|
|
461
472
|
neutral300: string;
|
package/types/getTheme.d.ts
CHANGED
package/types/mixins/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
layout: typeof layout;
|
|
13
13
|
prose: typeof prose;
|
|
14
14
|
typography: typeof typography;
|
|
15
|
-
reset: <T extends import("
|
|
15
|
+
reset: <T extends import("..").AnyTheme, A extends import("..").ThemedProps>(display?: string) => import("..").Interpolation<T, A>;
|
|
16
16
|
clearfix: typeof import("./utilityMixins").clearfix;
|
|
17
17
|
ellipsis: typeof import("./utilityMixins").ellipsis;
|
|
18
18
|
printWidth100Percent: typeof import("./utilityMixins").printWidth100Percent;
|
|
@@ -23,7 +23,7 @@ import { AnyTheme, Interpolation, ThemedProps, OptionalThemedProps } from '../ty
|
|
|
23
23
|
* @param {string} [display=inline] Set the `display` property (block, inline-block, …)
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
|
-
export declare const reset: <T extends AnyTheme, A extends ThemedProps
|
|
26
|
+
export declare const reset: <T extends AnyTheme, A extends ThemedProps>(display?: string) => Interpolation<T, A>;
|
|
27
27
|
/**
|
|
28
28
|
* `clearfix` is used on a container to ensure its height is at least as tall as any floating
|
|
29
29
|
* children.
|
|
@@ -159,10 +159,10 @@ type ColorParameter<T extends AnyTheme> = string | TemplateFunction<T>;
|
|
|
159
159
|
* ```js
|
|
160
160
|
* import styled from 'styled-components';
|
|
161
161
|
* import { overlayColors } from '@splunk/themes/mixins';
|
|
162
|
-
* import {
|
|
162
|
+
* import { interactiveColorAccent, interactiveColorOverlaySelected } from '@splunk/themes/variables';
|
|
163
163
|
*
|
|
164
164
|
* const myButton = styled.button`
|
|
165
|
-
* background: ${overlayColors(
|
|
165
|
+
* background: ${overlayColors(interactiveColorAccent, interactiveColorOverlaySelected)};
|
|
166
166
|
* `
|
|
167
167
|
* ```
|
|
168
168
|
* @name overlayColors
|
|
@@ -179,10 +179,10 @@ export declare function overlayColors<T extends AnyTheme>(c1: ColorParameter<T>,
|
|
|
179
179
|
* ```js
|
|
180
180
|
* import styled from 'styled-components';
|
|
181
181
|
* import { colorWithAlpha } from '@splunk/themes/mixins';
|
|
182
|
-
* import {
|
|
182
|
+
* import { actionColorBackgroundPrimary } from '@splunk/themes/variables';
|
|
183
183
|
*
|
|
184
184
|
* const myButton = styled.button`
|
|
185
|
-
* background: ${colorWithAlpha(
|
|
185
|
+
* background: ${colorWithAlpha(actionColorBackgroundPrimary, 0.5)};
|
|
186
186
|
* `
|
|
187
187
|
* ```
|
|
188
188
|
* @name colorWithAlpha
|
|
@@ -193,7 +193,7 @@ export declare function overlayColors<T extends AnyTheme>(c1: ColorParameter<T>,
|
|
|
193
193
|
*/
|
|
194
194
|
export declare function colorWithAlpha<T extends AnyTheme>(color: ColorParameter<T>, alpha: number): (props: OptionalThemedProps<T>) => string;
|
|
195
195
|
declare const _default: {
|
|
196
|
-
reset: <T extends AnyTheme, A extends ThemedProps
|
|
196
|
+
reset: <T extends AnyTheme, A extends ThemedProps>(display?: string) => Interpolation<T, A>;
|
|
197
197
|
clearfix: typeof clearfix;
|
|
198
198
|
ellipsis: typeof ellipsis;
|
|
199
199
|
printWidth100Percent: typeof printWidth100Percent;
|
package/types/prisma/base.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ declare function createPrismaBase({ colorScheme }: {
|
|
|
3
3
|
colorScheme: ColorScheme;
|
|
4
4
|
}): {
|
|
5
5
|
linkColor: string;
|
|
6
|
+
hoverShadow: string;
|
|
6
7
|
zindexLayer: number;
|
|
7
8
|
zindexFixedNavbar: number;
|
|
8
9
|
zindexModalBackdrop: number;
|
|
@@ -15,7 +16,6 @@ declare function createPrismaBase({ colorScheme }: {
|
|
|
15
16
|
borderColorStrong: string;
|
|
16
17
|
focusShadow: string;
|
|
17
18
|
focusShadowInset: string;
|
|
18
|
-
hoverShadow: string;
|
|
19
19
|
highLow4LHigh: string;
|
|
20
20
|
highLow4LLow: string;
|
|
21
21
|
highLow4DHigh: string;
|