@opencode/ui 0.0.0-dev-232 → 0.0.0-dev-235
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.
|
@@ -2,6 +2,6 @@ import { type ComponentProps } from "solid-js";
|
|
|
2
2
|
import "./keybind.css";
|
|
3
3
|
export interface KeybindProps extends ComponentProps<"div"> {
|
|
4
4
|
keys: string[];
|
|
5
|
-
variant?: "neutral" | "ghost";
|
|
5
|
+
variant?: "neutral" | "ghost" | "outline";
|
|
6
6
|
}
|
|
7
7
|
export declare function Keybind(props: KeybindProps): import("solid-js").JSX.Element;
|
package/dist/i18n/en.d.ts
CHANGED
|
@@ -306,6 +306,8 @@ declare const source: {
|
|
|
306
306
|
"ui.question.answer.none": string;
|
|
307
307
|
"ui.question.review.notAnswered": string;
|
|
308
308
|
"ui.question.multiHint": string;
|
|
309
|
+
"ui.question.singleHint": string;
|
|
310
|
+
"ui.question.classic.multiHint": string;
|
|
309
311
|
"ui.question.custom.placeholder": string;
|
|
310
312
|
"ui.question.custom.answerPlaceholder": string;
|
|
311
313
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/ui",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-235",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
"dependencies": {
|
|
289
289
|
"@kitlangton/solid-motion": "0.2.2",
|
|
290
290
|
"@kobalte/core": "0.13.13",
|
|
291
|
-
"@opencode/util": "0.0.0-dev-
|
|
291
|
+
"@opencode/util": "0.0.0-dev-235",
|
|
292
292
|
"@pierre/diffs": "1.6.1",
|
|
293
293
|
"@pierre/highlights": "0.2.0",
|
|
294
294
|
"@solid-primitives/event-listener": "2.4.6",
|
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
border-radius: 2px;
|
|
35
35
|
flex: none;
|
|
36
36
|
flex-grow: 0;
|
|
37
|
+
transition:
|
|
38
|
+
background-color var(--keybind-transition-duration, 0s) ease,
|
|
39
|
+
box-shadow var(--keybind-transition-duration, 0s) ease;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
[data-component="keybind-v2"][data-variant="neutral"] [data-slot="keybind-v2-key"] {
|
|
@@ -44,6 +47,11 @@
|
|
|
44
47
|
background: transparent;
|
|
45
48
|
}
|
|
46
49
|
|
|
50
|
+
[data-component="keybind-v2"][data-variant="outline"] [data-slot="keybind-v2-key"] {
|
|
51
|
+
background: transparent;
|
|
52
|
+
box-shadow: inset 0 0 0 1px var(--v2-border-border-strong);
|
|
53
|
+
}
|
|
54
|
+
|
|
47
55
|
[data-component="keybind-v2"] [data-slot="keybind-v2-label"] {
|
|
48
56
|
display: flex;
|
|
49
57
|
flex-direction: row;
|
|
@@ -53,8 +61,8 @@
|
|
|
53
61
|
padding: 0;
|
|
54
62
|
flex: none;
|
|
55
63
|
font-style: normal;
|
|
56
|
-
font-weight: 530;
|
|
57
|
-
font-size: 11px;
|
|
64
|
+
font-weight: var(--keybind-font-weight, 530);
|
|
65
|
+
font-size: var(--keybind-font-size, 11px);
|
|
58
66
|
line-height: 1;
|
|
59
67
|
text-align: center;
|
|
60
68
|
letter-spacing: 0.05px;
|
|
@@ -67,7 +75,7 @@
|
|
|
67
75
|
user-select: none;
|
|
68
76
|
}
|
|
69
77
|
|
|
70
|
-
[data-component="keybind-v2"][data-variant="neutral"] [data-slot="keybind-v2-label"] {
|
|
78
|
+
[data-component="keybind-v2"]:is([data-variant="neutral"], [data-variant="outline"]) [data-slot="keybind-v2-label"] {
|
|
71
79
|
color: var(--v2-text-text-muted);
|
|
72
80
|
}
|
|
73
81
|
|
package/src/i18n/en.ts
CHANGED
|
@@ -334,6 +334,8 @@ const source = {
|
|
|
334
334
|
"ui.question.answer.none": "(no answer)",
|
|
335
335
|
"ui.question.review.notAnswered": "(not answered)",
|
|
336
336
|
"ui.question.multiHint": "Pick any",
|
|
337
|
+
"ui.question.singleHint": "Select one answer",
|
|
338
|
+
"ui.question.classic.multiHint": "Select all answers that apply",
|
|
337
339
|
"ui.question.custom.placeholder": "Type your answer…",
|
|
338
340
|
"ui.question.custom.answerPlaceholder": "Type your own answer…",
|
|
339
341
|
} satisfies Record<string, string>
|