@splunk/themes 1.4.1 → 1.6.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 +19 -0
- package/design-tokens/colors.js +27 -25
- package/design-tokens/dataViz.js +33 -33
- package/design-tokens/deprecated.js +233 -39
- package/design-tokens/elevation.js +3 -4
- package/design-tokens/spacing-sizing.js +4 -2
- package/design-tokens/typography.js +14 -4
- package/enterprise/dark.js +3 -5
- package/enterprise/light.js +5 -6
- package/getTheme.js +3 -2
- package/mixins/prose.js +6 -6
- package/mixins/resets.js +2 -2
- package/package.json +5 -1
- package/prisma/base.js +3 -4
- package/prisma/light.js +2 -2
- package/splunk-magnetic/index.js +1 -1
- package/tokens.json +15153 -0
- package/types/design-tokens/colors.d.ts +41 -39
- package/types/design-tokens/dataViz.d.ts +1 -1
- package/types/design-tokens/deprecated.d.ts +452 -75
- package/types/design-tokens/elevation.d.ts +2 -4
- package/types/design-tokens/index.d.ts +2 -1
- package/types/design-tokens/spacing-sizing.d.ts +4 -2
- package/types/design-tokens/typography.d.ts +23 -4
- package/types/enterprise/dark.d.ts +2 -1
- package/types/enterprise/light.d.ts +2 -1
- package/types/mixins/prose.d.ts +4 -4
- package/types/prisma/base.d.ts +2 -1
- package/types/splunk-magnetic/index.d.ts +12 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Used to position elements in the z-axis.
|
|
4
4
|
* If a variable does not suit your purpose, set a value relatively, such as `zindexModal +1`.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @category number
|
|
7
7
|
*/
|
|
8
8
|
declare const zIndexes: {
|
|
9
9
|
zindexLayer: number;
|
|
@@ -16,7 +16,7 @@ declare const zIndexes: {
|
|
|
16
16
|
/**
|
|
17
17
|
* #### Shadows
|
|
18
18
|
*
|
|
19
|
-
* @
|
|
19
|
+
* @category shadow
|
|
20
20
|
*/
|
|
21
21
|
declare const elevationShadows: {
|
|
22
22
|
embossShadow: string;
|
|
@@ -25,7 +25,6 @@ declare const elevationShadows: {
|
|
|
25
25
|
modalShadow: string;
|
|
26
26
|
focusShadow: string;
|
|
27
27
|
focusShadowInset: string;
|
|
28
|
-
draggableBackground: string;
|
|
29
28
|
};
|
|
30
29
|
declare const elevation: {
|
|
31
30
|
embossShadow: string;
|
|
@@ -34,7 +33,6 @@ declare const elevation: {
|
|
|
34
33
|
modalShadow: string;
|
|
35
34
|
focusShadow: string;
|
|
36
35
|
focusShadowInset: string;
|
|
37
|
-
draggableBackground: string;
|
|
38
36
|
zindexLayer: number;
|
|
39
37
|
zindexFixedNavbar: number;
|
|
40
38
|
zindexModalBackdrop: number;
|
|
@@ -210,6 +210,7 @@ declare const designTokens: {
|
|
|
210
210
|
static19: string;
|
|
211
211
|
static20: string;
|
|
212
212
|
lineLength: string;
|
|
213
|
+
lineLengthMinimum: string;
|
|
213
214
|
lineHeight: string;
|
|
214
215
|
lineHeightSingle: string;
|
|
215
216
|
lineHeightTight: string;
|
|
@@ -250,7 +251,6 @@ declare const designTokens: {
|
|
|
250
251
|
modalShadow: string;
|
|
251
252
|
focusShadow: string;
|
|
252
253
|
focusShadowInset: string;
|
|
253
|
-
draggableBackground: string;
|
|
254
254
|
zindexLayer: number;
|
|
255
255
|
zindexFixedNavbar: number;
|
|
256
256
|
zindexModalBackdrop: number;
|
|
@@ -461,6 +461,7 @@ declare const designTokens: {
|
|
|
461
461
|
syntaxGreenLight: string;
|
|
462
462
|
syntaxPurpleLight: string;
|
|
463
463
|
syntaxRedLight: string;
|
|
464
|
+
draggableBackground: string;
|
|
464
465
|
borderColor: string;
|
|
465
466
|
borderColorWeak: string;
|
|
466
467
|
borderColorStrong: string;
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Just because a spacing token is equal to a pixel value you may need, it does not mean it's appropriate to
|
|
7
7
|
* use the spacing variables.
|
|
8
8
|
*
|
|
9
|
-
* @
|
|
9
|
+
* @category dimension
|
|
10
|
+
* @previewType spacing
|
|
10
11
|
*/
|
|
11
12
|
declare const spacing: {
|
|
12
13
|
spacingXSmall: string;
|
|
@@ -20,7 +21,8 @@ declare const spacing: {
|
|
|
20
21
|
/**
|
|
21
22
|
* #### Measures
|
|
22
23
|
*
|
|
23
|
-
* @
|
|
24
|
+
* @category dimension
|
|
25
|
+
* @previewType spacing
|
|
24
26
|
*/
|
|
25
27
|
declare const measures: {
|
|
26
28
|
borderRadius: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* #### Font family
|
|
3
3
|
*
|
|
4
|
-
* @
|
|
4
|
+
* @category fontFamily
|
|
5
5
|
*/
|
|
6
6
|
declare const fontFamily: {
|
|
7
7
|
fontFamily: string;
|
|
@@ -16,7 +16,7 @@ declare const fontFamily: {
|
|
|
16
16
|
/**
|
|
17
17
|
* #### Font weight
|
|
18
18
|
*
|
|
19
|
-
* @
|
|
19
|
+
* @category fontWeight
|
|
20
20
|
*/
|
|
21
21
|
declare const fontWeight: {
|
|
22
22
|
fontWeightLight: number;
|
|
@@ -29,7 +29,8 @@ declare const fontWeight: {
|
|
|
29
29
|
/**
|
|
30
30
|
* #### Font size
|
|
31
31
|
*
|
|
32
|
-
* @
|
|
32
|
+
* @category dimension
|
|
33
|
+
* @previewType font
|
|
33
34
|
*/
|
|
34
35
|
declare const fontSize: {
|
|
35
36
|
fontSizeSmall: string;
|
|
@@ -41,14 +42,23 @@ declare const fontSize: {
|
|
|
41
42
|
/**
|
|
42
43
|
* #### Font measures
|
|
43
44
|
*
|
|
44
|
-
* @
|
|
45
|
+
* @category number
|
|
45
46
|
*/
|
|
46
47
|
declare const fontMeasures: {
|
|
47
48
|
/**
|
|
48
49
|
* Use to improve readability and [accessibility](https://www.w3.org/WAI/WCAG21/Understanding/visual-presentation.html)
|
|
49
50
|
* in blocks of text by preventing overly long lines.
|
|
51
|
+
*
|
|
52
|
+
* @category dimension
|
|
53
|
+
* @previewType none
|
|
50
54
|
*/
|
|
51
55
|
lineLength: string;
|
|
56
|
+
/**
|
|
57
|
+
* Minimum line length for optimal readability.
|
|
58
|
+
* @category dimension
|
|
59
|
+
* @previewType none
|
|
60
|
+
*/
|
|
61
|
+
lineLengthMinimum: string;
|
|
52
62
|
/**
|
|
53
63
|
* Default line height.
|
|
54
64
|
*/
|
|
@@ -84,8 +94,17 @@ declare const typography: {
|
|
|
84
94
|
/**
|
|
85
95
|
* Use to improve readability and [accessibility](https://www.w3.org/WAI/WCAG21/Understanding/visual-presentation.html)
|
|
86
96
|
* in blocks of text by preventing overly long lines.
|
|
97
|
+
*
|
|
98
|
+
* @category dimension
|
|
99
|
+
* @previewType none
|
|
87
100
|
*/
|
|
88
101
|
lineLength: string;
|
|
102
|
+
/**
|
|
103
|
+
* Minimum line length for optimal readability.
|
|
104
|
+
* @category dimension
|
|
105
|
+
* @previewType none
|
|
106
|
+
*/
|
|
107
|
+
lineLengthMinimum: string;
|
|
89
108
|
/**
|
|
90
109
|
* Default line height.
|
|
91
110
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
-
draggableBackground: string;
|
|
3
2
|
contentColorInfo: string;
|
|
4
3
|
contentColorWarning: string;
|
|
5
4
|
contentColorPositive: string;
|
|
@@ -39,6 +38,7 @@ declare const theme: {
|
|
|
39
38
|
statusColorCritical: string;
|
|
40
39
|
statusColorCriticalWeak: string;
|
|
41
40
|
statusColorCriticalStrong: string;
|
|
41
|
+
draggableBackground: string;
|
|
42
42
|
interactiveColorBorder: string;
|
|
43
43
|
interactiveColorBorderActive: string;
|
|
44
44
|
interactiveColorBorderHover: string;
|
|
@@ -510,6 +510,7 @@ declare const theme: {
|
|
|
510
510
|
zindexPopover: number;
|
|
511
511
|
zindexToastMessages: number;
|
|
512
512
|
lineLength: string;
|
|
513
|
+
lineLengthMinimum: string;
|
|
513
514
|
lineHeight: string;
|
|
514
515
|
lineHeightSingle: string;
|
|
515
516
|
lineHeightTight: string;
|
|
@@ -170,6 +170,7 @@ declare const theme: {
|
|
|
170
170
|
syntaxGreenLight: string;
|
|
171
171
|
syntaxPurpleLight: string;
|
|
172
172
|
syntaxRedLight: string;
|
|
173
|
+
draggableBackground: string;
|
|
173
174
|
highLow4LHigh: string;
|
|
174
175
|
highLow4LLow: string;
|
|
175
176
|
highLow4DHigh: string;
|
|
@@ -409,6 +410,7 @@ declare const theme: {
|
|
|
409
410
|
contentColorNegative: string;
|
|
410
411
|
contentColorNegativeWeak: string;
|
|
411
412
|
lineLength: string;
|
|
413
|
+
lineLengthMinimum: string;
|
|
412
414
|
lineHeight: string;
|
|
413
415
|
lineHeightSingle: string;
|
|
414
416
|
lineHeightTight: string;
|
|
@@ -435,7 +437,6 @@ declare const theme: {
|
|
|
435
437
|
monoFontFamily: string;
|
|
436
438
|
focusShadow: string;
|
|
437
439
|
focusShadowInset: string;
|
|
438
|
-
draggableBackground: string;
|
|
439
440
|
borderColor: string;
|
|
440
441
|
borderColorWeak: string;
|
|
441
442
|
borderColorStrong: string;
|
package/types/mixins/prose.d.ts
CHANGED
|
@@ -29,12 +29,12 @@ type ProseConfiguration = {
|
|
|
29
29
|
* @name prose
|
|
30
30
|
* @kind function
|
|
31
31
|
*
|
|
32
|
-
* @
|
|
32
|
+
* @public
|
|
33
|
+
*
|
|
34
|
+
* @param {Object} [options] The options object.
|
|
35
|
+
* @param {Object} [options.elementSelectors]
|
|
33
36
|
* By default, all elements are selected by their html tag using `*:is(<tag>)`;
|
|
34
37
|
* override that selector by setting `elementSelectors`.
|
|
35
|
-
*
|
|
36
|
-
* For example, paragraph elements are styled with the selector `*:where(p)` but that can be overridden:
|
|
37
|
-
* e.g. prose({ elementSelectors: { p: '.foo' }}) will instead style `p` elements that match `*:where(.foo)`
|
|
38
38
|
*/
|
|
39
39
|
declare function prose<T extends AnyTheme, A extends ThemedProps>({ elementSelectors, }?: ProseConfiguration): Interpolation<T, A>;
|
|
40
40
|
export default prose;
|
package/types/prisma/base.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ declare function createPrismaBase({ colorScheme }: {
|
|
|
4
4
|
}): {
|
|
5
5
|
linkColor: string;
|
|
6
6
|
hoverShadow: string;
|
|
7
|
+
draggableBackground: string;
|
|
7
8
|
zindexLayer: number;
|
|
8
9
|
zindexFixedNavbar: number;
|
|
9
10
|
zindexModalBackdrop: number;
|
|
10
11
|
zindexModal: number;
|
|
11
12
|
zindexPopover: number;
|
|
12
13
|
zindexToastMessages: number;
|
|
13
|
-
draggableBackground: string;
|
|
14
14
|
borderColor: string;
|
|
15
15
|
borderColorWeak: string;
|
|
16
16
|
borderColorStrong: string;
|
|
@@ -222,6 +222,7 @@ declare function createPrismaBase({ colorScheme }: {
|
|
|
222
222
|
static20: string;
|
|
223
223
|
focusColor: string;
|
|
224
224
|
lineLength: string;
|
|
225
|
+
lineLengthMinimum: string;
|
|
225
226
|
lineHeight: string;
|
|
226
227
|
lineHeightSingle: string;
|
|
227
228
|
lineHeightTight: string;
|
|
@@ -304,6 +304,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
304
304
|
syntaxGreenLight: string;
|
|
305
305
|
syntaxPurpleLight: string;
|
|
306
306
|
syntaxRedLight: string;
|
|
307
|
+
draggableBackground: string;
|
|
307
308
|
highLow4LHigh: string;
|
|
308
309
|
highLow4LLow: string;
|
|
309
310
|
highLow4DHigh: string;
|
|
@@ -500,6 +501,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
500
501
|
contentColorAccentWeak: string;
|
|
501
502
|
contentColorNegativeWeak: string;
|
|
502
503
|
lineLength: string;
|
|
504
|
+
lineLengthMinimum: string;
|
|
503
505
|
lineHeight: string;
|
|
504
506
|
lineHeightSingle: string;
|
|
505
507
|
lineHeightTight: string;
|
|
@@ -521,7 +523,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
521
523
|
fontWeightExtraBold: number;
|
|
522
524
|
serifFontFamily: string;
|
|
523
525
|
focusShadowInset: string;
|
|
524
|
-
draggableBackground: string;
|
|
525
526
|
dragShadow: string;
|
|
526
527
|
severityColorCustom: string;
|
|
527
528
|
severityColorUnknown: string;
|
|
@@ -896,6 +897,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
896
897
|
syntaxGreenLight: string;
|
|
897
898
|
syntaxPurpleLight: string;
|
|
898
899
|
syntaxRedLight: string;
|
|
900
|
+
draggableBackground: string;
|
|
899
901
|
highLow4LHigh: string;
|
|
900
902
|
highLow4LLow: string;
|
|
901
903
|
highLow4DHigh: string;
|
|
@@ -1092,6 +1094,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1092
1094
|
contentColorAccentWeak: string;
|
|
1093
1095
|
contentColorNegativeWeak: string;
|
|
1094
1096
|
lineLength: string;
|
|
1097
|
+
lineLengthMinimum: string;
|
|
1095
1098
|
lineHeight: string;
|
|
1096
1099
|
lineHeightSingle: string;
|
|
1097
1100
|
lineHeightTight: string;
|
|
@@ -1113,7 +1116,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1113
1116
|
fontWeightExtraBold: number;
|
|
1114
1117
|
serifFontFamily: string;
|
|
1115
1118
|
focusShadowInset: string;
|
|
1116
|
-
draggableBackground: string;
|
|
1117
1119
|
dragShadow: string;
|
|
1118
1120
|
severityColorCustom: string;
|
|
1119
1121
|
severityColorUnknown: string;
|
|
@@ -1330,7 +1332,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1330
1332
|
fontFamilyTitle: string;
|
|
1331
1333
|
sansFontFamily: string;
|
|
1332
1334
|
monoFontFamily: string;
|
|
1333
|
-
draggableBackground: string;
|
|
1334
1335
|
contentColorInfo: string;
|
|
1335
1336
|
contentColorWarning: string;
|
|
1336
1337
|
contentColorPositive: string;
|
|
@@ -1357,6 +1358,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1357
1358
|
statusColorCritical: string;
|
|
1358
1359
|
statusColorCriticalWeak: string;
|
|
1359
1360
|
statusColorCriticalStrong: string;
|
|
1361
|
+
draggableBackground: string;
|
|
1360
1362
|
interactiveColorBorderActive: string;
|
|
1361
1363
|
interactiveColorOverlaySelected: string;
|
|
1362
1364
|
interactiveColorOverlayHover: string;
|
|
@@ -1711,6 +1713,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1711
1713
|
zindexPopover: number;
|
|
1712
1714
|
zindexToastMessages: number;
|
|
1713
1715
|
lineLength: string;
|
|
1716
|
+
lineLengthMinimum: string;
|
|
1714
1717
|
lineHeight: string;
|
|
1715
1718
|
lineHeightSingle: string;
|
|
1716
1719
|
lineHeightTight: string;
|
|
@@ -1924,7 +1927,6 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1924
1927
|
fontFamilyTitle: string;
|
|
1925
1928
|
sansFontFamily: string;
|
|
1926
1929
|
monoFontFamily: string;
|
|
1927
|
-
draggableBackground: string;
|
|
1928
1930
|
contentColorInfo: string;
|
|
1929
1931
|
contentColorWarning: string;
|
|
1930
1932
|
contentColorPositive: string;
|
|
@@ -1951,6 +1953,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
1951
1953
|
statusColorCritical: string;
|
|
1952
1954
|
statusColorCriticalWeak: string;
|
|
1953
1955
|
statusColorCriticalStrong: string;
|
|
1956
|
+
draggableBackground: string;
|
|
1954
1957
|
interactiveColorBorderActive: string;
|
|
1955
1958
|
interactiveColorOverlaySelected: string;
|
|
1956
1959
|
interactiveColorOverlayHover: string;
|
|
@@ -2305,6 +2308,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2305
2308
|
zindexPopover: number;
|
|
2306
2309
|
zindexToastMessages: number;
|
|
2307
2310
|
lineLength: string;
|
|
2311
|
+
lineLengthMinimum: string;
|
|
2308
2312
|
lineHeight: string;
|
|
2309
2313
|
lineHeightSingle: string;
|
|
2310
2314
|
lineHeightTight: string;
|
|
@@ -2519,13 +2523,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2519
2523
|
sansFontFamily: string;
|
|
2520
2524
|
monoFontFamily: string;
|
|
2521
2525
|
hoverShadow: string;
|
|
2526
|
+
draggableBackground: string;
|
|
2522
2527
|
zindexLayer: number;
|
|
2523
2528
|
zindexFixedNavbar: number;
|
|
2524
2529
|
zindexModalBackdrop: number;
|
|
2525
2530
|
zindexModal: number;
|
|
2526
2531
|
zindexPopover: number;
|
|
2527
2532
|
zindexToastMessages: number;
|
|
2528
|
-
draggableBackground: string;
|
|
2529
2533
|
focusShadowInset: string;
|
|
2530
2534
|
highLow4LHigh: string;
|
|
2531
2535
|
highLow4LLow: string;
|
|
@@ -2704,6 +2708,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2704
2708
|
static19: string;
|
|
2705
2709
|
static20: string;
|
|
2706
2710
|
lineLength: string;
|
|
2711
|
+
lineLengthMinimum: string;
|
|
2707
2712
|
lineHeight: string;
|
|
2708
2713
|
lineHeightSingle: string;
|
|
2709
2714
|
lineHeightTight: string;
|
|
@@ -2940,13 +2945,13 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
2940
2945
|
sansFontFamily: string;
|
|
2941
2946
|
monoFontFamily: string;
|
|
2942
2947
|
hoverShadow: string;
|
|
2948
|
+
draggableBackground: string;
|
|
2943
2949
|
zindexLayer: number;
|
|
2944
2950
|
zindexFixedNavbar: number;
|
|
2945
2951
|
zindexModalBackdrop: number;
|
|
2946
2952
|
zindexModal: number;
|
|
2947
2953
|
zindexPopover: number;
|
|
2948
2954
|
zindexToastMessages: number;
|
|
2949
|
-
draggableBackground: string;
|
|
2950
2955
|
focusShadowInset: string;
|
|
2951
2956
|
highLow4LHigh: string;
|
|
2952
2957
|
highLow4LLow: string;
|
|
@@ -3125,6 +3130,7 @@ declare const splunkMagneticThemeCustomizer: (currentTheme: AnyTheme) => {
|
|
|
3125
3130
|
static19: string;
|
|
3126
3131
|
static20: string;
|
|
3127
3132
|
lineLength: string;
|
|
3133
|
+
lineLengthMinimum: string;
|
|
3128
3134
|
lineHeight: string;
|
|
3129
3135
|
lineHeightSingle: string;
|
|
3130
3136
|
lineHeightTight: string;
|