@zonsh/ui 0.2.0 → 0.5.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/LICENSE +22 -0
- package/README.md +19 -13
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/ascii-field.d.ts +1 -1
- package/dist/components/ascii-field.js +2 -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/button.js +1 -1
- 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 +20 -0
- package/dist/components/chart.js +52 -3
- package/dist/components/code-block.d.ts +20 -10
- package/dist/components/code-block.js +54 -12
- package/dist/components/collapsible.js +3 -3
- 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 +63 -18
- package/dist/components/conversation.d.ts +10 -1
- package/dist/components/conversation.js +24 -7
- package/dist/components/copy-button.d.ts +15 -6
- package/dist/components/copy-button.js +27 -10
- 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 +106 -50
- package/dist/components/illustration.js +51 -4
- package/dist/components/input-group.d.ts +18 -7
- package/dist/components/input-group.js +41 -19
- 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/layout.d.ts +2 -1
- package/dist/components/layout.js +55 -11
- package/dist/components/lightbox.d.ts +100 -0
- package/dist/components/lightbox.js +457 -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/menubar.js +60 -13
- package/dist/components/message.d.ts +3 -3
- package/dist/components/message.js +12 -8
- 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/navigation-menu.js +4 -2
- package/dist/components/number-field.d.ts +21 -2
- package/dist/components/number-field.js +53 -28
- 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 +37 -17
- package/dist/components/radio-group.js +7 -2
- 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 +17 -5
- package/dist/components/response.js +58 -18
- 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 +70 -35
- package/dist/components/site-header.d.ts +46 -12
- package/dist/components/site-header.js +78 -19
- package/dist/components/skeleton.d.ts +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +3 -1
- package/dist/components/sortable.d.ts +178 -0
- package/dist/components/sortable.js +1282 -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 +13 -3
- package/dist/components/table.js +231 -41
- package/dist/components/tabs.js +8 -4
- package/dist/components/tags-input.d.ts +18 -2
- package/dist/components/tags-input.js +66 -34
- package/dist/components/theme.d.ts +16 -2
- package/dist/components/theme.js +34 -8
- package/dist/components/time-field.d.ts +24 -4
- package/dist/components/time-field.js +32 -9
- 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/toggle-group.js +1 -0
- package/dist/components/tool-call.d.ts +19 -8
- package/dist/components/tool-call.js +23 -7
- package/dist/components/toolbar.d.ts +1 -1
- package/dist/components/toolbar.js +10 -2
- package/dist/components/tooltip.d.ts +4 -2
- package/dist/components/tooltip.js +10 -4
- package/dist/components/tour.d.ts +127 -0
- package/dist/components/tour.js +673 -0
- package/dist/components/tree.js +45 -9
- package/dist/components/video-player.d.ts +10 -2
- package/dist/components/video-player.js +134 -38
- 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/glide.d.ts +5 -4
- package/dist/lib/glide.js +5 -4
- 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.d.ts +3 -2
- package/dist/lib/table-fit.js +52 -23
- 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 +60 -26
- package/dist/styles/index.css +11 -2
- package/dist/styles/material.css +47 -23
- package/dist/styles/parts/ai.css +4 -2
- package/dist/styles/parts/controls.css +85 -32
- package/dist/styles/parts/data.css +33 -5
- package/dist/styles/parts/feedback.css +110 -13
- package/dist/styles/parts/foundations.css +1 -1
- package/dist/styles/parts/navigation.css +230 -5
- package/dist/styles/parts/overlays.css +98 -11
- package/dist/styles/parts/pdf.css +13 -7
- package/dist/styles/tokens.css +28 -4
- 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);
|
|
@@ -52,7 +67,9 @@
|
|
|
52
67
|
}
|
|
53
68
|
}
|
|
54
69
|
|
|
55
|
-
/* The moving grain: an overlay for large or dark expressive regions (`<Grain />`).
|
|
70
|
+
/* The moving grain: an overlay for large or dark expressive regions (`<Grain />`). It moves only
|
|
71
|
+
on a desktop — a fine pointer that hovers, 48rem wide, motion allowed: a phone's backdrop stays
|
|
72
|
+
still (a moving full-screen layer costs a phone's battery, and it is held close to the eye). */
|
|
56
73
|
@utility grain {
|
|
57
74
|
pointer-events: none;
|
|
58
75
|
position: absolute;
|
|
@@ -66,7 +83,6 @@
|
|
|
66
83
|
inset: -40%;
|
|
67
84
|
background-image: var(--grain-noise);
|
|
68
85
|
background-size: 200px auto;
|
|
69
|
-
animation: ep-grain 0.8s steps(5) infinite;
|
|
70
86
|
}
|
|
71
87
|
&::before {
|
|
72
88
|
mix-blend-mode: overlay;
|
|
@@ -75,28 +91,38 @@
|
|
|
75
91
|
&::after {
|
|
76
92
|
mix-blend-mode: screen;
|
|
77
93
|
opacity: calc(var(--grain-opacity) * 0.35);
|
|
78
|
-
animation-delay: -0.4s;
|
|
79
|
-
}
|
|
80
|
-
/* Still grain, for a picture rather than a region: a sheet in a carousel or a grid. */
|
|
81
|
-
&[data-still]::before,
|
|
82
|
-
&[data-still]::after {
|
|
83
|
-
animation: none;
|
|
84
94
|
}
|
|
85
|
-
@media (prefers-reduced-motion:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
95
|
+
@media (hover: hover) and (pointer: fine) and (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
|
|
96
|
+
/* Still grain, for a picture rather than a region: a sheet in a carousel or a grid. */
|
|
97
|
+
&:not([data-still])::before,
|
|
98
|
+
&:not([data-still])::after {
|
|
99
|
+
animation: ep-grain 0.8s steps(5) infinite;
|
|
100
|
+
}
|
|
101
|
+
&:not([data-still])::after {
|
|
102
|
+
animation-delay: -0.4s;
|
|
89
103
|
}
|
|
90
104
|
}
|
|
91
105
|
}
|
|
92
106
|
|
|
93
107
|
@keyframes ep-grain {
|
|
94
|
-
0% {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
108
|
+
0% {
|
|
109
|
+
transform: translate(0);
|
|
110
|
+
}
|
|
111
|
+
20% {
|
|
112
|
+
transform: translate(-6%, 4%);
|
|
113
|
+
}
|
|
114
|
+
40% {
|
|
115
|
+
transform: translate(5%, -7%);
|
|
116
|
+
}
|
|
117
|
+
60% {
|
|
118
|
+
transform: translate(-3%, 8%);
|
|
119
|
+
}
|
|
120
|
+
80% {
|
|
121
|
+
transform: translate(7%, 2%);
|
|
122
|
+
}
|
|
123
|
+
100% {
|
|
124
|
+
transform: translate(0);
|
|
125
|
+
}
|
|
100
126
|
}
|
|
101
127
|
|
|
102
128
|
/* ── Blueprint grid (lights up under the pointer when data-lit="true") ───────── */
|
|
@@ -122,7 +148,11 @@
|
|
|
122
148
|
transition: opacity 0.7s var(--ease);
|
|
123
149
|
}
|
|
124
150
|
&::before {
|
|
125
|
-
background-image: radial-gradient(
|
|
151
|
+
background-image: radial-gradient(
|
|
152
|
+
circle 380px at var(--mx, 70%) var(--my, 30%),
|
|
153
|
+
var(--glow),
|
|
154
|
+
transparent 70%
|
|
155
|
+
);
|
|
126
156
|
}
|
|
127
157
|
&::after {
|
|
128
158
|
background-image:
|
|
@@ -183,6 +213,10 @@
|
|
|
183
213
|
}
|
|
184
214
|
|
|
185
215
|
@keyframes ep-draw {
|
|
186
|
-
from {
|
|
187
|
-
|
|
216
|
+
from {
|
|
217
|
+
stroke-dashoffset: var(--len, 1000);
|
|
218
|
+
}
|
|
219
|
+
to {
|
|
220
|
+
stroke-dashoffset: 0;
|
|
221
|
+
}
|
|
188
222
|
}
|
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,19 @@
|
|
|
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);
|
|
142
|
+
/* No grey flash over whatever is tapped on a phone: every control has its own pressed state. */
|
|
143
|
+
-webkit-tap-highlight-color: transparent;
|
|
144
|
+
}
|
|
145
|
+
/* A tap acts at once: no wait to rule out a double-tap zoom on the things people press. */
|
|
146
|
+
button,
|
|
147
|
+
a,
|
|
148
|
+
[role="button"] {
|
|
149
|
+
touch-action: manipulation;
|
|
140
150
|
}
|
|
141
151
|
body {
|
|
142
|
-
background-color: var(--background);
|
|
143
152
|
color: var(--foreground);
|
|
144
153
|
font-family: var(--font-body);
|
|
145
154
|
font-size: 17px;
|
package/dist/styles/material.css
CHANGED
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
/* A press sinks in fast and rises back gently: the release eases over longer, on a softer curve
|
|
41
41
|
than the brand ease, so even a quick click is seen to press and settle. Reduced motion: 0. */
|
|
42
42
|
transition:
|
|
43
|
-
background-color calc(var(--duration) * 1.7)
|
|
44
|
-
color var(--duration) var(--ease),
|
|
45
|
-
box-shadow calc(var(--duration) * 1.7)
|
|
43
|
+
background-color calc(var(--duration-fade) * 1.7) var(--ease-glide),
|
|
44
|
+
color var(--duration-fade) var(--ease),
|
|
45
|
+
box-shadow calc(var(--duration-fade) * 1.7) var(--ease-glide),
|
|
46
46
|
var(--material-motion, padding 0s);
|
|
47
47
|
|
|
48
48
|
@media (hover: hover) {
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
background-color: var(--primary-fill-pressed);
|
|
57
57
|
box-shadow: var(--primary-shadow-pressed);
|
|
58
58
|
transition:
|
|
59
|
-
background-color calc(var(--duration) * 0.6)
|
|
60
|
-
color var(--duration) var(--ease),
|
|
61
|
-
box-shadow calc(var(--duration) * 0.6)
|
|
59
|
+
background-color calc(var(--duration-fade) * 0.6) var(--ease-glide),
|
|
60
|
+
color var(--duration-fade) var(--ease),
|
|
61
|
+
box-shadow calc(var(--duration-fade) * 0.6) var(--ease-glide),
|
|
62
62
|
var(--material-motion, padding 0s);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
/* A press sinks in fast and rises back gently: the release eases over longer, on a softer curve
|
|
78
78
|
than the brand ease, so even a quick click is seen to press and settle. Reduced motion: 0. */
|
|
79
79
|
transition:
|
|
80
|
-
background-color calc(var(--duration) * 1.7)
|
|
81
|
-
color var(--duration) var(--ease),
|
|
82
|
-
box-shadow calc(var(--duration) * 1.7)
|
|
80
|
+
background-color calc(var(--duration-fade) * 1.7) var(--ease-glide),
|
|
81
|
+
color var(--duration-fade) var(--ease),
|
|
82
|
+
box-shadow calc(var(--duration-fade) * 1.7) var(--ease-glide),
|
|
83
83
|
var(--material-motion, padding 0s);
|
|
84
84
|
|
|
85
85
|
@media (hover: hover) {
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
inset 0 2px 6px #00000047,
|
|
96
96
|
inset 0 0 0 1px var(--control-inner-edge);
|
|
97
97
|
transition:
|
|
98
|
-
background-color calc(var(--duration) * 0.6)
|
|
99
|
-
color var(--duration) var(--ease),
|
|
100
|
-
box-shadow calc(var(--duration) * 0.6)
|
|
98
|
+
background-color calc(var(--duration-fade) * 0.6) var(--ease-glide),
|
|
99
|
+
color var(--duration-fade) var(--ease),
|
|
100
|
+
box-shadow calc(var(--duration-fade) * 0.6) var(--ease-glide),
|
|
101
101
|
var(--material-motion, padding 0s);
|
|
102
102
|
}
|
|
103
103
|
&[data-popup-open] {
|
|
@@ -114,9 +114,9 @@
|
|
|
114
114
|
border: 1px solid transparent;
|
|
115
115
|
background-color: transparent;
|
|
116
116
|
transition:
|
|
117
|
-
background-color var(--duration) var(--ease),
|
|
118
|
-
color var(--duration) var(--ease),
|
|
119
|
-
box-shadow var(--duration) var(--ease),
|
|
117
|
+
background-color var(--duration-fade) var(--ease),
|
|
118
|
+
color var(--duration-fade) var(--ease),
|
|
119
|
+
box-shadow var(--duration-fade) var(--ease),
|
|
120
120
|
var(--material-motion, padding 0s);
|
|
121
121
|
|
|
122
122
|
@media (hover: hover) {
|
|
@@ -143,6 +143,17 @@
|
|
|
143
143
|
inset 0 1px 0 var(--control-highlight),
|
|
144
144
|
inset 0 0 0 1px var(--control-inner-edge);
|
|
145
145
|
}
|
|
146
|
+
/* Pressed, a row answers on pointer-down, as a button does: the fill a step below hover, sinking
|
|
147
|
+
in fast. */
|
|
148
|
+
&:not(:disabled, [data-disabled]):active {
|
|
149
|
+
color: var(--foreground);
|
|
150
|
+
background-color: var(--control-pressed);
|
|
151
|
+
transition:
|
|
152
|
+
background-color calc(var(--duration-fade) * 0.6) var(--ease-glide),
|
|
153
|
+
color var(--duration-fade) var(--ease),
|
|
154
|
+
box-shadow calc(var(--duration-fade) * 0.6) var(--ease-glide),
|
|
155
|
+
var(--material-motion, padding 0s);
|
|
156
|
+
}
|
|
146
157
|
}
|
|
147
158
|
|
|
148
159
|
/* ── Field (recessed) ──────────────────────────────────────────────────────── */
|
|
@@ -156,9 +167,9 @@
|
|
|
156
167
|
inset 0 1px 2px var(--field-inset),
|
|
157
168
|
0 1px 0 var(--control-highlight);
|
|
158
169
|
transition:
|
|
159
|
-
border-color var(--duration) var(--ease),
|
|
160
|
-
box-shadow var(--duration) var(--ease),
|
|
161
|
-
background-color var(--duration) var(--ease);
|
|
170
|
+
border-color var(--duration-fade) var(--ease),
|
|
171
|
+
box-shadow var(--duration-fade) var(--ease),
|
|
172
|
+
background-color var(--duration-fade) var(--ease);
|
|
162
173
|
|
|
163
174
|
/* Focus is a softer edge, not a ring: a focused text field — or a field holding one — and an
|
|
164
175
|
open select take a border halfway to --control-focus. A field that is a button (a select's
|
|
@@ -246,9 +257,12 @@
|
|
|
246
257
|
/* ── Popup motion (Base UI starting/ending styles) ─────────────────────────── */
|
|
247
258
|
|
|
248
259
|
@utility popup-motion {
|
|
260
|
+
/* From the trigger (Base UI's --transform-origin; a dialog has none and stays centred), from 97%
|
|
261
|
+
and transparent, never from nothing. Leaving takes 0.7 of arriving. Under reduced motion the
|
|
262
|
+
scale has no time to move and only the fade (--duration-fade) is left. */
|
|
249
263
|
transform-origin: var(--transform-origin);
|
|
250
264
|
transition:
|
|
251
|
-
opacity var(--duration) var(--ease),
|
|
265
|
+
opacity var(--duration-fade) var(--ease),
|
|
252
266
|
scale var(--duration) var(--ease),
|
|
253
267
|
translate var(--duration) var(--ease);
|
|
254
268
|
|
|
@@ -257,6 +271,12 @@
|
|
|
257
271
|
opacity: 0;
|
|
258
272
|
scale: 0.97;
|
|
259
273
|
}
|
|
274
|
+
&[data-ending-style] {
|
|
275
|
+
transition:
|
|
276
|
+
opacity calc(var(--duration-fade) * 0.7) var(--ease),
|
|
277
|
+
scale var(--duration-exit) var(--ease),
|
|
278
|
+
translate var(--duration-exit) var(--ease);
|
|
279
|
+
}
|
|
260
280
|
&[data-instant] {
|
|
261
281
|
transition: none;
|
|
262
282
|
}
|
|
@@ -287,7 +307,7 @@
|
|
|
287
307
|
text-decoration-line: underline;
|
|
288
308
|
text-decoration-color: color-mix(in oklab, var(--foreground) 35%, transparent);
|
|
289
309
|
text-underline-offset: 4px;
|
|
290
|
-
transition: text-decoration-color var(--duration) var(--ease);
|
|
310
|
+
transition: text-decoration-color var(--duration-fade) var(--ease);
|
|
291
311
|
|
|
292
312
|
&:hover {
|
|
293
313
|
text-decoration-color: var(--foreground);
|
|
@@ -295,16 +315,20 @@
|
|
|
295
315
|
}
|
|
296
316
|
|
|
297
317
|
@utility container-page {
|
|
318
|
+
--container-gutter: 24px;
|
|
298
319
|
width: 100%;
|
|
299
320
|
max-width: var(--container);
|
|
300
321
|
margin-inline: auto;
|
|
301
|
-
|
|
322
|
+
/* Never less than the safe area: a phone on its side keeps the column clear of the notch on a
|
|
323
|
+
page that draws under it (viewport-fit=cover). */
|
|
324
|
+
padding-left: max(var(--container-gutter), env(safe-area-inset-left, 0px));
|
|
325
|
+
padding-right: max(var(--container-gutter), env(safe-area-inset-right, 0px));
|
|
302
326
|
|
|
303
327
|
@media (width >= 40rem) {
|
|
304
|
-
|
|
328
|
+
--container-gutter: 40px;
|
|
305
329
|
}
|
|
306
330
|
@media (width >= 64rem) {
|
|
307
|
-
|
|
331
|
+
--container-gutter: 64px;
|
|
308
332
|
}
|
|
309
333
|
}
|
|
310
334
|
|
package/dist/styles/parts/ai.css
CHANGED
|
@@ -213,7 +213,8 @@
|
|
|
213
213
|
|
|
214
214
|
/* ── Reasoning: "Thinking…" shimmers ────────────────────────────────────────
|
|
215
215
|
* A brighter band moves through the muted label, left to right, every 1.6s; under reduced
|
|
216
|
-
* motion the label simply stays muted
|
|
216
|
+
* motion the label simply stays muted: it says it is thinking, and a pulse in its opacity would take
|
|
217
|
+
* the text below a readable contrast for part of each beat. */
|
|
217
218
|
[data-slot="reasoning-label"][data-streaming] {
|
|
218
219
|
background-image: linear-gradient(
|
|
219
220
|
90deg,
|
|
@@ -273,7 +274,8 @@
|
|
|
273
274
|
[data-slot="prompt-input"] :is([data-slot="input-group-control"], [data-slot="prompt-input-placeholder"]) {
|
|
274
275
|
grid-area: input;
|
|
275
276
|
min-height: 0;
|
|
276
|
-
|
|
277
|
+
/* One 24px line, centred in the control height inside the 1px border: 6px above and below at 38. */
|
|
278
|
+
padding: calc((var(--control-h) - 26px) / 2) 10px;
|
|
277
279
|
line-height: 24px;
|
|
278
280
|
}
|
|
279
281
|
[data-slot="prompt-input"] > [data-layout="inline"] [data-slot="input-group-control"] {
|