@shell-shock/plugin-theme 0.4.35 → 0.4.37

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.
Files changed (111) hide show
  1. package/dist/ansi-utils-BBqikbV-.d.mts +80 -0
  2. package/dist/ansi-utils-BBqikbV-.d.mts.map +1 -0
  3. package/dist/ansi-utils-CY_ghxdQ.d.cts +80 -0
  4. package/dist/ansi-utils-CY_ghxdQ.d.cts.map +1 -0
  5. package/dist/constants-Bs8URqjD.d.cts +12 -0
  6. package/dist/constants-Bs8URqjD.d.cts.map +1 -0
  7. package/dist/constants-Bs8URqjD.d.mts +12 -0
  8. package/dist/constants-Bs8URqjD.d.mts.map +1 -0
  9. package/dist/contexts/theme.cjs +2 -2
  10. package/dist/contexts/theme.d.cts +2 -3
  11. package/dist/contexts/theme.d.cts.map +1 -1
  12. package/dist/contexts/theme.d.mts +2 -3
  13. package/dist/contexts/theme.mjs +1 -1
  14. package/dist/helpers/ansi-utils.d.cts +2 -81
  15. package/dist/helpers/ansi-utils.d.mts +2 -81
  16. package/dist/helpers/border-styles.cjs +10 -13
  17. package/dist/helpers/border-styles.d.cts +1 -2
  18. package/dist/helpers/border-styles.d.cts.map +1 -1
  19. package/dist/helpers/border-styles.d.mts +1 -2
  20. package/dist/helpers/border-styles.mjs +10 -12
  21. package/dist/helpers/constants.cjs +0 -1
  22. package/dist/helpers/constants.d.cts +2 -12
  23. package/dist/helpers/constants.d.mts +2 -12
  24. package/dist/helpers/index.d.cts +2 -2
  25. package/dist/helpers/index.d.mts +2 -2
  26. package/dist/helpers/merge.d.cts +2 -3
  27. package/dist/helpers/merge.d.cts.map +1 -1
  28. package/dist/helpers/merge.d.mts +2 -3
  29. package/dist/helpers/spinners.cjs +0 -1
  30. package/dist/helpers/spinners.d.cts +2 -735
  31. package/dist/helpers/spinners.d.mts +2 -735
  32. package/dist/index.cjs +2292 -51
  33. package/dist/index.d.cts +3 -3
  34. package/dist/index.d.cts.map +1 -1
  35. package/dist/index.d.mts +3 -3
  36. package/dist/index.mjs +2268 -52
  37. package/dist/plugin-D_4VGrBE.d.cts +27 -0
  38. package/dist/plugin-D_4VGrBE.d.cts.map +1 -0
  39. package/dist/plugin-liH648jU.d.mts +27 -0
  40. package/dist/plugin-liH648jU.d.mts.map +1 -0
  41. package/dist/spinners-BB6Z_PUM.d.cts +735 -0
  42. package/dist/spinners-BB6Z_PUM.d.cts.map +1 -0
  43. package/dist/spinners-BB6Z_PUM.d.mts +735 -0
  44. package/dist/spinners-BB6Z_PUM.d.mts.map +1 -0
  45. package/dist/theme-B_q1llDJ.d.mts +417 -0
  46. package/dist/theme-B_q1llDJ.d.mts.map +1 -0
  47. package/dist/theme-C68ywMEZ.d.cts +417 -0
  48. package/dist/theme-C68ywMEZ.d.cts.map +1 -0
  49. package/dist/types/index.cjs +2 -0
  50. package/dist/types/index.d.cts +2 -2
  51. package/dist/types/index.d.mts +2 -2
  52. package/dist/types/index.mjs +3 -0
  53. package/dist/types/plugin.d.cts +2 -29
  54. package/dist/types/plugin.d.mts +2 -28
  55. package/dist/types/theme.d.cts +2 -418
  56. package/dist/types/theme.d.mts +2 -418
  57. package/package.json +16 -14
  58. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  59. package/dist/_virtual/_rolldown/runtime.mjs +0 -8
  60. package/dist/core/dist/types/command.d.cts +0 -264
  61. package/dist/core/dist/types/command.d.cts.map +0 -1
  62. package/dist/core/dist/types/command.d.mts +0 -8
  63. package/dist/core/dist/types/command.d.mts.map +0 -1
  64. package/dist/core/dist/types/config.d.cts +0 -120
  65. package/dist/core/dist/types/config.d.cts.map +0 -1
  66. package/dist/core/dist/types/config.d.mts +0 -10
  67. package/dist/core/dist/types/config.d.mts.map +0 -1
  68. package/dist/core/dist/types/context.d.cts +0 -29
  69. package/dist/core/dist/types/context.d.cts.map +0 -1
  70. package/dist/core/dist/types/context.d.mts +0 -10
  71. package/dist/core/dist/types/context.d.mts.map +0 -1
  72. package/dist/core/dist/types/env.d.cts +0 -1
  73. package/dist/core/dist/types/env.d.mts +0 -8
  74. package/dist/core/dist/types/env.d.mts.map +0 -1
  75. package/dist/core/dist/types/index.d.cts +0 -3
  76. package/dist/core/dist/types/index.d.mts +0 -12
  77. package/dist/core/dist/types/index.d.mts.map +0 -1
  78. package/dist/helpers/ansi-utils.d.cts.map +0 -1
  79. package/dist/helpers/ansi-utils.d.mts.map +0 -1
  80. package/dist/helpers/constants.d.cts.map +0 -1
  81. package/dist/helpers/constants.d.mts.map +0 -1
  82. package/dist/helpers/spinners.d.cts.map +0 -1
  83. package/dist/helpers/spinners.d.mts.map +0 -1
  84. package/dist/style-dictionary/border-styles.cjs +0 -284
  85. package/dist/style-dictionary/border-styles.mjs +0 -285
  86. package/dist/style-dictionary/border-styles.mjs.map +0 -1
  87. package/dist/style-dictionary/colors.cjs +0 -1390
  88. package/dist/style-dictionary/colors.mjs +0 -1391
  89. package/dist/style-dictionary/colors.mjs.map +0 -1
  90. package/dist/style-dictionary/icons.cjs +0 -168
  91. package/dist/style-dictionary/icons.mjs +0 -169
  92. package/dist/style-dictionary/icons.mjs.map +0 -1
  93. package/dist/style-dictionary/labels.cjs +0 -150
  94. package/dist/style-dictionary/labels.mjs +0 -151
  95. package/dist/style-dictionary/labels.mjs.map +0 -1
  96. package/dist/style-dictionary/padding.cjs +0 -37
  97. package/dist/style-dictionary/padding.mjs +0 -38
  98. package/dist/style-dictionary/padding.mjs.map +0 -1
  99. package/dist/style-dictionary/settings.cjs +0 -25
  100. package/dist/style-dictionary/settings.mjs +0 -26
  101. package/dist/style-dictionary/settings.mjs.map +0 -1
  102. package/dist/style-dictionary/spinners.cjs +0 -30
  103. package/dist/style-dictionary/spinners.mjs +0 -31
  104. package/dist/style-dictionary/spinners.mjs.map +0 -1
  105. package/dist/themes/default.cjs +0 -156
  106. package/dist/themes/default.mjs +0 -156
  107. package/dist/themes/default.mjs.map +0 -1
  108. package/dist/types/plugin.d.cts.map +0 -1
  109. package/dist/types/plugin.d.mts.map +0 -1
  110. package/dist/types/theme.d.cts.map +0 -1
  111. package/dist/types/theme.d.mts.map +0 -1
@@ -1,1391 +0,0 @@
1
- import { mergeThemes } from "../helpers/merge.mjs";
2
- import { isSetObject } from "@stryke/type-checks/is-set-object";
3
- import { isSetString } from "@stryke/type-checks/is-set-string";
4
- import { camelCase } from "@stryke/string-format/camel-case";
5
-
6
- //#region src/style-dictionary/colors.ts
7
- /**
8
- * Shell Shock - Theme Colors Preprocessor
9
- *
10
- * @remarks
11
- * This preprocessor applies custom value transformations to design tokens based on the provided configuration options.
12
- */
13
- const colors = (context) => ({
14
- name: "shell-shock/colors",
15
- preprocessor: (dictionary, _options) => {
16
- const resolvedConfig = {};
17
- resolvedConfig.name = dictionary.$theme ?? context.config.name;
18
- resolvedConfig.colors ??= {
19
- text: {
20
- banner: {},
21
- heading: {},
22
- body: {},
23
- message: {
24
- link: {},
25
- header: {},
26
- footer: {},
27
- description: {}
28
- },
29
- tags: { $default: "#FFFFFF" }
30
- },
31
- border: {
32
- banner: {
33
- outline: {},
34
- divider: {}
35
- },
36
- app: {
37
- table: {},
38
- divider: {},
39
- blockquote: {}
40
- },
41
- message: {
42
- outline: {},
43
- divider: {}
44
- }
45
- }
46
- };
47
- const colors = dictionary.colors;
48
- if (isSetString(colors)) resolvedConfig.colors = {
49
- text: {
50
- banner: {
51
- title: {
52
- primary: colors,
53
- secondary: colors,
54
- tertiary: colors
55
- },
56
- header: {
57
- primary: colors,
58
- secondary: colors,
59
- tertiary: colors
60
- },
61
- footer: {
62
- primary: colors,
63
- secondary: colors,
64
- tertiary: colors
65
- },
66
- command: {
67
- primary: colors,
68
- secondary: colors,
69
- tertiary: colors
70
- },
71
- description: {
72
- primary: colors,
73
- secondary: colors,
74
- tertiary: colors
75
- },
76
- link: {
77
- primary: colors,
78
- secondary: colors,
79
- tertiary: colors
80
- }
81
- },
82
- heading: {
83
- primary: colors,
84
- secondary: colors,
85
- tertiary: colors
86
- },
87
- body: {
88
- primary: colors,
89
- secondary: colors,
90
- tertiary: colors,
91
- link: colors
92
- },
93
- message: {
94
- link: {
95
- help: colors,
96
- success: colors,
97
- info: colors,
98
- debug: colors,
99
- warning: colors,
100
- danger: colors,
101
- error: colors
102
- },
103
- header: {
104
- help: colors,
105
- success: colors,
106
- info: colors,
107
- debug: colors,
108
- warning: colors,
109
- danger: colors,
110
- error: colors
111
- },
112
- footer: {
113
- help: colors,
114
- success: colors,
115
- info: colors,
116
- debug: colors,
117
- warning: colors,
118
- danger: colors,
119
- error: colors
120
- },
121
- description: {
122
- help: colors,
123
- success: colors,
124
- info: colors,
125
- debug: colors,
126
- warning: colors,
127
- danger: colors,
128
- error: colors
129
- }
130
- },
131
- usage: {
132
- bin: colors,
133
- command: colors,
134
- dynamic: colors,
135
- options: colors,
136
- args: colors,
137
- description: colors
138
- },
139
- prompt: {
140
- icon: {
141
- active: colors,
142
- cancelled: colors,
143
- warning: colors,
144
- error: colors,
145
- submitted: colors,
146
- disabled: colors
147
- },
148
- message: {
149
- active: colors,
150
- cancelled: colors,
151
- warning: colors,
152
- error: colors,
153
- submitted: colors,
154
- disabled: colors
155
- },
156
- input: {
157
- active: colors,
158
- inactive: colors,
159
- cancelled: colors,
160
- warning: colors,
161
- error: colors,
162
- submitted: colors,
163
- placeholder: colors,
164
- disabled: colors
165
- },
166
- description: {
167
- active: colors,
168
- inactive: colors,
169
- cancelled: colors,
170
- warning: colors,
171
- error: colors,
172
- submitted: colors,
173
- disabled: colors
174
- }
175
- },
176
- spinner: {
177
- icon: {
178
- active: colors,
179
- error: colors,
180
- success: colors,
181
- help: colors,
182
- info: colors,
183
- warning: colors
184
- },
185
- message: {
186
- active: colors,
187
- error: colors,
188
- success: colors,
189
- help: colors,
190
- info: colors,
191
- warning: colors
192
- }
193
- },
194
- tags: { $default: colors }
195
- },
196
- border: {
197
- banner: {
198
- outline: {
199
- primary: colors,
200
- secondary: colors,
201
- tertiary: colors
202
- },
203
- divider: {
204
- primary: colors,
205
- secondary: colors,
206
- tertiary: colors
207
- }
208
- },
209
- app: {
210
- table: {
211
- primary: colors,
212
- secondary: colors,
213
- tertiary: colors
214
- },
215
- divider: {
216
- primary: colors,
217
- secondary: colors,
218
- tertiary: colors
219
- },
220
- blockquote: {
221
- primary: colors,
222
- secondary: colors,
223
- tertiary: colors
224
- }
225
- },
226
- message: {
227
- outline: {
228
- help: colors,
229
- success: colors,
230
- info: colors,
231
- debug: colors,
232
- warning: colors,
233
- danger: colors,
234
- error: colors
235
- },
236
- divider: {
237
- help: colors,
238
- success: colors,
239
- info: colors,
240
- debug: colors,
241
- warning: colors,
242
- danger: colors,
243
- error: colors
244
- }
245
- }
246
- }
247
- };
248
- else if (isSetObject(colors)) {
249
- resolvedConfig.colors.text ??= {
250
- banner: {},
251
- heading: {},
252
- body: {},
253
- message: {
254
- link: {},
255
- header: {},
256
- footer: {},
257
- description: {}
258
- }
259
- };
260
- const text = colors.text;
261
- if (isSetString(text)) resolvedConfig.colors.text = {
262
- banner: {
263
- title: {
264
- primary: text,
265
- secondary: text,
266
- tertiary: text
267
- },
268
- header: {
269
- primary: text,
270
- secondary: text,
271
- tertiary: text
272
- },
273
- footer: {
274
- primary: text,
275
- secondary: text,
276
- tertiary: text
277
- },
278
- command: {
279
- primary: text,
280
- secondary: text,
281
- tertiary: text
282
- },
283
- description: {
284
- primary: text,
285
- secondary: text,
286
- tertiary: text
287
- },
288
- link: {
289
- primary: text,
290
- secondary: text,
291
- tertiary: text
292
- }
293
- },
294
- heading: {
295
- primary: text,
296
- secondary: text,
297
- tertiary: text
298
- },
299
- body: {
300
- primary: text,
301
- secondary: text,
302
- tertiary: text,
303
- link: text
304
- },
305
- message: {
306
- link: {
307
- help: text,
308
- success: text,
309
- info: text,
310
- debug: text,
311
- warning: text,
312
- danger: text,
313
- error: text
314
- },
315
- header: {
316
- help: text,
317
- success: text,
318
- info: text,
319
- debug: text,
320
- warning: text,
321
- danger: text,
322
- error: text
323
- },
324
- footer: {
325
- help: text,
326
- success: text,
327
- info: text,
328
- debug: text,
329
- warning: text,
330
- danger: text,
331
- error: text
332
- },
333
- description: {
334
- help: text,
335
- success: text,
336
- info: text,
337
- debug: text,
338
- warning: text,
339
- danger: text,
340
- error: text
341
- }
342
- },
343
- usage: {
344
- bin: text,
345
- command: text,
346
- dynamic: text,
347
- options: text,
348
- args: text,
349
- description: text
350
- },
351
- prompt: {
352
- icon: {
353
- active: text,
354
- cancelled: text,
355
- warning: text,
356
- error: text,
357
- submitted: text,
358
- disabled: text
359
- },
360
- message: {
361
- active: text,
362
- cancelled: text,
363
- warning: text,
364
- error: text,
365
- submitted: text,
366
- disabled: text
367
- },
368
- input: {
369
- active: text,
370
- inactive: text,
371
- cancelled: text,
372
- warning: text,
373
- error: text,
374
- submitted: text,
375
- placeholder: text,
376
- disabled: text
377
- },
378
- description: {
379
- active: text,
380
- inactive: text,
381
- cancelled: text,
382
- warning: text,
383
- error: text,
384
- submitted: text,
385
- disabled: text
386
- }
387
- },
388
- spinner: {
389
- icon: {
390
- active: text,
391
- error: text,
392
- success: text,
393
- help: text,
394
- info: text,
395
- warning: text
396
- },
397
- message: {
398
- active: text,
399
- error: text,
400
- success: text,
401
- help: text,
402
- info: text,
403
- warning: text
404
- }
405
- },
406
- tags: { $default: text }
407
- };
408
- else if (isSetObject(text)) {
409
- resolvedConfig.colors.text.banner ??= {};
410
- const banner = text.banner;
411
- if (isSetString(banner)) resolvedConfig.colors.text.banner = {
412
- title: {
413
- primary: banner,
414
- secondary: banner,
415
- tertiary: banner
416
- },
417
- header: {
418
- primary: banner,
419
- secondary: banner,
420
- tertiary: banner
421
- },
422
- footer: {
423
- primary: banner,
424
- secondary: banner,
425
- tertiary: banner
426
- },
427
- command: {
428
- primary: banner,
429
- secondary: banner,
430
- tertiary: banner
431
- },
432
- description: {
433
- primary: banner,
434
- secondary: banner,
435
- tertiary: banner
436
- },
437
- link: {
438
- primary: banner,
439
- secondary: banner,
440
- tertiary: banner
441
- }
442
- };
443
- else if (isSetObject(text.banner)) {
444
- resolvedConfig.colors.text.banner.title ??= {};
445
- const title = text.banner.title;
446
- if (isSetString(text.banner.title)) resolvedConfig.colors.text.banner.title = {
447
- primary: text.banner.title,
448
- secondary: text.banner.title,
449
- tertiary: text.banner.title
450
- };
451
- else if (isSetObject(title)) {
452
- if (isSetString(title.primary)) resolvedConfig.colors.text.banner.title.primary = title.primary;
453
- if (isSetString(title.secondary)) resolvedConfig.colors.text.banner.title.secondary = title.secondary;
454
- if (isSetString(title.tertiary)) resolvedConfig.colors.text.banner.title.tertiary = title.tertiary;
455
- }
456
- resolvedConfig.colors.text.banner.header ??= {};
457
- const header = text.banner.header;
458
- if (isSetString(text.banner.header)) resolvedConfig.colors.text.banner.header = {
459
- primary: text.banner.header,
460
- secondary: text.banner.header,
461
- tertiary: text.banner.header
462
- };
463
- else if (isSetObject(header)) {
464
- if (isSetString(header.primary)) resolvedConfig.colors.text.banner.header.primary = header.primary;
465
- if (isSetString(header.secondary)) resolvedConfig.colors.text.banner.header.secondary = header.secondary;
466
- if (isSetString(header.tertiary)) resolvedConfig.colors.text.banner.header.tertiary = header.tertiary;
467
- }
468
- resolvedConfig.colors.text.banner.footer ??= {};
469
- const footer = text.banner.footer;
470
- if (isSetString(text.banner.footer)) resolvedConfig.colors.text.banner.footer = {
471
- primary: text.banner.footer,
472
- secondary: text.banner.footer,
473
- tertiary: text.banner.footer
474
- };
475
- else if (isSetObject(footer)) {
476
- if (isSetString(footer.primary)) resolvedConfig.colors.text.banner.footer.primary = footer.primary;
477
- if (isSetString(footer.secondary)) resolvedConfig.colors.text.banner.footer.secondary = footer.secondary;
478
- if (isSetString(footer.tertiary)) resolvedConfig.colors.text.banner.footer.tertiary = footer.tertiary;
479
- }
480
- resolvedConfig.colors.text.banner.command ??= {};
481
- const command = text.banner.command;
482
- if (isSetString(text.banner.command)) resolvedConfig.colors.text.banner.command = {
483
- primary: text.banner.command,
484
- secondary: text.banner.command,
485
- tertiary: text.banner.command
486
- };
487
- else if (isSetObject(command)) {
488
- if (isSetString(command.primary)) resolvedConfig.colors.text.banner.command.primary = command.primary;
489
- if (isSetString(command.secondary)) resolvedConfig.colors.text.banner.command.secondary = command.secondary;
490
- if (isSetString(command.tertiary)) resolvedConfig.colors.text.banner.command.tertiary = command.tertiary;
491
- }
492
- resolvedConfig.colors.text.banner.description ??= {};
493
- const description = text.banner.description;
494
- if (isSetString(text.banner.description)) resolvedConfig.colors.text.banner.description = {
495
- primary: text.banner.description,
496
- secondary: text.banner.description,
497
- tertiary: text.banner.description
498
- };
499
- else if (isSetObject(description)) {
500
- if (isSetString(description.primary)) resolvedConfig.colors.text.banner.description.primary = description.primary;
501
- if (isSetString(description.secondary)) resolvedConfig.colors.text.banner.description.secondary = description.secondary;
502
- if (isSetString(description.tertiary)) resolvedConfig.colors.text.banner.description.tertiary = description.tertiary;
503
- }
504
- resolvedConfig.colors.text.banner.link ??= {};
505
- const link = text.banner.link;
506
- if (isSetString(text.banner.link)) resolvedConfig.colors.text.banner.link = {
507
- primary: text.banner.link,
508
- secondary: text.banner.link,
509
- tertiary: text.banner.link
510
- };
511
- else if (isSetObject(link)) {
512
- if (isSetString(link.primary)) resolvedConfig.colors.text.banner.link.primary = link.primary;
513
- if (isSetString(link.secondary)) resolvedConfig.colors.text.banner.link.secondary = link.secondary;
514
- if (isSetString(link.tertiary)) resolvedConfig.colors.text.banner.link.tertiary = link.tertiary;
515
- }
516
- }
517
- resolvedConfig.colors.text.body ??= {};
518
- if (isSetString(text.body)) {
519
- const color = text.body;
520
- resolvedConfig.colors.text.body = {
521
- primary: color,
522
- secondary: color,
523
- tertiary: color,
524
- link: color
525
- };
526
- } else if (isSetObject(text.body)) {
527
- if (isSetString(text.body.primary)) resolvedConfig.colors.text.body.primary = text.body.primary;
528
- if (isSetString(text.body.secondary)) resolvedConfig.colors.text.body.secondary = text.body.secondary;
529
- if (isSetString(text.body.tertiary)) resolvedConfig.colors.text.body.tertiary = text.body.tertiary;
530
- if (isSetString(text.body.link)) resolvedConfig.colors.text.body.link = text.body.link;
531
- }
532
- resolvedConfig.colors.text.heading ??= {};
533
- if (isSetString(text.heading)) {
534
- const color = text.heading;
535
- resolvedConfig.colors.text.heading = {
536
- primary: color,
537
- secondary: color,
538
- tertiary: color
539
- };
540
- } else if (isSetObject(text.heading)) {
541
- if (isSetString(text.heading.primary)) resolvedConfig.colors.text.heading.primary = text.heading.primary;
542
- if (isSetString(text.heading.secondary)) resolvedConfig.colors.text.heading.secondary = text.heading.secondary;
543
- if (isSetString(text.heading.tertiary)) resolvedConfig.colors.text.heading.tertiary = text.heading.tertiary;
544
- }
545
- resolvedConfig.colors.text.usage ??= {};
546
- if (isSetString(text.usage)) resolvedConfig.colors.text.usage = {
547
- bin: text.usage,
548
- command: text.usage,
549
- dynamic: text.usage,
550
- options: text.usage,
551
- args: text.usage,
552
- description: text.usage
553
- };
554
- else if (isSetObject(text.usage)) {
555
- if (isSetString(text.usage.bin)) resolvedConfig.colors.text.usage.bin = text.usage.bin;
556
- if (isSetString(text.usage.command)) resolvedConfig.colors.text.usage.command = text.usage.command;
557
- if (isSetString(text.usage.dynamic)) resolvedConfig.colors.text.usage.dynamic = text.usage.dynamic;
558
- if (isSetString(text.usage.options)) resolvedConfig.colors.text.usage.options = text.usage.options;
559
- if (isSetString(text.usage.args)) resolvedConfig.colors.text.usage.args = text.usage.args;
560
- if (isSetString(text.usage.description)) resolvedConfig.colors.text.usage.description = text.usage.description;
561
- }
562
- resolvedConfig.colors.text.message ??= {
563
- link: {},
564
- header: {},
565
- footer: {},
566
- description: {}
567
- };
568
- const message = text.message;
569
- if (isSetString(message)) resolvedConfig.colors.text.message = {
570
- link: {
571
- help: message,
572
- success: message,
573
- info: message,
574
- debug: message,
575
- warning: message,
576
- danger: message,
577
- error: message
578
- },
579
- header: {
580
- help: message,
581
- success: message,
582
- info: message,
583
- debug: message,
584
- warning: message,
585
- danger: message,
586
- error: message
587
- },
588
- footer: {
589
- help: message,
590
- success: message,
591
- info: message,
592
- debug: message,
593
- warning: message,
594
- danger: message,
595
- error: message
596
- },
597
- description: {
598
- help: message,
599
- success: message,
600
- info: message,
601
- debug: message,
602
- warning: message,
603
- danger: message,
604
- error: message
605
- }
606
- };
607
- else if (isSetObject(message)) {
608
- resolvedConfig.colors.text.message.link ??= {};
609
- const link = message.link;
610
- if (isSetString(link)) resolvedConfig.colors.text.message.link = {
611
- help: link,
612
- success: link,
613
- info: link,
614
- debug: link,
615
- warning: link,
616
- danger: link,
617
- error: link
618
- };
619
- else if (isSetObject(link)) {
620
- if (isSetString(link.help)) resolvedConfig.colors.text.message.link.help = link.help;
621
- if (isSetString(link.success)) resolvedConfig.colors.text.message.link.success = link.success;
622
- if (isSetString(link.info)) resolvedConfig.colors.text.message.link.info = link.info;
623
- if (isSetString(link.debug)) resolvedConfig.colors.text.message.link.debug = link.debug;
624
- if (isSetString(link.warning)) resolvedConfig.colors.text.message.link.warning = link.warning;
625
- if (isSetString(link.danger)) resolvedConfig.colors.text.message.link.danger = link.danger;
626
- if (isSetString(link.error)) resolvedConfig.colors.text.message.link.error = link.error;
627
- }
628
- resolvedConfig.colors.text.message.description ??= {};
629
- const description = message.description;
630
- if (isSetString(description)) resolvedConfig.colors.text.message.description = {
631
- help: description,
632
- success: description,
633
- info: description,
634
- debug: description,
635
- warning: description,
636
- danger: description,
637
- error: description
638
- };
639
- else if (isSetObject(description)) {
640
- if (isSetString(description.help)) resolvedConfig.colors.text.message.description.help = description.help;
641
- if (isSetString(description.success)) resolvedConfig.colors.text.message.description.success = description.success;
642
- if (isSetString(description.info)) resolvedConfig.colors.text.message.description.info = description.info;
643
- if (isSetString(description.debug)) resolvedConfig.colors.text.message.description.debug = description.debug;
644
- if (isSetString(description.warning)) resolvedConfig.colors.text.message.description.warning = description.warning;
645
- if (isSetString(description.danger)) resolvedConfig.colors.text.message.description.danger = description.danger;
646
- if (isSetString(description.error)) resolvedConfig.colors.text.message.description.error = description.error;
647
- }
648
- resolvedConfig.colors.text.message.header ??= {};
649
- const header = message.header;
650
- if (isSetString(header)) resolvedConfig.colors.text.message.header = {
651
- help: header,
652
- success: header,
653
- info: header,
654
- debug: header,
655
- warning: header,
656
- danger: header,
657
- error: header
658
- };
659
- else if (isSetObject(header)) {
660
- if (isSetString(header.help)) resolvedConfig.colors.text.message.header.help = header.help;
661
- if (isSetString(header.success)) resolvedConfig.colors.text.message.header.success = header.success;
662
- if (isSetString(header.info)) resolvedConfig.colors.text.message.header.info = header.info;
663
- if (isSetString(header.debug)) resolvedConfig.colors.text.message.header.debug = header.debug;
664
- if (isSetString(header.warning)) resolvedConfig.colors.text.message.header.warning = header.warning;
665
- if (isSetString(header.danger)) resolvedConfig.colors.text.message.header.danger = header.danger;
666
- if (isSetString(header.error)) resolvedConfig.colors.text.message.header.error = header.error;
667
- }
668
- resolvedConfig.colors.text.message.footer ??= {};
669
- const footer = message.footer;
670
- if (isSetString(footer)) resolvedConfig.colors.text.message.footer = {
671
- help: footer,
672
- success: footer,
673
- info: footer,
674
- debug: footer,
675
- warning: footer,
676
- danger: footer,
677
- error: footer
678
- };
679
- else if (isSetObject(footer)) {
680
- if (isSetString(footer.help)) resolvedConfig.colors.text.message.footer.help = footer.help;
681
- if (isSetString(footer.success)) resolvedConfig.colors.text.message.footer.success = footer.success;
682
- if (isSetString(footer.info)) resolvedConfig.colors.text.message.footer.info = footer.info;
683
- if (isSetString(footer.debug)) resolvedConfig.colors.text.message.footer.debug = footer.debug;
684
- if (isSetString(footer.warning)) resolvedConfig.colors.text.message.footer.warning = footer.warning;
685
- if (isSetString(footer.danger)) resolvedConfig.colors.text.message.footer.danger = footer.danger;
686
- if (isSetString(footer.error)) resolvedConfig.colors.text.message.footer.error = footer.error;
687
- }
688
- }
689
- resolvedConfig.colors.text.prompt ??= {
690
- icon: {},
691
- message: {},
692
- input: {},
693
- description: {}
694
- };
695
- const prompt = text.prompt;
696
- if (isSetString(prompt)) resolvedConfig.colors.text.prompt = {
697
- icon: {
698
- active: prompt,
699
- cancelled: prompt,
700
- warning: prompt,
701
- error: prompt,
702
- submitted: prompt,
703
- disabled: prompt
704
- },
705
- message: {
706
- active: prompt,
707
- cancelled: prompt,
708
- warning: prompt,
709
- error: prompt,
710
- submitted: prompt,
711
- disabled: prompt
712
- },
713
- input: {
714
- active: prompt,
715
- inactive: prompt,
716
- cancelled: prompt,
717
- warning: prompt,
718
- error: prompt,
719
- submitted: prompt,
720
- placeholder: prompt,
721
- disabled: prompt
722
- },
723
- description: {
724
- active: prompt,
725
- inactive: prompt,
726
- cancelled: prompt,
727
- warning: prompt,
728
- error: prompt,
729
- submitted: prompt,
730
- disabled: prompt
731
- }
732
- };
733
- else if (isSetObject(prompt)) {
734
- if (isSetString(prompt.icon)) {
735
- const icon = prompt.icon;
736
- resolvedConfig.colors.text.prompt.icon = {
737
- active: icon,
738
- cancelled: icon,
739
- warning: icon,
740
- error: icon,
741
- submitted: icon,
742
- disabled: icon
743
- };
744
- } else if (isSetObject(prompt.icon)) {
745
- if (isSetString(prompt.icon.active)) resolvedConfig.colors.text.prompt.icon.active = prompt.icon.active;
746
- if (isSetString(prompt.icon.cancelled)) resolvedConfig.colors.text.prompt.icon.cancelled = prompt.icon.cancelled;
747
- if (isSetString(prompt.icon.warning)) resolvedConfig.colors.text.prompt.icon.warning = prompt.icon.warning;
748
- if (isSetString(prompt.icon.error)) resolvedConfig.colors.text.prompt.icon.error = prompt.icon.error;
749
- if (isSetString(prompt.icon.submitted)) resolvedConfig.colors.text.prompt.icon.submitted = prompt.icon.submitted;
750
- if (isSetString(prompt.icon.disabled)) resolvedConfig.colors.text.prompt.icon.disabled = prompt.icon.disabled;
751
- }
752
- if (isSetString(prompt.message)) {
753
- const message = prompt.message;
754
- resolvedConfig.colors.text.prompt.message = {
755
- active: message,
756
- cancelled: message,
757
- warning: message,
758
- error: message,
759
- submitted: message,
760
- disabled: message
761
- };
762
- } else if (isSetObject(prompt.message)) {
763
- if (isSetString(prompt.message.active)) resolvedConfig.colors.text.prompt.message.active = prompt.message.active;
764
- if (isSetString(prompt.message.cancelled)) resolvedConfig.colors.text.prompt.message.cancelled = prompt.message.cancelled;
765
- if (isSetString(prompt.message.warning)) resolvedConfig.colors.text.prompt.message.warning = prompt.message.warning;
766
- if (isSetString(prompt.message.error)) resolvedConfig.colors.text.prompt.message.error = prompt.message.error;
767
- if (isSetString(prompt.message.submitted)) resolvedConfig.colors.text.prompt.message.submitted = prompt.message.submitted;
768
- if (isSetString(prompt.message.disabled)) resolvedConfig.colors.text.prompt.message.disabled = prompt.message.disabled;
769
- }
770
- if (isSetString(prompt.input)) {
771
- const input = prompt.input;
772
- resolvedConfig.colors.text.prompt.input = {
773
- active: input,
774
- inactive: input,
775
- cancelled: input,
776
- warning: input,
777
- error: input,
778
- submitted: input,
779
- placeholder: input,
780
- disabled: input
781
- };
782
- } else if (isSetObject(prompt.input)) {
783
- if (isSetString(prompt.input.active)) resolvedConfig.colors.text.prompt.input.active = prompt.input.active;
784
- if (isSetString(prompt.input.inactive)) resolvedConfig.colors.text.prompt.input.inactive = prompt.input.inactive;
785
- if (isSetString(prompt.input.cancelled)) resolvedConfig.colors.text.prompt.input.cancelled = prompt.input.cancelled;
786
- if (isSetString(prompt.input.warning)) resolvedConfig.colors.text.prompt.input.warning = prompt.input.warning;
787
- if (isSetString(prompt.input.error)) resolvedConfig.colors.text.prompt.input.error = prompt.input.error;
788
- if (isSetString(prompt.input.submitted)) resolvedConfig.colors.text.prompt.input.submitted = prompt.input.submitted;
789
- if (isSetString(prompt.input.placeholder)) resolvedConfig.colors.text.prompt.input.placeholder = prompt.input.placeholder;
790
- if (isSetString(prompt.input.disabled)) resolvedConfig.colors.text.prompt.input.disabled = prompt.input.disabled;
791
- }
792
- if (isSetString(prompt.description)) {
793
- const description = prompt.description;
794
- resolvedConfig.colors.text.prompt.description = {
795
- active: description,
796
- inactive: description,
797
- cancelled: description,
798
- warning: description,
799
- error: description,
800
- submitted: description,
801
- disabled: description
802
- };
803
- } else if (isSetObject(prompt.description)) {
804
- if (isSetString(prompt.description.active)) resolvedConfig.colors.text.prompt.description.active = prompt.description.active;
805
- if (isSetString(prompt.description.inactive)) resolvedConfig.colors.text.prompt.description.inactive = prompt.description.inactive;
806
- if (isSetString(prompt.description.cancelled)) resolvedConfig.colors.text.prompt.description.cancelled = prompt.description.cancelled;
807
- if (isSetString(prompt.description.warning)) resolvedConfig.colors.text.prompt.description.warning = prompt.description.warning;
808
- if (isSetString(prompt.description.error)) resolvedConfig.colors.text.prompt.description.error = prompt.description.error;
809
- if (isSetString(prompt.description.submitted)) resolvedConfig.colors.text.prompt.description.submitted = prompt.description.submitted;
810
- if (isSetString(prompt.description.disabled)) resolvedConfig.colors.text.prompt.description.disabled = prompt.description.disabled;
811
- }
812
- }
813
- resolvedConfig.colors.text.spinner ??= {
814
- icon: {},
815
- message: {}
816
- };
817
- const spinner = text.spinner;
818
- if (isSetString(spinner)) resolvedConfig.colors.text.spinner = {
819
- icon: {
820
- active: spinner,
821
- error: spinner,
822
- success: spinner,
823
- help: spinner,
824
- info: spinner,
825
- warning: spinner
826
- },
827
- message: {
828
- active: spinner,
829
- error: spinner,
830
- success: spinner,
831
- help: spinner,
832
- info: spinner,
833
- warning: spinner
834
- }
835
- };
836
- else if (isSetObject(spinner)) {
837
- if (isSetString(spinner.icon)) {
838
- const icon = spinner.icon;
839
- resolvedConfig.colors.text.spinner.icon = {
840
- active: icon,
841
- error: icon,
842
- success: icon,
843
- help: icon,
844
- info: icon,
845
- warning: icon
846
- };
847
- } else if (isSetObject(spinner.icon)) {
848
- if (isSetString(spinner.icon.active)) resolvedConfig.colors.text.spinner.icon.active = spinner.icon.active;
849
- if (isSetString(spinner.icon.error)) resolvedConfig.colors.text.spinner.icon.error = spinner.icon.error;
850
- if (isSetString(spinner.icon.success)) resolvedConfig.colors.text.spinner.icon.success = spinner.icon.success;
851
- if (isSetString(spinner.icon.help)) resolvedConfig.colors.text.spinner.icon.help = spinner.icon.help;
852
- if (isSetString(spinner.icon.info)) resolvedConfig.colors.text.spinner.icon.info = spinner.icon.info;
853
- if (isSetString(spinner.icon.warning)) resolvedConfig.colors.text.spinner.icon.warning = spinner.icon.warning;
854
- }
855
- if (isSetString(spinner.message)) {
856
- const message = spinner.message;
857
- resolvedConfig.colors.text.spinner.message = {
858
- active: message,
859
- error: message,
860
- success: message,
861
- help: message,
862
- info: message,
863
- warning: message
864
- };
865
- } else if (isSetObject(spinner.message)) {
866
- if (isSetString(spinner.message.active)) resolvedConfig.colors.text.spinner.message.active = spinner.message.active;
867
- if (isSetString(spinner.message.error)) resolvedConfig.colors.text.spinner.message.error = spinner.message.error;
868
- if (isSetString(spinner.message.success)) resolvedConfig.colors.text.spinner.message.success = spinner.message.success;
869
- if (isSetString(spinner.message.help)) resolvedConfig.colors.text.spinner.message.help = spinner.message.help;
870
- if (isSetString(spinner.message.info)) resolvedConfig.colors.text.spinner.message.info = spinner.message.info;
871
- if (isSetString(spinner.message.warning)) resolvedConfig.colors.text.spinner.message.warning = spinner.message.warning;
872
- }
873
- }
874
- resolvedConfig.colors.text.tags ??= { $default: "#FFFFFF" };
875
- const tags = text.tags;
876
- if (isSetString(tags)) resolvedConfig.colors.text.tags = { $default: tags };
877
- else if (isSetObject(tags)) {
878
- for (const [tag, value] of Object.entries(tags)) if (isSetString(value)) resolvedConfig.colors.text.tags[tag === "$default" ? "$default" : camelCase(tag)] = value;
879
- }
880
- }
881
- resolvedConfig.colors.border ??= {
882
- banner: {
883
- outline: {},
884
- divider: {}
885
- },
886
- app: {
887
- table: {},
888
- divider: {},
889
- blockquote: {}
890
- },
891
- message: {
892
- outline: {},
893
- divider: {}
894
- }
895
- };
896
- const border = colors.border;
897
- if (isSetString(border)) resolvedConfig.colors.border = {
898
- banner: {
899
- outline: {
900
- primary: border,
901
- secondary: border,
902
- tertiary: border
903
- },
904
- divider: {
905
- primary: border,
906
- secondary: border,
907
- tertiary: border
908
- }
909
- },
910
- app: {
911
- table: {
912
- primary: border,
913
- secondary: border,
914
- tertiary: border
915
- },
916
- divider: {
917
- primary: border,
918
- secondary: border,
919
- tertiary: border
920
- },
921
- blockquote: {
922
- primary: border,
923
- secondary: border,
924
- tertiary: border
925
- }
926
- },
927
- message: {
928
- outline: {
929
- help: border,
930
- success: border,
931
- info: border,
932
- debug: border,
933
- warning: border,
934
- danger: border,
935
- error: border
936
- },
937
- divider: {
938
- help: border,
939
- success: border,
940
- info: border,
941
- debug: border,
942
- warning: border,
943
- danger: border,
944
- error: border
945
- }
946
- }
947
- };
948
- else if (isSetObject(border)) {
949
- resolvedConfig.colors.border.banner ??= {
950
- outline: {},
951
- divider: {}
952
- };
953
- const banner = border.banner;
954
- if (isSetString(banner)) resolvedConfig.colors.border.banner = {
955
- outline: {
956
- primary: banner,
957
- secondary: banner,
958
- tertiary: banner
959
- },
960
- divider: {
961
- primary: banner,
962
- secondary: banner,
963
- tertiary: banner
964
- }
965
- };
966
- else if (isSetObject(banner)) if ("outline" in banner || "divider" in banner) {
967
- resolvedConfig.colors.border.banner.outline = {};
968
- const outline = banner.outline;
969
- if (isSetString(outline)) resolvedConfig.colors.border.banner.outline = {
970
- primary: outline,
971
- secondary: outline,
972
- tertiary: outline
973
- };
974
- else if (isSetObject(outline)) {
975
- if (isSetString(outline.primary)) resolvedConfig.colors.border.banner.outline.primary = outline.primary;
976
- if (isSetString(outline.secondary)) resolvedConfig.colors.border.banner.outline.secondary = outline.secondary;
977
- if (isSetString(outline.tertiary)) resolvedConfig.colors.border.banner.outline.tertiary = outline.tertiary;
978
- }
979
- resolvedConfig.colors.border.banner.divider ??= {};
980
- const divider = banner.divider;
981
- if (isSetString(divider)) resolvedConfig.colors.border.banner.divider = {
982
- primary: divider,
983
- secondary: divider,
984
- tertiary: divider
985
- };
986
- else if (isSetObject(divider)) {
987
- if (isSetString(divider.primary)) resolvedConfig.colors.border.banner.divider.primary = divider.primary;
988
- if (isSetString(divider.secondary)) resolvedConfig.colors.border.banner.divider.secondary = divider.secondary;
989
- if (isSetString(divider.tertiary)) resolvedConfig.colors.border.banner.divider.tertiary = divider.tertiary;
990
- }
991
- } else {
992
- resolvedConfig.colors.border.banner.outline ??= {};
993
- resolvedConfig.colors.border.banner.divider ??= {};
994
- const banner = border.banner;
995
- if (isSetString(banner.primary)) {
996
- resolvedConfig.colors.border.banner.outline.primary = banner.primary;
997
- resolvedConfig.colors.border.banner.divider.primary = banner.primary;
998
- }
999
- if (isSetString(banner.secondary)) {
1000
- resolvedConfig.colors.border.banner.outline.secondary = banner.secondary;
1001
- resolvedConfig.colors.border.banner.divider.secondary = banner.secondary;
1002
- }
1003
- if (isSetString(banner.tertiary)) {
1004
- resolvedConfig.colors.border.banner.outline.tertiary = banner.tertiary;
1005
- resolvedConfig.colors.border.banner.divider.tertiary = banner.tertiary;
1006
- }
1007
- }
1008
- resolvedConfig.colors.border.app ??= {
1009
- table: {},
1010
- divider: {}
1011
- };
1012
- const app = border.app;
1013
- if (isSetString(app)) resolvedConfig.colors.border.app = {
1014
- table: {
1015
- primary: app,
1016
- secondary: app,
1017
- tertiary: app
1018
- },
1019
- divider: {
1020
- primary: app,
1021
- secondary: app,
1022
- tertiary: app
1023
- },
1024
- blockquote: {
1025
- primary: app,
1026
- secondary: app,
1027
- tertiary: app
1028
- }
1029
- };
1030
- else if (isSetObject(app)) {
1031
- resolvedConfig.colors.border.app ??= {};
1032
- if ("table" in app || "divider" in app || "blockquote" in app) {
1033
- if (isSetString(app.table)) resolvedConfig.colors.border.app.table = {
1034
- primary: app.table,
1035
- secondary: app.table,
1036
- tertiary: app.table
1037
- };
1038
- else if (isSetObject(app.table)) {
1039
- resolvedConfig.colors.border.app.table = {};
1040
- const table = app.table;
1041
- if (isSetString(table.primary)) resolvedConfig.colors.border.app.table.primary = table.primary;
1042
- if (isSetString(table.secondary)) resolvedConfig.colors.border.app.table.secondary = table.secondary;
1043
- if (isSetString(table.tertiary)) resolvedConfig.colors.border.app.table.tertiary = table.tertiary;
1044
- }
1045
- if (isSetString(app.divider)) resolvedConfig.colors.border.app.divider = {
1046
- primary: app.divider,
1047
- secondary: app.divider,
1048
- tertiary: app.divider
1049
- };
1050
- else if (isSetObject(app.divider)) {
1051
- resolvedConfig.colors.border.app.divider = {};
1052
- const divider = app.divider;
1053
- if (isSetString(divider.primary)) resolvedConfig.colors.border.app.divider.primary = divider.primary;
1054
- if (isSetString(divider.secondary)) resolvedConfig.colors.border.app.divider.secondary = divider.secondary;
1055
- if (isSetString(divider.tertiary)) resolvedConfig.colors.border.app.divider.tertiary = divider.tertiary;
1056
- }
1057
- if (isSetString(app.blockquote)) resolvedConfig.colors.border.app.blockquote = {
1058
- primary: app.blockquote,
1059
- secondary: app.blockquote,
1060
- tertiary: app.blockquote
1061
- };
1062
- else if (isSetObject(app.blockquote)) {
1063
- resolvedConfig.colors.border.app.blockquote = {};
1064
- const blockquote = app.blockquote;
1065
- if (isSetString(blockquote.primary)) resolvedConfig.colors.border.app.blockquote.primary = blockquote.primary;
1066
- if (isSetString(blockquote.secondary)) resolvedConfig.colors.border.app.blockquote.secondary = blockquote.secondary;
1067
- if (isSetString(blockquote.tertiary)) resolvedConfig.colors.border.app.blockquote.tertiary = blockquote.tertiary;
1068
- }
1069
- } else {
1070
- resolvedConfig.colors.border.app.table ??= {};
1071
- resolvedConfig.colors.border.app.divider ??= {};
1072
- resolvedConfig.colors.border.app.blockquote ??= {};
1073
- const app = border.app;
1074
- if (isSetString(app.primary)) {
1075
- resolvedConfig.colors.border.app.table.primary = app.primary;
1076
- resolvedConfig.colors.border.app.divider.primary = app.primary;
1077
- resolvedConfig.colors.border.app.blockquote.primary = app.primary;
1078
- }
1079
- if (isSetString(app.secondary)) {
1080
- resolvedConfig.colors.border.app.table.secondary = app.secondary;
1081
- resolvedConfig.colors.border.app.divider.secondary = app.secondary;
1082
- resolvedConfig.colors.border.app.blockquote.secondary = app.secondary;
1083
- }
1084
- if (isSetString(app.tertiary)) {
1085
- resolvedConfig.colors.border.app.table.tertiary = app.tertiary;
1086
- resolvedConfig.colors.border.app.divider.tertiary = app.tertiary;
1087
- resolvedConfig.colors.border.app.blockquote.tertiary = app.tertiary;
1088
- }
1089
- }
1090
- }
1091
- resolvedConfig.colors.border.message ??= {
1092
- outline: {},
1093
- divider: {}
1094
- };
1095
- const message = border.message;
1096
- if (isSetString(message)) resolvedConfig.colors.border.message = {
1097
- outline: {
1098
- help: message,
1099
- success: message,
1100
- info: message,
1101
- debug: message,
1102
- warning: message,
1103
- danger: message,
1104
- error: message
1105
- },
1106
- divider: {
1107
- help: message,
1108
- success: message,
1109
- info: message,
1110
- debug: message,
1111
- warning: message,
1112
- danger: message,
1113
- error: message
1114
- }
1115
- };
1116
- else if (isSetObject(message)) {
1117
- resolvedConfig.colors.border.message ??= {};
1118
- if ("outline" in message || "divider" in message) {
1119
- if (isSetString(message.outline)) resolvedConfig.colors.border.message.outline = {
1120
- help: message.outline,
1121
- success: message.outline,
1122
- info: message.outline,
1123
- debug: message.outline,
1124
- warning: message.outline,
1125
- danger: message.outline,
1126
- error: message.outline
1127
- };
1128
- else if (isSetObject(message.outline)) {
1129
- resolvedConfig.colors.border.message.outline ??= {};
1130
- const outline = message.outline;
1131
- if (isSetString(outline.help)) resolvedConfig.colors.border.message.outline.help = outline.help;
1132
- if (isSetString(outline.success)) resolvedConfig.colors.border.message.outline.success = outline.success;
1133
- if (isSetString(outline.info)) resolvedConfig.colors.border.message.outline.info = outline.info;
1134
- if (isSetString(outline.debug)) resolvedConfig.colors.border.message.outline.debug = outline.debug;
1135
- if (isSetString(outline.warning)) resolvedConfig.colors.border.message.outline.warning = outline.warning;
1136
- if (isSetString(outline.danger)) resolvedConfig.colors.border.message.outline.danger = outline.danger;
1137
- if (isSetString(outline.error)) resolvedConfig.colors.border.message.outline.error = outline.error;
1138
- }
1139
- if (isSetString(message.divider)) resolvedConfig.colors.border.message.divider = {
1140
- help: message.divider,
1141
- success: message.divider,
1142
- info: message.divider,
1143
- debug: message.divider,
1144
- warning: message.divider,
1145
- danger: message.divider,
1146
- error: message.divider
1147
- };
1148
- else if (isSetObject(message.divider)) {
1149
- resolvedConfig.colors.border.message.divider ??= {};
1150
- const divider = message.divider;
1151
- if (isSetString(divider.help)) resolvedConfig.colors.border.message.divider.help = divider.help;
1152
- if (isSetString(divider.success)) resolvedConfig.colors.border.message.divider.success = divider.success;
1153
- if (isSetString(divider.info)) resolvedConfig.colors.border.message.divider.info = divider.info;
1154
- if (isSetString(divider.debug)) resolvedConfig.colors.border.message.divider.debug = divider.debug;
1155
- if (isSetString(divider.warning)) resolvedConfig.colors.border.message.divider.warning = divider.warning;
1156
- if (isSetString(divider.danger)) resolvedConfig.colors.border.message.divider.danger = divider.danger;
1157
- if (isSetString(divider.error)) resolvedConfig.colors.border.message.divider.error = divider.error;
1158
- }
1159
- } else {
1160
- resolvedConfig.colors.border.message.outline ??= {};
1161
- resolvedConfig.colors.border.message.divider ??= {};
1162
- const message = border.message;
1163
- if (isSetString(message.help)) {
1164
- resolvedConfig.colors.border.message.outline.help = message.help;
1165
- resolvedConfig.colors.border.message.divider.help = message.help;
1166
- }
1167
- if (isSetString(message.success)) {
1168
- resolvedConfig.colors.border.message.outline.success = message.success;
1169
- resolvedConfig.colors.border.message.divider.success = message.success;
1170
- }
1171
- if (isSetString(message.info)) {
1172
- resolvedConfig.colors.border.message.outline.info = message.info;
1173
- resolvedConfig.colors.border.message.divider.info = message.info;
1174
- }
1175
- if (isSetString(message.debug)) {
1176
- resolvedConfig.colors.border.message.outline.debug = message.debug;
1177
- resolvedConfig.colors.border.message.divider.debug = message.debug;
1178
- }
1179
- if (isSetString(message.warning)) {
1180
- resolvedConfig.colors.border.message.outline.warning = message.warning;
1181
- resolvedConfig.colors.border.message.divider.warning = message.warning;
1182
- }
1183
- if (isSetString(message.danger)) {
1184
- resolvedConfig.colors.border.message.outline.danger = message.danger;
1185
- resolvedConfig.colors.border.message.divider.danger = message.danger;
1186
- }
1187
- if (isSetString(message.error)) {
1188
- resolvedConfig.colors.border.message.outline.error = message.error;
1189
- resolvedConfig.colors.border.message.divider.error = message.error;
1190
- }
1191
- }
1192
- }
1193
- }
1194
- }
1195
- if (!resolvedConfig.colors.text?.body?.tertiary && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.body.tertiary = resolvedConfig.colors.text.body.secondary;
1196
- if (!resolvedConfig.colors.text?.body?.secondary && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.body.secondary = resolvedConfig.colors.text.body.tertiary;
1197
- if (!resolvedConfig.colors.text?.heading?.tertiary && resolvedConfig.colors.text?.heading?.secondary) resolvedConfig.colors.text.heading.tertiary = resolvedConfig.colors.text.heading.secondary;
1198
- if (!resolvedConfig.colors.text?.heading?.secondary && resolvedConfig.colors.text?.heading?.tertiary) resolvedConfig.colors.text.heading.secondary = resolvedConfig.colors.text.heading.tertiary;
1199
- if (!resolvedConfig.colors.text?.heading?.primary && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.text.heading.primary = resolvedConfig.colors.text.banner.title.primary;
1200
- if (!resolvedConfig.colors.text?.heading?.tertiary && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.heading.tertiary = resolvedConfig.colors.text.body.secondary;
1201
- if (!resolvedConfig.colors.text?.heading?.secondary && resolvedConfig.colors.text?.body?.primary) resolvedConfig.colors.text.heading.secondary = resolvedConfig.colors.text.body.primary;
1202
- if (!resolvedConfig.colors.text?.usage?.bin && resolvedConfig.colors.text?.body?.primary) resolvedConfig.colors.text.usage.bin = resolvedConfig.colors.text.body.primary;
1203
- if (!resolvedConfig.colors.text?.usage?.command && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.usage.command = resolvedConfig.colors.text.body.secondary;
1204
- if (!resolvedConfig.colors.text?.usage?.dynamic && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.usage.dynamic = resolvedConfig.colors.text.body.tertiary;
1205
- if (!resolvedConfig.colors.text?.usage?.options && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.usage.options = resolvedConfig.colors.text.body.tertiary;
1206
- if (!resolvedConfig.colors.text?.usage?.args && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.usage.args = resolvedConfig.colors.text.body.tertiary;
1207
- if (!resolvedConfig.colors.text?.usage?.description && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.usage.description = resolvedConfig.colors.text.body.secondary;
1208
- if (!resolvedConfig.colors.text?.banner?.title?.primary && resolvedConfig.colors.text?.heading?.primary) {
1209
- resolvedConfig.colors.text.banner.title ??= {};
1210
- resolvedConfig.colors.text.banner.title.primary = resolvedConfig.colors.text.heading.primary;
1211
- }
1212
- if (!resolvedConfig.colors.text?.banner?.command?.primary && (resolvedConfig.colors.text?.heading?.secondary || resolvedConfig.colors.text?.heading?.primary)) {
1213
- resolvedConfig.colors.text.banner.command ??= {};
1214
- resolvedConfig.colors.text.banner.command.primary = resolvedConfig.colors.text.heading.secondary || resolvedConfig.colors.text.heading.primary;
1215
- }
1216
- if (!resolvedConfig.colors.text?.banner?.description?.primary && resolvedConfig.colors.text?.body?.primary) {
1217
- resolvedConfig.colors.text.banner.description ??= {};
1218
- resolvedConfig.colors.text.banner.description.primary = resolvedConfig.colors.text.body.primary;
1219
- }
1220
- if (!resolvedConfig.colors.text?.banner?.link?.primary && resolvedConfig.colors.text?.body?.link) {
1221
- resolvedConfig.colors.text.banner.link ??= {};
1222
- resolvedConfig.colors.text.banner.link.primary = resolvedConfig.colors.text.body.link;
1223
- }
1224
- if (!resolvedConfig.colors.text?.banner?.title?.secondary && resolvedConfig.colors.text?.banner?.title?.primary) {
1225
- resolvedConfig.colors.text.banner.title ??= {};
1226
- resolvedConfig.colors.text.banner.title.secondary = resolvedConfig.colors.text.banner.title.primary;
1227
- }
1228
- if (!resolvedConfig.colors.text?.banner?.command?.secondary && resolvedConfig.colors.text?.banner?.command?.primary) {
1229
- resolvedConfig.colors.text.banner.command ??= {};
1230
- resolvedConfig.colors.text.banner.command.secondary = resolvedConfig.colors.text.banner.command.primary;
1231
- }
1232
- if (!resolvedConfig.colors.text?.banner?.description?.secondary && resolvedConfig.colors.text?.banner?.description?.primary) {
1233
- resolvedConfig.colors.text.banner.description ??= {};
1234
- resolvedConfig.colors.text.banner.description.secondary = resolvedConfig.colors.text.banner.description.primary;
1235
- }
1236
- if (!resolvedConfig.colors.text?.banner?.link?.secondary && resolvedConfig.colors.text?.banner?.link?.primary) {
1237
- resolvedConfig.colors.text.banner.link ??= {};
1238
- resolvedConfig.colors.text.banner.link.secondary = resolvedConfig.colors.text.banner.link.primary;
1239
- }
1240
- if (!resolvedConfig.colors.text?.banner?.title?.tertiary && resolvedConfig.colors.text?.banner?.title?.secondary) {
1241
- resolvedConfig.colors.text.banner.title ??= {};
1242
- resolvedConfig.colors.text.banner.title.tertiary = resolvedConfig.colors.text.banner.title.secondary;
1243
- }
1244
- if (!resolvedConfig.colors.text?.banner?.command?.tertiary && resolvedConfig.colors.text?.banner?.command?.secondary) {
1245
- resolvedConfig.colors.text.banner.command ??= {};
1246
- resolvedConfig.colors.text.banner.command.tertiary = resolvedConfig.colors.text.banner.command.secondary;
1247
- }
1248
- if (!resolvedConfig.colors.text?.banner?.description?.tertiary && resolvedConfig.colors.text?.banner?.description?.secondary) {
1249
- resolvedConfig.colors.text.banner.description ??= {};
1250
- resolvedConfig.colors.text.banner.description.tertiary = resolvedConfig.colors.text.banner.description.secondary;
1251
- }
1252
- if (!resolvedConfig.colors.text?.banner?.link?.tertiary && resolvedConfig.colors.text?.banner?.link?.secondary) {
1253
- resolvedConfig.colors.text.banner.link ??= {};
1254
- resolvedConfig.colors.text.banner.link.tertiary = resolvedConfig.colors.text.banner.link.secondary;
1255
- }
1256
- if (!resolvedConfig.colors.border?.banner?.outline?.primary && (resolvedConfig.colors.border?.banner?.outline?.secondary || resolvedConfig.colors.border?.banner?.outline?.tertiary)) resolvedConfig.colors.border.banner.outline.primary = resolvedConfig.colors.border.banner.outline.secondary || resolvedConfig.colors.border.banner.outline.tertiary;
1257
- if (!resolvedConfig.colors.border?.banner?.outline?.secondary && (resolvedConfig.colors.border?.banner?.outline?.primary || resolvedConfig.colors.border?.banner?.outline?.tertiary)) resolvedConfig.colors.border.banner.outline.secondary = resolvedConfig.colors.border.banner.outline.primary || resolvedConfig.colors.border.banner.outline.tertiary;
1258
- if (!resolvedConfig.colors.border?.banner?.outline?.tertiary && (resolvedConfig.colors.border?.banner?.outline?.primary || resolvedConfig.colors.border?.banner?.outline?.secondary)) resolvedConfig.colors.border.banner.outline.tertiary = resolvedConfig.colors.border.banner.outline.primary || resolvedConfig.colors.border.banner.outline.secondary;
1259
- if (!resolvedConfig.colors.text?.banner?.header?.primary && resolvedConfig.colors.border?.banner?.outline?.primary) {
1260
- resolvedConfig.colors.text.banner.header ??= {};
1261
- resolvedConfig.colors.text.banner.header.primary = resolvedConfig.colors.border.banner.outline.primary;
1262
- }
1263
- if (!resolvedConfig.colors.text?.banner?.footer?.primary && resolvedConfig.colors.border?.banner?.outline?.primary) {
1264
- resolvedConfig.colors.text.banner.footer ??= {};
1265
- resolvedConfig.colors.text.banner.footer.primary = resolvedConfig.colors.border.banner.outline.primary;
1266
- }
1267
- if (!resolvedConfig.colors.text?.banner?.header?.secondary && resolvedConfig.colors.border?.banner?.outline?.secondary) {
1268
- resolvedConfig.colors.text.banner.header ??= {};
1269
- resolvedConfig.colors.text.banner.header.secondary = resolvedConfig.colors.border.banner.outline.secondary;
1270
- }
1271
- if (!resolvedConfig.colors.text?.banner?.footer?.secondary && resolvedConfig.colors.border?.banner?.outline?.secondary) {
1272
- resolvedConfig.colors.text.banner.footer ??= {};
1273
- resolvedConfig.colors.text.banner.footer.secondary = resolvedConfig.colors.border.banner.outline.secondary;
1274
- }
1275
- if (!resolvedConfig.colors.text?.banner?.header?.tertiary && resolvedConfig.colors.border?.banner?.outline?.tertiary) {
1276
- resolvedConfig.colors.text.banner.header ??= {};
1277
- resolvedConfig.colors.text.banner.header.tertiary = resolvedConfig.colors.border.banner.outline.tertiary;
1278
- }
1279
- if (!resolvedConfig.colors.text?.banner?.footer?.tertiary && resolvedConfig.colors.border?.banner?.outline?.tertiary) {
1280
- resolvedConfig.colors.text.banner.footer ??= {};
1281
- resolvedConfig.colors.text.banner.footer.tertiary = resolvedConfig.colors.border.banner.outline.tertiary;
1282
- }
1283
- if (!resolvedConfig.colors.border?.banner?.outline?.primary && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.border.banner.outline.primary = resolvedConfig.colors.text.banner.title.primary;
1284
- if (!resolvedConfig.colors.border?.app?.divider?.primary && resolvedConfig.colors.border?.app?.blockquote?.primary) resolvedConfig.colors.border.app.divider.primary = resolvedConfig.colors.border.app.blockquote.primary;
1285
- if (!resolvedConfig.colors.border?.app?.divider?.secondary && resolvedConfig.colors.border?.app?.blockquote?.secondary) resolvedConfig.colors.border.app.divider.secondary = resolvedConfig.colors.border.app.blockquote.secondary;
1286
- if (!resolvedConfig.colors.border?.app?.divider?.tertiary && resolvedConfig.colors.border?.app?.blockquote?.tertiary) resolvedConfig.colors.border.app.divider.tertiary = resolvedConfig.colors.border.app.blockquote.tertiary;
1287
- if (!resolvedConfig.colors.border?.app?.blockquote?.primary && resolvedConfig.colors.border?.app?.divider?.primary) resolvedConfig.colors.border.app.blockquote.primary = resolvedConfig.colors.border.app.divider.primary;
1288
- if (!resolvedConfig.colors.border?.app?.blockquote?.secondary && resolvedConfig.colors.border?.app?.divider?.secondary) resolvedConfig.colors.border.app.blockquote.secondary = resolvedConfig.colors.border.app.divider.secondary;
1289
- if (!resolvedConfig.colors.border?.app?.blockquote?.tertiary && resolvedConfig.colors.border?.app?.divider?.tertiary) resolvedConfig.colors.border.app.blockquote.tertiary = resolvedConfig.colors.border.app.divider.tertiary;
1290
- if (!resolvedConfig.colors.border?.app?.divider?.primary && (resolvedConfig.colors.border?.app?.divider?.secondary || resolvedConfig.colors.border?.app?.divider?.tertiary)) resolvedConfig.colors.border.app.divider.primary = resolvedConfig.colors.border.app.divider.secondary || resolvedConfig.colors.border.app.divider.tertiary;
1291
- if (!resolvedConfig.colors.border?.app?.divider?.secondary && (resolvedConfig.colors.border?.app?.divider?.primary || resolvedConfig.colors.border?.app?.divider?.tertiary)) resolvedConfig.colors.border.app.divider.secondary = resolvedConfig.colors.border.app.divider.primary || resolvedConfig.colors.border.app.divider.tertiary;
1292
- if (!resolvedConfig.colors.border?.app?.divider?.tertiary && (resolvedConfig.colors.border?.app?.divider?.primary || resolvedConfig.colors.border?.app?.divider?.secondary)) resolvedConfig.colors.border.app.divider.tertiary = resolvedConfig.colors.border.app.divider.primary || resolvedConfig.colors.border.app.divider.secondary;
1293
- if (!resolvedConfig.colors.border?.app?.blockquote?.primary && (resolvedConfig.colors.border?.app?.blockquote?.secondary || resolvedConfig.colors.border?.app?.blockquote?.tertiary)) resolvedConfig.colors.border.app.blockquote.primary = resolvedConfig.colors.border.app.blockquote.secondary || resolvedConfig.colors.border.app.blockquote.tertiary;
1294
- if (!resolvedConfig.colors.border?.app?.blockquote?.secondary && (resolvedConfig.colors.border?.app?.blockquote?.primary || resolvedConfig.colors.border?.app?.blockquote?.tertiary)) resolvedConfig.colors.border.app.blockquote.secondary = resolvedConfig.colors.border.app.blockquote.primary || resolvedConfig.colors.border.app.blockquote.tertiary;
1295
- if (!resolvedConfig.colors.border?.app?.blockquote?.tertiary && (resolvedConfig.colors.border?.app?.blockquote?.primary || resolvedConfig.colors.border?.app?.blockquote?.secondary)) resolvedConfig.colors.border.app.blockquote.tertiary = resolvedConfig.colors.border.app.blockquote.primary || resolvedConfig.colors.border.app.blockquote.secondary;
1296
- if (!resolvedConfig.colors.border?.app?.table?.primary && (resolvedConfig.colors.border?.app?.table?.secondary || resolvedConfig.colors.border?.app?.table?.tertiary)) resolvedConfig.colors.border.app.table.primary = resolvedConfig.colors.border.app.table.secondary || resolvedConfig.colors.border.app.table.tertiary;
1297
- if (!resolvedConfig.colors.border?.app?.table?.secondary && (resolvedConfig.colors.border?.app?.table?.primary || resolvedConfig.colors.border?.app?.table?.tertiary)) resolvedConfig.colors.border.app.table.secondary = resolvedConfig.colors.border.app.table.primary || resolvedConfig.colors.border.app.table.tertiary;
1298
- if (!resolvedConfig.colors.border?.app?.table?.tertiary && (resolvedConfig.colors.border?.app?.table?.primary || resolvedConfig.colors.border?.app?.table?.secondary)) resolvedConfig.colors.border.app.table.tertiary = resolvedConfig.colors.border.app.table.primary || resolvedConfig.colors.border.app.table.secondary;
1299
- if (!resolvedConfig.colors.border?.message?.divider?.info && resolvedConfig.colors.border?.message?.divider?.debug) resolvedConfig.colors.border.message.divider.info = resolvedConfig.colors.border.message.divider.debug;
1300
- if (!resolvedConfig.colors.border?.message?.divider?.debug && resolvedConfig.colors.border?.message?.divider?.info) resolvedConfig.colors.border.message.divider.debug = resolvedConfig.colors.border.message.divider.info;
1301
- if (!resolvedConfig.colors.border?.message?.outline?.info && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.border.message.outline.info = resolvedConfig.colors.border.message.outline.debug;
1302
- if (!resolvedConfig.colors.border?.message?.outline?.debug && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.border.message.outline.debug = resolvedConfig.colors.border.message.outline.info;
1303
- if (!resolvedConfig.colors.border?.message?.divider?.error && resolvedConfig.colors.border?.message?.divider?.danger) resolvedConfig.colors.border.message.divider.error = resolvedConfig.colors.border.message.divider.danger;
1304
- if (!resolvedConfig.colors.border?.message?.divider?.danger && resolvedConfig.colors.border?.message?.divider?.error) resolvedConfig.colors.border.message.divider.danger = resolvedConfig.colors.border.message.divider.error;
1305
- if (!resolvedConfig.colors.border?.message?.outline?.error && resolvedConfig.colors.border?.message?.outline?.danger) resolvedConfig.colors.border.message.outline.error = resolvedConfig.colors.border.message.outline.danger;
1306
- if (!resolvedConfig.colors.border?.message?.outline?.danger && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.border.message.outline.danger = resolvedConfig.colors.border.message.outline.error;
1307
- if (!resolvedConfig.colors.border?.message?.divider?.help && resolvedConfig.colors.border?.message?.outline?.help) resolvedConfig.colors.border.message.divider.help = resolvedConfig.colors.border.message.outline.help;
1308
- if (!resolvedConfig.colors.border?.message?.divider?.success && resolvedConfig.colors.border?.message?.outline?.success) resolvedConfig.colors.border.message.divider.success = resolvedConfig.colors.border.message.outline.success;
1309
- if (!resolvedConfig.colors.border?.message?.divider?.info && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.border.message.divider.info = resolvedConfig.colors.border.message.outline.info;
1310
- if (!resolvedConfig.colors.border?.message?.divider?.debug && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.border.message.divider.debug = resolvedConfig.colors.border.message.outline.debug;
1311
- if (!resolvedConfig.colors.border?.message?.divider?.warning && resolvedConfig.colors.border?.message?.outline?.warning) resolvedConfig.colors.border.message.divider.warning = resolvedConfig.colors.border.message.outline.warning;
1312
- if (!resolvedConfig.colors.border?.message?.divider?.danger && resolvedConfig.colors.border?.message?.outline?.danger) resolvedConfig.colors.border.message.divider.danger = resolvedConfig.colors.border.message.outline.danger;
1313
- if (!resolvedConfig.colors.border?.message?.divider?.error && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.border.message.divider.error = resolvedConfig.colors.border.message.outline.error;
1314
- if (!resolvedConfig.colors.text.message?.header?.help && resolvedConfig.colors.border?.message?.outline?.help) resolvedConfig.colors.text.message.header.help = resolvedConfig.colors.border.message.outline.help;
1315
- if (!resolvedConfig.colors.text.message?.footer?.help && resolvedConfig.colors.border?.message?.outline?.help) resolvedConfig.colors.text.message.footer.help = resolvedConfig.colors.border.message.outline.help;
1316
- if (!resolvedConfig.colors.text.message?.header?.success && resolvedConfig.colors.border?.message?.outline?.success) resolvedConfig.colors.text.message.header.success = resolvedConfig.colors.border.message.outline.success;
1317
- if (!resolvedConfig.colors.text.message.footer.success && resolvedConfig.colors.border?.message?.outline?.success) resolvedConfig.colors.text.message.footer.success = resolvedConfig.colors.border.message.outline.success;
1318
- if (!resolvedConfig.colors.text.message?.header?.info && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.text.message.header.info = resolvedConfig.colors.border.message.outline.info;
1319
- if (!resolvedConfig.colors.text.message?.footer?.info && resolvedConfig.colors.border?.message?.outline?.info) resolvedConfig.colors.text.message.footer.info = resolvedConfig.colors.border.message.outline.info;
1320
- if (!resolvedConfig.colors.text.message?.header?.debug && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.text.message.header.debug = resolvedConfig.colors.border.message.outline.debug;
1321
- if (!resolvedConfig.colors.text.message?.footer?.debug && resolvedConfig.colors.border?.message?.outline?.debug) resolvedConfig.colors.text.message.footer.debug = resolvedConfig.colors.border.message.outline.debug;
1322
- if (!resolvedConfig.colors.text.message?.header?.warning && resolvedConfig.colors.border?.message?.outline?.warning) resolvedConfig.colors.text.message.header.warning = resolvedConfig.colors.border.message.outline.warning;
1323
- if (!resolvedConfig.colors.text.message?.footer?.warning && resolvedConfig.colors.border?.message?.outline?.warning) resolvedConfig.colors.text.message.footer.warning = resolvedConfig.colors.border.message.outline.warning;
1324
- if (!resolvedConfig.colors.text.message?.header?.danger && resolvedConfig.colors.border?.message?.outline?.danger) resolvedConfig.colors.text.message.header.danger = resolvedConfig.colors.border.message.outline.danger;
1325
- if (!resolvedConfig.colors.text.message?.footer?.danger && resolvedConfig.colors.border?.message?.outline?.danger) resolvedConfig.colors.text.message.footer.danger = resolvedConfig.colors.border.message.outline.danger;
1326
- if (!resolvedConfig.colors.text.message?.header?.error && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.text.message.header.error = resolvedConfig.colors.border.message.outline.error;
1327
- if (!resolvedConfig.colors.text.message?.footer?.error && resolvedConfig.colors.border?.message?.outline?.error) resolvedConfig.colors.text.message.footer.error = resolvedConfig.colors.border.message.outline.error;
1328
- if (!resolvedConfig.colors.text.message?.header?.debug && resolvedConfig.colors.text.message?.header?.info) resolvedConfig.colors.text.message.header.debug = resolvedConfig.colors.text.message.header.info;
1329
- if (!resolvedConfig.colors.text.message?.footer?.debug && resolvedConfig.colors.text.message?.footer?.info) resolvedConfig.colors.text.message.footer.debug = resolvedConfig.colors.text.message.footer.info;
1330
- if (!resolvedConfig.colors.text.message?.link?.help && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.help = resolvedConfig.colors.text.body.link;
1331
- if (!resolvedConfig.colors.text.message?.link?.success && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.success = resolvedConfig.colors.text.body.link;
1332
- if (!resolvedConfig.colors.text.message?.link?.info && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.info = resolvedConfig.colors.text.body.link;
1333
- if (!resolvedConfig.colors.text.message?.link?.debug && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.debug = resolvedConfig.colors.text.body.link;
1334
- if (!resolvedConfig.colors.text.message?.link?.warning && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.warning = resolvedConfig.colors.text.body.link;
1335
- if (!resolvedConfig.colors.text.message?.link?.danger && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.danger = resolvedConfig.colors.text.body.link;
1336
- if (!resolvedConfig.colors.text.message?.link?.error && resolvedConfig.colors.text?.body?.link) resolvedConfig.colors.text.message.link.error = resolvedConfig.colors.text.body.link;
1337
- if (!resolvedConfig.colors.text.prompt.icon?.active && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.text.prompt.icon.active = resolvedConfig.colors.text.banner.title.primary;
1338
- if (!resolvedConfig.colors.text.prompt.icon?.submitted && resolvedConfig.colors.text?.message?.header?.success) resolvedConfig.colors.text.prompt.icon.submitted = resolvedConfig.colors.text.message.header.success;
1339
- if (!resolvedConfig.colors.text.prompt.icon?.warning && resolvedConfig.colors.text?.message?.header?.warning) resolvedConfig.colors.text.prompt.icon.warning = resolvedConfig.colors.text.message.header.warning;
1340
- if (!resolvedConfig.colors.text.prompt.icon?.error && resolvedConfig.colors.text?.message?.header?.error) resolvedConfig.colors.text.prompt.icon.error = resolvedConfig.colors.text.message.header.error;
1341
- if (!resolvedConfig.colors.text.prompt.icon?.disabled && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.icon.disabled = resolvedConfig.colors.text.body.tertiary;
1342
- if (!resolvedConfig.colors.text.prompt.icon?.cancelled && resolvedConfig.colors.text.prompt.icon?.disabled) resolvedConfig.colors.text.prompt.icon.cancelled = resolvedConfig.colors.text.prompt.icon.disabled;
1343
- if (!resolvedConfig.colors.text.prompt.message?.active && resolvedConfig.colors.text?.body?.primary) resolvedConfig.colors.text.prompt.message.active = resolvedConfig.colors.text.body.primary;
1344
- if (!resolvedConfig.colors.text.prompt.message?.submitted && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.message.submitted = resolvedConfig.colors.text.body.tertiary;
1345
- if (!resolvedConfig.colors.text.prompt.message?.warning && resolvedConfig.colors.text.prompt.message?.active) resolvedConfig.colors.text.prompt.message.warning = resolvedConfig.colors.text.prompt.message.active;
1346
- if (!resolvedConfig.colors.text.prompt.message?.error && resolvedConfig.colors.text.prompt.message?.active) resolvedConfig.colors.text.prompt.message.error = resolvedConfig.colors.text.prompt.message.active;
1347
- if (!resolvedConfig.colors.text.prompt.message?.disabled && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.message.disabled = resolvedConfig.colors.text.body.tertiary;
1348
- if (!resolvedConfig.colors.text.prompt.message?.cancelled && resolvedConfig.colors.text.prompt.message?.disabled) resolvedConfig.colors.text.prompt.message.cancelled = resolvedConfig.colors.text.prompt.message.disabled;
1349
- if (!resolvedConfig.colors.text.prompt.input?.active && resolvedConfig.colors.text?.heading?.primary) resolvedConfig.colors.text.prompt.input.active = resolvedConfig.colors.text.heading.primary;
1350
- if (!resolvedConfig.colors.text.prompt.input?.inactive && resolvedConfig.colors.text?.heading?.secondary) resolvedConfig.colors.text.prompt.input.inactive = resolvedConfig.colors.text.heading.secondary;
1351
- if (!resolvedConfig.colors.text.prompt.input?.submitted && resolvedConfig.colors.text?.heading?.tertiary) resolvedConfig.colors.text.prompt.message.submitted = resolvedConfig.colors.text.heading.tertiary;
1352
- if (!resolvedConfig.colors.text.prompt.message?.warning && resolvedConfig.colors.text.prompt.message?.active) resolvedConfig.colors.text.prompt.message.warning = resolvedConfig.colors.text.prompt.message.active;
1353
- if (!resolvedConfig.colors.text.prompt.message?.error && resolvedConfig.colors.text.prompt.message?.active) resolvedConfig.colors.text.prompt.message.error = resolvedConfig.colors.text.prompt.message.active;
1354
- if (!resolvedConfig.colors.text.prompt.message?.disabled && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.message.disabled = resolvedConfig.colors.text.body.tertiary;
1355
- if (!resolvedConfig.colors.text.prompt.message?.cancelled && resolvedConfig.colors.text.prompt.message?.disabled) resolvedConfig.colors.text.prompt.message.cancelled = resolvedConfig.colors.text.prompt.message.disabled;
1356
- if (!resolvedConfig.colors.text.prompt.description?.active && resolvedConfig.colors.text?.heading?.primary) resolvedConfig.colors.text.prompt.description.active = resolvedConfig.colors.text.heading.primary;
1357
- if (!resolvedConfig.colors.text.prompt.description?.inactive && resolvedConfig.colors.text?.heading?.secondary) resolvedConfig.colors.text.prompt.description.inactive = resolvedConfig.colors.text.heading.secondary;
1358
- if (!resolvedConfig.colors.text.prompt.description?.submitted && resolvedConfig.colors.text?.heading?.tertiary) resolvedConfig.colors.text.prompt.description.submitted = resolvedConfig.colors.text.heading.tertiary;
1359
- if (!resolvedConfig.colors.text.prompt.description?.warning && resolvedConfig.colors.text?.body?.secondary) resolvedConfig.colors.text.prompt.description.warning = resolvedConfig.colors.text.body.secondary;
1360
- if (!resolvedConfig.colors.text.prompt.description?.error && resolvedConfig.colors.text.prompt.icon?.error) resolvedConfig.colors.text.prompt.description.error = resolvedConfig.colors.text.prompt.icon.error;
1361
- if (!resolvedConfig.colors.text.prompt.description?.disabled && resolvedConfig.colors.text?.body?.tertiary) resolvedConfig.colors.text.prompt.description.disabled = resolvedConfig.colors.text.body.tertiary;
1362
- if (!resolvedConfig.colors.text.prompt.description?.cancelled && resolvedConfig.colors.text.prompt.description?.disabled) resolvedConfig.colors.text.prompt.description.cancelled = resolvedConfig.colors.text.prompt.description.disabled;
1363
- if (!resolvedConfig.colors.text.prompt.input?.cancelled && resolvedConfig.colors.text.prompt.input?.disabled) resolvedConfig.colors.text.prompt.input.cancelled = resolvedConfig.colors.text.prompt.input.disabled;
1364
- if (!resolvedConfig.colors.text.prompt.input?.placeholder && resolvedConfig.colors.text.prompt.input?.disabled) resolvedConfig.colors.text.prompt.input.placeholder = resolvedConfig.colors.text.prompt.input.disabled;
1365
- if (!resolvedConfig.colors.text.prompt.input?.disabled && resolvedConfig.colors.text.prompt.input?.placeholder) resolvedConfig.colors.text.prompt.input.disabled = resolvedConfig.colors.text.prompt.input.placeholder;
1366
- if (!resolvedConfig.colors.text.spinner.icon?.active && resolvedConfig.colors.text.spinner.message?.active) resolvedConfig.colors.text.spinner.icon.active = resolvedConfig.colors.text.spinner.message.active;
1367
- if (!resolvedConfig.colors.text.spinner.icon?.success && resolvedConfig.colors.text.spinner.message?.success) resolvedConfig.colors.text.spinner.icon.success = resolvedConfig.colors.text.spinner.message.success;
1368
- if (!resolvedConfig.colors.text.spinner.icon?.error && resolvedConfig.colors.text?.spinner?.message?.error) resolvedConfig.colors.text.spinner.icon.error = resolvedConfig.colors.text.spinner.message.error;
1369
- if (!resolvedConfig.colors.text.spinner.icon?.help && resolvedConfig.colors.text.spinner.message?.help) resolvedConfig.colors.text.spinner.icon.help = resolvedConfig.colors.text.spinner.message.help;
1370
- if (!resolvedConfig.colors.text.spinner.icon?.info && resolvedConfig.colors.text.spinner.message?.info) resolvedConfig.colors.text.spinner.icon.info = resolvedConfig.colors.text.spinner.message.info;
1371
- if (!resolvedConfig.colors.text.spinner.icon?.warning && resolvedConfig.colors.text.spinner.message?.warning) resolvedConfig.colors.text.spinner.icon.warning = resolvedConfig.colors.text.spinner.message.warning;
1372
- if (!resolvedConfig.colors.text.spinner.icon?.active && resolvedConfig.colors.text?.banner?.title?.primary) resolvedConfig.colors.text.spinner.icon.active = resolvedConfig.colors.text.banner.title.primary;
1373
- if (!resolvedConfig.colors.text.spinner.icon?.success && resolvedConfig.colors.text?.message?.header?.success) resolvedConfig.colors.text.spinner.icon.success = resolvedConfig.colors.text.message.header.success;
1374
- if (!resolvedConfig.colors.text.spinner.icon?.error && resolvedConfig.colors.text?.message?.header?.error) resolvedConfig.colors.text.spinner.icon.error = resolvedConfig.colors.text.message.header.error;
1375
- if (!resolvedConfig.colors.text.spinner.icon?.help && resolvedConfig.colors.text?.message?.header?.help) resolvedConfig.colors.text.spinner.icon.help = resolvedConfig.colors.text.message.header.help;
1376
- if (!resolvedConfig.colors.text.spinner.icon?.info && resolvedConfig.colors.text?.message?.header?.info) resolvedConfig.colors.text.spinner.icon.info = resolvedConfig.colors.text.message.header.info;
1377
- if (!resolvedConfig.colors.text.spinner.icon?.warning && resolvedConfig.colors.text?.message?.header?.warning) resolvedConfig.colors.text.spinner.icon.warning = resolvedConfig.colors.text.message.header.warning;
1378
- if (!resolvedConfig.colors.text.spinner.message?.active && resolvedConfig.colors.text?.spinner?.icon?.active) resolvedConfig.colors.text.spinner.message.active = resolvedConfig.colors.text.spinner.icon.active;
1379
- if (!resolvedConfig.colors.text.spinner.message?.success && resolvedConfig.colors.text?.spinner?.icon?.success) resolvedConfig.colors.text.spinner.message.success = resolvedConfig.colors.text.spinner.icon.success;
1380
- if (!resolvedConfig.colors.text.spinner.message?.error && resolvedConfig.colors.text?.spinner?.icon?.error) resolvedConfig.colors.text.spinner.message.error = resolvedConfig.colors.text.spinner.icon.error;
1381
- if (!resolvedConfig.colors.text.spinner.message?.help && resolvedConfig.colors.text?.spinner?.icon?.help) resolvedConfig.colors.text.spinner.message.help = resolvedConfig.colors.text.spinner.icon.help;
1382
- if (!resolvedConfig.colors.text.spinner.message?.info && resolvedConfig.colors.text?.spinner?.icon?.info) resolvedConfig.colors.text.spinner.message.info = resolvedConfig.colors.text.spinner.icon.info;
1383
- if (!resolvedConfig.colors.text.spinner.message?.warning && resolvedConfig.colors.text?.spinner?.icon?.warning) resolvedConfig.colors.text.spinner.message.warning = resolvedConfig.colors.text.spinner.icon.warning;
1384
- mergeThemes(context, resolvedConfig);
1385
- return dictionary;
1386
- }
1387
- });
1388
-
1389
- //#endregion
1390
- export { colors };
1391
- //# sourceMappingURL=colors.mjs.map