@opencode/theme 2.0.29 → 2.0.31
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/tui/expand.js +1 -0
- package/dist/tui/resolve.d.ts +12 -0
- package/dist/tui/schema.d.ts +20 -0
- package/dist/tui/schema.js +2 -0
- package/dist/tui/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/tui/expand.js
CHANGED
|
@@ -33,6 +33,7 @@ function expandText(definition) {
|
|
|
33
33
|
return {
|
|
34
34
|
...definition,
|
|
35
35
|
muted: definition.muted ?? (definition.base ? "$text.base" : undefined),
|
|
36
|
+
faint: definition.faint ?? (definition.muted || definition.base ? "$text.muted" : undefined),
|
|
36
37
|
action: expandActions(definition.action, "text.action"),
|
|
37
38
|
formfield: expandFormfield(definition.formfield, "text.formfield"),
|
|
38
39
|
feedback: definition.feedback
|
package/dist/tui/resolve.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
19
19
|
readonly text?: {
|
|
20
20
|
readonly base?: string | undefined;
|
|
21
21
|
readonly muted?: string | undefined;
|
|
22
|
+
readonly faint?: string | undefined;
|
|
22
23
|
readonly action?: {
|
|
23
24
|
readonly primary?: {
|
|
24
25
|
readonly $disabled?: string | undefined;
|
|
@@ -189,6 +190,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
189
190
|
readonly text?: {
|
|
190
191
|
readonly base?: string | undefined;
|
|
191
192
|
readonly muted?: string | undefined;
|
|
193
|
+
readonly faint?: string | undefined;
|
|
192
194
|
readonly action?: {
|
|
193
195
|
readonly primary?: {
|
|
194
196
|
readonly $disabled?: string | undefined;
|
|
@@ -414,6 +416,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
414
416
|
readonly muted?: string | undefined;
|
|
415
417
|
};
|
|
416
418
|
};
|
|
419
|
+
readonly faint?: string | undefined;
|
|
417
420
|
};
|
|
418
421
|
readonly background: {
|
|
419
422
|
readonly base: string;
|
|
@@ -533,6 +536,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
533
536
|
readonly text?: {
|
|
534
537
|
readonly base?: string | undefined;
|
|
535
538
|
readonly muted?: string | undefined;
|
|
539
|
+
readonly faint?: string | undefined;
|
|
536
540
|
readonly action?: {
|
|
537
541
|
readonly primary?: {
|
|
538
542
|
readonly $disabled?: string | undefined;
|
|
@@ -718,6 +722,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
718
722
|
readonly text?: {
|
|
719
723
|
readonly base?: string | undefined;
|
|
720
724
|
readonly muted?: string | undefined;
|
|
725
|
+
readonly faint?: string | undefined;
|
|
721
726
|
readonly action?: {
|
|
722
727
|
readonly primary?: {
|
|
723
728
|
readonly $disabled?: string | undefined;
|
|
@@ -888,6 +893,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
888
893
|
readonly text?: {
|
|
889
894
|
readonly base?: string | undefined;
|
|
890
895
|
readonly muted?: string | undefined;
|
|
896
|
+
readonly faint?: string | undefined;
|
|
891
897
|
readonly action?: {
|
|
892
898
|
readonly primary?: {
|
|
893
899
|
readonly $disabled?: string | undefined;
|
|
@@ -1076,6 +1082,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
1076
1082
|
readonly text?: {
|
|
1077
1083
|
readonly base?: string | undefined;
|
|
1078
1084
|
readonly muted?: string | undefined;
|
|
1085
|
+
readonly faint?: string | undefined;
|
|
1079
1086
|
readonly action?: {
|
|
1080
1087
|
readonly primary?: {
|
|
1081
1088
|
readonly $disabled?: string | undefined;
|
|
@@ -1246,6 +1253,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
1246
1253
|
readonly text?: {
|
|
1247
1254
|
readonly base?: string | undefined;
|
|
1248
1255
|
readonly muted?: string | undefined;
|
|
1256
|
+
readonly faint?: string | undefined;
|
|
1249
1257
|
readonly action?: {
|
|
1250
1258
|
readonly primary?: {
|
|
1251
1259
|
readonly $disabled?: string | undefined;
|
|
@@ -1471,6 +1479,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
1471
1479
|
readonly muted?: string | undefined;
|
|
1472
1480
|
};
|
|
1473
1481
|
};
|
|
1482
|
+
readonly faint?: string | undefined;
|
|
1474
1483
|
};
|
|
1475
1484
|
readonly background: {
|
|
1476
1485
|
readonly base: string;
|
|
@@ -1590,6 +1599,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
1590
1599
|
readonly text?: {
|
|
1591
1600
|
readonly base?: string | undefined;
|
|
1592
1601
|
readonly muted?: string | undefined;
|
|
1602
|
+
readonly faint?: string | undefined;
|
|
1593
1603
|
readonly action?: {
|
|
1594
1604
|
readonly primary?: {
|
|
1595
1605
|
readonly $disabled?: string | undefined;
|
|
@@ -1775,6 +1785,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
1775
1785
|
readonly text?: {
|
|
1776
1786
|
readonly base?: string | undefined;
|
|
1777
1787
|
readonly muted?: string | undefined;
|
|
1788
|
+
readonly faint?: string | undefined;
|
|
1778
1789
|
readonly action?: {
|
|
1779
1790
|
readonly primary?: {
|
|
1780
1791
|
readonly $disabled?: string | undefined;
|
|
@@ -1945,6 +1956,7 @@ export declare function parseThemeDocument(input: unknown, name?: string): {
|
|
|
1945
1956
|
readonly text?: {
|
|
1946
1957
|
readonly base?: string | undefined;
|
|
1947
1958
|
readonly muted?: string | undefined;
|
|
1959
|
+
readonly faint?: string | undefined;
|
|
1948
1960
|
readonly action?: {
|
|
1949
1961
|
readonly primary?: {
|
|
1950
1962
|
readonly $disabled?: string | undefined;
|
package/dist/tui/schema.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export type FormfieldColorDefinition = StatefulColorDefinition;
|
|
|
37
37
|
declare const TextDefinition: Schema.Struct<{
|
|
38
38
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
39
39
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
40
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
40
41
|
readonly action: Schema.optional<Schema.Struct<{
|
|
41
42
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
42
43
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -185,6 +186,7 @@ declare const ThemeTokensDefinition: Schema.Struct<{
|
|
|
185
186
|
readonly text: Schema.optional<Schema.Struct<{
|
|
186
187
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
187
188
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
189
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
188
190
|
readonly action: Schema.optional<Schema.Struct<{
|
|
189
191
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
190
192
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -333,6 +335,7 @@ export declare const ThemeDefinition: Schema.Struct<{
|
|
|
333
335
|
readonly text: Schema.optional<Schema.Struct<{
|
|
334
336
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
335
337
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
338
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
336
339
|
readonly action: Schema.optional<Schema.Struct<{
|
|
337
340
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
338
341
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -478,6 +481,7 @@ export declare const ThemeDefinition: Schema.Struct<{
|
|
|
478
481
|
readonly text: Schema.Struct<{
|
|
479
482
|
readonly base: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
480
483
|
readonly muted: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
484
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
481
485
|
readonly action: Schema.Struct<{
|
|
482
486
|
readonly primary: Schema.Struct<{
|
|
483
487
|
readonly base: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
@@ -628,6 +632,7 @@ export declare const BaseThemeDefinition: Schema.Struct<{
|
|
|
628
632
|
readonly text: Schema.optional<Schema.Struct<{
|
|
629
633
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
630
634
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
635
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
631
636
|
readonly action: Schema.optional<Schema.Struct<{
|
|
632
637
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
633
638
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -773,6 +778,7 @@ export declare const BaseThemeDefinition: Schema.Struct<{
|
|
|
773
778
|
readonly text: Schema.Struct<{
|
|
774
779
|
readonly base: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
775
780
|
readonly muted: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
781
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
776
782
|
readonly action: Schema.Struct<{
|
|
777
783
|
readonly primary: Schema.Struct<{
|
|
778
784
|
readonly base: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
@@ -922,6 +928,7 @@ export declare const ModeDefinition: Schema.Struct<{
|
|
|
922
928
|
readonly text: Schema.optional<Schema.Struct<{
|
|
923
929
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
924
930
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
931
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
925
932
|
readonly action: Schema.optional<Schema.Struct<{
|
|
926
933
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
927
934
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -1067,6 +1074,7 @@ export declare const ModeDefinition: Schema.Struct<{
|
|
|
1067
1074
|
readonly text: Schema.optional<Schema.Struct<{
|
|
1068
1075
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1069
1076
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1077
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1070
1078
|
readonly action: Schema.optional<Schema.Struct<{
|
|
1071
1079
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
1072
1080
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -1218,6 +1226,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
1218
1226
|
readonly text: Schema.optional<Schema.Struct<{
|
|
1219
1227
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1220
1228
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1229
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1221
1230
|
readonly action: Schema.optional<Schema.Struct<{
|
|
1222
1231
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
1223
1232
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -1363,6 +1372,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
1363
1372
|
readonly text: Schema.Struct<{
|
|
1364
1373
|
readonly base: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
1365
1374
|
readonly muted: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
1375
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1366
1376
|
readonly action: Schema.Struct<{
|
|
1367
1377
|
readonly primary: Schema.Struct<{
|
|
1368
1378
|
readonly base: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
@@ -1511,6 +1521,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
1511
1521
|
readonly text: Schema.optional<Schema.Struct<{
|
|
1512
1522
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1513
1523
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1524
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1514
1525
|
readonly action: Schema.optional<Schema.Struct<{
|
|
1515
1526
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
1516
1527
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -1656,6 +1667,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
1656
1667
|
readonly text: Schema.optional<Schema.Struct<{
|
|
1657
1668
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1658
1669
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1670
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1659
1671
|
readonly action: Schema.optional<Schema.Struct<{
|
|
1660
1672
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
1661
1673
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -1805,6 +1817,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
1805
1817
|
readonly text: Schema.optional<Schema.Struct<{
|
|
1806
1818
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1807
1819
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1820
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1808
1821
|
readonly action: Schema.optional<Schema.Struct<{
|
|
1809
1822
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
1810
1823
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -1950,6 +1963,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
1950
1963
|
readonly text: Schema.optional<Schema.Struct<{
|
|
1951
1964
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1952
1965
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1966
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
1953
1967
|
readonly action: Schema.optional<Schema.Struct<{
|
|
1954
1968
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
1955
1969
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -2101,6 +2115,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
2101
2115
|
readonly text: Schema.optional<Schema.Struct<{
|
|
2102
2116
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2103
2117
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2118
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2104
2119
|
readonly action: Schema.optional<Schema.Struct<{
|
|
2105
2120
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
2106
2121
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -2246,6 +2261,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
2246
2261
|
readonly text: Schema.Struct<{
|
|
2247
2262
|
readonly base: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
2248
2263
|
readonly muted: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
2264
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2249
2265
|
readonly action: Schema.Struct<{
|
|
2250
2266
|
readonly primary: Schema.Struct<{
|
|
2251
2267
|
readonly base: Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>;
|
|
@@ -2394,6 +2410,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
2394
2410
|
readonly text: Schema.optional<Schema.Struct<{
|
|
2395
2411
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2396
2412
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2413
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2397
2414
|
readonly action: Schema.optional<Schema.Struct<{
|
|
2398
2415
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
2399
2416
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -2539,6 +2556,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
2539
2556
|
readonly text: Schema.optional<Schema.Struct<{
|
|
2540
2557
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2541
2558
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2559
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2542
2560
|
readonly action: Schema.optional<Schema.Struct<{
|
|
2543
2561
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
2544
2562
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -2688,6 +2706,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
2688
2706
|
readonly text: Schema.optional<Schema.Struct<{
|
|
2689
2707
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2690
2708
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2709
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2691
2710
|
readonly action: Schema.optional<Schema.Struct<{
|
|
2692
2711
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
2693
2712
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
@@ -2833,6 +2852,7 @@ export declare const ThemeDocument: Schema.Union<readonly [Schema.Struct<{
|
|
|
2833
2852
|
readonly text: Schema.optional<Schema.Struct<{
|
|
2834
2853
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2835
2854
|
readonly muted: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2855
|
+
readonly faint: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
|
2836
2856
|
readonly action: Schema.optional<Schema.Struct<{
|
|
2837
2857
|
readonly primary: Schema.optional<Schema.Struct<{
|
|
2838
2858
|
readonly base: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Literal<"transparent">, Schema.TemplateLiteral<readonly ["$", Schema.NonEmptyString]>]>>;
|
package/dist/tui/schema.js
CHANGED
|
@@ -51,6 +51,7 @@ const BackgroundFeedbackDefinition = Schema.Struct({
|
|
|
51
51
|
const TextDefinition = Schema.Struct({
|
|
52
52
|
base: Schema.optional(ColorValue),
|
|
53
53
|
muted: Schema.optional(ColorValue),
|
|
54
|
+
faint: Schema.optional(ColorValue),
|
|
54
55
|
action: Schema.optional(ActionColorDefinition),
|
|
55
56
|
formfield: Schema.optional(StatefulColorDefinition),
|
|
56
57
|
feedback: Schema.optional(Schema.Struct({
|
|
@@ -151,6 +152,7 @@ const CompleteThemeTokensDefinition = Schema.Struct({
|
|
|
151
152
|
text: Schema.Struct({
|
|
152
153
|
base: ColorValue,
|
|
153
154
|
muted: ColorValue,
|
|
155
|
+
faint: Schema.optional(ColorValue),
|
|
154
156
|
action: CompleteActionColorDefinition,
|
|
155
157
|
formfield: CompleteStatefulColorDefinition,
|
|
156
158
|
feedback: Schema.Struct({
|
package/dist/tui/types.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export type ResolvedThemeTokens = {
|
|
|
23
23
|
readonly text: {
|
|
24
24
|
readonly base: RGBA;
|
|
25
25
|
readonly muted: RGBA;
|
|
26
|
+
readonly faint: RGBA;
|
|
26
27
|
readonly action: Readonly<Record<ActionVariant, StatefulColor>>;
|
|
27
28
|
readonly formfield: FormfieldColor;
|
|
28
29
|
readonly feedback: Readonly<Record<FeedbackKind, {
|