@opencode/theme 2.2.1 → 2.2.3
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 +7 -1
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/resolve.d.ts +1032 -0
- package/dist/tui/resolve.js +6 -1
- package/dist/tui/schema.d.ts +1763 -145
- package/dist/tui/schema.js +8 -4
- package/package.json +3 -3
package/dist/tui/schema.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Schema } from "effect";
|
|
|
2
2
|
export const HueStep = Schema.Literals([100, 200, 300, 400, 500, 600, 700, 800, 900]);
|
|
3
3
|
export const ActionVariant = Schema.Literals(["primary", "secondary", "destructive"]);
|
|
4
4
|
export const ActionState = Schema.Literals(["disabled", "pressed", "focused", "selected", "hovered"]);
|
|
5
|
-
export const SurfaceName = Schema.
|
|
5
|
+
export const SurfaceName = Schema.Literals(["dialog", "dialog.footer"]);
|
|
6
6
|
export const FormfieldState = ActionState;
|
|
7
7
|
export const FeedbackKind = Schema.Literals(["error", "warning", "success", "info"]);
|
|
8
8
|
const Mode = Schema.Literals(["light", "dark"]);
|
|
@@ -133,6 +133,10 @@ const ThemeTokensDefinition = Schema.Struct({
|
|
|
133
133
|
syntax: Schema.optional(SyntaxDefinition),
|
|
134
134
|
markdown: Schema.optional(MarkdownDefinition),
|
|
135
135
|
});
|
|
136
|
+
const DialogTokensDefinition = Schema.Struct({
|
|
137
|
+
...ThemeTokensDefinition.fields,
|
|
138
|
+
"@footer": Schema.optional(ThemeTokensDefinition),
|
|
139
|
+
});
|
|
136
140
|
const CompleteStatefulColorDefinition = Schema.Struct({
|
|
137
141
|
base: ColorValue,
|
|
138
142
|
$hovered: Schema.optional(ColorValue),
|
|
@@ -192,19 +196,19 @@ const ThemeDefinitionFields = Schema.Struct({
|
|
|
192
196
|
hue: HueDefinition,
|
|
193
197
|
categorical: CategoricalDefinition,
|
|
194
198
|
...CompleteThemeTokensDefinition.fields,
|
|
195
|
-
"@dialog": Schema.optional(
|
|
199
|
+
"@dialog": Schema.optional(DialogTokensDefinition),
|
|
196
200
|
});
|
|
197
201
|
export const ThemeDefinition = ThemeDefinitionFields;
|
|
198
202
|
export const BaseThemeDefinition = Schema.Struct({
|
|
199
203
|
categorical: CategoricalDefinition,
|
|
200
204
|
...CompleteThemeTokensDefinition.fields,
|
|
201
|
-
"@dialog": Schema.optional(
|
|
205
|
+
"@dialog": Schema.optional(DialogTokensDefinition),
|
|
202
206
|
});
|
|
203
207
|
export const ModeDefinition = Schema.Struct({
|
|
204
208
|
hue: HueDefinition,
|
|
205
209
|
categorical: Schema.optional(CategoricalDefinition),
|
|
206
210
|
...ThemeTokensDefinition.fields,
|
|
207
|
-
"@dialog": Schema.optional(
|
|
211
|
+
"@dialog": Schema.optional(DialogTokensDefinition),
|
|
208
212
|
});
|
|
209
213
|
const FileMetadata = {
|
|
210
214
|
$schema: Schema.optional(Schema.String),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/theme",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"typecheck:tsc": "tsc --noEmit"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@opentui/core": "0.
|
|
37
|
-
"effect": "4.0.
|
|
36
|
+
"@opentui/core": "0.8.0",
|
|
37
|
+
"effect": "4.0.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@tsconfig/bun": "1.0.9",
|