@splunk/themes 0.23.0 → 1.0.0-beta.2
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 +3 -0
- package/CHANGELOG.v1.md +70 -0
- package/design-tokens/colors.js +495 -0
- package/design-tokens/dataViz.js +486 -0
- package/design-tokens/deprecated.js +249 -0
- package/design-tokens/elevation.js +44 -0
- package/design-tokens/index.js +23 -0
- package/design-tokens/spacing-sizing.js +39 -0
- package/design-tokens/typography.js +67 -0
- package/enterprise/comfortable.js +20 -10
- package/enterprise/compact.js +20 -14
- package/enterprise/dark.js +182 -40
- package/enterprise/dataViz.js +491 -0
- package/enterprise/index.js +1 -6
- package/enterprise/light.js +317 -265
- package/index.js +8 -0
- package/mixins/index.js +39 -1
- package/mixins/layout.js +42 -0
- package/mixins/prose.js +67 -0
- package/mixins/tests/prose.unit.js +49 -0
- package/mixins/tests/typography.unit.js +15 -18
- package/mixins/tests/utilityMixins.unit.js +1 -1
- package/mixins/typography.js +141 -144
- package/mixins/utilityMixins.js +2 -5
- package/package.json +5 -8
- package/prisma/base.js +22 -23
- package/prisma/comfortable.js +1 -7
- package/prisma/compact.js +1 -7
- package/prisma/dark.js +77 -19
- package/prisma/dataViz.js +33 -38
- package/prisma/light.js +78 -20
- package/splunk-magnetic/index.js +178 -0
- package/splunk-magnetic/magneticTokensDark.js +706 -0
- package/splunk-magnetic/magneticTokensLight.js +706 -0
- package/storybook-addon-splunk-themes/withSplunkTheme.js +8 -4
- package/types/design-tokens/colors.d.ts +875 -0
- package/types/design-tokens/dataViz.d.ts +433 -0
- package/types/design-tokens/deprecated.d.ts +468 -0
- package/types/design-tokens/elevation.d.ts +49 -0
- package/types/design-tokens/index.d.ts +541 -0
- package/types/design-tokens/spacing-sizing.d.ts +39 -0
- package/types/design-tokens/typography.d.ts +79 -0
- package/types/enterprise/comfortable.d.ts +11 -17
- package/types/enterprise/compact.d.ts +11 -21
- package/types/enterprise/dark.d.ts +412 -113
- package/types/enterprise/dataViz.d.ts +14 -0
- package/types/enterprise/index.d.ts +1 -2
- package/types/enterprise/light.d.ts +439 -139
- package/types/index.d.ts +1 -0
- package/types/mixins/index.d.ts +8 -0
- package/types/mixins/layout.d.ts +21 -0
- package/types/mixins/prose.d.ts +41 -0
- package/types/mixins/tests/prose.unit.d.ts +1 -0
- package/types/mixins/typography.d.ts +5 -12
- package/types/prisma/base.d.ts +12 -16
- package/types/prisma/comfortable.d.ts +2 -17
- package/types/prisma/compact.d.ts +2 -17
- package/types/prisma/dark.d.ts +60 -9
- package/types/prisma/dataViz.d.ts +8 -426
- package/types/prisma/light.d.ts +62 -11
- package/types/splunk-magnetic/index.d.ts +2941 -0
- package/types/splunk-magnetic/magneticTokensDark.d.ts +700 -0
- package/types/splunk-magnetic/magneticTokensLight.d.ts +700 -0
- package/types/storybook-addon-splunk-themes/SplunkThemesTool.d.ts +1 -1
- package/enterprise/prismaAliases.js +0 -95
- package/types/enterprise/prismaAliases.d.ts +0 -47
|
@@ -1,71 +1,77 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
zindexModal: number;
|
|
7
|
-
zindexPopover: number;
|
|
8
|
-
zindexToastMessages: number;
|
|
9
|
-
border: string;
|
|
10
|
-
activeBorder: string;
|
|
11
|
-
focusShadow: string;
|
|
12
|
-
focusShadowInset: string;
|
|
13
|
-
overlayShadow: string;
|
|
14
|
-
draggableBackground: string;
|
|
2
|
+
accentColorPositive: string;
|
|
3
|
+
accentColorWarning: string;
|
|
4
|
+
accentColorAlert: string;
|
|
5
|
+
accentColorNegative: string;
|
|
15
6
|
textColor: string;
|
|
16
7
|
textGray: string;
|
|
17
|
-
textDisabledColor: string;
|
|
18
8
|
linkColor: string;
|
|
19
9
|
linkColorHover: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
borderColorWeak: string;
|
|
23
|
-
borderColorStrong: string;
|
|
24
|
-
focusColor: string;
|
|
25
|
-
backgroundColorHover: string;
|
|
10
|
+
borderLightColor: string;
|
|
11
|
+
textDisabledColor: string;
|
|
26
12
|
backgroundColor: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
13
|
+
border: string;
|
|
14
|
+
brandColorL50: string;
|
|
15
|
+
brandColorL40: string;
|
|
16
|
+
brandColorL30: string;
|
|
17
|
+
brandColorL20: string;
|
|
18
|
+
brandColorL10: string;
|
|
19
|
+
brandColorD10: string;
|
|
20
|
+
brandColorD20: string;
|
|
21
|
+
brandColorD30: string;
|
|
22
|
+
brandColorD40: string;
|
|
23
|
+
brandColorD50: string;
|
|
24
|
+
gray25: string;
|
|
25
|
+
gray22: string;
|
|
26
|
+
gray20: string;
|
|
27
|
+
accentColorL50: string;
|
|
28
|
+
accentColorL40: string;
|
|
29
|
+
accentColorL30: string;
|
|
30
|
+
accentColorL20: string;
|
|
31
|
+
accentColorL10: string;
|
|
32
|
+
accentColorD20: string;
|
|
33
|
+
accentColorD30: string;
|
|
34
|
+
accentColorD40: string;
|
|
35
|
+
accentColorD50: string;
|
|
36
|
+
errorColorL50: string;
|
|
37
|
+
errorColorL40: string;
|
|
38
|
+
errorColorL30: string;
|
|
39
|
+
errorColorL20: string;
|
|
40
|
+
errorColorD30: string;
|
|
41
|
+
errorColorD40: string;
|
|
42
|
+
errorColorD50: string;
|
|
43
|
+
alertColorL50: string;
|
|
44
|
+
alertColorL40: string;
|
|
45
|
+
alertColorL30: string;
|
|
46
|
+
alertColorL20: string;
|
|
47
|
+
alertColorD20: string;
|
|
48
|
+
alertColorD30: string;
|
|
49
|
+
alertColorD40: string;
|
|
50
|
+
alertColorD50: string;
|
|
51
|
+
warningColorL50: string;
|
|
52
|
+
warningColorL40: string;
|
|
53
|
+
warningColorL30: string;
|
|
54
|
+
warningColorL20: string;
|
|
55
|
+
warningColorD20: string;
|
|
56
|
+
warningColorD30: string;
|
|
57
|
+
warningColorD40: string;
|
|
58
|
+
warningColorD50: string;
|
|
59
|
+
successColorL50: string;
|
|
60
|
+
successColorL40: string;
|
|
61
|
+
successColorL30: string;
|
|
62
|
+
successColorL20: string;
|
|
63
|
+
successColorD20: string;
|
|
64
|
+
successColorD30: string;
|
|
65
|
+
successColorD40: string;
|
|
66
|
+
successColorD50: string;
|
|
67
|
+
infoColorL50: string;
|
|
68
|
+
infoColorL40: string;
|
|
69
|
+
infoColorL30: string;
|
|
70
|
+
infoColorL20: string;
|
|
71
|
+
infoColorD20: string;
|
|
72
|
+
infoColorD30: string;
|
|
73
|
+
infoColorD40: string;
|
|
74
|
+
infoColorD50: string;
|
|
69
75
|
diverging1ColorA: string;
|
|
70
76
|
diverging1ColorB: string;
|
|
71
77
|
diverging2ColorA: string;
|
|
@@ -136,95 +142,389 @@ declare const theme: {
|
|
|
136
142
|
cat29ColorL: string;
|
|
137
143
|
cat30Color: string;
|
|
138
144
|
cat30ColorL: string;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
145
|
+
syntaxBlueLight: string;
|
|
146
|
+
syntaxGreenLight: string;
|
|
147
|
+
syntaxPurpleLight: string;
|
|
148
|
+
syntaxRedLight: string;
|
|
149
|
+
highLow4LHigh: string;
|
|
150
|
+
highLow4LLow: string;
|
|
151
|
+
highLow4DHigh: string;
|
|
152
|
+
highLow4DLow: string;
|
|
153
|
+
highLow3LHigh: string;
|
|
154
|
+
highLow3LLow: string;
|
|
155
|
+
highLow3DHigh: string;
|
|
156
|
+
highLow3DLow: string;
|
|
157
|
+
highLow2LHigh: string;
|
|
158
|
+
highLow2LLow: string;
|
|
159
|
+
highLow2DHigh: string;
|
|
160
|
+
highLow2DLow: string;
|
|
161
|
+
highLow1LHigh: string;
|
|
162
|
+
highLow1LLow: string;
|
|
163
|
+
highLow1DHigh: string;
|
|
164
|
+
highLow1DLow: string;
|
|
165
|
+
sequential6L1: string;
|
|
166
|
+
sequential6L2: string;
|
|
167
|
+
sequential6L3: string;
|
|
168
|
+
sequential6L4: string;
|
|
169
|
+
sequential6L5: string;
|
|
170
|
+
sequential6L6: string;
|
|
171
|
+
sequential6L7: string;
|
|
172
|
+
sequential6D1: string;
|
|
173
|
+
sequential6D2: string;
|
|
174
|
+
sequential6D3: string;
|
|
175
|
+
sequential6D4: string;
|
|
176
|
+
sequential6D5: string;
|
|
177
|
+
sequential6D6: string;
|
|
178
|
+
sequential6D7: string;
|
|
179
|
+
sequential5L1: string;
|
|
180
|
+
sequential5L2: string;
|
|
181
|
+
sequential5L3: string;
|
|
182
|
+
sequential5L4: string;
|
|
183
|
+
sequential5L5: string;
|
|
184
|
+
sequential5L6: string;
|
|
185
|
+
sequential5L7: string;
|
|
186
|
+
sequential5D1: string;
|
|
187
|
+
sequential5D2: string;
|
|
188
|
+
sequential5D3: string;
|
|
189
|
+
sequential5D4: string;
|
|
190
|
+
sequential5D5: string;
|
|
191
|
+
sequential5D6: string;
|
|
192
|
+
sequential5D7: string;
|
|
193
|
+
sequential4L1: string;
|
|
194
|
+
sequential4L2: string;
|
|
195
|
+
sequential4L3: string;
|
|
196
|
+
sequential4L4: string;
|
|
197
|
+
sequential4L5: string;
|
|
198
|
+
sequential4L6: string;
|
|
199
|
+
sequential4L7: string;
|
|
200
|
+
sequential4D1: string;
|
|
201
|
+
sequential4D2: string;
|
|
202
|
+
sequential4D3: string;
|
|
203
|
+
sequential4D4: string;
|
|
204
|
+
sequential4D5: string;
|
|
205
|
+
sequential4D6: string;
|
|
206
|
+
sequential4D7: string;
|
|
207
|
+
sequential3L1: string;
|
|
208
|
+
sequential3L2: string;
|
|
209
|
+
sequential3L3: string;
|
|
210
|
+
sequential3L4: string;
|
|
211
|
+
sequential3L5: string;
|
|
212
|
+
sequential3L6: string;
|
|
213
|
+
sequential3L7: string;
|
|
214
|
+
sequential3D1: string;
|
|
215
|
+
sequential3D2: string;
|
|
216
|
+
sequential3D3: string;
|
|
217
|
+
sequential3D4: string;
|
|
218
|
+
sequential3D5: string;
|
|
219
|
+
sequential3D6: string;
|
|
220
|
+
sequential3D7: string;
|
|
221
|
+
sequential2L1: string;
|
|
222
|
+
sequential2L2: string;
|
|
223
|
+
sequential2L3: string;
|
|
224
|
+
sequential2L4: string;
|
|
225
|
+
sequential2L5: string;
|
|
226
|
+
sequential2L6: string;
|
|
227
|
+
sequential2L7: string;
|
|
228
|
+
sequential2D1: string;
|
|
229
|
+
sequential2D2: string;
|
|
230
|
+
sequential2D3: string;
|
|
231
|
+
sequential2D4: string;
|
|
232
|
+
sequential2D5: string;
|
|
233
|
+
sequential2D6: string;
|
|
234
|
+
sequential2D7: string;
|
|
235
|
+
sequential1L1: string;
|
|
236
|
+
sequential1L2: string;
|
|
237
|
+
sequential1L3: string;
|
|
238
|
+
sequential1L4: string;
|
|
239
|
+
sequential1L5: string;
|
|
240
|
+
sequential1L6: string;
|
|
241
|
+
sequential1L7: string;
|
|
242
|
+
sequential1D1: string;
|
|
243
|
+
sequential1D2: string;
|
|
244
|
+
sequential1D3: string;
|
|
245
|
+
sequential1D4: string;
|
|
246
|
+
sequential1D5: string;
|
|
247
|
+
sequential1D6: string;
|
|
248
|
+
sequential1D7: string;
|
|
249
|
+
divergent4L1: string;
|
|
250
|
+
divergent4L2: string;
|
|
251
|
+
divergent4L3: string;
|
|
252
|
+
divergent4L4: string;
|
|
253
|
+
divergent4L5: string;
|
|
254
|
+
divergent4L6: string;
|
|
255
|
+
divergent4L7: string;
|
|
256
|
+
divergent4D1: string;
|
|
257
|
+
divergent4D2: string;
|
|
258
|
+
divergent4D3: string;
|
|
259
|
+
divergent4D4: string;
|
|
260
|
+
divergent4D5: string;
|
|
261
|
+
divergent4D6: string;
|
|
262
|
+
divergent4D7: string;
|
|
263
|
+
divergent3L1: string;
|
|
264
|
+
divergent3L2: string;
|
|
265
|
+
divergent3L3: string;
|
|
266
|
+
divergent3L4: string;
|
|
267
|
+
divergent3L5: string;
|
|
268
|
+
divergent3L6: string;
|
|
269
|
+
divergent3L7: string;
|
|
270
|
+
divergent3D1: string;
|
|
271
|
+
divergent3D2: string;
|
|
272
|
+
divergent3D3: string;
|
|
273
|
+
divergent3D4: string;
|
|
274
|
+
divergent3D5: string;
|
|
275
|
+
divergent3D6: string;
|
|
276
|
+
divergent3D7: string;
|
|
277
|
+
divergent2L1: string;
|
|
278
|
+
divergent2L2: string;
|
|
279
|
+
divergent2L3: string;
|
|
280
|
+
divergent2L4: string;
|
|
281
|
+
divergent2L5: string;
|
|
282
|
+
divergent2L6: string;
|
|
283
|
+
divergent2L7: string;
|
|
284
|
+
divergent2D1: string;
|
|
285
|
+
divergent2D2: string;
|
|
286
|
+
divergent2D3: string;
|
|
287
|
+
divergent2D4: string;
|
|
288
|
+
divergent2D5: string;
|
|
289
|
+
divergent2D6: string;
|
|
290
|
+
divergent2D7: string;
|
|
291
|
+
divergent1L1: string;
|
|
292
|
+
divergent1L2: string;
|
|
293
|
+
divergent1L3: string;
|
|
294
|
+
divergent1L4: string;
|
|
295
|
+
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
|
+
*/
|
|
302
|
+
divergent1L7: string;
|
|
303
|
+
divergent1D1: string;
|
|
304
|
+
divergent1D2: string;
|
|
305
|
+
divergent1D3: string;
|
|
306
|
+
divergent1D4: string;
|
|
307
|
+
divergent1D5: string;
|
|
308
|
+
divergent1D6: string;
|
|
309
|
+
divergent1D7: string;
|
|
310
|
+
categorical2L1: string;
|
|
311
|
+
categorical2L2: string;
|
|
312
|
+
categorical2L3: string;
|
|
313
|
+
categorical2L4: string;
|
|
314
|
+
categorical2L5: string;
|
|
315
|
+
categorical2L6: string;
|
|
316
|
+
categorical2L7: string;
|
|
317
|
+
categorical2D1: string;
|
|
318
|
+
categorical2D2: string;
|
|
319
|
+
categorical2D3: string;
|
|
320
|
+
categorical2D4: string;
|
|
321
|
+
categorical2D5: string;
|
|
322
|
+
categorical2D6: string;
|
|
323
|
+
categorical2D7: string;
|
|
324
|
+
categorical1L1: string;
|
|
325
|
+
categorical1L2: string;
|
|
326
|
+
categorical1L3: string;
|
|
327
|
+
categorical1L4: string;
|
|
328
|
+
categorical1L5: string;
|
|
329
|
+
categorical1L6: string;
|
|
330
|
+
categorical1L7: string;
|
|
331
|
+
categorical1D1: string;
|
|
332
|
+
categorical1D2: string;
|
|
333
|
+
categorical1D3: string;
|
|
334
|
+
categorical1D4: string;
|
|
335
|
+
categorical1D5: string;
|
|
336
|
+
categorical1D6: string;
|
|
337
|
+
categorical1D7: string;
|
|
338
|
+
static1: string;
|
|
339
|
+
static2: string;
|
|
340
|
+
static3: string;
|
|
341
|
+
static4: string;
|
|
342
|
+
static5: string;
|
|
343
|
+
static6: string;
|
|
344
|
+
static7: string;
|
|
345
|
+
static8: string;
|
|
346
|
+
static9: string;
|
|
347
|
+
static10: string;
|
|
348
|
+
static11: string;
|
|
349
|
+
static12: string;
|
|
350
|
+
static13: string;
|
|
351
|
+
static14: string;
|
|
352
|
+
static15: string;
|
|
353
|
+
static16: string;
|
|
354
|
+
static17: string;
|
|
355
|
+
static18: string;
|
|
356
|
+
static19: string;
|
|
357
|
+
static20: string;
|
|
358
|
+
zindexLayer: number;
|
|
359
|
+
zindexFixedNavbar: number;
|
|
360
|
+
zindexModalBackdrop: number;
|
|
361
|
+
zindexModal: number;
|
|
362
|
+
zindexPopover: number;
|
|
363
|
+
zindexToastMessages: number;
|
|
364
|
+
interactiveColorPrimary: string;
|
|
365
|
+
interactiveColorBorder: string;
|
|
366
|
+
interactiveColorBorderActive: string;
|
|
367
|
+
interactiveColorBorderHover: string;
|
|
368
|
+
interactiveColorBorderDisabled: string;
|
|
369
|
+
interactiveColorOverlaySelected: string;
|
|
370
|
+
interactiveColorOverlayHover: string;
|
|
371
|
+
interactiveColorOverlayActive: string;
|
|
372
|
+
interactiveColorOverlayDrag: string;
|
|
373
|
+
interactiveColorBackground: string;
|
|
374
|
+
interactiveColorBackgroundDisabled: string;
|
|
375
|
+
interactiveColorAccent: string;
|
|
376
|
+
interactiveColorAccentError: string;
|
|
377
|
+
interactiveColorAccentErrorStrong: string;
|
|
378
|
+
contentBackgroundColorNegativeWeak: string;
|
|
379
|
+
contentColorLink: string;
|
|
380
|
+
contentColorAccent: string;
|
|
381
|
+
contentColorAccentStrong: string;
|
|
382
|
+
contentColorAccentWeak: string;
|
|
383
|
+
contentColorActive: string;
|
|
384
|
+
contentColorDefault: string;
|
|
385
|
+
contentColorDisabled: string;
|
|
386
|
+
contentColorInfo: string;
|
|
387
|
+
contentColorInverted: string;
|
|
388
|
+
contentColorMuted: string;
|
|
389
|
+
contentColorNegative: string;
|
|
390
|
+
contentColorNegativeStrong: string;
|
|
391
|
+
contentColorNegativeWeak: string;
|
|
392
|
+
contentColorPositive: string;
|
|
393
|
+
contentColorWarning: string;
|
|
394
|
+
lineLength: string;
|
|
395
|
+
lineHeight: string;
|
|
396
|
+
fontSizeSmall: string;
|
|
397
|
+
fontSize: string;
|
|
398
|
+
fontSizeLarge: string;
|
|
399
|
+
fontSizeXLarge: string;
|
|
400
|
+
fontSizeXXLarge: string;
|
|
401
|
+
fontWeightLight: number;
|
|
402
|
+
fontWeightNormal: number;
|
|
403
|
+
fontWeightSemiBold: number;
|
|
404
|
+
fontWeightBold: number;
|
|
405
|
+
fontWeightHeavy: number;
|
|
406
|
+
fontWeightExtraBold: number;
|
|
407
|
+
fontFamily: string;
|
|
408
|
+
fontFamilyTitle: string;
|
|
409
|
+
sansFontFamily: string;
|
|
410
|
+
serifFontFamily: string;
|
|
411
|
+
monoFontFamily: string;
|
|
412
|
+
focusShadow: string;
|
|
413
|
+
focusShadowInset: string;
|
|
414
|
+
draggableBackground: string;
|
|
415
|
+
borderActiveColor: string;
|
|
416
|
+
backgroundColorHover: string;
|
|
417
|
+
borderColor: string;
|
|
418
|
+
borderColorWeak: string;
|
|
419
|
+
borderColorStrong: string;
|
|
420
|
+
focusColor: string;
|
|
421
|
+
syntaxBlue: string;
|
|
422
|
+
syntaxBrown: string;
|
|
423
|
+
syntaxGray: string;
|
|
424
|
+
syntaxGreen: string;
|
|
425
|
+
syntaxOrange: string;
|
|
426
|
+
syntaxPink: string;
|
|
427
|
+
syntaxPurple: string;
|
|
428
|
+
syntaxRed: string;
|
|
429
|
+
syntaxTeal: string;
|
|
430
|
+
embossShadow: string;
|
|
431
|
+
overlayShadow: string;
|
|
432
|
+
dragShadow: string;
|
|
433
|
+
modalShadow: string;
|
|
434
|
+
statusColorInfo: string;
|
|
435
|
+
statusColorInfoWeak: string;
|
|
436
|
+
statusColorInfoStrong: string;
|
|
437
|
+
statusColorNormal: string;
|
|
438
|
+
statusColorNormalWeak: string;
|
|
439
|
+
statusColorNormalStrong: string;
|
|
440
|
+
statusColorLow: string;
|
|
441
|
+
statusColorLowWeak: string;
|
|
442
|
+
statusColorLowStrong: string;
|
|
443
|
+
statusColorMedium: string;
|
|
444
|
+
statusColorMediumWeak: string;
|
|
445
|
+
statusColorMediumStrong: string;
|
|
446
|
+
/**
|
|
447
|
+
* ## Layers
|
|
448
|
+
* If a variable does not suit your purpose, set a value relatively, such as zindexModal +1.
|
|
449
|
+
*
|
|
450
|
+
* @valueSet
|
|
451
|
+
*/
|
|
452
|
+
statusColorHigh: string;
|
|
453
|
+
statusColorHighWeak: string;
|
|
454
|
+
statusColorHighStrong: string;
|
|
455
|
+
statusColorCritical: string;
|
|
456
|
+
statusColorCriticalWeak: string;
|
|
457
|
+
statusColorCriticalStrong: string;
|
|
458
|
+
black: string;
|
|
459
|
+
neutral100: string;
|
|
460
|
+
neutral200: string;
|
|
461
|
+
neutral300: string;
|
|
462
|
+
neutral400: string;
|
|
463
|
+
neutral500: string;
|
|
464
|
+
white: string;
|
|
465
|
+
transparent: string;
|
|
466
|
+
actionColorBackgroundPrimary: string;
|
|
467
|
+
actionColorBackgroundPrimaryActive: string;
|
|
468
|
+
actionColorBackgroundPrimaryDisabled: string;
|
|
469
|
+
actionColorBackgroundPrimaryHover: string;
|
|
470
|
+
actionColorBackgroundSecondary: string;
|
|
471
|
+
actionColorBackgroundSecondaryActive: string;
|
|
472
|
+
actionColorBackgroundSecondaryDisabled: string;
|
|
473
|
+
actionColorBackgroundSecondaryHover: string;
|
|
474
|
+
actionColorBackgroundSubtle: string;
|
|
475
|
+
actionColorBackgroundSubtleActive: string;
|
|
476
|
+
actionColorBackgroundSubtleDisabled: string;
|
|
477
|
+
actionColorBackgroundSubtleHover: string;
|
|
478
|
+
actionColorBackgroundDestructive: string;
|
|
479
|
+
actionColorBackgroundDestructiveActive: string;
|
|
480
|
+
actionColorBackgroundDestructiveDisabled: string;
|
|
481
|
+
actionColorBackgroundDestructiveHover: string;
|
|
482
|
+
actionColorBackgroundDestructiveSecondary: string;
|
|
483
|
+
actionColorBackgroundDestructiveSecondaryActive: string;
|
|
484
|
+
actionColorBackgroundDestructiveSecondaryDisabled: string;
|
|
485
|
+
actionColorBackgroundDestructiveSecondaryHover: string;
|
|
486
|
+
actionColorBorderSecondary: string;
|
|
487
|
+
actionColorBorderSecondaryActive: string;
|
|
488
|
+
actionColorBorderSecondaryDisabled: string;
|
|
489
|
+
actionColorBorderSecondaryHover: string;
|
|
490
|
+
actionColorBorderDestructiveSecondary: string;
|
|
491
|
+
actionColorBorderDestructiveSecondaryActive: string;
|
|
492
|
+
actionColorBorderDestructiveSecondaryDisabled: string;
|
|
493
|
+
actionColorBorderDestructiveSecondaryHover: string;
|
|
494
|
+
backgroundColorNavigation: string;
|
|
495
|
+
backgroundColorPage: string;
|
|
496
|
+
backgroundColorSidebar: string;
|
|
497
|
+
backgroundColorSection: string;
|
|
498
|
+
backgroundColorDialog: string;
|
|
499
|
+
backgroundColorPopup: string;
|
|
500
|
+
backgroundColorFloating: string;
|
|
501
|
+
backgroundColorScrim: string;
|
|
502
|
+
gray30: string;
|
|
503
|
+
gray45: string;
|
|
504
|
+
gray60: string;
|
|
505
|
+
gray80: string;
|
|
506
|
+
gray92: string;
|
|
507
|
+
gray96: string;
|
|
508
|
+
gray98: string;
|
|
509
|
+
successColor: string;
|
|
510
|
+
warningColor: string;
|
|
511
|
+
alertColor: string;
|
|
512
|
+
errorColor: string;
|
|
513
|
+
accentColorD10: string;
|
|
514
|
+
accentColor: string;
|
|
144
515
|
infoColor: string;
|
|
516
|
+
infoColorL10: string;
|
|
145
517
|
infoColorD10: string;
|
|
146
|
-
infoColorD20: string;
|
|
147
|
-
infoColorD30: string;
|
|
148
|
-
infoColorD40: string;
|
|
149
|
-
infoColorD50: string;
|
|
150
|
-
successColorL50: string;
|
|
151
|
-
successColorL40: string;
|
|
152
|
-
successColorL30: string;
|
|
153
|
-
successColorL20: string;
|
|
154
518
|
successColorL10: string;
|
|
155
|
-
successColor: string;
|
|
156
519
|
successColorD10: string;
|
|
157
|
-
successColorD20: string;
|
|
158
|
-
successColorD30: string;
|
|
159
|
-
successColorD40: string;
|
|
160
|
-
successColorD50: string;
|
|
161
|
-
warningColorL50: string;
|
|
162
|
-
warningColorL40: string;
|
|
163
|
-
warningColorL30: string;
|
|
164
|
-
warningColorL20: string;
|
|
165
520
|
warningColorL10: string;
|
|
166
|
-
warningColor: string;
|
|
167
521
|
warningColorD10: string;
|
|
168
|
-
warningColorD20: string;
|
|
169
|
-
warningColorD30: string;
|
|
170
|
-
warningColorD40: string;
|
|
171
|
-
warningColorD50: string;
|
|
172
|
-
alertColorL50: string;
|
|
173
|
-
alertColorL40: string;
|
|
174
|
-
alertColorL30: string;
|
|
175
|
-
alertColorL20: string;
|
|
176
522
|
alertColorL10: string;
|
|
177
|
-
alertColor: string;
|
|
178
523
|
alertColorD10: string;
|
|
179
|
-
alertColorD20: string;
|
|
180
|
-
alertColorD30: string;
|
|
181
|
-
alertColorD40: string;
|
|
182
|
-
alertColorD50: string;
|
|
183
|
-
errorColorL50: string;
|
|
184
|
-
errorColorL40: string;
|
|
185
|
-
errorColorL30: string;
|
|
186
|
-
errorColorL20: string;
|
|
187
524
|
errorColorL10: string;
|
|
188
|
-
errorColor: string;
|
|
189
525
|
errorColorD10: string;
|
|
190
526
|
errorColorD20: string;
|
|
191
|
-
errorColorD30: string;
|
|
192
|
-
errorColorD40: string;
|
|
193
|
-
errorColorD50: string;
|
|
194
|
-
accentColorL50: string;
|
|
195
|
-
accentColorL40: string;
|
|
196
|
-
accentColorL30: string;
|
|
197
|
-
accentColorL20: string;
|
|
198
|
-
accentColorL10: string;
|
|
199
|
-
accentColor: string;
|
|
200
|
-
accentColorD10: string;
|
|
201
|
-
accentColorD20: string;
|
|
202
|
-
accentColorD30: string;
|
|
203
|
-
accentColorD40: string;
|
|
204
|
-
accentColorD50: string;
|
|
205
|
-
white: string;
|
|
206
|
-
gray98: string;
|
|
207
|
-
gray96: string;
|
|
208
|
-
gray92: string;
|
|
209
|
-
gray80: string;
|
|
210
|
-
gray60: string;
|
|
211
|
-
gray45: string;
|
|
212
|
-
gray30: string;
|
|
213
|
-
gray25: string;
|
|
214
|
-
gray22: string;
|
|
215
|
-
gray20: string;
|
|
216
|
-
black: string;
|
|
217
|
-
brandColorL50: string;
|
|
218
|
-
brandColorL40: string;
|
|
219
|
-
brandColorL30: string;
|
|
220
|
-
brandColorL20: string;
|
|
221
|
-
brandColorL10: string;
|
|
222
527
|
brandColor: string;
|
|
223
|
-
brandColorD10: string;
|
|
224
|
-
brandColorD20: string;
|
|
225
|
-
brandColorD30: string;
|
|
226
|
-
brandColorD40: string;
|
|
227
|
-
brandColorD50: string;
|
|
228
528
|
};
|
|
229
529
|
type Light = typeof theme;
|
|
230
530
|
export default theme;
|
package/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { default as mixins } from './mixins';
|
|
|
4
4
|
export { default as pick } from './pick';
|
|
5
5
|
export { default as pickVariant } from './pickVariant';
|
|
6
6
|
export { default as SplunkThemeProvider } from './SplunkThemeProvider';
|
|
7
|
+
export { default as unstable_splunkMagneticThemeCustomizer } from './splunk-magnetic';
|
|
7
8
|
export { default as useSplunkTheme } from './useSplunkTheme';
|
|
8
9
|
export { default as withSplunkTheme } from './withSplunkTheme';
|
|
9
10
|
export { default as variables } from './variables';
|
package/types/mixins/index.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import typography from './typography';
|
|
2
|
+
import prose from './prose';
|
|
3
|
+
import layout from './layout';
|
|
2
4
|
export * from './utilityMixins';
|
|
5
|
+
export { default as layout } from './layout';
|
|
6
|
+
export * from './layout';
|
|
7
|
+
export { default as prose } from './prose';
|
|
8
|
+
export * from './prose';
|
|
3
9
|
export { default as typography } from './typography';
|
|
4
10
|
export * from './typography';
|
|
5
11
|
declare const _default: {
|
|
12
|
+
layout: typeof layout;
|
|
13
|
+
prose: typeof prose;
|
|
6
14
|
typography: typeof typography;
|
|
7
15
|
reset: <T extends import("../types").AnyTheme, A extends import("../types").ThemedProps<import("../types").AnyTheme>>(display?: string) => import("../types").Interpolation<T, A>;
|
|
8
16
|
clearfix: typeof import("./utilityMixins").clearfix;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AnyTheme, Interpolation, ThemedProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Layout styles elements for common layout use cases
|
|
4
|
+
*
|
|
5
|
+
* #### Example
|
|
6
|
+
* ```
|
|
7
|
+
* import styled from 'styled-components';
|
|
8
|
+
* import { layout } from '@splunk/themes/mixins';
|
|
9
|
+
*
|
|
10
|
+
* const Wrapper = styled.div`
|
|
11
|
+
* ${layout()};
|
|
12
|
+
* `;
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @name layout
|
|
16
|
+
* @kind function
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
declare function layout<T extends AnyTheme, A extends ThemedProps>(): Interpolation<T, A>;
|
|
21
|
+
export default layout;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FlattenSimpleInterpolation } from 'styled-components';
|
|
2
|
+
import { AnyTheme, Interpolation, ThemedProps } from '../types';
|
|
3
|
+
type ProseElementSelectors = {
|
|
4
|
+
h1?: string | FlattenSimpleInterpolation;
|
|
5
|
+
h2?: string | FlattenSimpleInterpolation;
|
|
6
|
+
h3?: string | FlattenSimpleInterpolation;
|
|
7
|
+
h4?: string | FlattenSimpleInterpolation;
|
|
8
|
+
h5?: string | FlattenSimpleInterpolation;
|
|
9
|
+
h6?: string | FlattenSimpleInterpolation;
|
|
10
|
+
ul?: string | FlattenSimpleInterpolation;
|
|
11
|
+
ol?: string | FlattenSimpleInterpolation;
|
|
12
|
+
dl?: string | FlattenSimpleInterpolation;
|
|
13
|
+
p?: string | FlattenSimpleInterpolation;
|
|
14
|
+
figure?: string | FlattenSimpleInterpolation;
|
|
15
|
+
img?: string | FlattenSimpleInterpolation;
|
|
16
|
+
pre?: string | FlattenSimpleInterpolation;
|
|
17
|
+
table?: string | FlattenSimpleInterpolation;
|
|
18
|
+
fieldset?: string | FlattenSimpleInterpolation;
|
|
19
|
+
hr?: string | FlattenSimpleInterpolation;
|
|
20
|
+
blockquote?: string | FlattenSimpleInterpolation;
|
|
21
|
+
};
|
|
22
|
+
type ProseConfiguration = {
|
|
23
|
+
elementSelectors?: ProseElementSelectors;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Prose styles block-level HTML elements to create a compliant and optimal
|
|
27
|
+
* reading experience for long form text content.
|
|
28
|
+
*
|
|
29
|
+
* @name prose
|
|
30
|
+
* @kind function
|
|
31
|
+
*
|
|
32
|
+
* @param {object} [elementSelectors]
|
|
33
|
+
* By default, all elements are selected by their html tag using `*:is(<tag>)`;
|
|
34
|
+
* 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
|
+
*/
|
|
39
|
+
declare function prose<T extends AnyTheme, A extends ThemedProps>({ elementSelectors, }?: ProseConfiguration): Interpolation<T, A>;
|
|
40
|
+
export default prose;
|
|
41
|
+
export { ProseElementSelectors };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'jest-styled-components';
|