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