@splunk/themes 1.0.1 → 1.2.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 +53 -30
- package/SplunkThemeProvider.js +3 -4
- package/design-tokens/typography.js +33 -1
- package/enterprise/dark.js +2 -2
- package/enterprise/light.js +14 -8
- package/mixins/index.js +13 -3
- package/mixins/resets.js +96 -0
- package/mixins/typography.js +9 -9
- package/mixins/utilityMixins.js +42 -51
- package/package.json +9 -9
- package/prisma/base.js +8 -1
- package/prisma/dark.js +2 -2
- package/prisma/light.js +11 -11
- package/splunk-magnetic/index.js +17 -1
- package/splunk-magnetic/magneticTokensCore.js +390 -0
- package/splunk-magnetic/magneticTokensDark.js +4 -0
- package/splunk-magnetic/magneticTokensLight.js +4 -0
- package/storybook-addon-splunk-themes/SplunkThemesTool.js +12 -3
- package/storybook-addon-splunk-themes/constants.js +3 -1
- package/storybook-addon-splunk-themes/withSplunkTheme.js +2 -3
- package/types/design-tokens/index.d.ts +7 -0
- package/types/design-tokens/typography.d.ts +58 -0
- package/types/enterprise/dark.d.ts +7 -0
- package/types/enterprise/light.d.ts +7 -0
- package/types/mixins/index.d.ts +4 -1
- package/types/mixins/resets.d.ts +47 -0
- package/types/mixins/tests/resets.unit.d.ts +1 -0
- package/types/mixins/utilityMixins.d.ts +25 -23
- package/types/prisma/base.d.ts +7 -0
- package/types/splunk-magnetic/index.d.ts +132 -90
- package/types/splunk-magnetic/magneticTokensCore.d.ts +384 -0
- package/types/storybook-addon-splunk-themes/constants.d.ts +1 -0
- package/useSplunkTheme.js +2 -2
- package/withSplunkTheme.js +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/themes",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Theme variables and mixins for the Splunk design language",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"tinycolor2": "^1.4.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@babel/cli": "^7.
|
|
73
|
-
"@babel/core": "^7.
|
|
72
|
+
"@babel/cli": "^7.28.0",
|
|
73
|
+
"@babel/core": "^7.28.0",
|
|
74
74
|
"@splunk/babel-preset": "^4.0.0",
|
|
75
75
|
"@splunk/eslint-config": "^5.0.0",
|
|
76
|
-
"@storybook/blocks": "^7.6.
|
|
77
|
-
"@storybook/components": "^7.6.
|
|
78
|
-
"@storybook/manager-api": "^7.6.
|
|
79
|
-
"@storybook/react": "^7.6.
|
|
80
|
-
"@storybook/theming": "^7.6.
|
|
76
|
+
"@storybook/blocks": "^7.6.20",
|
|
77
|
+
"@storybook/components": "^7.6.20",
|
|
78
|
+
"@storybook/manager-api": "^7.6.20",
|
|
79
|
+
"@storybook/react": "^7.6.20",
|
|
80
|
+
"@storybook/theming": "^7.6.20",
|
|
81
81
|
"@testing-library/dom": "^10.4.0",
|
|
82
82
|
"@testing-library/jest-dom": "^6.6.3",
|
|
83
83
|
"@testing-library/react": "^16.3.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"typescript": "^5.8.3",
|
|
104
104
|
"webpack": "^5.88.2",
|
|
105
105
|
"webpack-cli": "^5.1.4",
|
|
106
|
-
"webpack-dev-server": "^
|
|
106
|
+
"webpack-dev-server": "^5.2.2",
|
|
107
107
|
"webpack-merge": "^5.9.0"
|
|
108
108
|
},
|
|
109
109
|
"engines": {
|
package/prisma/base.js
CHANGED
|
@@ -55,7 +55,14 @@ function createPrismaBase(_ref) {
|
|
|
55
55
|
fontWeightHeavy: 800,
|
|
56
56
|
fontWeightExtraBold: 900,
|
|
57
57
|
lineHeight: '1.5',
|
|
58
|
-
lineLength: '80ch'
|
|
58
|
+
lineLength: '80ch',
|
|
59
|
+
lineHeightNormal: '1.5',
|
|
60
|
+
lineHeightSingle: '1',
|
|
61
|
+
lineHeightTight: '1.2',
|
|
62
|
+
lineHeightSnug: '1.25',
|
|
63
|
+
lineHeightComfortable: '1.333',
|
|
64
|
+
lineHeightRelaxed: '1.375',
|
|
65
|
+
lineHeightSpacious: '1.429'
|
|
59
66
|
};
|
|
60
67
|
var zindexes = {
|
|
61
68
|
zindexLayer: 1000,
|
package/prisma/dark.js
CHANGED
|
@@ -50,7 +50,7 @@ var actionColors = {
|
|
|
50
50
|
actionColorBackgroundPrimaryDisabled: '#103460',
|
|
51
51
|
actionColorBackgroundPrimaryHover: '#6baeff',
|
|
52
52
|
actionColorBackgroundSecondary: 'transparent',
|
|
53
|
-
actionColorBackgroundSecondaryActive: 'rgba(
|
|
53
|
+
actionColorBackgroundSecondaryActive: 'rgba(225, 225, 225, 0.16)',
|
|
54
54
|
actionColorBackgroundSecondaryDisabled: 'transparent',
|
|
55
55
|
actionColorBackgroundSecondaryHover: 'rgba(255, 255, 255, 0.05)',
|
|
56
56
|
actionColorBackgroundSubtle: 'transparent',
|
|
@@ -81,7 +81,7 @@ var interactiveColors = {
|
|
|
81
81
|
interactiveColorBorderDisabled: 'rgba(255, 255, 255, 0.30)',
|
|
82
82
|
interactiveColorOverlaySelected: 'rgba(255, 255, 255, 0.1)',
|
|
83
83
|
interactiveColorOverlayHover: 'rgba(255, 255, 255, 0.05)',
|
|
84
|
-
interactiveColorOverlayActive: 'rgba(
|
|
84
|
+
interactiveColorOverlayActive: 'rgba(225, 225, 225, 0.16)',
|
|
85
85
|
interactiveColorOverlayDrag: 'rgba(57, 147, 255, 0.16)',
|
|
86
86
|
interactiveColorBackground: 'transparent',
|
|
87
87
|
interactiveColorBackgroundDisabled: 'transparent',
|
package/prisma/light.js
CHANGED
|
@@ -50,7 +50,7 @@ var actionColors = {
|
|
|
50
50
|
actionColorBackgroundPrimaryDisabled: '#72b2fe',
|
|
51
51
|
actionColorBackgroundPrimaryHover: '#024ba2',
|
|
52
52
|
actionColorBackgroundSubtle: 'transparent',
|
|
53
|
-
actionColorBackgroundSecondaryActive: 'rgba(0, 0, 0, 0.
|
|
53
|
+
actionColorBackgroundSecondaryActive: 'rgba(0, 0, 0, 0.12)',
|
|
54
54
|
actionColorBackgroundSubtleDisabled: 'transparent',
|
|
55
55
|
actionColorBackgroundSecondaryHover: 'rgba(0, 0, 0, 0.03)',
|
|
56
56
|
actionColorBackgroundSecondary: 'transparent',
|
|
@@ -81,7 +81,7 @@ var interactiveColors = {
|
|
|
81
81
|
interactiveColorBorderDisabled: 'rgba(0, 0, 0, 0.3)',
|
|
82
82
|
interactiveColorOverlaySelected: 'rgba(0, 0, 0, 0.04)',
|
|
83
83
|
interactiveColorOverlayHover: 'rgba(0, 0, 0, 0.03)',
|
|
84
|
-
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.
|
|
84
|
+
interactiveColorOverlayActive: 'rgba(0, 0, 0, 0.12)',
|
|
85
85
|
interactiveColorOverlayDrag: 'rgba(2, 100, 215, 0.16)',
|
|
86
86
|
interactiveColorBackground: 'transparent',
|
|
87
87
|
interactiveColorBackgroundDisabled: 'transparent',
|
|
@@ -133,15 +133,15 @@ var elevationShadows = {
|
|
|
133
133
|
modalShadow: '0px 50px 200px rgba(0, 0, 0, 0.3), 0px 29px 66px rgba(0, 0, 0, 0.08), 0px 29px 47px rgba(0, 0, 0, 0.08), 0px 5px 10px rgba(0, 0, 0, 0.03)'
|
|
134
134
|
};
|
|
135
135
|
var syntaxColors = {
|
|
136
|
-
syntaxBlue: '#
|
|
137
|
-
syntaxBrown: '#
|
|
138
|
-
syntaxGray: '#
|
|
139
|
-
syntaxGreen: '#
|
|
140
|
-
syntaxOrange: '#
|
|
141
|
-
syntaxPink: '#
|
|
142
|
-
syntaxPurple: '#
|
|
143
|
-
syntaxRed: '#
|
|
144
|
-
syntaxTeal: '#
|
|
136
|
+
syntaxBlue: '#0e6e8b',
|
|
137
|
+
syntaxBrown: '#8b5804',
|
|
138
|
+
syntaxGray: '#666',
|
|
139
|
+
syntaxGreen: '#556f0b',
|
|
140
|
+
syntaxOrange: '#a64708',
|
|
141
|
+
syntaxPink: '#b9139e',
|
|
142
|
+
syntaxPurple: '#703ef4',
|
|
143
|
+
syntaxRed: '#ca1c41',
|
|
144
|
+
syntaxTeal: '#1b7464'
|
|
145
145
|
};
|
|
146
146
|
var deprecated = {
|
|
147
147
|
accentColorPositive: '#407a06',
|
package/splunk-magnetic/index.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _tinycolor = _interopRequireDefault(require("tinycolor2"));
|
|
8
|
+
var _magneticTokensCore = _interopRequireDefault(require("./magneticTokensCore"));
|
|
8
9
|
var _magneticTokensDark = _interopRequireDefault(require("./magneticTokensDark"));
|
|
9
10
|
var _magneticTokensLight = _interopRequireDefault(require("./magneticTokensLight"));
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -160,6 +161,12 @@ var splunkMagneticThemeCustomizer = function splunkMagneticThemeCustomizer(curre
|
|
|
160
161
|
interactiveColorBorderHover: pickMagnetic('control-border-hover'),
|
|
161
162
|
linkColor: pickMagnetic('interact-text-default'),
|
|
162
163
|
modalShadow: '0px 4px 12px 0px rgba(0, 0, 0, 0.12)',
|
|
164
|
+
neutral50: currentTheme.colorScheme === 'light' ? '#EFF0F1' : '#171B1F',
|
|
165
|
+
neutral100: currentTheme.colorScheme === 'light' ? _magneticTokensCore["default"]['neutral-95'] : _magneticTokensCore["default"]['neutral-25'],
|
|
166
|
+
neutral200: currentTheme.colorScheme === 'light' ? _magneticTokensCore["default"]['neutral-90'] : _magneticTokensCore["default"]['neutral-35'],
|
|
167
|
+
neutral300: currentTheme.colorScheme === 'light' ? _magneticTokensCore["default"]['neutral-85'] : _magneticTokensCore["default"]['neutral-40'],
|
|
168
|
+
neutral400: currentTheme.colorScheme === 'light' ? _magneticTokensCore["default"]['neutral-80'] : _magneticTokensCore["default"]['neutral-50'],
|
|
169
|
+
neutral500: currentTheme.colorScheme === 'light' ? _magneticTokensCore["default"]['neutral-70'] : _magneticTokensCore["default"]['neutral-60'],
|
|
163
170
|
overlayShadow: '0px 4px 12px 0px rgba(0,0,0,0.18)',
|
|
164
171
|
statusColorHigh: pickMagnetic('negative-icon-default'),
|
|
165
172
|
statusColorHighStrong: pickMagnetic('negative-border-strong-default'),
|
|
@@ -172,7 +179,16 @@ var splunkMagneticThemeCustomizer = function splunkMagneticThemeCustomizer(curre
|
|
|
172
179
|
statusColorMediumWeak: pickMagnetic('warning-bg-medium-default'),
|
|
173
180
|
statusColorNormal: pickMagnetic('positive-icon-strong-default'),
|
|
174
181
|
statusColorNormalStrong: pickMagnetic('positive-border-strong-default'),
|
|
175
|
-
statusColorNormalWeak: pickMagnetic('positive-bg-medium-default')
|
|
182
|
+
statusColorNormalWeak: pickMagnetic('positive-bg-medium-default'),
|
|
183
|
+
syntaxBlue: currentTheme.colorScheme === 'light' ? '#0f7190' : '#6cd0f0',
|
|
184
|
+
syntaxBrown: currentTheme.colorScheme === 'light' ? '#8b5804' : '#fccf87',
|
|
185
|
+
syntaxGray: currentTheme.colorScheme === 'light' ? '#666' : '#909090',
|
|
186
|
+
syntaxGreen: currentTheme.colorScheme === 'light' ? '#556f0b' : '#cef06c',
|
|
187
|
+
syntaxOrange: currentTheme.colorScheme === 'light' ? '#a64708' : '#f7933f',
|
|
188
|
+
syntaxPink: currentTheme.colorScheme === 'light' ? '#b9139e' : '#f494e5',
|
|
189
|
+
syntaxPurple: currentTheme.colorScheme === 'light' ? '#703ef4' : '#ab74f1',
|
|
190
|
+
syntaxRed: currentTheme.colorScheme === 'light' ? '#ca1c41' : '#e9627f',
|
|
191
|
+
syntaxTeal: currentTheme.colorScheme === 'light' ? '#1b7464' : '#45d4ba'
|
|
176
192
|
});
|
|
177
193
|
};
|
|
178
194
|
var _default = splunkMagneticThemeCustomizer;
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _default = {
|
|
8
|
+
'accent-a-35': '#3b47b2',
|
|
9
|
+
'accent-a-40': '#4653c7',
|
|
10
|
+
'accent-a-45': '#505ed9',
|
|
11
|
+
'accent-a-50': '#5a68e5',
|
|
12
|
+
'accent-a-55': '#6977f0',
|
|
13
|
+
'accent-a-60': '#7d8aff',
|
|
14
|
+
'accent-a-65': '#8a95ff',
|
|
15
|
+
'accent-a-70': '#9ca6ff',
|
|
16
|
+
'accent-a-80': '#bac1ff',
|
|
17
|
+
'accent-a-85': '#ccd1ff',
|
|
18
|
+
'accent-a-90': '#d9ddff',
|
|
19
|
+
'accent-a-95': '#ebedff',
|
|
20
|
+
'accent-b-c-35': '#991d53',
|
|
21
|
+
'accent-b-c-40': '#b02863',
|
|
22
|
+
'accent-b-c-45': '#c2306f',
|
|
23
|
+
'accent-b-c-50': '#cf3a7a',
|
|
24
|
+
'accent-b-c-55': '#e3447c',
|
|
25
|
+
'accent-b-c-60': '#f2638c',
|
|
26
|
+
'accent-b-c-65': '#f57398',
|
|
27
|
+
'accent-b-c-70': '#ff87a9',
|
|
28
|
+
'accent-b-c-80': '#fcb3c8',
|
|
29
|
+
'accent-b-c-85': '#ffc4d5',
|
|
30
|
+
'accent-b-c-90': '#ffd4e0',
|
|
31
|
+
'accent-b-c-95': '#ffe8ef',
|
|
32
|
+
'accent-d-35': '#6732b8',
|
|
33
|
+
'accent-d-40': '#753bcc',
|
|
34
|
+
'accent-d-45': '#864ae0',
|
|
35
|
+
'accent-d-50': '#8d4eed',
|
|
36
|
+
'accent-d-55': '#9b5ff5',
|
|
37
|
+
'accent-d-60': '#a974f7',
|
|
38
|
+
'accent-d-65': '#b587fa',
|
|
39
|
+
'accent-d-70': '#c299ff',
|
|
40
|
+
'accent-d-80': '#d6baff',
|
|
41
|
+
'accent-d-85': '#e0ccff',
|
|
42
|
+
'accent-d-90': '#e8d9ff',
|
|
43
|
+
'accent-d-95': '#f3ebff',
|
|
44
|
+
'accent-e-35': '#425902',
|
|
45
|
+
'accent-e-40': '#4c6605',
|
|
46
|
+
'accent-e-45': '#577309',
|
|
47
|
+
'accent-e-50': '#61800e',
|
|
48
|
+
'accent-e-55': '#6c8c14',
|
|
49
|
+
'accent-e-60': '#7da11b',
|
|
50
|
+
'accent-e-65': '#89ab2c',
|
|
51
|
+
'accent-e-70': '#9dba4c',
|
|
52
|
+
'accent-e-80': '#b5d166',
|
|
53
|
+
'accent-e-85': '#c7de8a',
|
|
54
|
+
'accent-e-90': '#d7e8a9',
|
|
55
|
+
'accent-e-95': '#eaf2d3',
|
|
56
|
+
'accent-f-35': '#942e03',
|
|
57
|
+
'accent-f-40': '#ad3907',
|
|
58
|
+
'accent-f-45': '#bd410b',
|
|
59
|
+
'accent-f-50': '#c44f14',
|
|
60
|
+
'accent-f-55': '#d95a1a',
|
|
61
|
+
'accent-f-60': '#f26722',
|
|
62
|
+
'accent-f-65': '#f7782f',
|
|
63
|
+
'accent-f-70': '#fc8d4c',
|
|
64
|
+
'accent-f-80': '#fcb88d',
|
|
65
|
+
'accent-f-85': '#fcc9a7',
|
|
66
|
+
'accent-f-90': '#ffd9bf',
|
|
67
|
+
'accent-f-95': '#ffeadb',
|
|
68
|
+
'accent-g-h-35': '#005c66',
|
|
69
|
+
'accent-g-h-40': '#006773',
|
|
70
|
+
'accent-g-h-45': '#017580',
|
|
71
|
+
'accent-g-h-50': '#01818c',
|
|
72
|
+
'accent-g-h-55': '#028e99',
|
|
73
|
+
'accent-g-h-60': '#04a4b0',
|
|
74
|
+
'accent-g-h-65': '#0bb2b8',
|
|
75
|
+
'accent-g-h-70': '#17c2c2',
|
|
76
|
+
'accent-g-h-80': '#4ad9d9',
|
|
77
|
+
'accent-g-h-85': '#84e3e3',
|
|
78
|
+
'accent-g-h-90': '#a9ebeb',
|
|
79
|
+
'accent-g-h-95': '#d5f5f5',
|
|
80
|
+
'accent-i-35': '#941b76',
|
|
81
|
+
'accent-i-40': '#a62686',
|
|
82
|
+
'accent-i-45': '#b53394',
|
|
83
|
+
'accent-i-50': '#c23ea1',
|
|
84
|
+
'accent-i-55': '#d649b3',
|
|
85
|
+
'accent-i-60': '#e85fc6',
|
|
86
|
+
'accent-i-65': '#f26dd1',
|
|
87
|
+
'accent-i-70': '#f582d8',
|
|
88
|
+
'accent-i-80': '#f7b0e5',
|
|
89
|
+
'accent-i-85': '#fac5ed',
|
|
90
|
+
'accent-i-90': '#ffd1f3',
|
|
91
|
+
'accent-i-95': '#ffe8f9',
|
|
92
|
+
'accent-j-35': '#484f7a',
|
|
93
|
+
'accent-j-40': '#545c8a',
|
|
94
|
+
'accent-j-45': '#5d6596',
|
|
95
|
+
'accent-j-50': '#6871a3',
|
|
96
|
+
'accent-j-55': '#767eb2',
|
|
97
|
+
'accent-j-60': '#868ec2',
|
|
98
|
+
'accent-j-65': '#959ccc',
|
|
99
|
+
'accent-j-70': '#a3aad6',
|
|
100
|
+
'accent-j-80': '#c1c6e8',
|
|
101
|
+
'accent-j-85': '#ced3f2',
|
|
102
|
+
'accent-j-90': '#d9defa',
|
|
103
|
+
'accent-j-95': '#ebedff',
|
|
104
|
+
'accent-k-35': '#075e39',
|
|
105
|
+
'accent-k-40': '#087041',
|
|
106
|
+
'accent-k-45': '#0b7b46',
|
|
107
|
+
'accent-k-50': '#0f874c',
|
|
108
|
+
'accent-k-55': '#169855',
|
|
109
|
+
'accent-k-60': '#21a65f',
|
|
110
|
+
'accent-k-65': '#36b26e',
|
|
111
|
+
'accent-k-70': '#4cbf7f',
|
|
112
|
+
'accent-k-80': '#75d9a0',
|
|
113
|
+
'accent-k-85': '#97e5b8',
|
|
114
|
+
'accent-k-90': '#b6edcc',
|
|
115
|
+
'accent-k-95': '#d4f5e1',
|
|
116
|
+
'blue-35': '#0051af',
|
|
117
|
+
'blue-40': '#0d5cbd',
|
|
118
|
+
'blue-45': '#1d69cc',
|
|
119
|
+
'blue-50': '#2774d9',
|
|
120
|
+
'blue-55': '#3e84e5',
|
|
121
|
+
'blue-60': '#5191f0',
|
|
122
|
+
'blue-65': '#649ef5',
|
|
123
|
+
'blue-70': '#7cadf7',
|
|
124
|
+
'blue-80': '#a3c8ff',
|
|
125
|
+
'blue-85': '#bad6ff',
|
|
126
|
+
'blue-90': '#cce1ff',
|
|
127
|
+
'blue-95': '#e3eeff',
|
|
128
|
+
'blue-98': '#f0f6ff',
|
|
129
|
+
'emerald-35': '#075e39',
|
|
130
|
+
'emerald-40': '#087041',
|
|
131
|
+
'emerald-45': '#0b7b46',
|
|
132
|
+
'emerald-50': '#0f874c',
|
|
133
|
+
'emerald-55': '#169855',
|
|
134
|
+
'emerald-60': '#21a65f',
|
|
135
|
+
'emerald-65': '#36b26e',
|
|
136
|
+
'emerald-70': '#4cbf7f',
|
|
137
|
+
'emerald-80': '#75d9a0',
|
|
138
|
+
'emerald-85': '#97e5b8',
|
|
139
|
+
'emerald-90': '#b6edcc',
|
|
140
|
+
'emerald-95': '#d4f5e1',
|
|
141
|
+
'green-35': '#1f5e06',
|
|
142
|
+
'green-40': '#266b0b',
|
|
143
|
+
'green-45': '#2b7a0c',
|
|
144
|
+
'green-50': '#398519',
|
|
145
|
+
'green-55': '#45991f',
|
|
146
|
+
'green-60': '#52a62b',
|
|
147
|
+
'green-65': '#5eb035',
|
|
148
|
+
'green-70': '#6bbf41',
|
|
149
|
+
'green-80': '#98d977',
|
|
150
|
+
'green-85': '#b0e396',
|
|
151
|
+
'green-90': '#c5ebb2',
|
|
152
|
+
'green-95': '#e0f5d5',
|
|
153
|
+
'info-35': '#6732b8',
|
|
154
|
+
'info-40': '#753bcc',
|
|
155
|
+
'info-45': '#864ae0',
|
|
156
|
+
'info-50': '#8d4eed',
|
|
157
|
+
'info-55': '#9b5ff5',
|
|
158
|
+
'info-60': '#a974f7',
|
|
159
|
+
'info-65': '#b587fa',
|
|
160
|
+
'info-70': '#c299ff',
|
|
161
|
+
'info-80': '#d6baff',
|
|
162
|
+
'info-85': '#e0ccff',
|
|
163
|
+
'info-90': '#e8d9ff',
|
|
164
|
+
'info-95': '#f3ebff',
|
|
165
|
+
'interact-35': '#0051af',
|
|
166
|
+
'interact-40': '#0d5cbd',
|
|
167
|
+
'interact-45': '#1d69cc',
|
|
168
|
+
'interact-50': '#2774d9',
|
|
169
|
+
'interact-55': '#3e84e5',
|
|
170
|
+
'interact-60': '#5191f0',
|
|
171
|
+
'interact-65': '#649ef5',
|
|
172
|
+
'interact-70': '#7cadf7',
|
|
173
|
+
'interact-80': '#a3c8ff',
|
|
174
|
+
'interact-85': '#bad6ff',
|
|
175
|
+
'interact-90': '#cce1ff',
|
|
176
|
+
'interact-95': '#e3eeff',
|
|
177
|
+
'interact-98': '#f0f6ff',
|
|
178
|
+
'lavender-35': '#3b47b2',
|
|
179
|
+
'lavender-40': '#4653c7',
|
|
180
|
+
'lavender-45': '#505ed9',
|
|
181
|
+
'lavender-50': '#5a68e5',
|
|
182
|
+
'lavender-55': '#6977f0',
|
|
183
|
+
'lavender-60': '#7d8aff',
|
|
184
|
+
'lavender-65': '#8a95ff',
|
|
185
|
+
'lavender-70': '#9ca6ff',
|
|
186
|
+
'lavender-80': '#bac1ff',
|
|
187
|
+
'lavender-85': '#ccd1ff',
|
|
188
|
+
'lavender-90': '#d9ddff',
|
|
189
|
+
'lavender-95': '#ebedff',
|
|
190
|
+
'light-blue-35': '#015788',
|
|
191
|
+
'light-blue-40': '#03639c',
|
|
192
|
+
'light-blue-45': '#0570ad',
|
|
193
|
+
'light-blue-50': '#087abd',
|
|
194
|
+
'light-blue-55': '#0d8bd4',
|
|
195
|
+
'light-blue-60': '#139beb',
|
|
196
|
+
'light-blue-65': '#23a8eb',
|
|
197
|
+
'light-blue-70': '#33bbf5',
|
|
198
|
+
'light-blue-80': '#6fd2fc',
|
|
199
|
+
'light-blue-85': '#9adffc',
|
|
200
|
+
'light-blue-90': '#b5e9ff',
|
|
201
|
+
'light-blue-95': '#d9f4ff',
|
|
202
|
+
'lime-35': '#425902',
|
|
203
|
+
'lime-40': '#4c6605',
|
|
204
|
+
'lime-45': '#577309',
|
|
205
|
+
'lime-50': '#61800e',
|
|
206
|
+
'lime-55': '#6c8c14',
|
|
207
|
+
'lime-60': '#7da11b',
|
|
208
|
+
'lime-65': '#89ab2c',
|
|
209
|
+
'lime-70': '#9dba4c',
|
|
210
|
+
'lime-80': '#b5d166',
|
|
211
|
+
'lime-85': '#c7de8a',
|
|
212
|
+
'lime-90': '#d7e8a9',
|
|
213
|
+
'lime-95': '#eaf2d3',
|
|
214
|
+
'magenta-35': '#941b76',
|
|
215
|
+
'magenta-40': '#a62686',
|
|
216
|
+
'magenta-45': '#b53394',
|
|
217
|
+
'magenta-50': '#c23ea1',
|
|
218
|
+
'magenta-55': '#d649b3',
|
|
219
|
+
'magenta-60': '#e85fc6',
|
|
220
|
+
'magenta-65': '#f26dd1',
|
|
221
|
+
'magenta-70': '#f582d8',
|
|
222
|
+
'magenta-80': '#f7b0e5',
|
|
223
|
+
'magenta-85': '#fac5ed',
|
|
224
|
+
'magenta-90': '#ffd1f3',
|
|
225
|
+
'magenta-95': '#ffe8f9',
|
|
226
|
+
'negative-35': '#a01d26',
|
|
227
|
+
'negative-40': '#b2242d',
|
|
228
|
+
'negative-45': '#cc2d37',
|
|
229
|
+
'negative-50': '#d93843',
|
|
230
|
+
'negative-55': '#eb4651',
|
|
231
|
+
'negative-60': '#fa5762',
|
|
232
|
+
'negative-65': '#ff6e72',
|
|
233
|
+
'negative-70': '#ff878b',
|
|
234
|
+
'negative-80': '#ffb2b5',
|
|
235
|
+
'negative-85': '#ffc7c9',
|
|
236
|
+
'negative-90': '#ffd4d5',
|
|
237
|
+
'negative-95': '#ffe8e9',
|
|
238
|
+
'neutral-0': '#000000',
|
|
239
|
+
'neutral-5': '#0f1214',
|
|
240
|
+
'neutral-15': '#23282e',
|
|
241
|
+
'neutral-25': '#373c42',
|
|
242
|
+
'neutral-35': '#464c54',
|
|
243
|
+
'neutral-40': '#596069',
|
|
244
|
+
'neutral-45': '#656c75',
|
|
245
|
+
'neutral-50': '#6f7680',
|
|
246
|
+
'neutral-55': '#7e868f',
|
|
247
|
+
'neutral-60': '#889099',
|
|
248
|
+
'neutral-65': '#979fa8',
|
|
249
|
+
'neutral-70': '#a7adb5',
|
|
250
|
+
'neutral-80': '#c1c6cc',
|
|
251
|
+
'neutral-85': '#d0d4d9',
|
|
252
|
+
'neutral-90': '#e1e4e8',
|
|
253
|
+
'neutral-95': '#f0f1f2',
|
|
254
|
+
'neutral-98': '#f7f7f7',
|
|
255
|
+
'neutral-100': '#ffffff',
|
|
256
|
+
'neutral-transparent': '#00000000',
|
|
257
|
+
'orange-35': '#942e03',
|
|
258
|
+
'orange-40': '#ad3907',
|
|
259
|
+
'orange-45': '#bd410b',
|
|
260
|
+
'orange-50': '#c44f14',
|
|
261
|
+
'orange-55': '#d95a1a',
|
|
262
|
+
'orange-60': '#f26722',
|
|
263
|
+
'orange-65': '#f7782f',
|
|
264
|
+
'orange-70': '#fc8d4c',
|
|
265
|
+
'orange-80': '#fcb88d',
|
|
266
|
+
'orange-85': '#fcc9a7',
|
|
267
|
+
'orange-90': '#ffd9bf',
|
|
268
|
+
'orange-95': '#ffeadb',
|
|
269
|
+
'pink-35': '#991d53',
|
|
270
|
+
'pink-40': '#b02863',
|
|
271
|
+
'pink-45': '#c2306f',
|
|
272
|
+
'pink-50': '#cf3a7a',
|
|
273
|
+
'pink-55': '#e3447c',
|
|
274
|
+
'pink-60': '#f2638c',
|
|
275
|
+
'pink-65': '#f57398',
|
|
276
|
+
'pink-70': '#ff87a9',
|
|
277
|
+
'pink-80': '#fcb3c8',
|
|
278
|
+
'pink-85': '#ffc4d5',
|
|
279
|
+
'pink-90': '#ffd4e0',
|
|
280
|
+
'pink-95': '#ffe8ef',
|
|
281
|
+
'positive-35': '#015788',
|
|
282
|
+
'positive-40': '#03639c',
|
|
283
|
+
'positive-45': '#0570ad',
|
|
284
|
+
'positive-50': '#087abd',
|
|
285
|
+
'positive-55': '#0d8bd4',
|
|
286
|
+
'positive-60': '#139beb',
|
|
287
|
+
'positive-65': '#23a8eb',
|
|
288
|
+
'positive-70': '#33bbf5',
|
|
289
|
+
'positive-80': '#6fd2fc',
|
|
290
|
+
'positive-85': '#9adffc',
|
|
291
|
+
'positive-90': '#b5e9ff',
|
|
292
|
+
'positive-95': '#d9f4ff',
|
|
293
|
+
'purple-35': '#6732b8',
|
|
294
|
+
'purple-40': '#753bcc',
|
|
295
|
+
'purple-45': '#864ae0',
|
|
296
|
+
'purple-50': '#8d4eed',
|
|
297
|
+
'purple-55': '#9b5ff5',
|
|
298
|
+
'purple-60': '#a974f7',
|
|
299
|
+
'purple-65': '#b587fa',
|
|
300
|
+
'purple-70': '#c299ff',
|
|
301
|
+
'purple-80': '#d6baff',
|
|
302
|
+
'purple-85': '#e0ccff',
|
|
303
|
+
'purple-90': '#e8d9ff',
|
|
304
|
+
'purple-95': '#f3ebff',
|
|
305
|
+
'red-35': '#a01d26',
|
|
306
|
+
'red-40': '#b2242d',
|
|
307
|
+
'red-45': '#cc2d37',
|
|
308
|
+
'red-50': '#d93843',
|
|
309
|
+
'red-55': '#eb4651',
|
|
310
|
+
'red-60': '#fa5762',
|
|
311
|
+
'red-65': '#ff6e72',
|
|
312
|
+
'red-70': '#ff878b',
|
|
313
|
+
'red-80': '#ffb2b5',
|
|
314
|
+
'red-85': '#ffc7c9',
|
|
315
|
+
'red-90': '#ffd4d5',
|
|
316
|
+
'red-95': '#ffe8e9',
|
|
317
|
+
'severe-warning-35': '#942e03',
|
|
318
|
+
'severe-warning-40': '#ad3907',
|
|
319
|
+
'severe-warning-45': '#bd410b',
|
|
320
|
+
'severe-warning-50': '#c44f14',
|
|
321
|
+
'severe-warning-55': '#d95a1a',
|
|
322
|
+
'severe-warning-60': '#f26722',
|
|
323
|
+
'severe-warning-65': '#f7782f',
|
|
324
|
+
'severe-warning-70': '#fc8d4c',
|
|
325
|
+
'severe-warning-80': '#fcb88d',
|
|
326
|
+
'severe-warning-85': '#fcc9a7',
|
|
327
|
+
'severe-warning-90': '#ffd9bf',
|
|
328
|
+
'severe-warning-95': '#ffeadb',
|
|
329
|
+
'sky-blue-35': '#005980',
|
|
330
|
+
'sky-blue-40': '#006691',
|
|
331
|
+
'sky-blue-45': '#0274a1',
|
|
332
|
+
'sky-blue-50': '#027fb0',
|
|
333
|
+
'sky-blue-55': '#028ec2',
|
|
334
|
+
'sky-blue-60': '#049fd9',
|
|
335
|
+
'sky-blue-65': '#09abe8',
|
|
336
|
+
'sky-blue-70': '#14bdfa',
|
|
337
|
+
'sky-blue-80': '#5ed4ff',
|
|
338
|
+
'sky-blue-85': '#8ce0ff',
|
|
339
|
+
'sky-blue-90': '#ade9ff',
|
|
340
|
+
'sky-blue-95': '#d4f3ff',
|
|
341
|
+
'slate-35': '#484f7a',
|
|
342
|
+
'slate-40': '#545c8a',
|
|
343
|
+
'slate-45': '#5d6596',
|
|
344
|
+
'slate-50': '#6871a3',
|
|
345
|
+
'slate-55': '#767eb2',
|
|
346
|
+
'slate-60': '#868ec2',
|
|
347
|
+
'slate-65': '#959ccc',
|
|
348
|
+
'slate-70': '#a3aad6',
|
|
349
|
+
'slate-80': '#c1c6e8',
|
|
350
|
+
'slate-85': '#ced3f2',
|
|
351
|
+
'slate-90': '#d9defa',
|
|
352
|
+
'slate-95': '#ebedff',
|
|
353
|
+
'teal-35': '#005c66',
|
|
354
|
+
'teal-40': '#006773',
|
|
355
|
+
'teal-45': '#017580',
|
|
356
|
+
'teal-50': '#01818c',
|
|
357
|
+
'teal-55': '#028e99',
|
|
358
|
+
'teal-60': '#04a4b0',
|
|
359
|
+
'teal-65': '#0bb2b8',
|
|
360
|
+
'teal-70': '#17c2c2',
|
|
361
|
+
'teal-80': '#4ad9d9',
|
|
362
|
+
'teal-85': '#84e3e3',
|
|
363
|
+
'teal-90': '#a9ebeb',
|
|
364
|
+
'teal-95': '#d5f5f5',
|
|
365
|
+
'warning-35': '#804103',
|
|
366
|
+
'warning-40': '#944b03',
|
|
367
|
+
'warning-45': '#a65503',
|
|
368
|
+
'warning-50': '#b05f04',
|
|
369
|
+
'warning-55': '#bd7202',
|
|
370
|
+
'warning-60': '#cc8604',
|
|
371
|
+
'warning-65': '#d6900d',
|
|
372
|
+
'warning-70': '#e0a419',
|
|
373
|
+
'warning-80': '#f0c243',
|
|
374
|
+
'warning-85': '#f2d268',
|
|
375
|
+
'warning-90': '#f5e08e',
|
|
376
|
+
'warning-95': '#faefb9',
|
|
377
|
+
'yellow-35': '#804103',
|
|
378
|
+
'yellow-40': '#944b03',
|
|
379
|
+
'yellow-45': '#a65503',
|
|
380
|
+
'yellow-50': '#b05f04',
|
|
381
|
+
'yellow-55': '#bd7202',
|
|
382
|
+
'yellow-60': '#cc8604',
|
|
383
|
+
'yellow-65': '#d6900d',
|
|
384
|
+
'yellow-70': '#e0a419',
|
|
385
|
+
'yellow-80': '#f0c243',
|
|
386
|
+
'yellow-85': '#f2d268',
|
|
387
|
+
'yellow-90': '#f5e08e',
|
|
388
|
+
'yellow-95': '#faefb9'
|
|
389
|
+
};
|
|
390
|
+
exports["default"] = _default;
|
|
@@ -4,6 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Only add official magnetic colors here, any other customizations
|
|
9
|
+
* should be added in `packages/themes/src/splunk-magnetic/index.ts` file
|
|
10
|
+
*/
|
|
7
11
|
var _default = {
|
|
8
12
|
'brand-bg-default': '#373c42',
|
|
9
13
|
'brand-bg-hover': '#373c42',
|
|
@@ -4,6 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Only add official magnetic colors here, any other customizations
|
|
9
|
+
* should be added in `packages/themes/src/splunk-magnetic/index.ts` file
|
|
10
|
+
*/
|
|
7
11
|
var _default = {
|
|
8
12
|
'brand-bg-default': '#373c42',
|
|
9
13
|
'brand-bg-hover': '#373c42',
|
|
@@ -12,8 +12,7 @@ var _constants = require("./constants");
|
|
|
12
12
|
var _themeOptions = require("./themeOptions");
|
|
13
13
|
var _themes = require("./themes");
|
|
14
14
|
var _util = require("./util");
|
|
15
|
-
function
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n["default"] = e, t && t.set(e, n), n; }
|
|
15
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
17
16
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
18
17
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
18
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
@@ -37,22 +36,32 @@ var SplunkThemesTool = /*#__PURE__*/(0, _react.memo)(function () {
|
|
|
37
36
|
globals = _useGlobals2[0],
|
|
38
37
|
updateGlobals = _useGlobals2[1];
|
|
39
38
|
var params = (0, _managerApi.useParameter)(_constants.PARAM_KEY, {});
|
|
39
|
+
var disableDualTheme = (0, _managerApi.useParameter)(_constants.DISABLE_DUAL_THEME_KEY, false);
|
|
40
40
|
var globalsTheme = globals[_constants.PARAM_KEY] || undefined;
|
|
41
41
|
var currentTheme = (0, _util.normalizeThemeOptions)(params, globalsTheme);
|
|
42
42
|
var updateTheme = (0, _react.useCallback)(function (newTheme) {
|
|
43
43
|
var mergedTheme = (0, _util.getMergedTheme)(globalsTheme, newTheme);
|
|
44
44
|
updateGlobals(_defineProperty({}, _constants.PARAM_KEY, mergedTheme));
|
|
45
45
|
}, [globalsTheme, updateGlobals]);
|
|
46
|
+
(0, _react.useEffect)(function () {
|
|
47
|
+
if (disableDualTheme) {
|
|
48
|
+
// eslint-disable-next-line no-console
|
|
49
|
+
console.warn("This story has 'disableDualTheme' set to 'true', so 'both' option will not show in theme dropdown.");
|
|
50
|
+
}
|
|
51
|
+
}, [disableDualTheme]);
|
|
46
52
|
return /*#__PURE__*/_react["default"].createElement(_components.WithTooltip, {
|
|
47
53
|
placement: "top",
|
|
48
54
|
trigger: "click",
|
|
49
55
|
tooltip: function tooltip() {
|
|
50
56
|
return Object.keys(_themeOptions.themeOptions).map(function (themeOptionKey) {
|
|
51
57
|
var themeOptionValues = _themeOptions.themeOptions[themeOptionKey];
|
|
58
|
+
|
|
59
|
+
// if story is passing disableDualTheme: true, don't display 'both' option in theme picker
|
|
60
|
+
var dualThemeOptions = disableDualTheme ? [] : ['both'];
|
|
52
61
|
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, {
|
|
53
62
|
key: themeOptionKey
|
|
54
63
|
}, /*#__PURE__*/_react["default"].createElement(_themes.TooltipSectionTitle, null, themeOptionValues.name), /*#__PURE__*/_react["default"].createElement(_components.TooltipLinkList, {
|
|
55
|
-
links: [].concat(_toConsumableArray(themeOptionValues.values),
|
|
64
|
+
links: [].concat(_toConsumableArray(themeOptionValues.values), dualThemeOptions).map(function (themeValue) {
|
|
56
65
|
var active = currentTheme[themeOptionKey] === themeValue;
|
|
57
66
|
return {
|
|
58
67
|
active: active,
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.CHANGED = exports.SET = exports.CONFIGURE = exports.UPDATE = exports.PARAM_KEY = exports.ADDON_ID = void 0;
|
|
6
|
+
exports.CHANGED = exports.SET = exports.CONFIGURE = exports.UPDATE = exports.DISABLE_DUAL_THEME_KEY = exports.PARAM_KEY = exports.ADDON_ID = void 0;
|
|
7
7
|
var ADDON_ID = '@splunk/themes';
|
|
8
8
|
exports.ADDON_ID = ADDON_ID;
|
|
9
9
|
var PARAM_KEY = 'splunkThemes';
|
|
10
10
|
exports.PARAM_KEY = PARAM_KEY;
|
|
11
|
+
var DISABLE_DUAL_THEME_KEY = 'disableDualTheme';
|
|
12
|
+
exports.DISABLE_DUAL_THEME_KEY = DISABLE_DUAL_THEME_KEY;
|
|
11
13
|
var UPDATE = "".concat(ADDON_ID, "/update");
|
|
12
14
|
exports.UPDATE = UPDATE;
|
|
13
15
|
var CONFIGURE = "".concat(ADDON_ID, "/configure");
|
|
@@ -16,8 +16,7 @@ var _themeOptions = require("./themeOptions");
|
|
|
16
16
|
var _themes = require("./themes");
|
|
17
17
|
var _util = require("./util");
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
|
-
function
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n["default"] = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) { "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); } return f; })(e, t); }
|
|
21
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
22
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
@@ -91,7 +90,7 @@ var WithSplunkTheme = function WithSplunkTheme(Story, context) {
|
|
|
91
90
|
var themeProviderProps = _objectSpread(_objectSpread({}, cleanedThemeProviderProps), {}, {
|
|
92
91
|
customizeTheme: (args === null || args === void 0 ? void 0 : args.withSplunkMagneticThemeCustomizer) ? _splunkMagnetic["default"] : undefined
|
|
93
92
|
});
|
|
94
|
-
if (dualThemeOption != null && currentTheme[dualThemeOption] === 'both') {
|
|
93
|
+
if (!parameters.disableDualTheme && dualThemeOption != null && currentTheme[dualThemeOption] === 'both') {
|
|
95
94
|
return /*#__PURE__*/_react["default"].createElement(DualStory, {
|
|
96
95
|
context: context,
|
|
97
96
|
themeOption: dualThemeOption,
|