@eifi1/ui-kit 0.17.0 → 0.18.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/README.md +29 -4
- package/dist/chart.d.ts +10 -1
- package/dist/components/account-chips.d.ts +153 -0
- package/dist/components/account-chips.js +135 -0
- package/dist/components/account-chips.js.map +1 -0
- package/dist/components/account-settings-labels.d.ts +10 -2
- package/dist/components/account-settings-labels.js +3 -0
- package/dist/components/account-settings-labels.js.map +1 -1
- package/dist/components/amount-input.d.ts +10 -1
- package/dist/components/button-group.d.ts +10 -1
- package/dist/components/calculator.d.ts +10 -1
- package/dist/components/chip.d.ts +25 -1
- package/dist/components/chip.js +143 -6
- package/dist/components/chip.js.map +1 -1
- package/dist/components/confirm-dialog.d.ts +42 -1
- package/dist/components/confirm-dialog.js +36 -5
- package/dist/components/confirm-dialog.js.map +1 -1
- package/dist/components/copy-button.d.ts +10 -1
- package/dist/components/danger-confirm.d.ts +55 -4
- package/dist/components/danger-confirm.js +67 -30
- package/dist/components/danger-confirm.js.map +1 -1
- package/dist/components/data-table-cells.d.ts +1 -1
- package/dist/components/data-table-filter-popover.d.ts +1 -1
- package/dist/components/data-table-filters.d.ts +1 -1
- package/dist/components/data-table.d.ts +1 -1
- package/dist/components/data-table.js +2 -0
- package/dist/components/data-table.js.map +1 -1
- package/dist/components/facing-pair.d.ts +10 -1
- package/dist/components/file-button.d.ts +10 -1
- package/dist/components/file-dropzone.d.ts +10 -1
- package/dist/components/form-actions.d.ts +10 -1
- package/dist/components/form-actions.js +3 -0
- package/dist/components/form-actions.js.map +1 -1
- package/dist/components/money-field.d.ts +10 -1
- package/dist/components/number-field.d.ts +11 -2
- package/dist/components/number-field.js +23 -22
- package/dist/components/number-field.js.map +1 -1
- package/dist/components/number-input.d.ts +10 -1
- package/dist/components/numpad-sheet.d.ts +10 -1
- package/dist/components/passkeys-setting.d.ts +27 -1
- package/dist/components/passkeys-setting.js +31 -5
- package/dist/components/passkeys-setting.js.map +1 -1
- package/dist/components/progress-bar.d.ts +15 -1
- package/dist/components/progress-bar.js +8 -1
- package/dist/components/progress-bar.js.map +1 -1
- package/dist/components/reauth-dialog.d.ts +90 -0
- package/dist/components/reauth-dialog.js +158 -0
- package/dist/components/reauth-dialog.js.map +1 -0
- package/dist/components/series-chart.d.ts +10 -1
- package/dist/components/server-wake.d.ts +58 -0
- package/dist/components/server-wake.js +58 -0
- package/dist/components/server-wake.js.map +1 -0
- package/dist/components/settings-fields.d.ts +10 -1
- package/dist/components/share-card.d.ts +61 -0
- package/dist/components/share-card.js +350 -0
- package/dist/components/share-card.js.map +1 -0
- package/dist/components/status-dot.d.ts +2 -0
- package/dist/components/text-link.d.ts +10 -1
- package/dist/components/time-input.d.ts +10 -1
- package/dist/components/toast.d.ts +10 -1
- package/dist/components/toast.js +42 -2
- package/dist/components/toast.js.map +1 -1
- package/dist/components/toggle-group.js +5 -2
- package/dist/components/toggle-group.js.map +1 -1
- package/dist/components/ui.d.ts +10 -1
- package/dist/components/ui.js +43 -28
- package/dist/components/ui.js.map +1 -1
- package/dist/components/use-table-state.d.ts +1 -1
- package/dist/components/user-avatar.d.ts +2 -0
- package/dist/components/write-lock.d.ts +68 -0
- package/dist/components/write-lock.js +33 -0
- package/dist/components/write-lock.js.map +1 -0
- package/dist/{data-table-CpkWUJBY.d.ts → data-table-3mi2R3so.d.ts} +19 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/hooks/use-file-drop.d.ts +10 -1
- package/dist/hooks/use-overlay-history.js +16 -0
- package/dist/hooks/use-overlay-history.js.map +1 -1
- package/dist/i18n/defaults.d.ts +10 -1
- package/dist/i18n/defaults.js +11 -1
- package/dist/i18n/defaults.js.map +1 -1
- package/dist/i18n/german.d.ts +78 -0
- package/dist/i18n/{locales/de.js → german.js} +59 -9
- package/dist/i18n/german.js.map +1 -0
- package/dist/i18n/kit-labels.d.ts +10 -1
- package/dist/i18n/kit-labels.js +5 -0
- package/dist/i18n/kit-labels.js.map +1 -1
- package/dist/i18n/locales/de-CH.d.ts +23 -8
- package/dist/i18n/locales/de-CH.js +7 -3
- package/dist/i18n/locales/de-CH.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +10 -1
- package/dist/i18n/locales/es.d.ts +10 -1
- package/dist/i18n/locales/es.js +51 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +10 -1
- package/dist/i18n/locales/fr.js +51 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hu.d.ts +10 -1
- package/dist/i18n/locales/hu.js +54 -1
- package/dist/i18n/locales/hu.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +10 -1
- package/dist/i18n/locales/it.js +51 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +10 -1
- package/dist/i18n/locales/zh.js +50 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/i18n/swiss.d.ts +3 -3
- package/dist/i18n/swiss.js.map +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.js +33 -1
- package/dist/index.js.map +1 -1
- package/dist/{kit-labels-C4uB_zmg.d.ts → kit-labels-CPbsjlXr.d.ts} +229 -9
- package/dist/lib/server-wake.d.ts +130 -0
- package/dist/lib/server-wake.js +121 -0
- package/dist/lib/server-wake.js.map +1 -0
- package/dist/rhf/fields.d.ts +10 -1
- package/dist/rhf/form.d.ts +10 -1
- package/dist/rhf.d.ts +10 -1
- package/dist/search/global-search.d.ts +3 -1
- package/dist/search/global-search.js.map +1 -1
- package/dist/shell/app-shell.d.ts +10 -1
- package/dist/shell/top-bar-brand.d.ts +10 -1
- package/dist/shell/topbar-action-menu.d.ts +2 -0
- package/dist/shell.d.ts +10 -1
- package/dist/wizard/stepper-nav.d.ts +10 -1
- package/dist/wizard.d.ts +10 -1
- package/package.json +1 -1
- package/src/components/account-chips.tsx +302 -0
- package/src/components/account-settings-labels.ts +16 -2
- package/src/components/chip.tsx +239 -6
- package/src/components/confirm-dialog.tsx +82 -7
- package/src/components/danger-confirm.tsx +118 -33
- package/src/components/data-table.tsx +20 -0
- package/src/components/form-actions.tsx +22 -3
- package/src/components/number-field.tsx +32 -26
- package/src/components/passkeys-setting.tsx +68 -7
- package/src/components/progress-bar.tsx +21 -1
- package/src/components/reauth-dialog.tsx +273 -0
- package/src/components/server-wake.tsx +124 -0
- package/src/components/share-card.tsx +615 -0
- package/src/components/toast.tsx +72 -2
- package/src/components/toggle-group.tsx +5 -2
- package/src/components/ui.tsx +89 -32
- package/src/components/write-lock.tsx +96 -0
- package/src/hooks/use-overlay-history.ts +51 -0
- package/src/i18n/defaults.ts +10 -0
- package/src/i18n/{locales/de.ts → german.ts} +68 -13
- package/src/i18n/kit-labels.tsx +22 -2
- package/src/i18n/locales/de-CH.ts +17 -8
- package/src/i18n/locales/es.ts +51 -0
- package/src/i18n/locales/fr.ts +52 -0
- package/src/i18n/locales/hu.ts +55 -0
- package/src/i18n/locales/it.ts +51 -0
- package/src/i18n/locales/zh.ts +50 -0
- package/src/i18n/swiss.ts +3 -3
- package/src/index.ts +23 -1
- package/src/lib/server-wake.ts +270 -0
- package/src/search/global-search.tsx +3 -1
- package/dist/i18n/locales/de-CH-informal.d.ts +0 -61
- package/dist/i18n/locales/de-CH-informal.js +0 -8
- package/dist/i18n/locales/de-CH-informal.js.map +0 -1
- package/dist/i18n/locales/de-informal.d.ts +0 -82
- package/dist/i18n/locales/de-informal.js +0 -37
- package/dist/i18n/locales/de-informal.js.map +0 -1
- package/dist/i18n/locales/de.d.ts +0 -66
- package/dist/i18n/locales/de.js.map +0 -1
- package/src/i18n/locales/de-CH-informal.ts +0 -10
- package/src/i18n/locales/de-informal.ts +0 -61
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { UiKitLabels } from "../kit-labels";
|
|
2
|
-
import { swiss } from "../swiss";
|
|
3
|
-
import { uiKitLabelsDeInformal } from "./de-informal";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Swiss Standard German, informal ("du"): the informal German labels with Swiss
|
|
7
|
-
* spelling ("ss" for every "ß") and `de-CH` number formatting (1’234.5) — derived the
|
|
8
|
-
* same way `de-CH` is from `de`, so both stay in sync with their source.
|
|
9
|
-
*/
|
|
10
|
-
export const UI_KIT_LABELS_DE_CH_INFORMAL: UiKitLabels = swiss(uiKitLabelsDeInformal("de-CH"));
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import type { UiKitLabels } from "../kit-labels";
|
|
2
|
-
import { uiKitLabelsDe } from "./de";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The kit's words in informal German ("du"), for apps that address their users that way
|
|
6
|
-
* everywhere else: `<UiKitProvider labels={UI_KIT_LABELS_DE_INFORMAL}>`.
|
|
7
|
-
*
|
|
8
|
-
* Built on the formal catalogue ({@link uiKitLabelsDe}) rather than beside it: most of
|
|
9
|
-
* the kit's German never addresses anyone — buttons are infinitives ("Speichern"),
|
|
10
|
-
* status lines are impersonal ("Wird geladen…"), hints use the infinitive
|
|
11
|
-
* ("Mindestens 3 Zeichen eingeben", "Bitte erneut versuchen") — so it is the same text
|
|
12
|
-
* in both registers and stays in sync with `de.ts` by construction. Only the sentences
|
|
13
|
-
* that speak TO the user are rewritten here, by hand: du/Sie is grammar (verb forms,
|
|
14
|
-
* imperatives, possessives), not a substitution a regex could do.
|
|
15
|
-
*
|
|
16
|
-
* Every key of `de.ts` was reviewed. The overridden ones — the complete list of
|
|
17
|
-
* sentences that say "Sie" / "Ihr" / a Sie-imperative in the formal catalogue:
|
|
18
|
-
* - `miniCalendar.startSelected`, `miniCalendar.rangeSelected`
|
|
19
|
-
* - `dangerConfirm.phrase`
|
|
20
|
-
* - `wizard.confirmCancel`, `wizard.missingRequired`
|
|
21
|
-
* - `tour.awaitClickHint`
|
|
22
|
-
* - `signaturePad.instructions`, `signaturePad.typedFallbackHint`
|
|
23
|
-
*
|
|
24
|
-
* A key added to `de.ts` later is inherited as is; if it addresses the user, add its
|
|
25
|
-
* du form here (the "no formal address" test in locales.test.ts catches a "Sie").
|
|
26
|
-
* Conventions as in `de.ts`: „…“ quotes, `Intl` digits (via the `numberLocale`
|
|
27
|
-
* argument, e.g. `"de-AT"`), number agreement.
|
|
28
|
-
*/
|
|
29
|
-
export function uiKitLabelsDeInformal(numberLocale = "de-DE"): UiKitLabels {
|
|
30
|
-
const de = uiKitLabelsDe(numberLocale);
|
|
31
|
-
|
|
32
|
-
return {
|
|
33
|
-
...de,
|
|
34
|
-
miniCalendar: {
|
|
35
|
-
...de.miniCalendar,
|
|
36
|
-
startSelected: (date) => `${date} als Startdatum gewählt. Wähle jetzt ein Enddatum.`,
|
|
37
|
-
rangeSelected: (from, to) =>
|
|
38
|
-
`Zeitraum ${from} bis ${to} gewählt. Wähle ein Startdatum, um neu zu beginnen.`,
|
|
39
|
-
},
|
|
40
|
-
dangerConfirm: {
|
|
41
|
-
...de.dangerConfirm,
|
|
42
|
-
phrase: (phrase) => `Gib zur Bestätigung „${phrase}“ ein`,
|
|
43
|
-
},
|
|
44
|
-
wizard: {
|
|
45
|
-
...de.wizard,
|
|
46
|
-
confirmCancel: "Deine Eingaben gehen verloren.",
|
|
47
|
-
missingRequired: "Bitte fülle alle Pflichtfelder aus.",
|
|
48
|
-
},
|
|
49
|
-
tour: {
|
|
50
|
-
...de.tour,
|
|
51
|
-
awaitClickHint: "Klick auf das hervorgehobene Element, um fortzufahren",
|
|
52
|
-
},
|
|
53
|
-
signaturePad: {
|
|
54
|
-
...de.signaturePad,
|
|
55
|
-
instructions: "Unterschreibe im Feld mit der Maus, dem Finger oder einem Stift.",
|
|
56
|
-
typedFallbackHint: "Wenn du nicht zeichnen kannst, gib stattdessen deinen Namen ein.",
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export const UI_KIT_LABELS_DE_INFORMAL: UiKitLabels = uiKitLabelsDeInformal();
|