@zonsh/ui 0.2.0 → 0.4.1
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/LICENSE +22 -0
- package/README.md +19 -13
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/ascii-field.d.ts +1 -1
- package/dist/components/bottom-nav.d.ts +86 -0
- package/dist/components/bottom-nav.js +175 -0
- package/dist/components/breadcrumb.d.ts +9 -0
- package/dist/components/breadcrumb.js +6 -1
- package/dist/components/button-group.d.ts +1 -1
- package/dist/components/button-group.js +2 -2
- package/dist/components/calendar.d.ts +1 -1
- package/dist/components/calendar.js +18 -3
- package/dist/components/carousel.d.ts +22 -3
- package/dist/components/carousel.js +25 -7
- package/dist/components/chart.d.ts +9 -0
- package/dist/components/chart.js +40 -3
- package/dist/components/code-block.d.ts +20 -10
- package/dist/components/code-block.js +54 -12
- package/dist/components/collapsible.js +2 -2
- package/dist/components/color-picker.d.ts +30 -8
- package/dist/components/color-picker.js +48 -27
- package/dist/components/combobox.d.ts +21 -3
- package/dist/components/combobox.js +79 -7
- package/dist/components/command.d.ts +23 -3
- package/dist/components/command.js +61 -16
- package/dist/components/conversation.d.ts +10 -1
- package/dist/components/conversation.js +14 -4
- package/dist/components/copy-button.d.ts +15 -6
- package/dist/components/copy-button.js +20 -5
- package/dist/components/data-table.d.ts +66 -6
- package/dist/components/data-table.js +376 -23
- package/dist/components/date-picker.d.ts +73 -4
- package/dist/components/date-picker.js +138 -7
- package/dist/components/dialog.d.ts +10 -1
- package/dist/components/dialog.js +6 -3
- package/dist/components/drawer.d.ts +10 -1
- package/dist/components/drawer.js +6 -3
- package/dist/components/feature-list.js +2 -2
- package/dist/components/field.d.ts +27 -8
- package/dist/components/field.js +49 -4
- package/dist/components/file-drop.d.ts +26 -4
- package/dist/components/file-drop.js +125 -64
- package/dist/components/filter-bar.d.ts +50 -3
- package/dist/components/filter-bar.js +71 -33
- package/dist/components/form.d.ts +4 -2
- package/dist/components/form.js +24 -2
- package/dist/components/graph.d.ts +41 -0
- package/dist/components/graph.js +84 -45
- package/dist/components/illustration.js +1 -1
- package/dist/components/input-group.d.ts +16 -5
- package/dist/components/input-group.js +35 -15
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +3 -3
- package/dist/components/kbd.d.ts +17 -0
- package/dist/components/kbd.js +8 -1
- package/dist/components/lightbox.d.ts +100 -0
- package/dist/components/lightbox.js +439 -0
- package/dist/components/locale.d.ts +44 -0
- package/dist/components/locale.js +37 -0
- package/dist/components/logo.js +1 -1
- package/dist/components/menu.js +3 -1
- package/dist/components/message.d.ts +3 -3
- package/dist/components/message.js +10 -7
- package/dist/components/meter.js +3 -1
- package/dist/components/money-input.d.ts +80 -0
- package/dist/components/money-input.js +253 -0
- package/dist/components/number-field.d.ts +21 -2
- package/dist/components/number-field.js +27 -16
- package/dist/components/otp-field.d.ts +14 -1
- package/dist/components/otp-field.js +10 -2
- package/dist/components/pagination.d.ts +13 -7
- package/dist/components/pagination.js +18 -7
- package/dist/components/pdf-viewer.d.ts +67 -2
- package/dist/components/pdf-viewer.js +88 -21
- package/dist/components/phone-input.d.ts +79 -0
- package/dist/components/phone-input.js +282 -0
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +3 -1
- package/dist/components/prompt-input.d.ts +34 -9
- package/dist/components/prompt-input.js +28 -16
- package/dist/components/rating.d.ts +73 -0
- package/dist/components/rating.js +124 -0
- package/dist/components/reasoning.d.ts +16 -1
- package/dist/components/reasoning.js +10 -7
- package/dist/components/resizable.d.ts +10 -1
- package/dist/components/resizable.js +4 -1
- package/dist/components/response.d.ts +14 -3
- package/dist/components/response.js +36 -8
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/select.js +14 -3
- package/dist/components/separator.js +1 -1
- package/dist/components/sidebar.d.ts +20 -4
- package/dist/components/sidebar.js +34 -18
- package/dist/components/site-header.d.ts +46 -12
- package/dist/components/site-header.js +73 -19
- package/dist/components/slider.js +3 -1
- package/dist/components/sortable.d.ts +178 -0
- package/dist/components/sortable.js +1258 -0
- package/dist/components/sources.d.ts +17 -2
- package/dist/components/sources.js +11 -4
- package/dist/components/spinner.d.ts +13 -1
- package/dist/components/spinner.js +5 -2
- package/dist/components/stat.d.ts +91 -0
- package/dist/components/stat.js +141 -0
- package/dist/components/stepper.d.ts +71 -0
- package/dist/components/stepper.js +101 -0
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/table.d.ts +12 -2
- package/dist/components/table.js +176 -39
- package/dist/components/tags-input.d.ts +18 -2
- package/dist/components/tags-input.js +65 -33
- package/dist/components/theme.d.ts +16 -2
- package/dist/components/theme.js +15 -7
- package/dist/components/time-field.d.ts +22 -3
- package/dist/components/time-field.js +19 -6
- package/dist/components/timeline.d.ts +18 -2
- package/dist/components/timeline.js +13 -4
- package/dist/components/tippy.d.ts +48 -0
- package/dist/components/tippy.js +648 -0
- package/dist/components/toast.d.ts +18 -2
- package/dist/components/toast.js +12 -3
- package/dist/components/tool-call.d.ts +19 -8
- package/dist/components/tool-call.js +18 -7
- package/dist/components/toolbar.js +6 -1
- package/dist/components/tour.d.ts +127 -0
- package/dist/components/tour.js +648 -0
- package/dist/components/tree.js +17 -4
- package/dist/components/video-player.d.ts +10 -2
- package/dist/components/video-player.js +73 -33
- package/dist/illustration.d.ts +2 -0
- package/dist/illustration.js +7 -0
- package/dist/index.d.ts +11 -3
- package/dist/index.js +11 -3
- package/dist/lib/code-highlight.d.ts +3 -16
- package/dist/lib/code-highlight.js +160 -10
- package/dist/lib/code-theme.js +3 -3
- package/dist/lib/digit-roll.js +8 -8
- package/dist/lib/field-errors.d.ts +28 -0
- package/dist/lib/field-errors.js +24 -0
- package/dist/lib/field-value.d.ts +13 -0
- package/dist/lib/field-value.js +44 -0
- package/dist/lib/graph-layout.js +11 -2
- package/dist/lib/money.d.ts +73 -0
- package/dist/lib/money.js +343 -0
- package/dist/lib/phone-countries.d.ts +1 -0
- package/dist/lib/phone-countries.js +281 -0
- package/dist/lib/phone.d.ts +90 -0
- package/dist/lib/phone.js +286 -0
- package/dist/lib/platform.d.ts +8 -3
- package/dist/lib/platform.js +13 -6
- package/dist/lib/row-index.d.ts +15 -0
- package/dist/lib/row-index.js +136 -0
- package/dist/lib/table-fit.js +23 -4
- package/dist/lib/theme-script.d.ts +15 -2
- package/dist/lib/theme-script.js +23 -3
- package/dist/lib/tippy/pixels.d.ts +47 -0
- package/dist/lib/tippy/pixels.js +187 -0
- package/dist/lib/tippy/sprite.d.ts +86 -0
- package/dist/lib/tippy/sprite.js +753 -0
- package/dist/messages/de.d.ts +12 -0
- package/dist/messages/de.js +326 -0
- package/dist/styles/expressive.css +20 -5
- package/dist/styles/index.css +3 -2
- package/dist/styles/material.css +7 -3
- package/dist/styles/parts/ai.css +2 -1
- package/dist/styles/parts/controls.css +62 -13
- package/dist/styles/parts/feedback.css +68 -1
- package/dist/styles/parts/foundations.css +1 -1
- package/dist/styles/parts/navigation.css +194 -2
- package/dist/styles/parts/overlays.css +7 -7
- package/dist/styles/tokens.css +12 -3
- package/dist/vite.d.ts +0 -50
- package/dist/vite.js +0 -100
- package/package.json +28 -33
- package/dist/components/code-highlight.d.ts +0 -13
- package/dist/components/code-highlight.js +0 -107
- package/dist/components/whiteboard.d.ts +0 -80
- package/dist/components/whiteboard.js +0 -389
- package/dist/styles/parts/whiteboard.css +0 -855
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Messages } from "../components/locale.js";
|
|
2
|
+
/**
|
|
3
|
+
* German for every component's interface text — neutral UI German, as in the German macOS and
|
|
4
|
+
* Google interfaces. Pass it to a LocaleProvider with `locale="de-DE"`:
|
|
5
|
+
*
|
|
6
|
+
* import { de } from "@zonsh/ui/messages/de";
|
|
7
|
+
* <LocaleProvider locale="de-DE" messages={de}>…</LocaleProvider>
|
|
8
|
+
*
|
|
9
|
+
* Typed as the full `Messages`, so a component that gains text without a German line here fails
|
|
10
|
+
* the typecheck.
|
|
11
|
+
*/
|
|
12
|
+
export declare const de: Messages;
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
/** "1 Zeile", "3 Zeilen": a count with its singular or plural noun. */
|
|
2
|
+
const count = (n, one, other) => `${n} ${n === 1 ? one : other}`;
|
|
3
|
+
const graphNewNodes = {
|
|
4
|
+
task: "Neuer Schritt",
|
|
5
|
+
start: "Start",
|
|
6
|
+
end: "Ende",
|
|
7
|
+
event: "Ereignis",
|
|
8
|
+
gateway: "Entscheiden?",
|
|
9
|
+
note: "Eine Notiz",
|
|
10
|
+
person: "Neue Person",
|
|
11
|
+
entity: "Neuer Knoten",
|
|
12
|
+
group: "Gruppe",
|
|
13
|
+
};
|
|
14
|
+
const graphKinds = {
|
|
15
|
+
task: "Schritt",
|
|
16
|
+
start: "Start",
|
|
17
|
+
end: "Ende",
|
|
18
|
+
event: "Ereignis",
|
|
19
|
+
gateway: "Entscheidung",
|
|
20
|
+
note: "Notiz",
|
|
21
|
+
person: "Person",
|
|
22
|
+
entity: "Knoten",
|
|
23
|
+
group: "Gruppe",
|
|
24
|
+
};
|
|
25
|
+
const pdfErrors = {
|
|
26
|
+
password: "Dieses PDF ist mit einem Passwort geschützt.",
|
|
27
|
+
invalid: "Diese Datei ist kein lesbares PDF.",
|
|
28
|
+
missing: "Die Datei konnte nicht geladen werden.",
|
|
29
|
+
empty: "Dieses PDF hat keine Seiten.",
|
|
30
|
+
unknown: "Beim Öffnen ist ein Fehler aufgetreten.",
|
|
31
|
+
};
|
|
32
|
+
/** xyflow passes the direction of a keyboard move in English. */
|
|
33
|
+
const directions = {
|
|
34
|
+
up: "nach oben",
|
|
35
|
+
down: "nach unten",
|
|
36
|
+
left: "nach links",
|
|
37
|
+
right: "nach rechts",
|
|
38
|
+
};
|
|
39
|
+
const colorFormats = { hex: "Hex", rgb: "RGB", hsl: "HSL", oklch: "OKLCH" };
|
|
40
|
+
/** Where a sorted item sits: "Gewonnen, Position 2 von 5". Nouns are capitalised, so it can start a sentence. */
|
|
41
|
+
const place = (p) => `${p.list ? `${p.list}, ` : ""}Position ${p.position} von ${p.count}`;
|
|
42
|
+
const sortKeys = "Mit den Pfeiltasten verschieben, mit der Leertaste ablegen, mit Escape abbrechen.";
|
|
43
|
+
/**
|
|
44
|
+
* German for every component's interface text — neutral UI German, as in the German macOS and
|
|
45
|
+
* Google interfaces. Pass it to a LocaleProvider with `locale="de-DE"`:
|
|
46
|
+
*
|
|
47
|
+
* import { de } from "@zonsh/ui/messages/de";
|
|
48
|
+
* <LocaleProvider locale="de-DE" messages={de}>…</LocaleProvider>
|
|
49
|
+
*
|
|
50
|
+
* Typed as the full `Messages`, so a component that gains text without a German line here fails
|
|
51
|
+
* the typecheck.
|
|
52
|
+
*/
|
|
53
|
+
export const de = {
|
|
54
|
+
bottomNav: { nav: "Hauptnavigation", count: (n) => `${n} neu`, dot: "Neu" },
|
|
55
|
+
breadcrumb: { nav: "Navigationspfad" },
|
|
56
|
+
carousel: {
|
|
57
|
+
carousel: "Karussell",
|
|
58
|
+
slide: "Folie",
|
|
59
|
+
previous: "Vorherige Folie",
|
|
60
|
+
next: "Nächste Folie",
|
|
61
|
+
goTo: (slide, total) => `Zu Folie ${slide} von ${total}`,
|
|
62
|
+
of: "von",
|
|
63
|
+
},
|
|
64
|
+
codeBlock: { copy: "Code kopieren" },
|
|
65
|
+
colorPicker: {
|
|
66
|
+
area: "Sättigung und Helligkeit",
|
|
67
|
+
areaRole: "2D-Schieberegler",
|
|
68
|
+
areaValue: (saturation, brightness) => `Sättigung ${saturation} %, Helligkeit ${brightness} %`,
|
|
69
|
+
hue: "Farbton",
|
|
70
|
+
alpha: "Deckkraft",
|
|
71
|
+
value: (format) => `${colorFormats[format]}-Wert`,
|
|
72
|
+
presets: "Vorgaben",
|
|
73
|
+
placeholder: "Farbe auswählen",
|
|
74
|
+
},
|
|
75
|
+
combobox: {
|
|
76
|
+
clear: "Auswahl löschen",
|
|
77
|
+
showOptions: "Optionen anzeigen",
|
|
78
|
+
remove: (label) => (label ? `${label} entfernen` : "Entfernen"),
|
|
79
|
+
},
|
|
80
|
+
command: {
|
|
81
|
+
label: "Suchen",
|
|
82
|
+
placeholder: "Seiten und Aktionen suchen …",
|
|
83
|
+
empty: "Keine Treffer für diese Suche.",
|
|
84
|
+
close: "Suche schließen",
|
|
85
|
+
navigate: "navigieren",
|
|
86
|
+
open: "öffnen",
|
|
87
|
+
},
|
|
88
|
+
conversation: { scrollToLatest: "Zur neuesten Nachricht scrollen" },
|
|
89
|
+
copyButton: { copy: "Kopieren", copied: "Kopiert", failed: "Kopieren fehlgeschlagen" },
|
|
90
|
+
dataTable: {
|
|
91
|
+
search: "Suchen …",
|
|
92
|
+
columns: "Spalten",
|
|
93
|
+
showColumns: "Spalten anzeigen",
|
|
94
|
+
selectAll: "Alle Zeilen auswählen",
|
|
95
|
+
selectPage: "Alle Zeilen dieser Seite auswählen",
|
|
96
|
+
selectRow: "Zeile auswählen",
|
|
97
|
+
empty: "Keine Ergebnisse.",
|
|
98
|
+
loadError: "Die Zeilen konnten nicht geladen werden.",
|
|
99
|
+
retry: "Erneut versuchen",
|
|
100
|
+
selected: (n, total) => `${n} von ${total} ausgewählt`,
|
|
101
|
+
groupCount: (rows, groups) => `${count(rows, "Zeile", "Zeilen")} in ${count(groups, "Gruppe", "Gruppen")}`,
|
|
102
|
+
rowsPerPage: "Zeilen",
|
|
103
|
+
range: (first, last, total) => `${first}–${last} von ${total}`,
|
|
104
|
+
previous: "Vorherige Seite",
|
|
105
|
+
next: "Nächste Seite",
|
|
106
|
+
},
|
|
107
|
+
datePicker: { placeholder: "Datum auswählen", rangePlaceholder: "Zeitraum auswählen" },
|
|
108
|
+
dateTimePicker: { placeholder: "Datum und Uhrzeit auswählen", time: "Uhrzeit" },
|
|
109
|
+
dialog: { close: "Schließen" },
|
|
110
|
+
drawer: { close: "Schließen" },
|
|
111
|
+
fileDrop: {
|
|
112
|
+
title: (multiple) => (multiple ? "Dateien hier ablegen" : "Datei hier ablegen"),
|
|
113
|
+
clickOrPaste: "oder zum Auswählen klicken – einfügen mit",
|
|
114
|
+
tap: "oder zum Auswählen tippen",
|
|
115
|
+
hint: (multiple) => multiple ? "Dateien ablegen, auswählen oder einfügen" : "Datei ablegen, auswählen oder einfügen",
|
|
116
|
+
remove: (fileName) => `${fileName} entfernen`,
|
|
117
|
+
},
|
|
118
|
+
filterBar: {
|
|
119
|
+
group: "Filter",
|
|
120
|
+
add: "Filter",
|
|
121
|
+
clearAll: "Alle löschen",
|
|
122
|
+
chip: (field) => `Filter ${field}`,
|
|
123
|
+
remove: (field) => `Filter ${field} entfernen`,
|
|
124
|
+
condition: (field) => `${field}: Bedingung`,
|
|
125
|
+
searchPlaceholder: (field) => `${field} suchen …`,
|
|
126
|
+
search: (field) => `${field} suchen`,
|
|
127
|
+
noMatch: (field) => `Keine Treffer für ${field}.`,
|
|
128
|
+
textPlaceholder: (field) => `${field} …`,
|
|
129
|
+
quote: (text) => `„${text}“`,
|
|
130
|
+
from: "ab",
|
|
131
|
+
until: "bis",
|
|
132
|
+
is: "ist",
|
|
133
|
+
isNot: "ist nicht",
|
|
134
|
+
contains: "enthält",
|
|
135
|
+
doesNotContain: "enthält nicht",
|
|
136
|
+
gte: "mindestens",
|
|
137
|
+
lte: "höchstens",
|
|
138
|
+
gt: "mehr als",
|
|
139
|
+
lt: "weniger als",
|
|
140
|
+
eq: "ist",
|
|
141
|
+
neq: "ist nicht",
|
|
142
|
+
between: "zwischen",
|
|
143
|
+
},
|
|
144
|
+
graph: {
|
|
145
|
+
nodeLabel: "Knotenname",
|
|
146
|
+
edgeLabel: "Verbindungsname",
|
|
147
|
+
newNode: (kind) => graphNewNodes[kind],
|
|
148
|
+
kind: (kind) => graphKinds[kind],
|
|
149
|
+
addHere: "Hier hinzufügen",
|
|
150
|
+
tidy: "Aufräumen",
|
|
151
|
+
fit: "An Ansicht anpassen",
|
|
152
|
+
zoomIn: "Vergrößern",
|
|
153
|
+
zoomOut: "Verkleinern",
|
|
154
|
+
addNode: "Knoten hinzufügen",
|
|
155
|
+
rename: "Umbenennen",
|
|
156
|
+
delete: "Löschen",
|
|
157
|
+
renameLabel: "Beschriftung ändern",
|
|
158
|
+
addLabel: "Beschriftung hinzufügen",
|
|
159
|
+
reverse: "Richtung umkehren",
|
|
160
|
+
removeConnection: "Verbindung entfernen",
|
|
161
|
+
enterKey: "Eingabe",
|
|
162
|
+
deleteKey: "Entf",
|
|
163
|
+
connection: (from, to, directed) => (directed ? `${from} zu ${to}` : `${from} und ${to}`),
|
|
164
|
+
controls: "Graph",
|
|
165
|
+
minimap: "Übersichtskarte des Graphen",
|
|
166
|
+
nodeHelp: "Eingabe- oder Leertaste drücken, um einen Knoten auszuwählen. Entf drücken, um ihn zu entfernen, Esc zum Abbrechen.",
|
|
167
|
+
edgeHelp: "Eingabe- oder Leertaste drücken, um eine Verbindung auszuwählen. Dann Entf drücken, um sie zu entfernen, oder Esc zum Abbrechen.",
|
|
168
|
+
handle: "Anschlusspunkt",
|
|
169
|
+
moved: (direction, x, y) => `Ausgewählten Knoten ${directions[direction] ?? direction} verschoben. Neue Position: x ${x}, y ${y}`,
|
|
170
|
+
},
|
|
171
|
+
inputGroup: { showPassword: "Passwort anzeigen", clear: "Löschen" },
|
|
172
|
+
kbd: { ctrl: "Strg", shift: "Umschalt", alt: "Alt", enter: "Eingabe" },
|
|
173
|
+
lightbox: {
|
|
174
|
+
title: "Bildbetrachter",
|
|
175
|
+
close: "Schließen",
|
|
176
|
+
previous: "Vorheriges Bild",
|
|
177
|
+
next: "Nächstes Bild",
|
|
178
|
+
zoomIn: "Vergrößern",
|
|
179
|
+
zoomOut: "Verkleinern",
|
|
180
|
+
download: "Herunterladen",
|
|
181
|
+
loading: "Bild wird geladen",
|
|
182
|
+
position: (index, total) => `Bild ${index} von ${total}`,
|
|
183
|
+
},
|
|
184
|
+
moneyInput: {
|
|
185
|
+
invalid: (example) => `Betrag eingeben, z. B. ${example}.`,
|
|
186
|
+
precision: (digits) => digits === 0
|
|
187
|
+
? "Ganzen Betrag ohne Nachkommastellen eingeben."
|
|
188
|
+
: `Höchstens ${digits} ${digits === 1 ? "Nachkommastelle" : "Nachkommastellen"} verwenden.`,
|
|
189
|
+
negative: "Betrag von null oder mehr eingeben.",
|
|
190
|
+
rangeUnderflow: (min) => `Mindestens ${min} eingeben.`,
|
|
191
|
+
rangeOverflow: (max) => `Höchstens ${max} eingeben.`,
|
|
192
|
+
},
|
|
193
|
+
numberField: { decrement: "Verringern", increment: "Erhöhen", roleDescription: "Zahlenfeld" },
|
|
194
|
+
otpField: { character: (index, length) => `Zeichen ${index} von ${length}` },
|
|
195
|
+
pagination: {
|
|
196
|
+
nav: "Seiten",
|
|
197
|
+
previous: "Vorherige Seite",
|
|
198
|
+
next: "Nächste Seite",
|
|
199
|
+
page: (page) => `Seite ${page}`,
|
|
200
|
+
},
|
|
201
|
+
pdfViewer: {
|
|
202
|
+
error: (reason) => pdfErrors[reason],
|
|
203
|
+
cantOpen: "Dieses PDF konnte nicht geöffnet werden",
|
|
204
|
+
downloadFile: "Datei herunterladen",
|
|
205
|
+
toolbar: "Dokument",
|
|
206
|
+
showSidebar: "Seitenleiste einblenden",
|
|
207
|
+
hideSidebar: "Seitenleiste ausblenden",
|
|
208
|
+
previousPage: "Vorherige Seite",
|
|
209
|
+
nextPage: "Nächste Seite",
|
|
210
|
+
pageField: "Seite",
|
|
211
|
+
ofPages: (n) => `von ${count(n, "Seite", "Seiten")}`,
|
|
212
|
+
zoomIn: "Vergrößern",
|
|
213
|
+
zoomOut: "Verkleinern",
|
|
214
|
+
zoom: (percent) => `Zoom, ${percent} %`,
|
|
215
|
+
zoomAuto: "Automatisch",
|
|
216
|
+
zoomFitWidth: "An Breite anpassen",
|
|
217
|
+
zoomFitPage: "Ganze Seite",
|
|
218
|
+
rotate: "Drehen",
|
|
219
|
+
search: "Suchen",
|
|
220
|
+
download: "Herunterladen",
|
|
221
|
+
print: "Drucken",
|
|
222
|
+
fullScreen: "Vollbild",
|
|
223
|
+
exitFullScreen: "Vollbild beenden",
|
|
224
|
+
sidebar: "Seitenleiste",
|
|
225
|
+
pages: "Seiten",
|
|
226
|
+
outline: "Inhalt",
|
|
227
|
+
document: (name, page, total) => `${name}, Seite ${page} von ${total}`,
|
|
228
|
+
page: (page) => `Seite ${page}`,
|
|
229
|
+
expand: (title) => `${title} ausklappen`,
|
|
230
|
+
collapse: (title) => `${title} einklappen`,
|
|
231
|
+
link: (address) => `${address} (öffnet in einem neuen Tab)`,
|
|
232
|
+
goToPage: (page) => `Zu Seite ${page}`,
|
|
233
|
+
searchField: "Im Dokument suchen",
|
|
234
|
+
matches: (index, total) => `${index} / ${total}`,
|
|
235
|
+
noMatches: "Keine Treffer",
|
|
236
|
+
previousMatch: "Vorheriger Treffer",
|
|
237
|
+
nextMatch: "Nächster Treffer",
|
|
238
|
+
closeSearch: "Suche schließen",
|
|
239
|
+
previewPages: (n) => `PDF · ${count(n, "Seite", "Seiten")}`,
|
|
240
|
+
previewError: "PDF · kann nicht geöffnet werden",
|
|
241
|
+
previewPdf: "PDF",
|
|
242
|
+
close: "Schließen",
|
|
243
|
+
},
|
|
244
|
+
phoneInput: {
|
|
245
|
+
country: "Land",
|
|
246
|
+
search: "Länder suchen",
|
|
247
|
+
empty: "Kein Land gefunden. Namen oder Vorwahl wie +49 eingeben.",
|
|
248
|
+
countryChanged: (country) => `Land geändert zu ${country}.`,
|
|
249
|
+
tooShort: (country, code) => `Diese Nummer ist zu kurz für +${code} (${country}).`,
|
|
250
|
+
tooLong: (country, code) => `Diese Nummer ist zu lang für +${code} (${country}).`,
|
|
251
|
+
unknownCode: "Diese Nummer beginnt mit keiner bekannten Ländervorwahl. Ziffern nach dem + prüfen.",
|
|
252
|
+
},
|
|
253
|
+
promptInput: {
|
|
254
|
+
placeholder: "Frage eingeben",
|
|
255
|
+
send: "Senden",
|
|
256
|
+
stop: "Stoppen",
|
|
257
|
+
waiting: "Warten auf die Antwort",
|
|
258
|
+
attach: "Dateien anhängen",
|
|
259
|
+
attachment: "Anhang",
|
|
260
|
+
removeAttachment: (name) => `${name} entfernen`,
|
|
261
|
+
previewAttachment: (name) => `Vorschau von ${name}`,
|
|
262
|
+
},
|
|
263
|
+
rating: {
|
|
264
|
+
item: (value, n) => (n === 1 ? `${value} Stern` : `${value} Sterne`),
|
|
265
|
+
value: (value, max) => `${value} von ${max}`,
|
|
266
|
+
empty: "Nicht bewertet",
|
|
267
|
+
},
|
|
268
|
+
reasoning: {
|
|
269
|
+
thinking: "Denkt nach …",
|
|
270
|
+
thoughtBriefly: "Hat einige Sekunden nachgedacht",
|
|
271
|
+
thoughtFor: (seconds) => `Hat ${count(seconds, "Sekunde", "Sekunden")} nachgedacht`,
|
|
272
|
+
},
|
|
273
|
+
resizable: { handle: "Größe ändern" },
|
|
274
|
+
response: { done: "Erledigt", todo: "Offen" },
|
|
275
|
+
sidebar: { navigation: "Navigation", toggle: "Seitenleiste ein-/ausblenden" },
|
|
276
|
+
siteHeader: { nav: "Hauptnavigation", openMenu: "Menü öffnen", closeMenu: "Menü schließen", menu: "Menü" },
|
|
277
|
+
sortable: {
|
|
278
|
+
handle: (item) => `${item} verschieben`,
|
|
279
|
+
instructions: `Leertaste drücken, um das Element aufzunehmen. ${sortKeys}`,
|
|
280
|
+
pickedUp: (item, p) => `${item} aufgenommen. ${place(p)}.`,
|
|
281
|
+
pickedUpKeyboard: (item, p) => `${item} aufgenommen. ${place(p)}. ${sortKeys}`,
|
|
282
|
+
movedWithin: (_item, p) => `${place(p)}.`,
|
|
283
|
+
movedTo: (_item, p) => `Verschoben nach ${place(p)}.`,
|
|
284
|
+
moved: (item, p) => `${item} verschoben nach ${place(p)}.`,
|
|
285
|
+
dropped: (item, p) => `${item} abgelegt. ${place(p)}.`,
|
|
286
|
+
cancelled: (item, p) => `Verschieben abgebrochen. ${item} ist zurück. ${place(p)}.`,
|
|
287
|
+
cannotMove: (item, p) => `${item} kann nicht weiter verschoben werden. ${place(p)}.`,
|
|
288
|
+
},
|
|
289
|
+
sources: {
|
|
290
|
+
used: (n) => `${count(n, "Quelle", "Quellen")} verwendet`,
|
|
291
|
+
newTab: "(öffnet in einem neuen Tab)",
|
|
292
|
+
},
|
|
293
|
+
spinner: { loading: "Wird geladen" },
|
|
294
|
+
stat: {
|
|
295
|
+
up: (change) => `Gestiegen um ${change}`,
|
|
296
|
+
down: (change) => `Gesunken um ${change}`,
|
|
297
|
+
unchanged: "Unverändert",
|
|
298
|
+
},
|
|
299
|
+
stepper: {
|
|
300
|
+
complete: "Abgeschlossen",
|
|
301
|
+
error: "Bitte prüfen",
|
|
302
|
+
step: (step, total) => `Schritt ${step} von ${total}`,
|
|
303
|
+
done: "Fertig",
|
|
304
|
+
},
|
|
305
|
+
tagsInput: { remove: (tag) => `${tag} entfernen`, invalid: "(ungültig)" },
|
|
306
|
+
theme: { toggle: "Zwischen hellem und dunklem Design wechseln" },
|
|
307
|
+
timeField: { hour: "Stunden", minute: "Minuten", second: "Sekunden", dayPeriod: "AM/PM", empty: "Leer" },
|
|
308
|
+
timeline: { from: "von", to: "zu" },
|
|
309
|
+
toast: { close: "Schließen", region: "Mitteilungen" },
|
|
310
|
+
toolCall: {
|
|
311
|
+
pending: "Ausstehend",
|
|
312
|
+
running: "Läuft",
|
|
313
|
+
completed: "Abgeschlossen",
|
|
314
|
+
error: "Fehler",
|
|
315
|
+
parameters: "Parameter",
|
|
316
|
+
result: "Ergebnis",
|
|
317
|
+
failure: "Fehler",
|
|
318
|
+
},
|
|
319
|
+
tour: {
|
|
320
|
+
back: "Zurück",
|
|
321
|
+
next: "Weiter",
|
|
322
|
+
done: "Fertig",
|
|
323
|
+
skip: "Tour überspringen",
|
|
324
|
+
progress: (step, total) => `Schritt ${step} von ${total}`,
|
|
325
|
+
},
|
|
326
|
+
};
|
|
@@ -23,18 +23,33 @@
|
|
|
23
23
|
* page would never let the eye rest. Overlay on dark grounds, as zon.sh; multiply on light
|
|
24
24
|
* ones, where overlay shows nothing (--page-grain-blend).
|
|
25
25
|
*
|
|
26
|
+
* The ground under the grain is a layer of its own too (html::before), and all three reach a
|
|
27
|
+
* tenth of the window below its bottom edge. iOS Safari uncovers a strip there as its toolbar
|
|
28
|
+
* shrinks, and the root's background is not something the grain can blend with: blending with
|
|
29
|
+
* nothing, it showed as bare, bright noise. Only downwards, so the grain's tiles still start at
|
|
30
|
+
* the window's corner, where a scrolled SiteHeader's grain lines up with them. Past all of it
|
|
31
|
+
* the browser shows html's background, --page-tone, the same flat colour its bars take.
|
|
32
|
+
*
|
|
26
33
|
* Anything opaque in --background between the body and the content hides it, so page-level
|
|
27
|
-
* wrappers stay transparent. Opt out with `body::before, body::after { content:
|
|
34
|
+
* wrappers stay transparent. Opt out of the grain with `body::before, body::after { content:
|
|
35
|
+
* none }`; the ground and its light stay.
|
|
28
36
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
html::before {
|
|
38
|
+
content: "";
|
|
39
|
+
position: fixed;
|
|
40
|
+
inset: 0 0 -10%;
|
|
41
|
+
z-index: -1;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
background-color: var(--background);
|
|
44
|
+
/* The light a tenth of the window above it, 110% × 65% of the window, as in a SiteHeader's
|
|
45
|
+
ground: in this box, 1.1 windows tall, that is -9.09% and 59.09% of its height. */
|
|
46
|
+
background-image: radial-gradient(110% 59.09% at 50% -9.09%, var(--page-glow), transparent 60%);
|
|
32
47
|
}
|
|
33
48
|
body::before,
|
|
34
49
|
body::after {
|
|
35
50
|
content: "";
|
|
36
51
|
position: fixed;
|
|
37
|
-
inset: 0
|
|
52
|
+
inset: 0 0 -10%;
|
|
38
53
|
z-index: -1;
|
|
39
54
|
pointer-events: none;
|
|
40
55
|
background-image: var(--grain-noise);
|
package/dist/styles/index.css
CHANGED
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
@import "./parts/ai.css";
|
|
31
31
|
@import "./parts/react-flow.css";
|
|
32
32
|
@import "./parts/graph.css";
|
|
33
|
-
@import "./parts/whiteboard.css";
|
|
34
33
|
|
|
35
34
|
/* Let Tailwind see the classes used inside this package. */
|
|
36
35
|
@source "../components";
|
|
@@ -137,9 +136,11 @@
|
|
|
137
136
|
text-rendering: optimizeLegibility;
|
|
138
137
|
-webkit-font-smoothing: antialiased;
|
|
139
138
|
-moz-osx-font-smoothing: grayscale;
|
|
139
|
+
/* What the browser shows past the page's edges: the ground as one flat colour. The ground
|
|
140
|
+
itself, --background with its grain, is a layer of its own (expressive.css). */
|
|
141
|
+
background-color: var(--page-tone);
|
|
140
142
|
}
|
|
141
143
|
body {
|
|
142
|
-
background-color: var(--background);
|
|
143
144
|
color: var(--foreground);
|
|
144
145
|
font-family: var(--font-body);
|
|
145
146
|
font-size: 17px;
|
package/dist/styles/material.css
CHANGED
|
@@ -295,16 +295,20 @@
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
@utility container-page {
|
|
298
|
+
--container-gutter: 24px;
|
|
298
299
|
width: 100%;
|
|
299
300
|
max-width: var(--container);
|
|
300
301
|
margin-inline: auto;
|
|
301
|
-
|
|
302
|
+
/* Never less than the safe area: a phone on its side keeps the column clear of the notch on a
|
|
303
|
+
page that draws under it (viewport-fit=cover). */
|
|
304
|
+
padding-left: max(var(--container-gutter), env(safe-area-inset-left, 0px));
|
|
305
|
+
padding-right: max(var(--container-gutter), env(safe-area-inset-right, 0px));
|
|
302
306
|
|
|
303
307
|
@media (width >= 40rem) {
|
|
304
|
-
|
|
308
|
+
--container-gutter: 40px;
|
|
305
309
|
}
|
|
306
310
|
@media (width >= 64rem) {
|
|
307
|
-
|
|
311
|
+
--container-gutter: 64px;
|
|
308
312
|
}
|
|
309
313
|
}
|
|
310
314
|
|
package/dist/styles/parts/ai.css
CHANGED
|
@@ -273,7 +273,8 @@
|
|
|
273
273
|
[data-slot="prompt-input"] :is([data-slot="input-group-control"], [data-slot="prompt-input-placeholder"]) {
|
|
274
274
|
grid-area: input;
|
|
275
275
|
min-height: 0;
|
|
276
|
-
|
|
276
|
+
/* One 24px line, centred in the control height inside the 1px border: 6px above and below at 38. */
|
|
277
|
+
padding: calc((var(--control-h) - 26px) / 2) 10px;
|
|
277
278
|
line-height: 24px;
|
|
278
279
|
}
|
|
279
280
|
[data-slot="prompt-input"] > [data-layout="inline"] [data-slot="input-group-control"] {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
:is([data-slot="checkbox-indicator"], [data-slot="menu-checkbox-indicator"])[data-ending-style] svg {
|
|
73
73
|
transition-duration: var(--check-undraw);
|
|
74
|
-
transition-timing-function: cubic-bezier(0.
|
|
74
|
+
transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/* ── Menu: a trigger's down chevron turns up while its menu is open ───────────────────── */
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/* ── Switch: the thumb stretches, then slides ────────────────────────────────
|
|
86
|
-
*
|
|
86
|
+
* A press stretches the thumb from 18 to 25px, toward the side it will travel. Hover leaves it
|
|
87
|
+
* alone: a stretch is the start of the toggle, and pointing at a switch is not flipping it.
|
|
87
88
|
* Checked, it sits against the far edge: the track's inner width (34px) minus its own width,
|
|
88
89
|
* so it stays flush while it stretches.
|
|
89
90
|
*
|
|
@@ -106,11 +107,6 @@
|
|
|
106
107
|
[data-slot="switch-thumb"][data-checked] {
|
|
107
108
|
--thumb-on: 1;
|
|
108
109
|
}
|
|
109
|
-
@media (hover: hover) {
|
|
110
|
-
[data-slot="switch"]:not([data-disabled], [data-readonly]):hover > [data-slot="switch-thumb"] {
|
|
111
|
-
--thumb-w: 22px;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
110
|
[data-slot="switch"]:not([data-disabled], [data-readonly]):active > [data-slot="switch-thumb"] {
|
|
115
111
|
--thumb-w: 25px;
|
|
116
112
|
}
|
|
@@ -118,7 +114,7 @@
|
|
|
118
114
|
/* ── Button group: how neighbours meet ───────────────────────────────────────
|
|
119
115
|
* Fields (real borders) overlap by a pixel so their borders merge into one line. Buttons draw
|
|
120
116
|
* their edge as an outer ring plus inner highlights, which doubled up at the join — a heavy bar
|
|
121
|
-
* on a split primary, and the
|
|
117
|
+
* on a split primary, and the second half seeming to sit on the first. So a joined button trims
|
|
122
118
|
* 1px of its inner side (ring and highlight with it), the two meet exactly, and the later one
|
|
123
119
|
* draws a single 1px seam: the edge colour on raised buttons, a soft line on the primary. A
|
|
124
120
|
* focused or open control drops the trim so its outline and ring show whole. */
|
|
@@ -135,7 +131,7 @@
|
|
|
135
131
|
)
|
|
136
132
|
)
|
|
137
133
|
) {
|
|
138
|
-
margin-
|
|
134
|
+
margin-inline-start: -1px;
|
|
139
135
|
}
|
|
140
136
|
[data-slot="button-group"][data-orientation="vertical"]
|
|
141
137
|
> :not(
|
|
@@ -165,7 +161,7 @@
|
|
|
165
161
|
)
|
|
166
162
|
)
|
|
167
163
|
) {
|
|
168
|
-
margin-
|
|
164
|
+
margin-inline-start: -2px;
|
|
169
165
|
}
|
|
170
166
|
[data-slot="button-group"][data-orientation="vertical"]
|
|
171
167
|
> [data-variant]:not(
|
|
@@ -256,6 +252,56 @@
|
|
|
256
252
|
) {
|
|
257
253
|
clip-path: inset(-16px 1px);
|
|
258
254
|
}
|
|
255
|
+
/* Right to left the first control is on the right, so the trims swap sides (clip-path has no
|
|
256
|
+
logical form). Not :dir(rtl), which the CSS build lowers to a list of languages (see the Badge). */
|
|
257
|
+
[data-slot="button-group"][data-orientation="horizontal"]:where([dir="rtl"], [dir="rtl"] *)
|
|
258
|
+
> [data-variant]:nth-child(
|
|
259
|
+
1
|
|
260
|
+
of
|
|
261
|
+
:not(
|
|
262
|
+
[data-base-ui-focus-guard],
|
|
263
|
+
span[aria-owns],
|
|
264
|
+
[data-slot="button-group-separator"],
|
|
265
|
+
[data-slot="copy-button-status"]
|
|
266
|
+
)
|
|
267
|
+
):not(
|
|
268
|
+
:nth-last-child(
|
|
269
|
+
1
|
|
270
|
+
of
|
|
271
|
+
:not(
|
|
272
|
+
[data-base-ui-focus-guard],
|
|
273
|
+
span[aria-owns],
|
|
274
|
+
[data-slot="button-group-separator"],
|
|
275
|
+
[data-slot="copy-button-status"]
|
|
276
|
+
)
|
|
277
|
+
)
|
|
278
|
+
) {
|
|
279
|
+
clip-path: inset(-16px -16px -16px 1px);
|
|
280
|
+
}
|
|
281
|
+
[data-slot="button-group"][data-orientation="horizontal"]:where([dir="rtl"], [dir="rtl"] *)
|
|
282
|
+
> [data-variant]:nth-last-child(
|
|
283
|
+
1
|
|
284
|
+
of
|
|
285
|
+
:not(
|
|
286
|
+
[data-base-ui-focus-guard],
|
|
287
|
+
span[aria-owns],
|
|
288
|
+
[data-slot="button-group-separator"],
|
|
289
|
+
[data-slot="copy-button-status"]
|
|
290
|
+
)
|
|
291
|
+
):not(
|
|
292
|
+
:nth-child(
|
|
293
|
+
1
|
|
294
|
+
of
|
|
295
|
+
:not(
|
|
296
|
+
[data-base-ui-focus-guard],
|
|
297
|
+
span[aria-owns],
|
|
298
|
+
[data-slot="button-group-separator"],
|
|
299
|
+
[data-slot="copy-button-status"]
|
|
300
|
+
)
|
|
301
|
+
)
|
|
302
|
+
) {
|
|
303
|
+
clip-path: inset(-16px 1px -16px -16px);
|
|
304
|
+
}
|
|
259
305
|
[data-slot="button-group"][data-orientation="vertical"]
|
|
260
306
|
> [data-variant]:nth-child(
|
|
261
307
|
1
|
|
@@ -381,7 +427,7 @@
|
|
|
381
427
|
)::after {
|
|
382
428
|
top: -1px;
|
|
383
429
|
bottom: -1px;
|
|
384
|
-
|
|
430
|
+
inset-inline-start: 0;
|
|
385
431
|
width: 1px;
|
|
386
432
|
}
|
|
387
433
|
[data-slot="button-group"][data-orientation="vertical"]
|
|
@@ -590,10 +636,13 @@
|
|
|
590
636
|
bottom: var(--badge-inset);
|
|
591
637
|
translate: 50% 50%;
|
|
592
638
|
}
|
|
593
|
-
|
|
639
|
+
/* Not :dir(rtl): the CSS build lowers it to a list of right-to-left languages, which misses a
|
|
640
|
+
page set right to left by its dir attribute alone. */
|
|
641
|
+
[data-slot="badge-anchor"]:where([dir="rtl"], [dir="rtl"] *) > [data-slot="badge"] {
|
|
594
642
|
translate: -50% -50%;
|
|
595
643
|
}
|
|
596
|
-
[data-slot="badge-anchor"][data-placement="bottom-end"]:dir
|
|
644
|
+
[data-slot="badge-anchor"][data-placement="bottom-end"]:where([dir="rtl"], [dir="rtl"] *)
|
|
645
|
+
> [data-slot="badge"] {
|
|
597
646
|
translate: -50% 50%;
|
|
598
647
|
}
|
|
599
648
|
}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
box-shadow: inset 0 0 0 1px var(--control-inner-edge);
|
|
16
16
|
animation: ep-skeleton-sweep 1.6s var(--ease) infinite;
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
/* Not :dir(rtl), which the CSS build lowers to a list of languages (see the Badge). */
|
|
19
|
+
&:where([dir="rtl"], [dir="rtl"] *) {
|
|
19
20
|
animation-direction: reverse;
|
|
20
21
|
}
|
|
21
22
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -270,4 +271,70 @@
|
|
|
270
271
|
animation: none;
|
|
271
272
|
}
|
|
272
273
|
}
|
|
274
|
+
|
|
275
|
+
/* ── Stepper ──────────────────────────────────────────────────────────────
|
|
276
|
+
* The connector's fill is a transition in stepper.tsx; these are the markers of the step whose
|
|
277
|
+
* status changed last (data-changed): a finished step's check pops in, an error's "!" shakes
|
|
278
|
+
* once, and the new current step settles as the line reaches it. A vertical stepper's content
|
|
279
|
+
* slides in, all of it within 300ms. The durations are 0 under reduced motion, so every state is
|
|
280
|
+
* simply there. */
|
|
281
|
+
|
|
282
|
+
[data-slot="stepper-marker"][data-changed][data-status="complete"] > svg {
|
|
283
|
+
animation: ep-stepper-pop calc(var(--duration) * 1.3) cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
|
284
|
+
}
|
|
285
|
+
[data-slot="stepper-marker"][data-changed][data-status="error"] > span {
|
|
286
|
+
animation: ep-stepper-shake calc(var(--duration) * 1.6) var(--ease) both;
|
|
287
|
+
}
|
|
288
|
+
/* Settles as the line arrives: 120ms in, done at 300ms. */
|
|
289
|
+
[data-slot="stepper-marker"][data-changed][data-status="current"] {
|
|
290
|
+
animation: ep-stepper-arrive calc(var(--duration) * 1.2) cubic-bezier(0.34, 1.56, 0.64, 1)
|
|
291
|
+
calc(var(--duration) * 0.8) both;
|
|
292
|
+
}
|
|
293
|
+
[data-slot="stepper-content"][data-changed] {
|
|
294
|
+
animation: ep-stepper-content calc(var(--duration) * 1.6) var(--ease) calc(var(--duration) * 0.4) both;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@keyframes ep-stepper-pop {
|
|
298
|
+
from {
|
|
299
|
+
opacity: 0;
|
|
300
|
+
scale: 0.3;
|
|
301
|
+
}
|
|
302
|
+
to {
|
|
303
|
+
opacity: 1;
|
|
304
|
+
scale: 1;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
@keyframes ep-stepper-shake {
|
|
308
|
+
0%,
|
|
309
|
+
100% {
|
|
310
|
+
translate: 0;
|
|
311
|
+
}
|
|
312
|
+
25% {
|
|
313
|
+
translate: -2px;
|
|
314
|
+
}
|
|
315
|
+
50% {
|
|
316
|
+
translate: 2px;
|
|
317
|
+
}
|
|
318
|
+
75% {
|
|
319
|
+
translate: -1px;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
@keyframes ep-stepper-arrive {
|
|
323
|
+
from {
|
|
324
|
+
scale: 0.8;
|
|
325
|
+
}
|
|
326
|
+
to {
|
|
327
|
+
scale: 1;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
@keyframes ep-stepper-content {
|
|
331
|
+
from {
|
|
332
|
+
opacity: 0;
|
|
333
|
+
translate: 0 -4px;
|
|
334
|
+
}
|
|
335
|
+
to {
|
|
336
|
+
opacity: 1;
|
|
337
|
+
translate: 0;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
273
340
|
}
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/*
|
|
143
|
-
* CodeBlock's syntax colours (with `
|
|
143
|
+
* CodeBlock's syntax colours (a block with a `language`). The zon code theme
|
|
144
144
|
* names these properties instead of colours, so it follows light, dark and a forced local theme:
|
|
145
145
|
* they are set on the block (and on Shiki's own `pre.shiki` output), where the tones resolve. One tone per kind of token; comments and
|
|
146
146
|
* punctuation recede to the greys; added and removed diff lines take the status colours. Each is
|