@praxical/ui 0.0.0-stage → 0.11.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 +21 -0
- package/README.md +23 -2
- package/dist/activity-calendar.d.ts +13 -0
- package/dist/activity-calendar.js +7 -0
- package/dist/activity-heatmap.d.ts +14 -0
- package/dist/activity-heatmap.js +13 -0
- package/dist/chart-data.d.ts +9 -0
- package/dist/chart-data.js +9 -0
- package/dist/charts.d.ts +56 -0
- package/dist/charts.js +424 -0
- package/dist/chunk-7RMPDKZV.js +541 -0
- package/dist/chunk-7RTW3X7C.js +142 -0
- package/dist/chunk-EBF2F3LN.js +1523 -0
- package/dist/chunk-FCYIZANU.js +385 -0
- package/dist/chunk-HMO4VQZN.js +58 -0
- package/dist/chunk-II677WPC.js +177 -0
- package/dist/chunk-KZHUBPY6.js +102 -0
- package/dist/chunk-OLGZOPLD.js +166 -0
- package/dist/chunk-PDSV773E.js +52 -0
- package/dist/chunk-Q4ARHP76.js +457 -0
- package/dist/chunk-U5W7O3QV.js +22 -0
- package/dist/chunk-V6MXR4P2.js +275 -0
- package/dist/chunk-VZZDLRM5.js +152 -0
- package/dist/chunk-WEM2UQPR.js +110 -0
- package/dist/chunk-XFNDEA5M.js +104 -0
- package/dist/chunk-YKFAA7GU.js +72 -0
- package/dist/code-editor.css +76 -0
- package/dist/code-editor.d.ts +44 -0
- package/dist/code-editor.js +287 -0
- package/dist/code-value.d.ts +13 -0
- package/dist/code-value.js +10 -0
- package/dist/code.d.ts +36 -0
- package/dist/code.js +198 -0
- package/dist/collection.d.ts +21 -0
- package/dist/collection.js +48 -0
- package/dist/content.d.ts +42 -0
- package/dist/content.js +122 -0
- package/dist/display.d.ts +58 -0
- package/dist/display.js +27 -0
- package/dist/feedback.d.ts +34 -0
- package/dist/feedback.js +184 -0
- package/dist/file-tree.d.ts +17 -0
- package/dist/file-tree.js +11 -0
- package/dist/forms.d.ts +69 -0
- package/dist/forms.js +273 -0
- package/dist/git-graph.d.ts +8 -0
- package/dist/git-graph.js +15 -0
- package/dist/git-layout.d.ts +24 -0
- package/dist/git-layout.js +7 -0
- package/dist/image-viewer.d.ts +18 -0
- package/dist/image-viewer.js +11 -0
- package/dist/index.d.ts +363 -0
- package/dist/index.js +98 -0
- package/dist/inputs.d.ts +112 -0
- package/dist/inputs.js +938 -0
- package/dist/layout.d.ts +56 -0
- package/dist/layout.js +180 -0
- package/dist/map-frame.d.ts +37 -0
- package/dist/map-frame.js +13 -0
- package/dist/media.d.ts +40 -0
- package/dist/media.js +19 -0
- package/dist/network-layout.d.ts +94 -0
- package/dist/network-layout.js +19 -0
- package/dist/network.d.ts +111 -0
- package/dist/network.js +354 -0
- package/dist/overlays.d.ts +95 -0
- package/dist/overlays.js +25 -0
- package/dist/patterns.d.ts +117 -0
- package/dist/patterns.js +387 -0
- package/dist/power-layout.d.ts +91 -0
- package/dist/power-layout.js +13 -0
- package/dist/power.d.ts +91 -0
- package/dist/power.js +353 -0
- package/dist/signal-context.d.ts +11 -0
- package/dist/signal-context.js +15 -0
- package/dist/strings-es-419.d.ts +13 -0
- package/dist/strings-es-419.js +357 -0
- package/dist/strings-fr.d.ts +15 -0
- package/dist/strings-fr.js +359 -0
- package/dist/strings-ja.d.ts +16 -0
- package/dist/strings-ja.js +357 -0
- package/dist/strings-pt-BR.d.ts +13 -0
- package/dist/strings-pt-BR.js +357 -0
- package/dist/strings.d.ts +394 -0
- package/dist/strings.js +15 -0
- package/dist/styles.css +2 -0
- package/dist/tab-bar.d.ts +20 -0
- package/dist/tab-bar.js +114 -0
- package/package.json +199 -3
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
/** Every user-visible and screen-reader string the library renders itself.
|
|
2
|
+
*
|
|
3
|
+
* Components read this table through `useSignalStrings()`; applications
|
|
4
|
+
* override any part of it with the `strings` prop on `SignalProvider`.
|
|
5
|
+
* Strings that need a value are functions with typed arguments, never
|
|
6
|
+
* templates assembled from fragments, so a translation can reorder them.
|
|
7
|
+
* Anything a caller already passes in (labels, titles, captions) is the
|
|
8
|
+
* application's own text and is not in this table.
|
|
9
|
+
*
|
|
10
|
+
* Numbers, dates, relative times and percentages are formatted with `Intl`
|
|
11
|
+
* from the provider's `locale`; they are deliberately absent here. */
|
|
12
|
+
export interface SignalStrings {
|
|
13
|
+
appearance: {
|
|
14
|
+
label: string;
|
|
15
|
+
system: string;
|
|
16
|
+
light: string;
|
|
17
|
+
dark: string;
|
|
18
|
+
};
|
|
19
|
+
density: {
|
|
20
|
+
label: string;
|
|
21
|
+
comfortable: string;
|
|
22
|
+
compact: string;
|
|
23
|
+
editor: string;
|
|
24
|
+
};
|
|
25
|
+
face: {
|
|
26
|
+
label: string;
|
|
27
|
+
control: string;
|
|
28
|
+
sans: string;
|
|
29
|
+
chrome: string;
|
|
30
|
+
mono: string;
|
|
31
|
+
};
|
|
32
|
+
statusBar: {
|
|
33
|
+
label: string;
|
|
34
|
+
};
|
|
35
|
+
select: {
|
|
36
|
+
placeholder: string;
|
|
37
|
+
};
|
|
38
|
+
combobox: {
|
|
39
|
+
placeholder: string;
|
|
40
|
+
empty: string;
|
|
41
|
+
clear: (label: string) => string;
|
|
42
|
+
showOptions: (label: string) => string;
|
|
43
|
+
};
|
|
44
|
+
pane: {
|
|
45
|
+
collapse: string;
|
|
46
|
+
expand: string;
|
|
47
|
+
};
|
|
48
|
+
dialog: {
|
|
49
|
+
close: string;
|
|
50
|
+
cancel: string;
|
|
51
|
+
};
|
|
52
|
+
menu: {
|
|
53
|
+
options: (label: string) => string;
|
|
54
|
+
};
|
|
55
|
+
command: {
|
|
56
|
+
label: string;
|
|
57
|
+
description: string;
|
|
58
|
+
close: string;
|
|
59
|
+
inputLabel: string;
|
|
60
|
+
placeholder: string;
|
|
61
|
+
empty: string;
|
|
62
|
+
shortcut: string;
|
|
63
|
+
};
|
|
64
|
+
inbox: {
|
|
65
|
+
label: string;
|
|
66
|
+
close: string;
|
|
67
|
+
unreadBadge: (count: number) => string;
|
|
68
|
+
unreadCount: (count: number) => string;
|
|
69
|
+
empty: string;
|
|
70
|
+
unreadMark: string;
|
|
71
|
+
markRead: string;
|
|
72
|
+
dismiss: string;
|
|
73
|
+
};
|
|
74
|
+
panel: {
|
|
75
|
+
close: (title: string) => string;
|
|
76
|
+
};
|
|
77
|
+
picker: {
|
|
78
|
+
category: string;
|
|
79
|
+
allCategories: string;
|
|
80
|
+
search: (label: string) => string;
|
|
81
|
+
placeholder: string;
|
|
82
|
+
empty: string;
|
|
83
|
+
addReaction: string;
|
|
84
|
+
};
|
|
85
|
+
table: {
|
|
86
|
+
empty: string;
|
|
87
|
+
actions: string;
|
|
88
|
+
selectAll: string;
|
|
89
|
+
selectRow: (name: string) => string;
|
|
90
|
+
};
|
|
91
|
+
search: {
|
|
92
|
+
clear: string;
|
|
93
|
+
submit: string;
|
|
94
|
+
noSuggestions: string;
|
|
95
|
+
shortcutControl: string;
|
|
96
|
+
shortcutCommand: string;
|
|
97
|
+
};
|
|
98
|
+
pagination: {
|
|
99
|
+
label: string;
|
|
100
|
+
previous: string;
|
|
101
|
+
next: string;
|
|
102
|
+
page: (page: number) => string;
|
|
103
|
+
summary: (page: number, total: number) => string;
|
|
104
|
+
none: string;
|
|
105
|
+
};
|
|
106
|
+
breadcrumbs: {
|
|
107
|
+
label: string;
|
|
108
|
+
};
|
|
109
|
+
accordion: {
|
|
110
|
+
label: string;
|
|
111
|
+
};
|
|
112
|
+
progress: {
|
|
113
|
+
indeterminate: string;
|
|
114
|
+
};
|
|
115
|
+
loading: {
|
|
116
|
+
label: string;
|
|
117
|
+
table: string;
|
|
118
|
+
};
|
|
119
|
+
collection: {
|
|
120
|
+
error: string;
|
|
121
|
+
retry: string;
|
|
122
|
+
};
|
|
123
|
+
form: {
|
|
124
|
+
errors: string;
|
|
125
|
+
};
|
|
126
|
+
input: {
|
|
127
|
+
clear: string;
|
|
128
|
+
};
|
|
129
|
+
password: {
|
|
130
|
+
show: string;
|
|
131
|
+
hide: string;
|
|
132
|
+
};
|
|
133
|
+
tagInput: {
|
|
134
|
+
placeholder: string;
|
|
135
|
+
};
|
|
136
|
+
tag: {
|
|
137
|
+
remove: string;
|
|
138
|
+
};
|
|
139
|
+
banner: {
|
|
140
|
+
dismiss: string;
|
|
141
|
+
};
|
|
142
|
+
toast: {
|
|
143
|
+
dismiss: string;
|
|
144
|
+
};
|
|
145
|
+
slider: {
|
|
146
|
+
minimum: (label: string) => string;
|
|
147
|
+
maximum: (label: string) => string;
|
|
148
|
+
};
|
|
149
|
+
numberField: {
|
|
150
|
+
decrease: (label: string) => string;
|
|
151
|
+
increase: (label: string) => string;
|
|
152
|
+
};
|
|
153
|
+
stepper: {
|
|
154
|
+
label: string;
|
|
155
|
+
step: (index: number, total: number, label: string) => string;
|
|
156
|
+
position: (index: number, total: number) => string;
|
|
157
|
+
};
|
|
158
|
+
eventState: {
|
|
159
|
+
complete: string;
|
|
160
|
+
current: string;
|
|
161
|
+
pending: string;
|
|
162
|
+
failed: string;
|
|
163
|
+
};
|
|
164
|
+
calendar: {
|
|
165
|
+
monthGrid: string;
|
|
166
|
+
chooseMonth: string;
|
|
167
|
+
year: string;
|
|
168
|
+
previousMonth: string;
|
|
169
|
+
nextMonth: string;
|
|
170
|
+
chooseDate: string;
|
|
171
|
+
clearDate: string;
|
|
172
|
+
chooseRange: string;
|
|
173
|
+
clearRange: string;
|
|
174
|
+
applyRange: string;
|
|
175
|
+
rangeStart: (label: string) => string;
|
|
176
|
+
rangeEnd: (label: string) => string;
|
|
177
|
+
rangeDisplay: (from: string, to: string | undefined) => string;
|
|
178
|
+
fieldValue: (label: string, value: string) => string;
|
|
179
|
+
datePlaceholder: string;
|
|
180
|
+
dateError: (min?: string, max?: string) => string;
|
|
181
|
+
time: string;
|
|
182
|
+
today: (date: string) => string;
|
|
183
|
+
selected: (date: string) => string;
|
|
184
|
+
};
|
|
185
|
+
dropzone: {
|
|
186
|
+
label: string;
|
|
187
|
+
choose: string;
|
|
188
|
+
tooMany: (max: number) => string;
|
|
189
|
+
rejected: (name: string) => string;
|
|
190
|
+
};
|
|
191
|
+
otp: {
|
|
192
|
+
label: string;
|
|
193
|
+
digit: (label: string, index: number, total: number) => string;
|
|
194
|
+
hint: (length: number) => string;
|
|
195
|
+
};
|
|
196
|
+
fileTree: {
|
|
197
|
+
label: string;
|
|
198
|
+
empty: string;
|
|
199
|
+
};
|
|
200
|
+
git: {
|
|
201
|
+
label: string;
|
|
202
|
+
empty: string;
|
|
203
|
+
parents: (ids: string) => string;
|
|
204
|
+
root: string;
|
|
205
|
+
hint: string;
|
|
206
|
+
};
|
|
207
|
+
code: {
|
|
208
|
+
label: string;
|
|
209
|
+
copy: string;
|
|
210
|
+
copied: string;
|
|
211
|
+
copyFailed: string;
|
|
212
|
+
};
|
|
213
|
+
diff: {
|
|
214
|
+
label: string;
|
|
215
|
+
before: string;
|
|
216
|
+
after: string;
|
|
217
|
+
unified: (label: string) => string;
|
|
218
|
+
none: string;
|
|
219
|
+
};
|
|
220
|
+
network: {
|
|
221
|
+
health: {
|
|
222
|
+
up: string;
|
|
223
|
+
problem: string;
|
|
224
|
+
down: string;
|
|
225
|
+
off: string;
|
|
226
|
+
unknown: string;
|
|
227
|
+
};
|
|
228
|
+
/** Printed under a shut-down port. */
|
|
229
|
+
portOff: string;
|
|
230
|
+
/** Speed classes, slowest first, for the faceplate key. */
|
|
231
|
+
tiers: readonly [string, string, string, string, string];
|
|
232
|
+
upUnknownSpeed: string;
|
|
233
|
+
mustStayUp: string;
|
|
234
|
+
faceplateLegend: string;
|
|
235
|
+
map: string;
|
|
236
|
+
mapLegend: string;
|
|
237
|
+
mapHint: string;
|
|
238
|
+
empty: string;
|
|
239
|
+
faster: string;
|
|
240
|
+
wireless: string;
|
|
241
|
+
measured: string;
|
|
242
|
+
declared: string;
|
|
243
|
+
link: (state: string) => string;
|
|
244
|
+
};
|
|
245
|
+
map: {
|
|
246
|
+
zoomIn: string;
|
|
247
|
+
zoomOut: string;
|
|
248
|
+
fit: string;
|
|
249
|
+
};
|
|
250
|
+
power: {
|
|
251
|
+
map: string;
|
|
252
|
+
mapLegend: string;
|
|
253
|
+
mapHint: string;
|
|
254
|
+
empty: string;
|
|
255
|
+
/** The source card's label when the product gives none. */
|
|
256
|
+
source: string;
|
|
257
|
+
watts: (value: string) => string;
|
|
258
|
+
kilowatts: (value: string) => string;
|
|
259
|
+
amps: (value: string) => string;
|
|
260
|
+
/** A number that is an estimate, and one that is only a lower bound. */
|
|
261
|
+
estimated: (value: string) => string;
|
|
262
|
+
partial: (value: string) => string;
|
|
263
|
+
unknown: string;
|
|
264
|
+
free: (value: string) => string;
|
|
265
|
+
over: (value: string) => string;
|
|
266
|
+
circuits: (count: number) => string;
|
|
267
|
+
share: (percent: string, capacity: string) => string;
|
|
268
|
+
overLimit: (percent: string) => string;
|
|
269
|
+
overLimitKey: string;
|
|
270
|
+
overRating: string;
|
|
271
|
+
alert: string;
|
|
272
|
+
current: string;
|
|
273
|
+
nothing: string;
|
|
274
|
+
measured: string;
|
|
275
|
+
estimatedKey: string;
|
|
276
|
+
partialKey: string;
|
|
277
|
+
animate: string;
|
|
278
|
+
};
|
|
279
|
+
heatmap: {
|
|
280
|
+
less: string;
|
|
281
|
+
more: string;
|
|
282
|
+
cell: (label: string, value: string) => string;
|
|
283
|
+
};
|
|
284
|
+
codeValue: {
|
|
285
|
+
copy: (label: string) => string;
|
|
286
|
+
copying: (label: string) => string;
|
|
287
|
+
copied: (label: string) => string;
|
|
288
|
+
failed: (label: string) => string;
|
|
289
|
+
};
|
|
290
|
+
imageViewer: {
|
|
291
|
+
title: string;
|
|
292
|
+
fit: string;
|
|
293
|
+
zoom: string;
|
|
294
|
+
close: string;
|
|
295
|
+
fullSize: string;
|
|
296
|
+
swipe: string;
|
|
297
|
+
previous: string;
|
|
298
|
+
next: string;
|
|
299
|
+
position: (index: number, total: number) => string;
|
|
300
|
+
};
|
|
301
|
+
tabBar: {
|
|
302
|
+
add: string;
|
|
303
|
+
close: (name: string) => string;
|
|
304
|
+
closeHint: string;
|
|
305
|
+
};
|
|
306
|
+
audio: {
|
|
307
|
+
playbackFailed: string;
|
|
308
|
+
unavailable: string;
|
|
309
|
+
seek: (label: string) => string;
|
|
310
|
+
timeOf: (time: string, duration: string) => string;
|
|
311
|
+
volume: string;
|
|
312
|
+
play: (label: string) => string;
|
|
313
|
+
pause: (label: string) => string;
|
|
314
|
+
mute: string;
|
|
315
|
+
unmute: string;
|
|
316
|
+
muteAudio: string;
|
|
317
|
+
unmuteAudio: string;
|
|
318
|
+
speed: string;
|
|
319
|
+
speedValue: (rate: string) => string;
|
|
320
|
+
changeSpeed: string;
|
|
321
|
+
back: string;
|
|
322
|
+
forward: string;
|
|
323
|
+
seekHelp: (waveform: boolean) => string;
|
|
324
|
+
timestamp: string;
|
|
325
|
+
length: string;
|
|
326
|
+
codec: string;
|
|
327
|
+
unknown: string;
|
|
328
|
+
buffering: string;
|
|
329
|
+
transcript: string;
|
|
330
|
+
};
|
|
331
|
+
recording: {
|
|
332
|
+
status: (kind: "audio" | "video", state: "recording" | "paused" | "stopped") => string;
|
|
333
|
+
elapsed: (minutes: number, seconds: number) => string;
|
|
334
|
+
};
|
|
335
|
+
message: {
|
|
336
|
+
reactions: (author: string) => string;
|
|
337
|
+
reaction: (label: string, count: number, mine: boolean) => string;
|
|
338
|
+
openImage: (alt: string) => string;
|
|
339
|
+
delivery: {
|
|
340
|
+
sending: string;
|
|
341
|
+
sent: string;
|
|
342
|
+
delivered: string;
|
|
343
|
+
read: string;
|
|
344
|
+
failed: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
resource: {
|
|
348
|
+
summary: (label: string, segments: string, free: string, over: boolean) => string;
|
|
349
|
+
segment: (label: string, value: string) => string;
|
|
350
|
+
overCapacity: (amount: string) => string;
|
|
351
|
+
limit: (value: string) => string;
|
|
352
|
+
overLimit: (amount: string) => string;
|
|
353
|
+
};
|
|
354
|
+
chart: {
|
|
355
|
+
dailyGroup: (label: string) => string;
|
|
356
|
+
/** The visible line under a daily chart: the measurement and the period. */
|
|
357
|
+
dailyCaption: (label: string) => string;
|
|
358
|
+
/** Read with the plot: the period and how to inspect it by keyboard. */
|
|
359
|
+
dailyHelp: (label: string) => string;
|
|
360
|
+
dailyPlot: (label: string) => string;
|
|
361
|
+
tooltipDay: (day: string) => string;
|
|
362
|
+
notRecorded: string;
|
|
363
|
+
noMeasurements: string;
|
|
364
|
+
viewDaily: string;
|
|
365
|
+
dataRegion: (label: string) => string;
|
|
366
|
+
dataCaption: (label: string) => string;
|
|
367
|
+
dateHeader: string;
|
|
368
|
+
viewValues: string;
|
|
369
|
+
category: string;
|
|
370
|
+
sparkline: (label: string, count: number, latest: string) => string;
|
|
371
|
+
sparklineEmpty: (label: string) => string;
|
|
372
|
+
};
|
|
373
|
+
/** Labels and search keywords for the built-in reaction set, keyed by id. */
|
|
374
|
+
emoji: Record<string, {
|
|
375
|
+
label: string;
|
|
376
|
+
keywords: string;
|
|
377
|
+
}>;
|
|
378
|
+
}
|
|
379
|
+
/** A partial override, merged group by group over the defaults. */
|
|
380
|
+
export type SignalStringsInput = {
|
|
381
|
+
[K in keyof SignalStrings]?: Partial<SignalStrings[K]>;
|
|
382
|
+
};
|
|
383
|
+
export declare const defaultStrings: SignalStrings;
|
|
384
|
+
/** Merge a partial override over a base table, one group at a time. */
|
|
385
|
+
export declare function mergeStrings(base: SignalStrings, overrides?: SignalStringsInput): SignalStrings;
|
|
386
|
+
/** Month names for a locale, in CLDR's own casing — lower case in French and
|
|
387
|
+
* Portuguese, "9月" in Japanese — so a month button agrees with the caption
|
|
388
|
+
* beside it. Dates are never assembled from a static table. */
|
|
389
|
+
export declare function localeMonthNames(locale: string, style?: "long" | "short"): string[];
|
|
390
|
+
/** A day-of-month numeral in the locale's digits and nothing else: Japanese
|
|
391
|
+
* grid cells read "1", not "1日"; the counter belongs in the day's label. */
|
|
392
|
+
export declare function localeDayNumber(locale: string, date: Date): string;
|
|
393
|
+
/** The first day of the week for a locale, 0 = Sunday, as the calendars use it. */
|
|
394
|
+
export declare function localeFirstDayOfWeek(locale: string): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
package/dist/strings.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
defaultStrings,
|
|
4
|
+
localeDayNumber,
|
|
5
|
+
localeFirstDayOfWeek,
|
|
6
|
+
localeMonthNames,
|
|
7
|
+
mergeStrings
|
|
8
|
+
} from "./chunk-FCYIZANU.js";
|
|
9
|
+
export {
|
|
10
|
+
defaultStrings,
|
|
11
|
+
localeDayNumber,
|
|
12
|
+
localeFirstDayOfWeek,
|
|
13
|
+
localeMonthNames,
|
|
14
|
+
mergeStrings
|
|
15
|
+
};
|