@shell-shock/plugin-console 0.1.35 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,8 +8,10 @@ import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/buil
8
8
  import { TSDoc, TSDocDefaultValue, TSDocExample, TSDocParam, TSDocRemarks, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
9
9
  import { IsNotDebug, IsNotVerbose } from "@shell-shock/core/components/helpers";
10
10
  import { useColors, useTheme } from "@shell-shock/plugin-theme/contexts/theme";
11
- import { camelCase } from "@stryke/string-format";
11
+ import { colorKeys, modifierKeys } from "@shell-shock/plugin-theme/helpers/ansi-utils";
12
+ import { camelCase, pascalCase } from "@stryke/string-format";
12
13
  import { getIndefiniteArticle } from "@stryke/string-format/vowels";
14
+ import { isSetObject } from "@stryke/type-checks/is-set-object";
13
15
  import { defu } from "defu";
14
16
 
15
17
  //#region src/components/console-builtin.tsx
@@ -136,1553 +138,338 @@ function AnsiHelpersDeclarations() {
136
138
  /**
137
139
  * A component to generate a console message function in a Shell Shock project.
138
140
  */
139
- function ColorFunction({ ansi16, ansi256, ansi16m }) {
140
- return code` (text: string, background = false) => {
141
+ function ColorFunction({ ansi16, ansi256, ansi16m, skipBackground = false }) {
142
+ return code` (text: string${skipBackground ? "" : `, background = false`}): string => {
141
143
  try {
144
+ if (text === undefined || text === null || text === "") {
145
+ return "";
146
+ }
147
+
142
148
  if (!isColorSupported) {
143
149
  return String(text);
144
150
  }
145
151
 
146
152
  if (colorSupportLevels.stdout === 1) {
147
- return wrapAnsi(text, background ? "${ansi16.background.open}" : "${ansi16.open}", background ? "${ansi16.background.close}" : "${ansi16.close}");
153
+ return wrapAnsi(text, ${skipBackground ? `"${ansi16.open}", "${ansi16.close}"` : `background ? "${ansi16.background.open}" : "${ansi16.open}", background ? "${ansi16.background.close}" : "${ansi16.close}"`});
148
154
  } else if (colorSupportLevels.stdout === 2) {
149
- return wrapAnsi(text, background ? "${ansi256.background.open}" : "${ansi256.open}", background ? "${ansi256.background.close}" : "${ansi256.close}");
155
+ return wrapAnsi(text, ${skipBackground ? `"${ansi256.open}", "${ansi256.close}"` : `background ? "${ansi256.background.open}" : "${ansi256.open}", background ? "${ansi256.background.close}" : "${ansi256.close}"`});
150
156
  }
151
157
 
152
- return wrapAnsi(text, background ? "${ansi16m.background.open}" : "${ansi16m.open}", background ? "${ansi16m.background.close}" : "${ansi16m.close}");
158
+ return wrapAnsi(text, ${skipBackground ? `"${ansi16m.open}", "${ansi16m.close}"` : `background ? "${ansi16m.background.open}" : "${ansi16m.open}", background ? "${ansi16m.background.close}" : "${ansi16m.close}"`});
153
159
  } catch {
154
160
  return String(text);
155
161
  }
156
162
  }
157
163
  `;
158
164
  }
159
- /**
160
- * A component to generate an object containing functions for coloring text in a Shell Shock project.
161
- */
162
- function ColorsDeclaration() {
163
- const colors = useColors();
164
- const theme = useTheme();
165
- return [
166
- createComponent(TypeDeclaration, {
167
- "export": true,
168
- name: "AnsiColor",
169
- doc: "The available ANSI colors for console text.",
165
+ function ThemeColorTypeDefinition(props) {
166
+ const { ansi16, ansi256, ansi16m, type, subType } = props;
167
+ return createComponent(For, {
168
+ get each() {
169
+ return Object.entries(ansi16);
170
+ },
171
+ semicolon: true,
172
+ doubleHardline: true,
173
+ enderPunctuation: true,
174
+ children: ([color, value]) => [createComponent(Show, {
175
+ get when() {
176
+ return isSetObject(value);
177
+ },
170
178
  get children() {
171
- return createComponent(For, {
172
- get each() {
173
- return Object.keys(colors.ansi16).filter((color) => color !== "theme");
179
+ return createComponent(Show, {
180
+ get when() {
181
+ return "open" in value && "close" in value;
174
182
  },
175
- children: (color, idx) => `${idx > 0 ? " | " : ""}"${color}"`
176
- });
177
- }
178
- }),
179
- createComponent(Spacing, {}),
180
- createIntrinsic("hbr", {}),
181
- code`
182
- /**
183
- * A recursive type that defines theme colors for console text.
184
- *
185
- * @remarks
186
- * This type allows for nested theme color definitions, enabling complex theming structures for console applications.
187
- */
188
- export type ThemeColors<T> = T extends object ? { [K in keyof T]: ThemeColors<T[K]>; } : ((text: string) => string); `,
189
- createComponent(Spacing, {}),
190
- createComponent(TypeDeclaration, {
191
- "export": true,
192
- name: "Colors",
193
- doc: "An object containing functions for coloring console applications. Each function corresponds to a terminal color. See {@link AnsiColor} for available colors.",
194
- children: code`Record<AnsiColor, (text: string) => string> & ThemeColors<ThemeColorsResolvedConfig>`
195
- }),
196
- createComponent(Spacing, {}),
197
- createComponent(TSDoc, { heading: "An object containing functions for coloring console applications. Each function corresponds to a terminal color. See {@link Colors} for available colors." }),
198
- createComponent(VarDeclaration, {
199
- "const": true,
200
- "export": true,
201
- name: "colors",
202
- type: "Colors",
203
- get initializer() {
204
- return [
205
- code` {
206
- `,
207
- createIntrinsic("hbr", {}),
208
- createComponent(For, {
209
- get each() {
210
- return Object.keys(colors.ansi16).filter((color) => color !== "theme");
211
- },
212
- comma: true,
213
- doubleHardline: true,
214
- enderPunctuation: true,
215
- children: (color) => [code`${color}: `, createComponent(ColorFunction, {
216
- get ansi16() {
217
- return colors.ansi16[color];
218
- },
219
- get ansi256() {
220
- return colors.ansi256[color];
221
- },
222
- get ansi16m() {
223
- return colors.ansi16m[color];
224
- }
225
- })]
226
- }),
227
- createIntrinsic("hbr", {}),
228
- code`text: {
229
- banner: {
230
- header: {
231
- primary: ${createComponent(ColorFunction, {
232
- get ansi16() {
233
- return colors.ansi16.theme.text.banner.header.primary;
234
- },
235
- get ansi256() {
236
- return colors.ansi256.theme.text.banner.header.primary;
237
- },
238
- get ansi16m() {
239
- return colors.ansi16m.theme.text.banner.header.primary;
240
- }
241
- })},
242
- secondary: ${createComponent(ColorFunction, {
243
- get ansi16() {
244
- return colors.ansi16.theme.text.banner.header.secondary;
245
- },
246
- get ansi256() {
247
- return colors.ansi256.theme.text.banner.header.secondary;
248
- },
249
- get ansi16m() {
250
- return colors.ansi16m.theme.text.banner.header.secondary;
251
- }
252
- })},
253
- tertiary: ${createComponent(ColorFunction, {
254
- get ansi16() {
255
- return colors.ansi16.theme.text.banner.header.tertiary;
256
- },
257
- get ansi256() {
258
- return colors.ansi256.theme.text.banner.header.tertiary;
259
- },
260
- get ansi16m() {
261
- return colors.ansi16m.theme.text.banner.header.tertiary;
262
- }
263
- })}
264
- },
265
- footer: {
266
- primary: ${createComponent(ColorFunction, {
267
- get ansi16() {
268
- return colors.ansi16.theme.text.banner.footer.primary;
269
- },
270
- get ansi256() {
271
- return colors.ansi256.theme.text.banner.footer.primary;
272
- },
273
- get ansi16m() {
274
- return colors.ansi16m.theme.text.banner.footer.primary;
275
- }
276
- })},
277
- secondary: ${createComponent(ColorFunction, {
278
- get ansi16() {
279
- return colors.ansi16.theme.text.banner.footer.secondary;
280
- },
281
- get ansi256() {
282
- return colors.ansi256.theme.text.banner.footer.secondary;
283
- },
284
- get ansi16m() {
285
- return colors.ansi16m.theme.text.banner.footer.secondary;
286
- }
287
- })},
288
- tertiary: ${createComponent(ColorFunction, {
289
- get ansi16() {
290
- return colors.ansi16.theme.text.banner.footer.tertiary;
291
- },
292
- get ansi256() {
293
- return colors.ansi256.theme.text.banner.footer.tertiary;
294
- },
295
- get ansi16m() {
296
- return colors.ansi16m.theme.text.banner.footer.tertiary;
297
- }
298
- })}
299
- },
300
- command: {
301
- primary: ${createComponent(ColorFunction, {
302
- get ansi16() {
303
- return colors.ansi16.theme.text.banner.command.primary;
304
- },
305
- get ansi256() {
306
- return colors.ansi256.theme.text.banner.command.primary;
307
- },
308
- get ansi16m() {
309
- return colors.ansi16m.theme.text.banner.command.primary;
310
- }
311
- })},
312
- secondary: ${createComponent(ColorFunction, {
313
- get ansi16() {
314
- return colors.ansi16.theme.text.banner.command.secondary;
315
- },
316
- get ansi256() {
317
- return colors.ansi256.theme.text.banner.command.secondary;
318
- },
319
- get ansi16m() {
320
- return colors.ansi16m.theme.text.banner.command.secondary;
321
- }
322
- })},
323
- tertiary: ${createComponent(ColorFunction, {
324
- get ansi16() {
325
- return colors.ansi16.theme.text.banner.command.tertiary;
326
- },
327
- get ansi256() {
328
- return colors.ansi256.theme.text.banner.command.tertiary;
329
- },
330
- get ansi16m() {
331
- return colors.ansi16m.theme.text.banner.command.tertiary;
332
- }
333
- })},
334
- },
335
- title: {
336
- primary: ${createComponent(ColorFunction, {
337
- get ansi16() {
338
- return colors.ansi16.theme.text.banner.title.primary;
339
- },
340
- get ansi256() {
341
- return colors.ansi256.theme.text.banner.title.primary;
342
- },
343
- get ansi16m() {
344
- return colors.ansi16m.theme.text.banner.title.primary;
345
- }
346
- })},
347
- secondary: ${createComponent(ColorFunction, {
348
- get ansi16() {
349
- return colors.ansi16.theme.text.banner.title.secondary;
350
- },
351
- get ansi256() {
352
- return colors.ansi256.theme.text.banner.title.secondary;
353
- },
354
- get ansi16m() {
355
- return colors.ansi16m.theme.text.banner.title.secondary;
356
- }
357
- })},
358
- tertiary: ${createComponent(ColorFunction, {
359
- get ansi16() {
360
- return colors.ansi16.theme.text.banner.title.tertiary;
361
- },
362
- get ansi256() {
363
- return colors.ansi256.theme.text.banner.title.tertiary;
364
- },
365
- get ansi16m() {
366
- return colors.ansi16m.theme.text.banner.title.tertiary;
367
- }
368
- })},
369
- },
370
- link: {
371
- primary: ${createComponent(ColorFunction, {
372
- get ansi16() {
373
- return colors.ansi16.theme.text.banner.link.primary;
374
- },
375
- get ansi256() {
376
- return colors.ansi256.theme.text.banner.link.primary;
377
- },
378
- get ansi16m() {
379
- return colors.ansi16m.theme.text.banner.link.primary;
380
- }
381
- })},
382
- secondary: ${createComponent(ColorFunction, {
383
- get ansi16() {
384
- return colors.ansi16.theme.text.banner.link.secondary;
385
- },
386
- get ansi256() {
387
- return colors.ansi256.theme.text.banner.link.secondary;
388
- },
389
- get ansi16m() {
390
- return colors.ansi16m.theme.text.banner.link.secondary;
391
- }
392
- })},
393
- tertiary: ${createComponent(ColorFunction, {
394
- get ansi16() {
395
- return colors.ansi16.theme.text.banner.link.tertiary;
396
- },
397
- get ansi256() {
398
- return colors.ansi256.theme.text.banner.link.tertiary;
399
- },
400
- get ansi16m() {
401
- return colors.ansi16m.theme.text.banner.link.tertiary;
402
- }
403
- })},
404
- },
405
- description: {
406
- primary: ${createComponent(ColorFunction, {
407
- get ansi16() {
408
- return colors.ansi16.theme.text.banner.description.primary;
409
- },
410
- get ansi256() {
411
- return colors.ansi256.theme.text.banner.description.primary;
412
- },
413
- get ansi16m() {
414
- return colors.ansi16m.theme.text.banner.description.primary;
415
- }
416
- })},
417
- secondary: ${createComponent(ColorFunction, {
418
- get ansi16() {
419
- return colors.ansi16.theme.text.banner.description.secondary;
420
- },
421
- get ansi256() {
422
- return colors.ansi256.theme.text.banner.description.secondary;
423
- },
424
- get ansi16m() {
425
- return colors.ansi16m.theme.text.banner.description.secondary;
426
- }
427
- })},
428
- tertiary: ${createComponent(ColorFunction, {
429
- get ansi16() {
430
- return colors.ansi16.theme.text.banner.description.tertiary;
431
- },
432
- get ansi256() {
433
- return colors.ansi256.theme.text.banner.description.tertiary;
434
- },
435
- get ansi16m() {
436
- return colors.ansi16m.theme.text.banner.description.tertiary;
437
- }
438
- })},
439
- }
440
- },
441
- heading: {
442
- primary: ${createComponent(ColorFunction, {
443
- get ansi16() {
444
- return colors.ansi16.theme.text.heading.primary;
445
- },
446
- get ansi256() {
447
- return colors.ansi256.theme.text.heading.primary;
448
- },
449
- get ansi16m() {
450
- return colors.ansi16m.theme.text.heading.primary;
451
- }
452
- })},
453
- secondary: ${createComponent(ColorFunction, {
454
- get ansi16() {
455
- return colors.ansi16.theme.text.heading.secondary;
456
- },
457
- get ansi256() {
458
- return colors.ansi256.theme.text.heading.secondary;
459
- },
460
- get ansi16m() {
461
- return colors.ansi16m.theme.text.heading.secondary;
462
- }
463
- })},
464
- tertiary: ${createComponent(ColorFunction, {
465
- get ansi16() {
466
- return colors.ansi16.theme.text.heading.tertiary;
467
- },
468
- get ansi256() {
469
- return colors.ansi256.theme.text.heading.tertiary;
470
- },
471
- get ansi16m() {
472
- return colors.ansi16m.theme.text.heading.tertiary;
473
- }
474
- })},
475
- },
476
- body: {
477
- primary: ${createComponent(ColorFunction, {
478
- get ansi16() {
479
- return colors.ansi16.theme.text.body.primary;
480
- },
481
- get ansi256() {
482
- return colors.ansi256.theme.text.body.primary;
483
- },
484
- get ansi16m() {
485
- return colors.ansi16m.theme.text.body.primary;
486
- }
487
- })},
488
- secondary: ${createComponent(ColorFunction, {
489
- get ansi16() {
490
- return colors.ansi16.theme.text.body.secondary;
491
- },
492
- get ansi256() {
493
- return colors.ansi256.theme.text.body.secondary;
494
- },
495
- get ansi16m() {
496
- return colors.ansi16m.theme.text.body.secondary;
497
- }
498
- })},
499
- tertiary: ${createComponent(ColorFunction, {
500
- get ansi16() {
501
- return colors.ansi16.theme.text.body.tertiary;
502
- },
503
- get ansi256() {
504
- return colors.ansi256.theme.text.body.tertiary;
505
- },
506
- get ansi16m() {
507
- return colors.ansi16m.theme.text.body.tertiary;
508
- }
509
- })},
510
- link: ${createComponent(ColorFunction, {
511
- get ansi16() {
512
- return colors.ansi16.theme.text.body.link;
513
- },
514
- get ansi256() {
515
- return colors.ansi256.theme.text.body.link;
516
- },
517
- get ansi16m() {
518
- return colors.ansi16m.theme.text.body.link;
519
- }
520
- })}
521
- },
522
- message: {
523
- link: {
524
- help: ${createComponent(ColorFunction, {
525
- get ansi16() {
526
- return colors.ansi16.theme.text.message.link.help;
527
- },
528
- get ansi256() {
529
- return colors.ansi256.theme.text.message.link.help;
530
- },
531
- get ansi16m() {
532
- return colors.ansi16m.theme.text.message.link.help;
533
- }
534
- })},
535
- success: ${createComponent(ColorFunction, {
536
- get ansi16() {
537
- return colors.ansi16.theme.text.message.link.success;
538
- },
539
- get ansi256() {
540
- return colors.ansi256.theme.text.message.link.success;
541
- },
542
- get ansi16m() {
543
- return colors.ansi16m.theme.text.message.link.success;
544
- }
545
- })},
546
- info: ${createComponent(ColorFunction, {
547
- get ansi16() {
548
- return colors.ansi16.theme.text.message.link.info;
549
- },
550
- get ansi256() {
551
- return colors.ansi256.theme.text.message.link.info;
552
- },
553
- get ansi16m() {
554
- return colors.ansi16m.theme.text.message.link.info;
555
- }
556
- })},
557
- debug: ${createComponent(ColorFunction, {
558
- get ansi16() {
559
- return colors.ansi16.theme.text.message.link.debug;
560
- },
561
- get ansi256() {
562
- return colors.ansi256.theme.text.message.link.debug;
563
- },
564
- get ansi16m() {
565
- return colors.ansi16m.theme.text.message.link.debug;
566
- }
567
- })},
568
- warning: ${createComponent(ColorFunction, {
569
- get ansi16() {
570
- return colors.ansi16.theme.text.message.link.warning;
571
- },
572
- get ansi256() {
573
- return colors.ansi256.theme.text.message.link.warning;
574
- },
575
- get ansi16m() {
576
- return colors.ansi16m.theme.text.message.link.warning;
577
- }
578
- })},
579
- danger: ${createComponent(ColorFunction, {
580
- get ansi16() {
581
- return colors.ansi16.theme.text.message.link.danger;
582
- },
583
- get ansi256() {
584
- return colors.ansi256.theme.text.message.link.danger;
585
- },
586
- get ansi16m() {
587
- return colors.ansi16m.theme.text.message.link.danger;
588
- }
589
- })},
590
- error: ${createComponent(ColorFunction, {
591
- get ansi16() {
592
- return colors.ansi16.theme.text.message.link.error;
593
- },
594
- get ansi256() {
595
- return colors.ansi256.theme.text.message.link.error;
596
- },
597
- get ansi16m() {
598
- return colors.ansi16m.theme.text.message.link.error;
599
- }
600
- })}
601
- },
602
- header: {
603
- help: ${createComponent(ColorFunction, {
604
- get ansi16() {
605
- return colors.ansi16.theme.text.message.header.help;
606
- },
607
- get ansi256() {
608
- return colors.ansi256.theme.text.message.header.help;
609
- },
610
- get ansi16m() {
611
- return colors.ansi16m.theme.text.message.header.help;
612
- }
613
- })},
614
- success: ${createComponent(ColorFunction, {
615
- get ansi16() {
616
- return colors.ansi16.theme.text.message.header.success;
617
- },
618
- get ansi256() {
619
- return colors.ansi256.theme.text.message.header.success;
620
- },
621
- get ansi16m() {
622
- return colors.ansi16m.theme.text.message.header.success;
623
- }
624
- })},
625
- info: ${createComponent(ColorFunction, {
626
- get ansi16() {
627
- return colors.ansi16.theme.text.message.header.info;
628
- },
629
- get ansi256() {
630
- return colors.ansi256.theme.text.message.header.info;
631
- },
632
- get ansi16m() {
633
- return colors.ansi16m.theme.text.message.header.info;
634
- }
635
- })},
636
- debug: ${createComponent(ColorFunction, {
637
- get ansi16() {
638
- return colors.ansi16.theme.text.message.header.debug;
639
- },
640
- get ansi256() {
641
- return colors.ansi256.theme.text.message.header.debug;
642
- },
643
- get ansi16m() {
644
- return colors.ansi16m.theme.text.message.header.debug;
645
- }
646
- })},
647
- warning: ${createComponent(ColorFunction, {
648
- get ansi16() {
649
- return colors.ansi16.theme.text.message.header.warning;
650
- },
651
- get ansi256() {
652
- return colors.ansi256.theme.text.message.header.warning;
653
- },
654
- get ansi16m() {
655
- return colors.ansi16m.theme.text.message.header.warning;
656
- }
657
- })},
658
- danger: ${createComponent(ColorFunction, {
659
- get ansi16() {
660
- return colors.ansi16.theme.text.message.header.danger;
661
- },
662
- get ansi256() {
663
- return colors.ansi256.theme.text.message.header.danger;
664
- },
665
- get ansi16m() {
666
- return colors.ansi16m.theme.text.message.header.danger;
667
- }
668
- })},
669
- error: ${createComponent(ColorFunction, {
670
- get ansi16() {
671
- return colors.ansi16.theme.text.message.header.error;
672
- },
673
- get ansi256() {
674
- return colors.ansi256.theme.text.message.header.error;
675
- },
676
- get ansi16m() {
677
- return colors.ansi16m.theme.text.message.header.error;
678
- }
679
- })}
680
- },
681
- footer: {
682
- help: ${createComponent(ColorFunction, {
683
- get ansi16() {
684
- return colors.ansi16.theme.text.message.footer.help;
685
- },
686
- get ansi256() {
687
- return colors.ansi256.theme.text.message.footer.help;
688
- },
689
- get ansi16m() {
690
- return colors.ansi16m.theme.text.message.footer.help;
691
- }
692
- })},
693
- success: ${createComponent(ColorFunction, {
694
- get ansi16() {
695
- return colors.ansi16.theme.text.message.footer.success;
696
- },
697
- get ansi256() {
698
- return colors.ansi256.theme.text.message.footer.success;
699
- },
700
- get ansi16m() {
701
- return colors.ansi16m.theme.text.message.footer.success;
702
- }
703
- })},
704
- info: ${createComponent(ColorFunction, {
705
- get ansi16() {
706
- return colors.ansi16.theme.text.message.footer.info;
707
- },
708
- get ansi256() {
709
- return colors.ansi256.theme.text.message.footer.info;
710
- },
711
- get ansi16m() {
712
- return colors.ansi16m.theme.text.message.footer.info;
713
- }
714
- })},
715
- debug: ${createComponent(ColorFunction, {
716
- get ansi16() {
717
- return colors.ansi16.theme.text.message.footer.debug;
718
- },
719
- get ansi256() {
720
- return colors.ansi256.theme.text.message.footer.debug;
721
- },
722
- get ansi16m() {
723
- return colors.ansi16m.theme.text.message.footer.debug;
724
- }
725
- })},
726
- warning: ${createComponent(ColorFunction, {
727
- get ansi16() {
728
- return colors.ansi16.theme.text.message.footer.warning;
729
- },
730
- get ansi256() {
731
- return colors.ansi256.theme.text.message.footer.warning;
732
- },
733
- get ansi16m() {
734
- return colors.ansi16m.theme.text.message.footer.warning;
735
- }
736
- })},
737
- danger: ${createComponent(ColorFunction, {
738
- get ansi16() {
739
- return colors.ansi16.theme.text.message.footer.danger;
740
- },
741
- get ansi256() {
742
- return colors.ansi256.theme.text.message.footer.danger;
743
- },
744
- get ansi16m() {
745
- return colors.ansi16m.theme.text.message.footer.danger;
746
- }
747
- })},
748
- error: ${createComponent(ColorFunction, {
749
- get ansi16() {
750
- return colors.ansi16.theme.text.message.footer.error;
751
- },
752
- get ansi256() {
753
- return colors.ansi256.theme.text.message.footer.error;
754
- },
755
- get ansi16m() {
756
- return colors.ansi16m.theme.text.message.footer.error;
757
- }
758
- })}
759
- },
760
- description: {
761
- help: ${createComponent(ColorFunction, {
762
- get ansi16() {
763
- return colors.ansi16.theme.text.message.description.help;
764
- },
765
- get ansi256() {
766
- return colors.ansi256.theme.text.message.description.help;
767
- },
768
- get ansi16m() {
769
- return colors.ansi16m.theme.text.message.description.help;
770
- }
771
- })},
772
- success: ${createComponent(ColorFunction, {
773
- get ansi16() {
774
- return colors.ansi16.theme.text.message.description.success;
775
- },
776
- get ansi256() {
777
- return colors.ansi256.theme.text.message.description.success;
778
- },
779
- get ansi16m() {
780
- return colors.ansi16m.theme.text.message.description.success;
781
- }
782
- })},
783
- info: ${createComponent(ColorFunction, {
784
- get ansi16() {
785
- return colors.ansi16.theme.text.message.description.info;
786
- },
787
- get ansi256() {
788
- return colors.ansi256.theme.text.message.description.info;
789
- },
790
- get ansi16m() {
791
- return colors.ansi16m.theme.text.message.description.info;
792
- }
793
- })},
794
- debug: ${createComponent(ColorFunction, {
795
- get ansi16() {
796
- return colors.ansi16.theme.text.message.description.debug;
797
- },
798
- get ansi256() {
799
- return colors.ansi256.theme.text.message.description.debug;
800
- },
801
- get ansi16m() {
802
- return colors.ansi16m.theme.text.message.description.debug;
803
- }
804
- })},
805
- warning: ${createComponent(ColorFunction, {
806
- get ansi16() {
807
- return colors.ansi16.theme.text.message.description.warning;
808
- },
809
- get ansi256() {
810
- return colors.ansi256.theme.text.message.description.warning;
811
- },
812
- get ansi16m() {
813
- return colors.ansi16m.theme.text.message.description.warning;
814
- }
815
- })},
816
- danger: ${createComponent(ColorFunction, {
817
- get ansi16() {
818
- return colors.ansi16.theme.text.message.description.danger;
819
- },
820
- get ansi256() {
821
- return colors.ansi256.theme.text.message.description.danger;
822
- },
823
- get ansi16m() {
824
- return colors.ansi16m.theme.text.message.description.danger;
825
- }
826
- })},
827
- error: ${createComponent(ColorFunction, {
828
- get ansi16() {
829
- return colors.ansi16.theme.text.message.description.error;
830
- },
831
- get ansi256() {
832
- return colors.ansi256.theme.text.message.description.error;
833
- },
834
- get ansi16m() {
835
- return colors.ansi16m.theme.text.message.description.error;
836
- }
837
- })}
838
- }
839
- },
840
- usage: {
841
- bin: ${createComponent(ColorFunction, {
842
- get ansi16() {
843
- return colors.ansi16.theme.text.usage.bin;
844
- },
845
- get ansi256() {
846
- return colors.ansi256.theme.text.usage.bin;
847
- },
848
- get ansi16m() {
849
- return colors.ansi16m.theme.text.usage.bin;
850
- }
851
- })},
852
- command: ${createComponent(ColorFunction, {
853
- get ansi16() {
854
- return colors.ansi16.theme.text.usage.command;
855
- },
856
- get ansi256() {
857
- return colors.ansi256.theme.text.usage.command;
858
- },
859
- get ansi16m() {
860
- return colors.ansi16m.theme.text.usage.command;
861
- }
862
- })},
863
- dynamic: ${createComponent(ColorFunction, {
864
- get ansi16() {
865
- return colors.ansi16.theme.text.usage.dynamic;
866
- },
867
- get ansi256() {
868
- return colors.ansi256.theme.text.usage.dynamic;
869
- },
870
- get ansi16m() {
871
- return colors.ansi16m.theme.text.usage.dynamic;
872
- }
873
- })},
874
- options: ${createComponent(ColorFunction, {
875
- get ansi16() {
876
- return colors.ansi16.theme.text.usage.options;
877
- },
878
- get ansi256() {
879
- return colors.ansi256.theme.text.usage.options;
880
- },
881
- get ansi16m() {
882
- return colors.ansi16m.theme.text.usage.options;
883
- }
884
- })},
885
- args: ${createComponent(ColorFunction, {
886
- get ansi16() {
887
- return colors.ansi16.theme.text.usage.args;
888
- },
889
- get ansi256() {
890
- return colors.ansi256.theme.text.usage.args;
891
- },
892
- get ansi16m() {
893
- return colors.ansi16m.theme.text.usage.args;
894
- }
895
- })},
896
- description: ${createComponent(ColorFunction, {
897
- get ansi16() {
898
- return colors.ansi16.theme.text.usage.description;
899
- },
900
- get ansi256() {
901
- return colors.ansi256.theme.text.usage.description;
902
- },
903
- get ansi16m() {
904
- return colors.ansi16m.theme.text.usage.description;
905
- }
906
- })}
907
- },
908
- prompt: {
909
- icon: {
910
- active: ${createComponent(ColorFunction, {
911
- get ansi16() {
912
- return colors.ansi16.theme.text.prompt.icon.active;
913
- },
914
- get ansi256() {
915
- return colors.ansi256.theme.text.prompt.icon.active;
916
- },
917
- get ansi16m() {
918
- return colors.ansi16m.theme.text.prompt.icon.active;
919
- }
920
- })},
921
- warning: ${createComponent(ColorFunction, {
922
- get ansi16() {
923
- return colors.ansi16.theme.text.prompt.icon.warning;
924
- },
925
- get ansi256() {
926
- return colors.ansi256.theme.text.prompt.icon.warning;
927
- },
928
- get ansi16m() {
929
- return colors.ansi16m.theme.text.prompt.icon.warning;
930
- }
931
- })},
932
- error: ${createComponent(ColorFunction, {
933
- get ansi16() {
934
- return colors.ansi16.theme.text.prompt.icon.error;
935
- },
936
- get ansi256() {
937
- return colors.ansi256.theme.text.prompt.icon.error;
938
- },
939
- get ansi16m() {
940
- return colors.ansi16m.theme.text.prompt.icon.error;
941
- }
942
- })},
943
- submitted: ${createComponent(ColorFunction, {
944
- get ansi16() {
945
- return colors.ansi16.theme.text.prompt.icon.submitted;
946
- },
947
- get ansi256() {
948
- return colors.ansi256.theme.text.prompt.icon.submitted;
949
- },
950
- get ansi16m() {
951
- return colors.ansi16m.theme.text.prompt.icon.submitted;
952
- }
953
- })},
954
- cancelled: ${createComponent(ColorFunction, {
955
- get ansi16() {
956
- return colors.ansi16.theme.text.prompt.icon.cancelled;
957
- },
958
- get ansi256() {
959
- return colors.ansi256.theme.text.prompt.icon.cancelled;
960
- },
961
- get ansi16m() {
962
- return colors.ansi16m.theme.text.prompt.icon.cancelled;
963
- }
964
- })},
965
- disabled: ${createComponent(ColorFunction, {
966
- get ansi16() {
967
- return colors.ansi16.theme.text.prompt.icon.disabled;
968
- },
969
- get ansi256() {
970
- return colors.ansi256.theme.text.prompt.icon.disabled;
971
- },
972
- get ansi16m() {
973
- return colors.ansi16m.theme.text.prompt.icon.disabled;
974
- }
975
- })}
976
- },
977
- message: {
978
- active: ${createComponent(ColorFunction, {
979
- get ansi16() {
980
- return colors.ansi16.theme.text.prompt.message.active;
981
- },
982
- get ansi256() {
983
- return colors.ansi256.theme.text.prompt.message.active;
984
- },
985
- get ansi16m() {
986
- return colors.ansi16m.theme.text.prompt.message.active;
987
- }
988
- })},
989
- warning: ${createComponent(ColorFunction, {
990
- get ansi16() {
991
- return colors.ansi16.theme.text.prompt.message.warning;
992
- },
993
- get ansi256() {
994
- return colors.ansi256.theme.text.prompt.message.warning;
995
- },
996
- get ansi16m() {
997
- return colors.ansi16m.theme.text.prompt.message.warning;
998
- }
999
- })},
1000
- error: ${createComponent(ColorFunction, {
1001
- get ansi16() {
1002
- return colors.ansi16.theme.text.prompt.message.error;
1003
- },
1004
- get ansi256() {
1005
- return colors.ansi256.theme.text.prompt.message.error;
1006
- },
1007
- get ansi16m() {
1008
- return colors.ansi16m.theme.text.prompt.message.error;
1009
- }
1010
- })},
1011
- submitted: ${createComponent(ColorFunction, {
1012
- get ansi16() {
1013
- return colors.ansi16.theme.text.prompt.message.submitted;
1014
- },
1015
- get ansi256() {
1016
- return colors.ansi256.theme.text.prompt.message.submitted;
1017
- },
1018
- get ansi16m() {
1019
- return colors.ansi16m.theme.text.prompt.message.submitted;
1020
- }
1021
- })},
1022
- cancelled: ${createComponent(ColorFunction, {
1023
- get ansi16() {
1024
- return colors.ansi16.theme.text.prompt.message.cancelled;
1025
- },
1026
- get ansi256() {
1027
- return colors.ansi256.theme.text.prompt.message.cancelled;
1028
- },
1029
- get ansi16m() {
1030
- return colors.ansi16m.theme.text.prompt.message.cancelled;
1031
- }
1032
- })},
1033
- disabled: ${createComponent(ColorFunction, {
1034
- get ansi16() {
1035
- return colors.ansi16.theme.text.prompt.message.disabled;
1036
- },
1037
- get ansi256() {
1038
- return colors.ansi256.theme.text.prompt.message.disabled;
1039
- },
1040
- get ansi16m() {
1041
- return colors.ansi16m.theme.text.prompt.message.disabled;
1042
- }
1043
- })}
1044
- },
1045
- input: {
1046
- active: ${createComponent(ColorFunction, {
1047
- get ansi16() {
1048
- return colors.ansi16.theme.text.prompt.input.active;
1049
- },
1050
- get ansi256() {
1051
- return colors.ansi256.theme.text.prompt.input.active;
1052
- },
1053
- get ansi16m() {
1054
- return colors.ansi16m.theme.text.prompt.input.active;
1055
- }
1056
- })},
1057
- inactive: ${createComponent(ColorFunction, {
1058
- get ansi16() {
1059
- return colors.ansi16.theme.text.prompt.input.inactive;
1060
- },
1061
- get ansi256() {
1062
- return colors.ansi256.theme.text.prompt.input.inactive;
1063
- },
1064
- get ansi16m() {
1065
- return colors.ansi16m.theme.text.prompt.input.inactive;
1066
- }
1067
- })},
1068
- warning: ${createComponent(ColorFunction, {
1069
- get ansi16() {
1070
- return colors.ansi16.theme.text.prompt.input.warning;
1071
- },
1072
- get ansi256() {
1073
- return colors.ansi256.theme.text.prompt.input.warning;
1074
- },
1075
- get ansi16m() {
1076
- return colors.ansi16m.theme.text.prompt.input.warning;
1077
- }
1078
- })},
1079
- error: ${createComponent(ColorFunction, {
1080
- get ansi16() {
1081
- return colors.ansi16.theme.text.prompt.input.error;
1082
- },
1083
- get ansi256() {
1084
- return colors.ansi256.theme.text.prompt.input.error;
1085
- },
1086
- get ansi16m() {
1087
- return colors.ansi16m.theme.text.prompt.input.error;
1088
- }
1089
- })},
1090
- submitted: ${createComponent(ColorFunction, {
1091
- get ansi16() {
1092
- return colors.ansi16.theme.text.prompt.input.submitted;
1093
- },
1094
- get ansi256() {
1095
- return colors.ansi256.theme.text.prompt.input.submitted;
1096
- },
1097
- get ansi16m() {
1098
- return colors.ansi16m.theme.text.prompt.input.submitted;
1099
- }
1100
- })},
1101
- cancelled: ${createComponent(ColorFunction, {
1102
- get ansi16() {
1103
- return colors.ansi16.theme.text.prompt.input.cancelled;
1104
- },
1105
- get ansi256() {
1106
- return colors.ansi256.theme.text.prompt.input.cancelled;
1107
- },
1108
- get ansi16m() {
1109
- return colors.ansi16m.theme.text.prompt.input.cancelled;
1110
- }
1111
- })},
1112
- disabled: ${createComponent(ColorFunction, {
1113
- get ansi16() {
1114
- return colors.ansi16.theme.text.prompt.input.disabled;
1115
- },
1116
- get ansi256() {
1117
- return colors.ansi256.theme.text.prompt.input.disabled;
1118
- },
1119
- get ansi16m() {
1120
- return colors.ansi16m.theme.text.prompt.input.disabled;
1121
- }
1122
- })},
1123
- placeholder: ${createComponent(ColorFunction, {
1124
- get ansi16() {
1125
- return colors.ansi16.theme.text.prompt.input.placeholder;
1126
- },
1127
- get ansi256() {
1128
- return colors.ansi256.theme.text.prompt.input.placeholder;
1129
- },
1130
- get ansi16m() {
1131
- return colors.ansi16m.theme.text.prompt.input.placeholder;
1132
- }
1133
- })}
1134
- },
1135
- description: {
1136
- active: ${createComponent(ColorFunction, {
1137
- get ansi16() {
1138
- return colors.ansi16.theme.text.prompt.description.active;
1139
- },
1140
- get ansi256() {
1141
- return colors.ansi256.theme.text.prompt.description.active;
1142
- },
1143
- get ansi16m() {
1144
- return colors.ansi16m.theme.text.prompt.description.active;
1145
- }
1146
- })},
1147
- inactive: ${createComponent(ColorFunction, {
1148
- get ansi16() {
1149
- return colors.ansi16.theme.text.prompt.description.inactive;
1150
- },
1151
- get ansi256() {
1152
- return colors.ansi256.theme.text.prompt.description.inactive;
1153
- },
1154
- get ansi16m() {
1155
- return colors.ansi16m.theme.text.prompt.description.inactive;
1156
- }
1157
- })},
1158
- warning: ${createComponent(ColorFunction, {
1159
- get ansi16() {
1160
- return colors.ansi16.theme.text.prompt.description.warning;
1161
- },
1162
- get ansi256() {
1163
- return colors.ansi256.theme.text.prompt.description.warning;
1164
- },
1165
- get ansi16m() {
1166
- return colors.ansi16m.theme.text.prompt.description.warning;
1167
- }
1168
- })},
1169
- error: ${createComponent(ColorFunction, {
1170
- get ansi16() {
1171
- return colors.ansi16.theme.text.prompt.description.error;
1172
- },
1173
- get ansi256() {
1174
- return colors.ansi256.theme.text.prompt.description.error;
1175
- },
1176
- get ansi16m() {
1177
- return colors.ansi16m.theme.text.prompt.description.error;
1178
- }
1179
- })},
1180
- submitted: ${createComponent(ColorFunction, {
1181
- get ansi16() {
1182
- return colors.ansi16.theme.text.prompt.description.submitted;
1183
- },
1184
- get ansi256() {
1185
- return colors.ansi256.theme.text.prompt.description.submitted;
1186
- },
1187
- get ansi16m() {
1188
- return colors.ansi16m.theme.text.prompt.description.submitted;
1189
- }
1190
- })},
1191
- cancelled: ${createComponent(ColorFunction, {
1192
- get ansi16() {
1193
- return colors.ansi16.theme.text.prompt.description.cancelled;
1194
- },
1195
- get ansi256() {
1196
- return colors.ansi256.theme.text.prompt.description.cancelled;
1197
- },
1198
- get ansi16m() {
1199
- return colors.ansi16m.theme.text.prompt.description.cancelled;
1200
- }
1201
- })},
1202
- disabled: ${createComponent(ColorFunction, {
1203
- get ansi16() {
1204
- return colors.ansi16.theme.text.prompt.description.disabled;
1205
- },
1206
- get ansi256() {
1207
- return colors.ansi256.theme.text.prompt.description.disabled;
1208
- },
1209
- get ansi16m() {
1210
- return colors.ansi16m.theme.text.prompt.description.disabled;
1211
- }
1212
- })}
1213
- }
1214
- },
1215
- spinner: {
1216
- icon: {
1217
- active: ${createComponent(ColorFunction, {
1218
- get ansi16() {
1219
- return colors.ansi16.theme.text.spinner.icon.active;
1220
- },
1221
- get ansi256() {
1222
- return colors.ansi256.theme.text.spinner.icon.active;
1223
- },
1224
- get ansi16m() {
1225
- return colors.ansi16m.theme.text.spinner.icon.active;
1226
- }
1227
- })},
1228
- warning: ${createComponent(ColorFunction, {
1229
- get ansi16() {
1230
- return colors.ansi16.theme.text.spinner.icon.warning;
1231
- },
1232
- get ansi256() {
1233
- return colors.ansi256.theme.text.spinner.icon.warning;
1234
- },
1235
- get ansi16m() {
1236
- return colors.ansi16m.theme.text.spinner.icon.warning;
1237
- }
1238
- })},
1239
- error: ${createComponent(ColorFunction, {
1240
- get ansi16() {
1241
- return colors.ansi16.theme.text.spinner.icon.error;
1242
- },
1243
- get ansi256() {
1244
- return colors.ansi256.theme.text.spinner.icon.error;
1245
- },
1246
- get ansi16m() {
1247
- return colors.ansi16m.theme.text.spinner.icon.error;
1248
- }
1249
- })},
1250
- success: ${createComponent(ColorFunction, {
1251
- get ansi16() {
1252
- return colors.ansi16.theme.text.spinner.icon.success;
1253
- },
1254
- get ansi256() {
1255
- return colors.ansi256.theme.text.spinner.icon.success;
1256
- },
1257
- get ansi16m() {
1258
- return colors.ansi16m.theme.text.spinner.icon.success;
1259
- }
1260
- })},
1261
- info: ${createComponent(ColorFunction, {
1262
- get ansi16() {
1263
- return colors.ansi16.theme.text.spinner.icon.info;
1264
- },
1265
- get ansi256() {
1266
- return colors.ansi256.theme.text.spinner.icon.info;
1267
- },
1268
- get ansi16m() {
1269
- return colors.ansi16m.theme.text.spinner.icon.info;
1270
- }
1271
- })},
1272
- help: ${createComponent(ColorFunction, {
1273
- get ansi16() {
1274
- return colors.ansi16.theme.text.spinner.icon.help;
1275
- },
1276
- get ansi256() {
1277
- return colors.ansi256.theme.text.spinner.icon.help;
1278
- },
1279
- get ansi16m() {
1280
- return colors.ansi16m.theme.text.spinner.icon.help;
1281
- }
1282
- })}
1283
- },
1284
- message: {
1285
- active: ${createComponent(ColorFunction, {
1286
- get ansi16() {
1287
- return colors.ansi16.theme.text.spinner.message.active;
1288
- },
1289
- get ansi256() {
1290
- return colors.ansi256.theme.text.spinner.message.active;
1291
- },
1292
- get ansi16m() {
1293
- return colors.ansi16m.theme.text.spinner.message.active;
1294
- }
1295
- })},
1296
- warning: ${createComponent(ColorFunction, {
1297
- get ansi16() {
1298
- return colors.ansi16.theme.text.spinner.message.warning;
1299
- },
1300
- get ansi256() {
1301
- return colors.ansi256.theme.text.spinner.message.warning;
1302
- },
1303
- get ansi16m() {
1304
- return colors.ansi16m.theme.text.spinner.message.warning;
1305
- }
1306
- })},
1307
- error: ${createComponent(ColorFunction, {
1308
- get ansi16() {
1309
- return colors.ansi16.theme.text.spinner.message.error;
1310
- },
1311
- get ansi256() {
1312
- return colors.ansi256.theme.text.spinner.message.error;
1313
- },
1314
- get ansi16m() {
1315
- return colors.ansi16m.theme.text.spinner.message.error;
1316
- }
1317
- })},
1318
- success: ${createComponent(ColorFunction, {
1319
- get ansi16() {
1320
- return colors.ansi16.theme.text.spinner.message.success;
1321
- },
1322
- get ansi256() {
1323
- return colors.ansi256.theme.text.spinner.message.success;
1324
- },
1325
- get ansi16m() {
1326
- return colors.ansi16m.theme.text.spinner.message.success;
1327
- }
1328
- })},
1329
- info: ${createComponent(ColorFunction, {
1330
- get ansi16() {
1331
- return colors.ansi16.theme.text.spinner.message.info;
1332
- },
1333
- get ansi256() {
1334
- return colors.ansi256.theme.text.spinner.message.info;
1335
- },
1336
- get ansi16m() {
1337
- return colors.ansi16m.theme.text.spinner.message.info;
1338
- }
1339
- })},
1340
- help: ${createComponent(ColorFunction, {
1341
- get ansi16() {
1342
- return colors.ansi16.theme.text.spinner.message.help;
1343
- },
1344
- get ansi256() {
1345
- return colors.ansi256.theme.text.spinner.message.help;
1346
- },
1347
- get ansi16m() {
1348
- return colors.ansi16m.theme.text.spinner.message.help;
1349
- }
1350
- })}
1351
- }
1352
- },
1353
- tags: { `,
1354
- createComponent(For, {
1355
- get each() {
1356
- return Object.keys(theme.colors.text.tags);
1357
- },
1358
- get joiner() {
1359
- return [code`, `, createIntrinsic("hbr", {})];
1360
- },
1361
- children: (key) => code`${key === "$default" ? "$default" : camelCase(key)}: ${createComponent(ColorFunction, {
1362
- get ansi16() {
1363
- return colors.ansi16.theme.text.tags[key];
1364
- },
1365
- get ansi256() {
1366
- return colors.ansi256.theme.text.tags[key];
1367
- },
1368
- get ansi16m() {
1369
- return colors.ansi16m.theme.text.tags[key];
1370
- }
1371
- })}`
1372
- }),
1373
- code` }
1374
- },
1375
- border: {
1376
- banner: {
1377
- outline: {
1378
- primary: ${createComponent(ColorFunction, {
1379
- get ansi16() {
1380
- return colors.ansi16.theme.border.banner.outline.primary;
1381
- },
1382
- get ansi256() {
1383
- return colors.ansi256.theme.border.banner.outline.primary;
1384
- },
1385
- get ansi16m() {
1386
- return colors.ansi16m.theme.border.banner.outline.primary;
1387
- }
1388
- })},
1389
- secondary: ${createComponent(ColorFunction, {
1390
- get ansi16() {
1391
- return colors.ansi16.theme.border.banner.outline.secondary;
1392
- },
1393
- get ansi256() {
1394
- return colors.ansi256.theme.border.banner.outline.secondary;
1395
- },
1396
- get ansi16m() {
1397
- return colors.ansi16m.theme.border.banner.outline.secondary;
1398
- }
1399
- })},
1400
- tertiary: ${createComponent(ColorFunction, {
1401
- get ansi16() {
1402
- return colors.ansi16.theme.border.banner.outline.tertiary;
1403
- },
1404
- get ansi256() {
1405
- return colors.ansi256.theme.border.banner.outline.tertiary;
1406
- },
1407
- get ansi16m() {
1408
- return colors.ansi16m.theme.border.banner.outline.tertiary;
1409
- }
1410
- })}
1411
- },
1412
- divider: {
1413
- primary: ${createComponent(ColorFunction, {
1414
- get ansi16() {
1415
- return colors.ansi16.theme.border.banner.divider.primary;
1416
- },
1417
- get ansi256() {
1418
- return colors.ansi256.theme.border.banner.divider.primary;
1419
- },
1420
- get ansi16m() {
1421
- return colors.ansi16m.theme.border.banner.divider.primary;
1422
- }
1423
- })},
1424
- secondary: ${createComponent(ColorFunction, {
1425
- get ansi16() {
1426
- return colors.ansi16.theme.border.banner.divider.secondary;
1427
- },
1428
- get ansi256() {
1429
- return colors.ansi256.theme.border.banner.divider.secondary;
1430
- },
1431
- get ansi16m() {
1432
- return colors.ansi16m.theme.border.banner.divider.secondary;
1433
- }
1434
- })},
1435
- tertiary: ${createComponent(ColorFunction, {
1436
- get ansi16() {
1437
- return colors.ansi16.theme.border.banner.divider.tertiary;
1438
- },
1439
- get ansi256() {
1440
- return colors.ansi256.theme.border.banner.divider.tertiary;
1441
- },
1442
- get ansi16m() {
1443
- return colors.ansi16m.theme.border.banner.divider.tertiary;
1444
- }
1445
- })}
1446
- }
1447
- },
1448
- app: {
1449
- table: {
1450
- primary: ${createComponent(ColorFunction, {
1451
- get ansi16() {
1452
- return colors.ansi16.theme.border.app.table.primary;
1453
- },
1454
- get ansi256() {
1455
- return colors.ansi256.theme.border.app.table.primary;
1456
- },
1457
- get ansi16m() {
1458
- return colors.ansi16m.theme.border.app.table.primary;
1459
- }
1460
- })},
1461
- secondary: ${createComponent(ColorFunction, {
1462
- get ansi16() {
1463
- return colors.ansi16.theme.border.app.table.secondary;
1464
- },
1465
- get ansi256() {
1466
- return colors.ansi256.theme.border.app.table.secondary;
1467
- },
1468
- get ansi16m() {
1469
- return colors.ansi16m.theme.border.app.table.secondary;
1470
- }
1471
- })},
1472
- tertiary: ${createComponent(ColorFunction, {
1473
- get ansi16() {
1474
- return colors.ansi16.theme.border.app.table.tertiary;
1475
- },
1476
- get ansi256() {
1477
- return colors.ansi256.theme.border.app.table.tertiary;
1478
- },
1479
- get ansi16m() {
1480
- return colors.ansi16m.theme.border.app.table.tertiary;
1481
- }
1482
- })}
1483
- },
1484
- divider: {
1485
- primary: ${createComponent(ColorFunction, {
1486
- get ansi16() {
1487
- return colors.ansi16.theme.border.app.divider.primary;
1488
- },
1489
- get ansi256() {
1490
- return colors.ansi256.theme.border.app.divider.primary;
1491
- },
1492
- get ansi16m() {
1493
- return colors.ansi16m.theme.border.app.divider.primary;
1494
- }
1495
- })},
1496
- secondary: ${createComponent(ColorFunction, {
1497
- get ansi16() {
1498
- return colors.ansi16.theme.border.app.divider.secondary;
1499
- },
1500
- get ansi256() {
1501
- return colors.ansi256.theme.border.app.divider.secondary;
1502
- },
1503
- get ansi16m() {
1504
- return colors.ansi16m.theme.border.app.divider.secondary;
1505
- }
1506
- })},
1507
- tertiary: ${createComponent(ColorFunction, {
1508
- get ansi16() {
1509
- return colors.ansi16.theme.border.app.divider.tertiary;
1510
- },
1511
- get ansi256() {
1512
- return colors.ansi256.theme.border.app.divider.tertiary;
1513
- },
1514
- get ansi16m() {
1515
- return colors.ansi16m.theme.border.app.divider.tertiary;
1516
- }
1517
- })}
1518
- }
1519
- },
1520
- message: {
1521
- outline: {
1522
- help: ${createComponent(ColorFunction, {
1523
- get ansi16() {
1524
- return colors.ansi16.theme.border.message.outline.help;
1525
- },
1526
- get ansi256() {
1527
- return colors.ansi256.theme.border.message.outline.help;
1528
- },
1529
- get ansi16m() {
1530
- return colors.ansi16m.theme.border.message.outline.help;
1531
- }
1532
- })},
1533
- success: ${createComponent(ColorFunction, {
1534
- get ansi16() {
1535
- return colors.ansi16.theme.border.message.outline.success;
1536
- },
1537
- get ansi256() {
1538
- return colors.ansi256.theme.border.message.outline.success;
1539
- },
1540
- get ansi16m() {
1541
- return colors.ansi16m.theme.border.message.outline.success;
1542
- }
1543
- })},
1544
- info: ${createComponent(ColorFunction, {
1545
- get ansi16() {
1546
- return colors.ansi16.theme.border.message.outline.info;
1547
- },
1548
- get ansi256() {
1549
- return colors.ansi256.theme.border.message.outline.info;
1550
- },
1551
- get ansi16m() {
1552
- return colors.ansi16m.theme.border.message.outline.info;
1553
- }
1554
- })},
1555
- debug: ${createComponent(ColorFunction, {
1556
- get ansi16() {
1557
- return colors.ansi16.theme.border.message.outline.debug;
1558
- },
1559
- get ansi256() {
1560
- return colors.ansi256.theme.border.message.outline.debug;
1561
- },
1562
- get ansi16m() {
1563
- return colors.ansi16m.theme.border.message.outline.debug;
1564
- }
1565
- })},
1566
- warning: ${createComponent(ColorFunction, {
1567
- get ansi16() {
1568
- return colors.ansi16.theme.border.message.outline.warning;
1569
- },
1570
- get ansi256() {
1571
- return colors.ansi256.theme.border.message.outline.warning;
1572
- },
1573
- get ansi16m() {
1574
- return colors.ansi16m.theme.border.message.outline.warning;
1575
- }
1576
- })},
1577
- danger: ${createComponent(ColorFunction, {
1578
- get ansi16() {
1579
- return colors.ansi16.theme.border.message.outline.danger;
1580
- },
1581
- get ansi256() {
1582
- return colors.ansi256.theme.border.message.outline.danger;
1583
- },
1584
- get ansi16m() {
1585
- return colors.ansi16m.theme.border.message.outline.danger;
1586
- }
1587
- })},
1588
- error: ${createComponent(ColorFunction, {
1589
- get ansi16() {
1590
- return colors.ansi16.theme.border.message.outline.error;
1591
- },
1592
- get ansi256() {
1593
- return colors.ansi256.theme.border.message.outline.error;
1594
- },
1595
- get ansi16m() {
1596
- return colors.ansi16m.theme.border.message.outline.error;
1597
- }
1598
- })}
1599
- },
1600
- divider: {
1601
- help: ${createComponent(ColorFunction, {
1602
- get ansi16() {
1603
- return colors.ansi16.theme.border.message.divider.help;
1604
- },
1605
- get ansi256() {
1606
- return colors.ansi256.theme.border.message.divider.help;
1607
- },
1608
- get ansi16m() {
1609
- return colors.ansi16m.theme.border.message.divider.help;
1610
- }
1611
- })},
1612
- success: ${createComponent(ColorFunction, {
1613
- get ansi16() {
1614
- return colors.ansi16.theme.border.message.divider.success;
1615
- },
1616
- get ansi256() {
1617
- return colors.ansi256.theme.border.message.divider.success;
1618
- },
1619
- get ansi16m() {
1620
- return colors.ansi16m.theme.border.message.divider.success;
1621
- }
1622
- })},
1623
- info: ${createComponent(ColorFunction, {
1624
- get ansi16() {
1625
- return colors.ansi16.theme.border.message.divider.info;
1626
- },
1627
- get ansi256() {
1628
- return colors.ansi256.theme.border.message.divider.info;
1629
- },
1630
- get ansi16m() {
1631
- return colors.ansi16m.theme.border.message.divider.info;
1632
- }
1633
- })},
1634
- debug: ${createComponent(ColorFunction, {
1635
- get ansi16() {
1636
- return colors.ansi16.theme.border.message.divider.debug;
1637
- },
1638
- get ansi256() {
1639
- return colors.ansi256.theme.border.message.divider.debug;
1640
- },
1641
- get ansi16m() {
1642
- return colors.ansi16m.theme.border.message.divider.debug;
1643
- }
1644
- })},
1645
- warning: ${createComponent(ColorFunction, {
183
+ get fallback() {
184
+ return [
185
+ createComponent(TSDoc, { heading: `An object containing various ${subType ? `${subType} ` : ""}${color}${type ? ` ${type}` : ""} theme coloring functions.` }),
186
+ memo(() => code` ${camelCase(color)}: { `),
187
+ createIntrinsic("hbr", {}),
188
+ createComponent(ThemeColorTypeDefinition, {
189
+ get ansi16() {
190
+ return ansi16[color];
191
+ },
192
+ get ansi256() {
193
+ return ansi256[color];
194
+ },
195
+ get ansi16m() {
196
+ return ansi16m[color];
197
+ },
198
+ type: subType || type,
199
+ subType: color
200
+ }),
201
+ createIntrinsic("hbr", {}),
202
+ code` }`
203
+ ];
204
+ },
205
+ get children() {
206
+ return [createComponent(TSDoc, {
207
+ get heading() {
208
+ return `A function that applies ${getIndefiniteArticle(color)} ${color}${type ? ` ${type}` : ""}${subType ? ` ${subType}` : ""} color styling to provided console text.`;
209
+ },
210
+ get children() {
211
+ return [
212
+ createComponent(TSDocRemarks, { children: `This function takes a string and an optional boolean indicating whether to apply the color as a background. It returns the input string wrapped in the appropriate ANSI escape codes for ${color}${type ? ` ${type}` : ""}${subType ? ` ${subType}` : ""} color styling, based on the terminal's color support level. If colors are not supported, it simply returns the input text as a string.` }),
213
+ createIntrinsic("hbr", {}),
214
+ createComponent(TSDocParam, {
215
+ name: "text",
216
+ children: `The console text to which the ${color}${type ? ` ${type}` : ""}${subType ? ` ${subType}` : ""} color styling should be applied.`
217
+ }),
218
+ createComponent(TSDocParam, {
219
+ name: "background",
220
+ children: `A boolean indicating whether to apply the color as a background. Defaults to \`false\`.`
221
+ }),
222
+ createComponent(TSDocReturns, { children: `A string with ANSI escape codes applied for ${color}${type ? ` ${type}` : ""}${subType ? ` ${subType}` : ""} color styling, or the original text if the style is not supported in the current terminal.` })
223
+ ];
224
+ }
225
+ }), memo(() => code`${camelCase(color)}: (text: string, background?: boolean) => string`)];
226
+ }
227
+ });
228
+ }
229
+ })]
230
+ });
231
+ }
232
+ function ThemeColorObjectDefinition(props) {
233
+ const { ansi16, ansi256, ansi16m, type, subType } = props;
234
+ return createComponent(For, {
235
+ get each() {
236
+ return Object.entries(ansi16);
237
+ },
238
+ comma: true,
239
+ doubleHardline: true,
240
+ enderPunctuation: true,
241
+ children: ([color, value]) => [createComponent(Show, {
242
+ get when() {
243
+ return isSetObject(value);
244
+ },
245
+ get children() {
246
+ return createComponent(Show, {
247
+ get when() {
248
+ return "open" in value && "close" in value;
249
+ },
250
+ get fallback() {
251
+ return [
252
+ createComponent(TSDoc, { heading: `An object containing various ${subType ? `${subType} ` : ""}${color}${type ? ` ${type}` : ""} theme coloring functions.` }),
253
+ memo(() => code` ${camelCase(color)}: { `),
254
+ createIntrinsic("hbr", {}),
255
+ createComponent(ThemeColorObjectDefinition, {
256
+ get ansi16() {
257
+ return ansi16[color];
258
+ },
259
+ get ansi256() {
260
+ return ansi256[color];
261
+ },
262
+ get ansi16m() {
263
+ return ansi16m[color];
264
+ },
265
+ type: subType || type,
266
+ subType: color
267
+ }),
268
+ createIntrinsic("hbr", {}),
269
+ code` }`
270
+ ];
271
+ },
272
+ get children() {
273
+ return [
274
+ createComponent(TSDoc, {
275
+ get heading() {
276
+ return `A function that applies ${getIndefiniteArticle(color)} ${color}${type ? ` ${type}` : ""}${subType ? ` ${subType}` : ""} color styling to provided console text.`;
277
+ },
278
+ get children() {
279
+ return [
280
+ createComponent(TSDocRemarks, { children: `This function takes a string and an optional boolean indicating whether to apply the color as a background. It returns the input string wrapped in the appropriate ANSI escape codes for ${color}${type ? ` ${type}` : ""}${subType ? ` ${subType}` : ""} color styling, based on the terminal's color support level. If colors are not supported, it simply returns the input text as a string.` }),
281
+ createIntrinsic("hbr", {}),
282
+ createComponent(TSDocParam, {
283
+ name: "text",
284
+ children: `The console text to which the ${color}${type ? ` ${type}` : ""}${subType ? ` ${subType}` : ""} color styling should be applied.`
285
+ }),
286
+ createComponent(TSDocParam, {
287
+ name: "background",
288
+ children: `A boolean indicating whether to apply the color as a background. Defaults to \`false\`.`
289
+ }),
290
+ createComponent(TSDocReturns, { children: `A string with ANSI escape codes applied for ${color}${type ? ` ${type}` : ""}${subType ? ` ${subType}` : ""} color styling, or the original text if the style is not supported in the current terminal.` })
291
+ ];
292
+ }
293
+ }),
294
+ memo(() => code`${camelCase(color)}: `),
295
+ createComponent(ColorFunction, {
296
+ get ansi16() {
297
+ return ansi16[color];
298
+ },
299
+ get ansi256() {
300
+ return ansi256[color];
301
+ },
302
+ get ansi16m() {
303
+ return ansi16m[color];
304
+ }
305
+ })
306
+ ];
307
+ }
308
+ });
309
+ }
310
+ })]
311
+ });
312
+ }
313
+ /**
314
+ * A component to generate an object containing functions for coloring text in a Shell Shock project.
315
+ */
316
+ function AnsiStyleFunctionsDeclaration() {
317
+ const colors = useColors();
318
+ return [
319
+ createComponent(For, {
320
+ each: modifierKeys,
321
+ semicolon: true,
322
+ doubleHardline: true,
323
+ enderPunctuation: true,
324
+ children: (modifier) => [createComponent(TSDoc, {
325
+ heading: `A function that applies ${modifier} styling to provided console text.`,
326
+ get children() {
327
+ return [
328
+ createComponent(TSDocRemarks, { children: `This function takes a string and an optional boolean indicating whether to apply the color as a background. It returns the input string wrapped in the appropriate ANSI escape codes for the specified color, based on the terminal's color support level. If colors are not supported, it simply returns the input text as a string.` }),
329
+ createIntrinsic("hbr", {}),
330
+ createComponent(TSDocParam, {
331
+ name: "text",
332
+ children: `The console text to which the ${modifier} styling should be applied.`
333
+ }),
334
+ createComponent(TSDocReturns, { children: `A string with ANSI escape codes applied for ${modifier} styling, or the original text if the style is not supported in the current terminal.` })
335
+ ];
336
+ }
337
+ }), createComponent(VarDeclaration, {
338
+ "const": true,
339
+ "export": true,
340
+ get name() {
341
+ return camelCase(modifier);
342
+ },
343
+ get initializer() {
344
+ return createComponent(ColorFunction, {
1646
345
  get ansi16() {
1647
- return colors.ansi16.theme.border.message.divider.warning;
346
+ return colors.ansi16[modifier];
1648
347
  },
1649
348
  get ansi256() {
1650
- return colors.ansi256.theme.border.message.divider.warning;
349
+ return colors.ansi256[modifier];
1651
350
  },
1652
351
  get ansi16m() {
1653
- return colors.ansi16m.theme.border.message.divider.warning;
1654
- }
1655
- })},
1656
- danger: ${createComponent(ColorFunction, {
1657
- get ansi16() {
1658
- return colors.ansi16.theme.border.message.divider.danger;
352
+ return colors.ansi16m[modifier];
1659
353
  },
1660
- get ansi256() {
1661
- return colors.ansi256.theme.border.message.divider.danger;
1662
- },
1663
- get ansi16m() {
1664
- return colors.ansi16m.theme.border.message.divider.danger;
1665
- }
1666
- })},
1667
- error: ${createComponent(ColorFunction, {
354
+ skipBackground: true
355
+ });
356
+ }
357
+ })]
358
+ }),
359
+ createComponent(Spacing, {}),
360
+ createComponent(For, {
361
+ each: colorKeys,
362
+ semicolon: true,
363
+ doubleHardline: true,
364
+ enderPunctuation: true,
365
+ children: (color) => [createComponent(TSDoc, {
366
+ heading: `A helper function to color the provided text as ${color}.`,
367
+ get children() {
368
+ return [
369
+ createComponent(TSDocRemarks, { children: `This function takes a string and an optional boolean indicating whether to apply the color as a background. It returns the input string wrapped in the appropriate ANSI escape codes for the specified color, based on the terminal's color support level. If colors are not supported, it simply returns the input text as a string.` }),
370
+ createIntrinsic("hbr", {}),
371
+ createComponent(TSDocParam, {
372
+ name: "text",
373
+ children: `The console text to which the ${color} color should be applied.`
374
+ }),
375
+ createComponent(TSDocReturns, { children: `A string with ANSI escape codes applied for ${color} color, or the original text if the color is not supported in the current terminal.` })
376
+ ];
377
+ }
378
+ }), createComponent(VarDeclaration, {
379
+ "const": true,
380
+ "export": true,
381
+ get name() {
382
+ return camelCase(color);
383
+ },
384
+ get initializer() {
385
+ return createComponent(ColorFunction, {
1668
386
  get ansi16() {
1669
- return colors.ansi16.theme.border.message.divider.error;
387
+ return colors.ansi16[color];
1670
388
  },
1671
389
  get ansi256() {
1672
- return colors.ansi256.theme.border.message.divider.error;
390
+ return colors.ansi256[color];
1673
391
  },
1674
392
  get ansi16m() {
1675
- return colors.ansi16m.theme.border.message.divider.error;
393
+ return colors.ansi16m[color];
1676
394
  }
1677
- })}
1678
- }
1679
- }
1680
- }
1681
- }
1682
- `
1683
- ];
1684
- }
1685
- })
395
+ });
396
+ }
397
+ })]
398
+ }),
399
+ createComponent(Spacing, {}),
400
+ createComponent(For, {
401
+ get each() {
402
+ return Object.keys(colors.ansi16.theme);
403
+ },
404
+ semicolon: true,
405
+ doubleHardline: true,
406
+ enderPunctuation: true,
407
+ children: (type) => [createComponent(TSDoc, { heading: `A nested object containing functions for applying ${type} theme colors to the console.` }), createComponent(TypeDeclaration, {
408
+ "export": true,
409
+ get name() {
410
+ return `${pascalCase(type)}Colors`;
411
+ },
412
+ get children() {
413
+ return [
414
+ code` {`,
415
+ createIntrinsic("hbr", {}),
416
+ createComponent(ThemeColorTypeDefinition, {
417
+ get ansi16() {
418
+ return colors.ansi16.theme[type];
419
+ },
420
+ get ansi256() {
421
+ return colors.ansi256.theme[type];
422
+ },
423
+ get ansi16m() {
424
+ return colors.ansi16m.theme[type];
425
+ },
426
+ type
427
+ }),
428
+ createIntrinsic("hbr", {}),
429
+ code`}`
430
+ ];
431
+ }
432
+ })]
433
+ }),
434
+ createComponent(Spacing, {}),
435
+ createComponent(For, {
436
+ get each() {
437
+ return Object.keys(colors.ansi16.theme);
438
+ },
439
+ semicolon: true,
440
+ doubleHardline: true,
441
+ enderPunctuation: true,
442
+ children: (type) => [createComponent(TSDoc, { heading: `A nested object containing functions for applying ${type} theme colors to the console.` }), createComponent(VarDeclaration, {
443
+ "export": true,
444
+ get name() {
445
+ return `${camelCase(type)}Colors`;
446
+ },
447
+ get type() {
448
+ return `${pascalCase(type)}Colors`;
449
+ },
450
+ get initializer() {
451
+ return [
452
+ code` {`,
453
+ createIntrinsic("hbr", {}),
454
+ createComponent(ThemeColorObjectDefinition, {
455
+ get ansi16() {
456
+ return colors.ansi16.theme[type];
457
+ },
458
+ get ansi256() {
459
+ return colors.ansi256.theme[type];
460
+ },
461
+ get ansi16m() {
462
+ return colors.ansi16m.theme[type];
463
+ },
464
+ type
465
+ }),
466
+ createIntrinsic("hbr", {}),
467
+ code`}`
468
+ ];
469
+ }
470
+ })]
471
+ }),
472
+ createComponent(Spacing, {})
1686
473
  ];
1687
474
  }
1688
475
  /**
@@ -1856,6 +643,77 @@ function SplitTextFunctionDeclaration() {
1856
643
  ];
1857
644
  }
1858
645
  /**
646
+ * A component to generate the `write` function in the `shell-shock:console` builtin module.
647
+ */
648
+ function WriteFunctionDeclaration() {
649
+ return [
650
+ createComponent(InterfaceDeclaration, {
651
+ "export": true,
652
+ name: "WriteOptions",
653
+ doc: "Options for writing to the console.",
654
+ get children() {
655
+ return [createComponent(TSDoc, {
656
+ heading: "Console function to use for writing to the console",
657
+ get children() {
658
+ return [
659
+ createComponent(TSDocRemarks, { children: `The console function to use for writing to the console. If not specified, the default console function \`console.log\` will be used.` }),
660
+ createIntrinsic("hbr", {}),
661
+ createComponent(TSDocDefaultValue, {
662
+ get type() {
663
+ return ReflectionKind.method;
664
+ },
665
+ defaultValue: `\`console.log\``
666
+ })
667
+ ];
668
+ }
669
+ }), createComponent(InterfaceMember, {
670
+ name: "consoleFn",
671
+ optional: true,
672
+ type: "(text: string) => void"
673
+ })];
674
+ }
675
+ }),
676
+ createComponent(Spacing, {}),
677
+ createComponent(TSDoc, {
678
+ heading: "Write to the console.",
679
+ get children() {
680
+ return [
681
+ createComponent(TSDocRemarks, { children: `This function writes to the console, applying the appropriate padding as defined in the current theme configuration and wrapping as needed.` }),
682
+ createIntrinsic("hbr", {}),
683
+ createComponent(TSDocParam, {
684
+ name: "text",
685
+ children: `The text to write to the console.`
686
+ }),
687
+ createComponent(TSDocParam, {
688
+ name: "options",
689
+ children: `The options to apply when writing to the console.`
690
+ })
691
+ ];
692
+ }
693
+ }),
694
+ createComponent(FunctionDeclaration, {
695
+ "export": true,
696
+ name: "write",
697
+ parameters: [{
698
+ name: "text",
699
+ type: "string | number | boolean | null",
700
+ optional: true
701
+ }, {
702
+ name: "options",
703
+ type: "WriteOptions",
704
+ default: "{}"
705
+ }],
706
+ children: code`const consoleFn = options.consoleFn ?? console.log;
707
+ if (text === undefined || text === null || text === "") {
708
+ consoleFn("");
709
+ return;
710
+ }
711
+
712
+ consoleFn(String(text)); `
713
+ })
714
+ ];
715
+ }
716
+ /**
1859
717
  * A component to generate the `writeLine` function in the `shell-shock:console` builtin module.
1860
718
  */
1861
719
  function WriteLineFunctionDeclaration() {
@@ -1865,6 +723,7 @@ function WriteLineFunctionDeclaration() {
1865
723
  "export": true,
1866
724
  name: "WriteLineOptions",
1867
725
  doc: "Options for writing a line to the console.",
726
+ "extends": ["WriteOptions"],
1868
727
  get children() {
1869
728
  return [
1870
729
  createComponent(TSDoc, {
@@ -1879,27 +738,6 @@ function WriteLineFunctionDeclaration() {
1879
738
  type: "number"
1880
739
  }),
1881
740
  createIntrinsic("hbr", {}),
1882
- createComponent(TSDoc, {
1883
- heading: "Console function to use for writing the line",
1884
- get children() {
1885
- return [
1886
- createComponent(TSDocRemarks, { children: `The console function to use for writing the line. If not specified, the default console function \`console.log\` will be used.` }),
1887
- createIntrinsic("hbr", {}),
1888
- createComponent(TSDocDefaultValue, {
1889
- get type() {
1890
- return ReflectionKind.method;
1891
- },
1892
- defaultValue: `\`console.log\``
1893
- })
1894
- ];
1895
- }
1896
- }),
1897
- createComponent(InterfaceMember, {
1898
- name: "consoleFn",
1899
- optional: true,
1900
- type: "(text: string) => void"
1901
- }),
1902
- createIntrinsic("hbr", {}),
1903
741
  createComponent(TSDoc, {
1904
742
  heading: "Color of the line text",
1905
743
  get children() {
@@ -1945,15 +783,13 @@ function WriteLineFunctionDeclaration() {
1945
783
  default: "{}"
1946
784
  }],
1947
785
  get children() {
1948
- return code`const consoleFn = options.consoleFn ?? console.log;
1949
- const color = options.color;
1950
- if (text === undefined || text === null || text === "") {
1951
- consoleFn("");
1952
- return;
1953
- }
786
+ return code`const color = options.color;
787
+ if (text === undefined || text === null || text === "") {
788
+ write("", options);
789
+ return;
790
+ }
1954
791
 
1955
- consoleFn(\`\${" ".repeat(Math.max(options.padding ?? ${theme.padding.app}, 0))}\${color ? colors.text.body[color](String(text)) : String(text)}\`);
1956
- `;
792
+ write(\`\${" ".repeat(Math.max(options.padding ?? ${theme.padding.app}, 0))}\${color ? textColors.body[color](String(text)) : String(text)}\`, options); `;
1957
793
  }
1958
794
  })
1959
795
  ];
@@ -1975,6 +811,10 @@ function MessageFunctionDeclaration(props) {
1975
811
  createComponent(TSDocParam, {
1976
812
  name: "message",
1977
813
  children: `The message to write to the console.`
814
+ }),
815
+ createComponent(TSDocParam, {
816
+ name: "header",
817
+ children: `An optional header to display above the message. If not provided, a default header based on the message type and variant will be used if defined in the theme configuration; otherwise, no header will be displayed.`
1978
818
  })
1979
819
  ];
1980
820
  }
@@ -1985,6 +825,10 @@ function MessageFunctionDeclaration(props) {
1985
825
  name: "message",
1986
826
  type: "string",
1987
827
  optional: false
828
+ }, {
829
+ name: "header",
830
+ type: "string",
831
+ optional: true
1988
832
  }],
1989
833
  get children() {
1990
834
  return [createComponent(Show, {
@@ -2003,16 +847,16 @@ function MessageFunctionDeclaration(props) {
2003
847
  return;
2004
848
  }
2005
849
 
2006
- ${!theme.labels.message.footer[variant] && timestamp ? `const timestamp = \`\${colors.text.message.footer.${color}(new Date().toLocaleDateString())} \${colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottom}")} \${colors.text.message.footer.${color}(new Date().toLocaleTimeString())}\`; ` : ""}
850
+ ${!theme.labels.message.footer[variant] && timestamp ? `const timestamp = \`\${textColors.message.footer.${color}(new Date().toLocaleDateString())} \${borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottom}")} \${textColors.message.footer.${color}(new Date().toLocaleTimeString())}\`; ` : ""}
2007
851
 
2008
- writeLine(colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].topLeft}") + ${theme.labels.message.header[variant] || theme.icons.message.header[variant] ? `colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].top}".repeat(4)) + " " + ${theme.icons.message.header[variant] ? `colors.border.message.outline.${color}("${theme.icons.message.header[variant]}") + " " +` : ""} colors.bold(colors.text.message.header.${color}("${theme.labels.message.header[variant]}")) + " " + colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].top}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + theme.borderStyles.message.outline[variant].topLeft.length + 4 + (theme.icons.message.header[variant] ? 2 + (theme.labels.message.header[variant] ? 0 : 1) : 0) + (theme.labels.message.header[variant] ? theme.labels.message.header[variant].length + 2 : 0) + theme.borderStyles.message.outline[variant].topRight.length}, 0)))` : `colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].top}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + theme.borderStyles.message.outline[variant].topLeft.length + theme.borderStyles.message.outline[variant].topRight.length}, 0)))`} + colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].topRight}"), { consoleFn: console.${consoleFnName} });
852
+ writeLine(borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].topLeft}") + ${theme.labels.message.header[variant] || theme.icons.message.header[variant] ? `borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].top}".repeat(4)) + " " + ${theme.icons.message.header[variant] ? `borderColors.message.outline.${color}("${theme.icons.message.header[variant]}") + " " +` : ""} bold(textColors.message.header.${color}(header || "${theme.labels.message.header[variant]}")) + " " + borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].top}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + theme.borderStyles.message.outline[variant].topLeft.length + 4 + (theme.icons.message.header[variant] ? 2 + (theme.labels.message.header[variant] ? 0 : 1) : 0) + (theme.labels.message.header[variant] ? theme.labels.message.header[variant].length + 2 : 0) + theme.borderStyles.message.outline[variant].topRight.length}, 0)))` : `borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].top}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + theme.borderStyles.message.outline[variant].topLeft.length + theme.borderStyles.message.outline[variant].topRight.length}, 0)))`} + borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].topRight}"), { consoleFn: console.${consoleFnName} });
2009
853
  splitText(
2010
854
  message,
2011
855
  Math.max(process.stdout.columns - ${(Math.max(theme.padding.app, 0) + Math.max(theme.padding.message, 0)) * 2 + theme.borderStyles.message.outline[variant].left.length + theme.borderStyles.message.outline[variant].right.length}, 0)
2012
856
  ).forEach((line) => {
2013
- writeLine(colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].left + " ".repeat(Math.max(theme.padding.message, 0))}") + colors.text.message.description.${color}(line) + " ".repeat(Math.max(process.stdout.columns - (stripAnsi(line).length + ${Math.max(theme.padding.app, 0) * 2 + Math.max(theme.padding.message, 0) + theme.borderStyles.message.outline[variant].left.length + theme.borderStyles.message.outline[variant].right.length}), 0)) + colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].right}"), { consoleFn: console.${consoleFnName} });
857
+ writeLine(borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].left + " ".repeat(Math.max(theme.padding.message, 0))}") + textColors.message.description.${color}(line) + " ".repeat(Math.max(process.stdout.columns - (stripAnsi(line).length + ${Math.max(theme.padding.app, 0) * 2 + Math.max(theme.padding.message, 0) + theme.borderStyles.message.outline[variant].left.length + theme.borderStyles.message.outline[variant].right.length}), 0)) + borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].right}"), { consoleFn: console.${consoleFnName} });
2014
858
  });
2015
- writeLine(colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottomLeft}") + ${theme.labels.message.footer[variant] || timestamp ? `colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottom}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + 4 + (theme.labels.message.footer[variant] ? theme.labels.message.footer[variant].length + 2 : 0) + theme.borderStyles.message.outline[variant].bottomLeft.length + theme.borderStyles.message.outline[variant].bottomRight.length}${!theme.labels.message.footer[variant] && timestamp ? " - (stripAnsi(timestamp).length + 2)" : ""}, 0))) + " " + ${`colors.bold(colors.text.message.footer.${color}(${theme.labels.message.footer[variant] ? `"${theme.labels.message.footer[variant]}"` : timestamp && "timestamp"}))`} + " " + colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottom}".repeat(4))` : `colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottom}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + theme.borderStyles.message.outline[variant].bottomLeft.length + theme.borderStyles.message.outline[variant].bottomRight.length}, 0)))`} + colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottomRight}"), { consoleFn: console.${consoleFnName} });
859
+ writeLine(borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottomLeft}") + ${theme.labels.message.footer[variant] || timestamp ? `borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottom}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + 4 + (theme.labels.message.footer[variant] ? theme.labels.message.footer[variant].length + 2 : 0) + theme.borderStyles.message.outline[variant].bottomLeft.length + theme.borderStyles.message.outline[variant].bottomRight.length}${!theme.labels.message.footer[variant] && timestamp ? " - (stripAnsi(timestamp).length + 2)" : ""}, 0))) + " " + ${`bold(textColors.message.footer.${color}(${theme.labels.message.footer[variant] ? `"${theme.labels.message.footer[variant]}"` : timestamp && "timestamp"}))`} + " " + borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottom}".repeat(4))` : `borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottom}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + theme.borderStyles.message.outline[variant].bottomLeft.length + theme.borderStyles.message.outline[variant].bottomRight.length}, 0)))`} + borderColors.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottomRight}"), { consoleFn: console.${consoleFnName} });
2016
860
  `)];
2017
861
  }
2018
862
  })];
@@ -2187,9 +1031,9 @@ function DividerFunctionDeclaration() {
2187
1031
  }),
2188
1032
  createComponent(Spacing, {}),
2189
1033
  createComponent(TSDoc, {
2190
- heading: "Write a divider line to the console.",
1034
+ heading: "Write a horizontal divider line to the console.",
2191
1035
  get children() {
2192
- return [createComponent(TSDocExample, { children: `divider({ width: 50, border: "primary" }); // Writes a divider line of width 50 with primary border.` }), createComponent(TSDocParam, {
1036
+ return [createComponent(TSDocExample, { children: `divider({ width: 50, border: "primary" }); // Writes a horizontal divider line of width 50 with primary border.` }), createComponent(TSDocParam, {
2193
1037
  name: "options",
2194
1038
  children: `Options for formatting the divider line.`
2195
1039
  })];
@@ -2206,7 +1050,7 @@ function DividerFunctionDeclaration() {
2206
1050
  get children() {
2207
1051
  return code`const padding = options.padding ?? ${Math.max(theme.padding.app, 1) * 4};
2208
1052
  const width = options.width ?? (process.stdout.columns - (Math.max(padding, 0) * 2));
2209
- const border = options.border === "tertiary" ? colors.border.app.divider.tertiary("${theme.borderStyles.app.divider.tertiary.top}") : options.border === "secondary" ? colors.border.app.divider.secondary("${theme.borderStyles.app.divider.secondary.top}") : colors.border.app.divider.primary("${theme.borderStyles.app.divider.primary.top}");
1053
+ const border = options.border === "tertiary" ? borderColors.app.divider.tertiary("${theme.borderStyles.app.divider.tertiary.top}") : options.border === "secondary" ? borderColors.app.divider.secondary("${theme.borderStyles.app.divider.secondary.top}") : borderColors.app.divider.primary("${theme.borderStyles.app.divider.primary.top}");
2210
1054
 
2211
1055
  writeLine(" ".repeat(Math.max(padding - ${theme.padding.app}, 0)) + border.repeat(Math.max(width / ${theme.borderStyles.app.divider.primary.top.length ?? 1}, 0)));
2212
1056
  `;
@@ -2254,7 +1098,7 @@ function LinkFunctionDeclaration() {
2254
1098
  createIntrinsic("hbr", {}),
2255
1099
  createComponent(IfStatement, {
2256
1100
  condition: code`isColorSupported`,
2257
- children: code`return colors.underline(colors.text.body.link(\`\${url}\`));`
1101
+ children: code`return underline(textColors.body.link(\`\${url}\`));`
2258
1102
  }),
2259
1103
  createIntrinsic("hbr", {}),
2260
1104
  code`return \`\${url}\`;`
@@ -2263,6 +1107,117 @@ function LinkFunctionDeclaration() {
2263
1107
  })];
2264
1108
  }
2265
1109
  /**
1110
+ * A component to generate the `blockquote` function declaration
1111
+ */
1112
+ function BlockquoteFunctionDeclaration() {
1113
+ return [
1114
+ createComponent(Spacing, {}),
1115
+ createComponent(TSDoc, {
1116
+ heading: `Format a string with blockquote styling for display in console.`,
1117
+ get children() {
1118
+ return [createComponent(TSDocParam, {
1119
+ name: "text",
1120
+ children: `The text to format with blockquote styling.`
1121
+ }), createComponent(TSDocReturns, { children: `The formatted string with blockquote styling.` })];
1122
+ }
1123
+ }),
1124
+ createComponent(FunctionDeclaration, {
1125
+ "export": true,
1126
+ name: "blockquote",
1127
+ parameters: [{
1128
+ name: "text",
1129
+ type: "string | number | boolean | null",
1130
+ optional: true
1131
+ }],
1132
+ returnType: "string",
1133
+ children: code`if (text === undefined || text === null || text === "") {
1134
+ return "";
1135
+ }
1136
+
1137
+ const lines = splitText(
1138
+ String(text),
1139
+ Math.max(process.stdout.columns, 20) - 6
1140
+ );
1141
+
1142
+ return lines.map((line, index) => \` \${index === 0 ? isUnicodeSupported() ? "❝" : "\\"" : " "} \${italic(line)} \${index === lines.length - 1 ? isUnicodeSupported() ? "❞" : "\\"" : " "} \`).join("\\n"); `
1143
+ })
1144
+ ];
1145
+ }
1146
+ /**
1147
+ * A component to generate the `code` function declaration
1148
+ */
1149
+ function CodeFunctionDeclaration() {
1150
+ const theme = useTheme();
1151
+ return [
1152
+ createComponent(Spacing, {}),
1153
+ createComponent(TSDoc, {
1154
+ heading: `Format a source code string for display in console.`,
1155
+ get children() {
1156
+ return [createComponent(TSDocParam, {
1157
+ name: "text",
1158
+ children: `The source code text to format with code styling.`
1159
+ }), createComponent(TSDocReturns, { children: `The formatted string with code styling.` })];
1160
+ }
1161
+ }),
1162
+ createComponent(FunctionDeclaration, {
1163
+ "export": true,
1164
+ name: "code",
1165
+ parameters: [{
1166
+ name: "text",
1167
+ type: "string | number | boolean | null",
1168
+ optional: true
1169
+ }, {
1170
+ name: "language",
1171
+ type: "string",
1172
+ optional: true
1173
+ }],
1174
+ returnType: "string",
1175
+ get children() {
1176
+ return code`if (text === undefined || text === null || text === "") {
1177
+ return "";
1178
+ }
1179
+
1180
+ return \` \${borderColors.app.divider.primary("${theme.borderStyles.app.divider.primary.top}".repeat(4))}\${language ? \` \${borderColors.app.divider.primary(language)} \` : ""}\${borderColors.app.divider.primary("${theme.borderStyles.app.divider.primary.top}".repeat(process.stdout.columns - (language ? language.length + 2 : 0) - 5))} \\n\${splitText(
1181
+ String(text),
1182
+ Math.max(process.stdout.columns, 20)
1183
+ ).map(line => \`\${textColors.body.primary(line)}\`).join("\\n")}\\n \${borderColors.app.divider.primary("${theme.borderStyles.app.divider.primary.bottom}".repeat(process.stdout.columns - 2))} \`; `;
1184
+ }
1185
+ })
1186
+ ];
1187
+ }
1188
+ /**
1189
+ * A component to generate the `inlineCode` function declaration
1190
+ */
1191
+ function InlineCodeFunctionDeclaration() {
1192
+ return [
1193
+ createComponent(Spacing, {}),
1194
+ createComponent(TSDoc, {
1195
+ heading: `Format a string with inline code styling for display in console.`,
1196
+ get children() {
1197
+ return [createComponent(TSDocParam, {
1198
+ name: "text",
1199
+ children: `The text to format with inline code styling.`
1200
+ }), createComponent(TSDocReturns, { children: `The formatted string with inline code styling.` })];
1201
+ }
1202
+ }),
1203
+ createComponent(FunctionDeclaration, {
1204
+ "export": true,
1205
+ name: "inlineCode",
1206
+ parameters: [{
1207
+ name: "text",
1208
+ type: "string | number | boolean | null",
1209
+ optional: true
1210
+ }],
1211
+ returnType: "string",
1212
+ children: code`if (text === undefined || text === null || text === "") {
1213
+ return "";
1214
+ }
1215
+
1216
+ return textColors.body.primary(inverse(\` \${text} \`), true); `
1217
+ })
1218
+ ];
1219
+ }
1220
+ /**
2266
1221
  * A component to generate the `spinner` function in the `shell-shock:console` builtin module.
2267
1222
  */
2268
1223
  function SpinnerFunctionDeclaration() {
@@ -2542,7 +1497,7 @@ function SpinnerFunctionDeclaration() {
2542
1497
  this.#lastSpinnerFrameTime = Date.now();
2543
1498
  }
2544
1499
 
2545
- let display = \`\${colors.text.spinner.icon.active(this.#frames[this.#currentFrame])} \${colors.text.spinner.message.active(this.#message)}\`;
1500
+ let display = \`\${textColors.spinner.icon.active(this.#frames[this.#currentFrame])} \${textColors.spinner.message.active(this.#message)}\`;
2546
1501
  if (!isInteractive) {
2547
1502
  display += "\\n";
2548
1503
  }
@@ -2737,7 +1692,7 @@ function SpinnerFunctionDeclaration() {
2737
1692
  type: "string"
2738
1693
  }],
2739
1694
  get children() {
2740
- return code`return this.#stopWithIcon(colors.text.spinner.icon.success("${theme.icons.spinner.success}"), colors.text.spinner.message.success(message)); `;
1695
+ return code`return this.#stopWithIcon(textColors.spinner.icon.success("${theme.icons.spinner.success}"), textColors.spinner.message.success(message)); `;
2741
1696
  }
2742
1697
  }),
2743
1698
  createComponent(Spacing, {}),
@@ -2749,7 +1704,7 @@ function SpinnerFunctionDeclaration() {
2749
1704
  type: "string"
2750
1705
  }],
2751
1706
  get children() {
2752
- return code`return this.#stopWithIcon(colors.text.spinner.icon.error("${theme.icons.spinner.error}"), colors.text.spinner.message.error(message)); `;
1707
+ return code`return this.#stopWithIcon(textColors.spinner.icon.error("${theme.icons.spinner.error}"), textColors.spinner.message.error(message)); `;
2753
1708
  }
2754
1709
  }),
2755
1710
  createComponent(Spacing, {}),
@@ -2761,7 +1716,7 @@ function SpinnerFunctionDeclaration() {
2761
1716
  type: "string"
2762
1717
  }],
2763
1718
  get children() {
2764
- return code`return this.#stopWithIcon(colors.text.spinner.icon.warning("${theme.icons.spinner.warning}"), colors.text.spinner.message.warning(message)); `;
1719
+ return code`return this.#stopWithIcon(textColors.spinner.icon.warning("${theme.icons.spinner.warning}"), textColors.spinner.message.warning(message)); `;
2765
1720
  }
2766
1721
  }),
2767
1722
  createComponent(Spacing, {}),
@@ -2773,7 +1728,7 @@ function SpinnerFunctionDeclaration() {
2773
1728
  type: "string"
2774
1729
  }],
2775
1730
  get children() {
2776
- return code`return this.#stopWithIcon(colors.text.spinner.icon.info("${theme.icons.spinner.info}"), colors.text.spinner.message.info(message)); `;
1731
+ return code`return this.#stopWithIcon(textColors.spinner.icon.info("${theme.icons.spinner.info}"), textColors.spinner.message.info(message)); `;
2777
1732
  }
2778
1733
  }),
2779
1734
  createComponent(Spacing, {}),
@@ -2785,7 +1740,7 @@ function SpinnerFunctionDeclaration() {
2785
1740
  type: "string"
2786
1741
  }],
2787
1742
  get children() {
2788
- return code`return this.#stopWithIcon(colors.text.spinner.icon.help("${theme.icons.spinner.help}"), colors.text.spinner.message.help(message)); `;
1743
+ return code`return this.#stopWithIcon(textColors.spinner.icon.help("${theme.icons.spinner.help}"), textColors.spinner.message.help(message)); `;
2789
1744
  }
2790
1745
  }),
2791
1746
  createComponent(Spacing, {})
@@ -2815,10 +1770,10 @@ function SpinnerFunctionDeclaration() {
2815
1770
  ];
2816
1771
  }
2817
1772
  function extractBorderOptionsObject(direction, theme) {
2818
- return `borderOptions.${direction} === "primary" ? colors.border.app.table.primary("${theme.borderStyles.app.table.primary[direction]}") : borderOptions.${direction} === "secondary" ? colors.border.app.table.secondary("${theme.borderStyles.app.table.secondary[direction]}") : borderOptions.${direction} === "tertiary" ? colors.border.app.table.tertiary("${theme.borderStyles.app.table.tertiary[direction]}") : !borderOptions.${direction} || borderOptions.${direction} === "none" ? "" : borderOptions.${direction}`;
1773
+ return `borderOptions.${direction} === "primary" ? borderColors.app.table.primary("${theme.borderStyles.app.table.primary[direction]}") : borderOptions.${direction} === "secondary" ? borderColors.app.table.secondary("${theme.borderStyles.app.table.secondary[direction]}") : borderOptions.${direction} === "tertiary" ? borderColors.app.table.tertiary("${theme.borderStyles.app.table.tertiary[direction]}") : !borderOptions.${direction} || borderOptions.${direction} === "none" ? "" : borderOptions.${direction}`;
2819
1774
  }
2820
1775
  function extractBorderOptionsString(direction, theme) {
2821
- return `borderOptions === "primary" ? colors.border.app.table.primary("${theme.borderStyles.app.table.primary[direction]}") : borderOptions === "secondary" ? colors.border.app.table.secondary("${theme.borderStyles.app.table.secondary[direction]}") : borderOptions === "tertiary" ? colors.border.app.table.tertiary("${theme.borderStyles.app.table.tertiary[direction]}") : !borderOptions || borderOptions === "none" ? "" : borderOptions`;
1776
+ return `borderOptions === "primary" ? borderColors.app.table.primary("${theme.borderStyles.app.table.primary[direction]}") : borderOptions === "secondary" ? borderColors.app.table.secondary("${theme.borderStyles.app.table.secondary[direction]}") : borderOptions === "tertiary" ? borderColors.app.table.tertiary("${theme.borderStyles.app.table.tertiary[direction]}") : !borderOptions || borderOptions === "none" ? "" : borderOptions`;
2822
1777
  }
2823
1778
  /**
2824
1779
  * A component to generate the table functions in the `shell-shock:console` builtin module.
@@ -3534,6 +2489,7 @@ function ConsoleBuiltin(props) {
3534
2489
  "isInteractive",
3535
2490
  "isColorSupported",
3536
2491
  "colorSupportLevels",
2492
+ "isUnicodeSupported",
3537
2493
  "isHyperlinkSupported"
3538
2494
  ],
3539
2495
  env: [
@@ -3551,7 +2507,9 @@ function ConsoleBuiltin(props) {
3551
2507
  createComponent(Spacing, {}),
3552
2508
  createComponent(WrapAnsiFunction, {}),
3553
2509
  createComponent(Spacing, {}),
3554
- createComponent(ColorsDeclaration, {}),
2510
+ createComponent(AnsiStyleFunctionsDeclaration, {}),
2511
+ createComponent(Spacing, {}),
2512
+ createComponent(WriteFunctionDeclaration, {}),
3555
2513
  createComponent(Spacing, {}),
3556
2514
  createComponent(WriteLineFunctionDeclaration, {}),
3557
2515
  createComponent(Spacing, {}),
@@ -3641,6 +2599,10 @@ function ConsoleBuiltin(props) {
3641
2599
  name: "err",
3642
2600
  type: "string | Error",
3643
2601
  optional: false
2602
+ }, {
2603
+ name: "header",
2604
+ type: "string",
2605
+ optional: true
3644
2606
  }],
3645
2607
  get prefix() {
3646
2608
  return [
@@ -3671,6 +2633,12 @@ function ConsoleBuiltin(props) {
3671
2633
  createComponent(Spacing, {}),
3672
2634
  createComponent(TableFunctionDeclaration, {}),
3673
2635
  createComponent(Spacing, {}),
2636
+ createComponent(BlockquoteFunctionDeclaration, {}),
2637
+ createComponent(Spacing, {}),
2638
+ createComponent(CodeFunctionDeclaration, {}),
2639
+ createComponent(Spacing, {}),
2640
+ createComponent(InlineCodeFunctionDeclaration, {}),
2641
+ createComponent(Spacing, {}),
3674
2642
  children,
3675
2643
  createComponent(Spacing, {})
3676
2644
  ];
@@ -3679,5 +2647,5 @@ function ConsoleBuiltin(props) {
3679
2647
  }
3680
2648
 
3681
2649
  //#endregion
3682
- export { AnsiHelpersDeclarations, ColorsDeclaration, ConsoleBuiltin, DividerFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, SpinnerFunctionDeclaration, SplitTextFunctionDeclaration, StripAnsiFunctionDeclaration, TableFunctionDeclaration, WrapAnsiFunction, WriteLineFunctionDeclaration };
2650
+ export { AnsiHelpersDeclarations, AnsiStyleFunctionsDeclaration, BlockquoteFunctionDeclaration, CodeFunctionDeclaration, ConsoleBuiltin, DividerFunctionDeclaration, InlineCodeFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, SpinnerFunctionDeclaration, SplitTextFunctionDeclaration, StripAnsiFunctionDeclaration, TableFunctionDeclaration, ThemeColorObjectDefinition, ThemeColorTypeDefinition, WrapAnsiFunction, WriteFunctionDeclaration, WriteLineFunctionDeclaration };
3683
2651
  //# sourceMappingURL=console-builtin.mjs.map