@eifi1/ui-kit 0.16.1 → 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.
Files changed (186) hide show
  1. package/README.md +34 -9
  2. package/dist/chart.d.ts +10 -1
  3. package/dist/components/account-chips.d.ts +153 -0
  4. package/dist/components/account-chips.js +135 -0
  5. package/dist/components/account-chips.js.map +1 -0
  6. package/dist/components/account-settings-labels.d.ts +10 -2
  7. package/dist/components/account-settings-labels.js +3 -0
  8. package/dist/components/account-settings-labels.js.map +1 -1
  9. package/dist/components/amount-input.d.ts +18 -1
  10. package/dist/components/amount-input.js.map +1 -1
  11. package/dist/components/button-group.d.ts +10 -1
  12. package/dist/components/calculator.d.ts +10 -1
  13. package/dist/components/chip.d.ts +25 -1
  14. package/dist/components/chip.js +143 -6
  15. package/dist/components/chip.js.map +1 -1
  16. package/dist/components/confirm-dialog.d.ts +42 -1
  17. package/dist/components/confirm-dialog.js +36 -5
  18. package/dist/components/confirm-dialog.js.map +1 -1
  19. package/dist/components/copy-button.d.ts +10 -1
  20. package/dist/components/danger-confirm.d.ts +55 -4
  21. package/dist/components/danger-confirm.js +67 -30
  22. package/dist/components/danger-confirm.js.map +1 -1
  23. package/dist/components/data-table-cells.d.ts +1 -1
  24. package/dist/components/data-table-filter-popover.d.ts +1 -1
  25. package/dist/components/data-table-filters.d.ts +1 -1
  26. package/dist/components/data-table.d.ts +1 -1
  27. package/dist/components/data-table.js +93 -3
  28. package/dist/components/data-table.js.map +1 -1
  29. package/dist/components/facing-pair.d.ts +10 -1
  30. package/dist/components/file-button.d.ts +10 -1
  31. package/dist/components/file-dropzone.d.ts +10 -1
  32. package/dist/components/form-actions.d.ts +10 -1
  33. package/dist/components/form-actions.js +35 -1
  34. package/dist/components/form-actions.js.map +1 -1
  35. package/dist/components/line-items.d.ts +30 -6
  36. package/dist/components/line-items.js +77 -33
  37. package/dist/components/line-items.js.map +1 -1
  38. package/dist/components/list.d.ts +13 -1
  39. package/dist/components/list.js.map +1 -1
  40. package/dist/components/money-field.d.ts +10 -1
  41. package/dist/components/number-field.d.ts +11 -2
  42. package/dist/components/number-field.js +23 -22
  43. package/dist/components/number-field.js.map +1 -1
  44. package/dist/components/number-input.d.ts +10 -1
  45. package/dist/components/numpad-sheet.d.ts +10 -1
  46. package/dist/components/passkeys-setting.d.ts +27 -1
  47. package/dist/components/passkeys-setting.js +31 -5
  48. package/dist/components/passkeys-setting.js.map +1 -1
  49. package/dist/components/progress-bar.d.ts +25 -1
  50. package/dist/components/progress-bar.js +21 -4
  51. package/dist/components/progress-bar.js.map +1 -1
  52. package/dist/components/reauth-dialog.d.ts +90 -0
  53. package/dist/components/reauth-dialog.js +158 -0
  54. package/dist/components/reauth-dialog.js.map +1 -0
  55. package/dist/components/series-chart.d.ts +10 -1
  56. package/dist/components/server-wake.d.ts +58 -0
  57. package/dist/components/server-wake.js +58 -0
  58. package/dist/components/server-wake.js.map +1 -0
  59. package/dist/components/settings-fields.d.ts +10 -1
  60. package/dist/components/share-card.d.ts +61 -0
  61. package/dist/components/share-card.js +350 -0
  62. package/dist/components/share-card.js.map +1 -0
  63. package/dist/components/signed-amount.d.ts +12 -3
  64. package/dist/components/signed-amount.js +6 -4
  65. package/dist/components/signed-amount.js.map +1 -1
  66. package/dist/components/status-dot.d.ts +2 -0
  67. package/dist/components/text-link.d.ts +10 -1
  68. package/dist/components/time-input.d.ts +10 -1
  69. package/dist/components/toast.d.ts +10 -1
  70. package/dist/components/toast.js +42 -2
  71. package/dist/components/toast.js.map +1 -1
  72. package/dist/components/toggle-group.js +5 -2
  73. package/dist/components/toggle-group.js.map +1 -1
  74. package/dist/components/ui.d.ts +10 -1
  75. package/dist/components/ui.js +67 -30
  76. package/dist/components/ui.js.map +1 -1
  77. package/dist/components/use-table-state.d.ts +1 -1
  78. package/dist/components/user-avatar.d.ts +2 -0
  79. package/dist/components/write-lock.d.ts +68 -0
  80. package/dist/components/write-lock.js +33 -0
  81. package/dist/components/write-lock.js.map +1 -0
  82. package/dist/{data-table-CfVXtCeG.d.ts → data-table-3mi2R3so.d.ts} +59 -1
  83. package/dist/data-table.d.ts +1 -1
  84. package/dist/hooks/use-file-drop.d.ts +10 -1
  85. package/dist/hooks/use-overlay-history.js +16 -0
  86. package/dist/hooks/use-overlay-history.js.map +1 -1
  87. package/dist/i18n/defaults.d.ts +10 -1
  88. package/dist/i18n/defaults.js +11 -1
  89. package/dist/i18n/defaults.js.map +1 -1
  90. package/dist/i18n/german.d.ts +78 -0
  91. package/dist/i18n/{locales/de.js → german.js} +59 -9
  92. package/dist/i18n/german.js.map +1 -0
  93. package/dist/i18n/kit-labels.d.ts +10 -1
  94. package/dist/i18n/kit-labels.js +5 -0
  95. package/dist/i18n/kit-labels.js.map +1 -1
  96. package/dist/i18n/locales/de-CH.d.ts +23 -8
  97. package/dist/i18n/locales/de-CH.js +7 -3
  98. package/dist/i18n/locales/de-CH.js.map +1 -1
  99. package/dist/i18n/locales/{de.d.ts → en.d.ts} +24 -10
  100. package/dist/i18n/locales/en.js +95 -0
  101. package/dist/i18n/locales/en.js.map +1 -0
  102. package/dist/i18n/locales/es.d.ts +10 -1
  103. package/dist/i18n/locales/es.js +51 -1
  104. package/dist/i18n/locales/es.js.map +1 -1
  105. package/dist/i18n/locales/fr.d.ts +10 -1
  106. package/dist/i18n/locales/fr.js +51 -1
  107. package/dist/i18n/locales/fr.js.map +1 -1
  108. package/dist/i18n/locales/hu.d.ts +10 -1
  109. package/dist/i18n/locales/hu.js +54 -1
  110. package/dist/i18n/locales/hu.js.map +1 -1
  111. package/dist/i18n/locales/it.d.ts +10 -1
  112. package/dist/i18n/locales/it.js +51 -1
  113. package/dist/i18n/locales/it.js.map +1 -1
  114. package/dist/i18n/locales/zh.d.ts +10 -1
  115. package/dist/i18n/locales/zh.js +50 -1
  116. package/dist/i18n/locales/zh.js.map +1 -1
  117. package/dist/i18n/swiss.d.ts +3 -3
  118. package/dist/i18n/swiss.js.map +1 -1
  119. package/dist/index.d.ts +11 -6
  120. package/dist/index.js +33 -1
  121. package/dist/index.js.map +1 -1
  122. package/dist/{kit-labels-DE--LmCk.d.ts → kit-labels-CPbsjlXr.d.ts} +282 -10
  123. package/dist/lib/server-wake.d.ts +130 -0
  124. package/dist/lib/server-wake.js +121 -0
  125. package/dist/lib/server-wake.js.map +1 -0
  126. package/dist/rhf/fields.d.ts +10 -1
  127. package/dist/rhf/form.d.ts +10 -1
  128. package/dist/rhf/line-items.js.map +1 -1
  129. package/dist/rhf.d.ts +10 -1
  130. package/dist/search/global-search.d.ts +24 -4
  131. package/dist/search/global-search.js +31 -3
  132. package/dist/search/global-search.js.map +1 -1
  133. package/dist/search.d.ts +1 -1
  134. package/dist/shell/app-shell.d.ts +10 -1
  135. package/dist/shell/top-bar-brand.d.ts +10 -1
  136. package/dist/shell/topbar-action-menu.d.ts +2 -0
  137. package/dist/shell.d.ts +10 -1
  138. package/dist/wizard/stepper-nav.d.ts +10 -1
  139. package/dist/wizard.d.ts +10 -1
  140. package/package.json +1 -1
  141. package/src/components/account-chips.tsx +302 -0
  142. package/src/components/account-settings-labels.ts +16 -2
  143. package/src/components/amount-input.tsx +8 -0
  144. package/src/components/chip.tsx +239 -6
  145. package/src/components/confirm-dialog.tsx +82 -7
  146. package/src/components/danger-confirm.tsx +118 -33
  147. package/src/components/data-table.tsx +185 -3
  148. package/src/components/form-actions.tsx +93 -4
  149. package/src/components/line-items.tsx +116 -40
  150. package/src/components/list.tsx +13 -1
  151. package/src/components/number-field.tsx +32 -26
  152. package/src/components/passkeys-setting.tsx +68 -7
  153. package/src/components/progress-bar.tsx +40 -4
  154. package/src/components/reauth-dialog.tsx +273 -0
  155. package/src/components/server-wake.tsx +124 -0
  156. package/src/components/share-card.tsx +615 -0
  157. package/src/components/signed-amount.tsx +16 -5
  158. package/src/components/toast.tsx +72 -2
  159. package/src/components/toggle-group.tsx +5 -2
  160. package/src/components/ui.tsx +145 -34
  161. package/src/components/write-lock.tsx +96 -0
  162. package/src/hooks/use-overlay-history.ts +51 -0
  163. package/src/i18n/defaults.ts +10 -0
  164. package/src/i18n/{locales/de.ts → german.ts} +68 -13
  165. package/src/i18n/kit-labels.tsx +22 -2
  166. package/src/i18n/locales/de-CH.ts +17 -8
  167. package/src/i18n/locales/en.ts +116 -0
  168. package/src/i18n/locales/es.ts +51 -0
  169. package/src/i18n/locales/fr.ts +52 -0
  170. package/src/i18n/locales/hu.ts +55 -0
  171. package/src/i18n/locales/it.ts +51 -0
  172. package/src/i18n/locales/zh.ts +50 -0
  173. package/src/i18n/swiss.ts +3 -3
  174. package/src/index.ts +23 -1
  175. package/src/lib/server-wake.ts +270 -0
  176. package/src/rhf/line-items.tsx +2 -1
  177. package/src/search/global-search.tsx +59 -6
  178. package/dist/i18n/locales/de-CH-informal.d.ts +0 -61
  179. package/dist/i18n/locales/de-CH-informal.js +0 -8
  180. package/dist/i18n/locales/de-CH-informal.js.map +0 -1
  181. package/dist/i18n/locales/de-informal.d.ts +0 -82
  182. package/dist/i18n/locales/de-informal.js +0 -37
  183. package/dist/i18n/locales/de-informal.js.map +0 -1
  184. package/dist/i18n/locales/de.js.map +0 -1
  185. package/src/i18n/locales/de-CH-informal.ts +0 -10
  186. package/src/i18n/locales/de-informal.ts +0 -61
@@ -0,0 +1,158 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { useContext, useEffect, useId, useRef, useState } from "react";
4
+ import { useKitLabels } from "../i18n/kit-labels.js";
5
+ import { usePromisePending } from "./danger-confirm.js";
6
+ import { DialogFrame } from "./dialog-frame.js";
7
+ import { ModalCloseContext } from "./modal.js";
8
+ import { Button, Input, Spinner } from "./ui.js";
9
+ const DEFAULT_REAUTH_DIALOG_LABELS = {
10
+ title: "Confirm it\u2019s you",
11
+ description: "Enter your current password to continue.",
12
+ password: "Current password",
13
+ submit: "Continue",
14
+ cancel: "Cancel"
15
+ };
16
+ function ReauthDialog({
17
+ onSubmit,
18
+ onClose,
19
+ error,
20
+ busy: busyProp,
21
+ title,
22
+ description,
23
+ submitLabel,
24
+ tone = "neutral",
25
+ children,
26
+ open,
27
+ labels: labelsProp
28
+ }) {
29
+ const labels = useKitLabels("reauthDialog", DEFAULT_REAUTH_DIALOG_LABELS, labelsProp);
30
+ const [password, setPassword] = useState("");
31
+ const [edited, setEdited] = useState(false);
32
+ const { pending, run } = usePromisePending();
33
+ const busy = Boolean(busyProp) || pending;
34
+ const inputRef = useRef(null);
35
+ const [done, setDone] = useState(false);
36
+ const confirmed = useRef(false);
37
+ const formId = useId();
38
+ const isOpen = open ?? true;
39
+ const [wasOpen, setWasOpen] = useState(isOpen);
40
+ if (wasOpen !== isOpen) {
41
+ setWasOpen(isOpen);
42
+ if (!isOpen) {
43
+ setPassword("");
44
+ setEdited(false);
45
+ setDone(false);
46
+ }
47
+ }
48
+ useEffect(() => {
49
+ if (!isOpen) return;
50
+ confirmed.current = false;
51
+ inputRef.current?.focus();
52
+ }, [isOpen]);
53
+ const submit = () => {
54
+ if (busy || password === "") return;
55
+ setEdited(false);
56
+ run(onSubmit(password), () => {
57
+ confirmed.current = true;
58
+ setDone(true);
59
+ });
60
+ };
61
+ const wasPending = useRef(false);
62
+ useEffect(() => {
63
+ if (wasPending.current && !pending && !done) inputRef.current?.select();
64
+ wasPending.current = pending;
65
+ }, [pending, done]);
66
+ const shownError = edited ? void 0 : error;
67
+ return /* @__PURE__ */ jsxs(
68
+ DialogFrame,
69
+ {
70
+ open,
71
+ title: title ?? labels.title,
72
+ description: description ?? labels.description,
73
+ onClose: () => onClose(confirmed.current),
74
+ onKeyDown: (e) => {
75
+ if (busy && e.key === "Escape") e.preventDefault();
76
+ },
77
+ "aria-busy": busy || void 0,
78
+ actions: /* @__PURE__ */ jsx(
79
+ ReauthActions,
80
+ {
81
+ formId,
82
+ done,
83
+ busy,
84
+ canSubmit: password !== "",
85
+ danger: tone === "danger",
86
+ cancelLabel: labels.cancel,
87
+ submitLabel: submitLabel ?? labels.submit
88
+ }
89
+ ),
90
+ children: [
91
+ children,
92
+ /* @__PURE__ */ jsx(
93
+ "form",
94
+ {
95
+ id: formId,
96
+ noValidate: true,
97
+ onSubmit: (e) => {
98
+ e.preventDefault();
99
+ submit();
100
+ },
101
+ children: /* @__PURE__ */ jsx(
102
+ Input,
103
+ {
104
+ ref: inputRef,
105
+ type: "password",
106
+ autoComplete: "current-password",
107
+ label: labels.password,
108
+ value: password,
109
+ readOnly: busy,
110
+ error: shownError,
111
+ onChange: (e) => {
112
+ setPassword(e.target.value);
113
+ setEdited(true);
114
+ }
115
+ }
116
+ )
117
+ }
118
+ )
119
+ ]
120
+ }
121
+ );
122
+ }
123
+ function ReauthActions({
124
+ formId,
125
+ done,
126
+ busy,
127
+ canSubmit,
128
+ danger,
129
+ cancelLabel,
130
+ submitLabel
131
+ }) {
132
+ const close = useContext(ModalCloseContext);
133
+ useEffect(() => {
134
+ if (done) close?.();
135
+ }, [done, close]);
136
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
137
+ /* @__PURE__ */ jsx(Button, { type: "button", variant: "ghost", disabled: busy, onClick: () => close?.(), children: cancelLabel }),
138
+ /* @__PURE__ */ jsxs(
139
+ Button,
140
+ {
141
+ type: "submit",
142
+ form: formId,
143
+ variant: danger ? "danger" : "primary",
144
+ disabled: !canSubmit || busy,
145
+ "aria-busy": busy || void 0,
146
+ children: [
147
+ busy && /* @__PURE__ */ jsx(Spinner, { label: null, className: "h-4 w-4" }),
148
+ submitLabel
149
+ ]
150
+ }
151
+ )
152
+ ] });
153
+ }
154
+ export {
155
+ DEFAULT_REAUTH_DIALOG_LABELS,
156
+ ReauthDialog
157
+ };
158
+ //# sourceMappingURL=reauth-dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/reauth-dialog.tsx"],"sourcesContent":["import { useContext, useEffect, useId, useRef, useState } from \"react\";\nimport type { KeyboardEvent, ReactNode } from \"react\";\n\nimport { useKitLabels } from \"../i18n/kit-labels\";\nimport { usePromisePending } from \"./danger-confirm\";\nimport { DialogFrame } from \"./dialog-frame\";\nimport { ModalCloseContext } from \"./modal\";\nimport { Button, Input, Spinner } from \"./ui\";\n\n/**\n * Every string the dialog renders — the `reauthDialog` namespace of\n * `<UiKitProvider labels>`, and overridable per instance through `labels`. The title,\n * description and submit button are usually worded per action (\"Add a passkey\"),\n * which is what the `title` / `description` / `submitLabel` props are for; these are\n * the fallbacks.\n */\nexport interface ReauthDialogLabels {\n title: string;\n description: string;\n /** Label of the password field. */\n password: string;\n submit: string;\n cancel: string;\n}\n\nexport const DEFAULT_REAUTH_DIALOG_LABELS: ReauthDialogLabels = {\n title: \"Confirm it’s you\",\n description: \"Enter your current password to continue.\",\n password: \"Current password\",\n submit: \"Continue\",\n cancel: \"Cancel\",\n};\n\nexport interface ReauthDialogProps {\n /**\n * Verifies the password — the app's call, e.g. the request the password guards.\n *\n * Return a promise and the dialog manages itself: busy until it settles, closes\n * (`onClose(true)`) when it resolves, STAYS OPEN with the password kept and selected\n * when it rejects — a wrong password is a typo to correct, not a sign-out. Pass the\n * reason as `error`. Return nothing and the app owns the rest: `busy` for the\n * pending state, unmounting the dialog once it is done.\n */\n onSubmit: (password: string) => void | Promise<unknown>;\n /**\n * The dialog has closed: `true` after a resolved `onSubmit`, `false` for Cancel,\n * Escape, the backdrop and Back. A dismissal while `onSubmit` is still running also\n * answers `false`, and that call's late result is then ignored.\n */\n onClose: (confirmed: boolean) => void;\n /**\n * Why the last attempt failed (\"Wrong password\"), shown under the field, which turns\n * invalid (`aria-invalid`, `--danger-border-strong`). The app decides the wording —\n * a 400 is a wrong password, a 500 is not. Hidden again as soon as the user edits\n * the field (the message is about the password they had typed), and shown again by\n * the next failed submit.\n */\n error?: ReactNode;\n /** The check is running, for a caller that tracks it itself (a mutation's\n * `isPending`); a promise returned from `onSubmit` does the same on its own. */\n busy?: boolean;\n /** Default: `labels.title` — \"Confirm it’s you\". */\n title?: ReactNode;\n /** The line under the title. Default: `labels.description`. */\n description?: ReactNode;\n /** Text of the submit button. Default: `labels.submit` — \"Continue\". */\n submitLabel?: ReactNode;\n /** `\"danger\"` when what the password unlocks cannot be undone: the submit is then the\n * destructive button. Default `\"neutral\"`. */\n tone?: \"neutral\" | \"danger\";\n /** Extra body above the field — what is about to happen, a warning. */\n children?: ReactNode;\n /** Kept-mounted mode, as on `Modal`: left out, the dialog is open while mounted. A\n * flip to `false` animates it out and wipes the password. */\n open?: boolean;\n /** User-facing strings; see {@link ReauthDialogLabels}. */\n labels?: Partial<ReauthDialogLabels>;\n}\n\n/**\n * \"Enter your current password to continue\" — the step-up check in front of an\n * action that changes how an account signs in (adding a passkey) or what it can\n * reach. Kurvenschmiede asked for the password before registering a passkey in a\n * dialog of its own; keksdose asks for it inline in `DangerConfirm`'s\n * `requirePassword` tile. Both are the same three facts — the field is the CURRENT\n * password (the password manager fills it, never generates one), a wrong one stays in\n * the dialog with its error, and the APP verifies it — so the promise handling is\n * `DangerConfirm`'s own, shared, the field is its `CurrentPasswordInput` spelled out\n * with an `error`, and this is the modal form of them.\n *\n * A component rather than a `useReauth()` promise: the step that follows the check\n * (Kurvenschmiede's WebAuthn ceremony) needs what the server answered, and the error\n * wording needs the app's own status codes — both already live in the app's mutation,\n * which this dialog only has to be handed (`onSubmit={(pw) => begin.mutateAsync(pw)}`,\n * `error={…}`).\n *\n * The field is a `<form>`, so Enter submits once something is typed. Focus starts in\n * the field and returns to the trigger through `Modal`'s trap. While a check runs,\n * the field is read-only, Cancel is disabled and Escape is held: a request that has\n * left cannot be cancelled by closing the dialog, and the dialog should not pretend it\n * can.\n */\nexport function ReauthDialog({\n onSubmit,\n onClose,\n error,\n busy: busyProp,\n title,\n description,\n submitLabel,\n tone = \"neutral\",\n children,\n open,\n labels: labelsProp,\n}: ReauthDialogProps) {\n const labels = useKitLabels(\"reauthDialog\", DEFAULT_REAUTH_DIALOG_LABELS, labelsProp);\n const [password, setPassword] = useState(\"\");\n // The error describes the password that was submitted; once the user edits it, it\n // describes nothing on screen. Cleared by the next submit, so a second failure with\n // the same message shows again.\n const [edited, setEdited] = useState(false);\n const { pending, run } = usePromisePending();\n const busy = Boolean(busyProp) || pending;\n const inputRef = useRef<HTMLInputElement>(null);\n // `onSubmit` resolved: the actions row lowers the panel (state, so it re-renders),\n // and `onClose` answers true (a ref, because `Modal` may call the `onClose` it saw\n // BEFORE that re-render — its latest-callback ref is refreshed in an effect that runs\n // after the actions row's).\n const [done, setDone] = useState(false);\n const confirmed = useRef(false);\n const formId = useId();\n const isOpen = open ?? true;\n\n // A close (kept-mounted) wipes the password: it must not sit in a hidden dialog.\n // During render, like DangerConfirm's disarm, so no frame holds it.\n const [wasOpen, setWasOpen] = useState(isOpen);\n if (wasOpen !== isOpen) {\n setWasOpen(isOpen);\n if (!isOpen) {\n setPassword(\"\");\n setEdited(false);\n setDone(false);\n }\n }\n\n // After `Modal`'s own effect (a parent's effects run after its children's), so the\n // trap has recorded the trigger as its restore target before focus moves in.\n useEffect(() => {\n if (!isOpen) return;\n confirmed.current = false;\n inputRef.current?.focus();\n }, [isOpen]);\n\n const submit = () => {\n if (busy || password === \"\") return;\n setEdited(false);\n run(onSubmit(password), () => {\n confirmed.current = true;\n setDone(true);\n });\n };\n\n // A rejection leaves focus where it was (the field, or the submit button) — select\n // the password there so the retry replaces it rather than appending to it.\n const wasPending = useRef(false);\n useEffect(() => {\n if (wasPending.current && !pending && !done) inputRef.current?.select();\n wasPending.current = pending;\n }, [pending, done]);\n\n const shownError = edited ? undefined : error;\n\n return (\n <DialogFrame\n open={open}\n title={title ?? labels.title}\n description={description ?? labels.description}\n onClose={() => onClose(confirmed.current)}\n onKeyDown={(e: KeyboardEvent<HTMLDivElement>) => {\n if (busy && e.key === \"Escape\") e.preventDefault();\n }}\n aria-busy={busy || undefined}\n actions={\n <ReauthActions\n formId={formId}\n done={done}\n busy={busy}\n canSubmit={password !== \"\"}\n danger={tone === \"danger\"}\n cancelLabel={labels.cancel}\n submitLabel={submitLabel ?? labels.submit}\n />\n }\n >\n {children}\n <form\n id={formId}\n noValidate\n onSubmit={(e) => {\n e.preventDefault();\n submit();\n }}\n >\n {/* CurrentPasswordInput's field — the password manager fills it with the CURRENT\n password and never offers to generate one; `readOnly`, not `disabled`, while\n busy, because disabling the field that has focus drops focus to <body> —\n plus `Input`'s own `error`, which that helper does not take. The message\n paints the field, sits under it and is its `aria-describedby`; passing the\n prop on every render keeps the field's box steady, so the message going away\n on the first keystroke of a retry no longer remounts the <input> under the\n typist (it did, which is why this used to draw its own message). */}\n <Input\n ref={inputRef}\n type=\"password\"\n autoComplete=\"current-password\"\n label={labels.password}\n value={password}\n readOnly={busy}\n error={shownError}\n onChange={(e) => {\n setPassword(e.target.value);\n setEdited(true);\n }}\n />\n </form>\n </DialogFrame>\n );\n}\n\n/**\n * The actions row. A component of its own because it renders INSIDE the `Modal`, where\n * the panel's animated close is in context: a resolved `onSubmit` lowers the panel\n * through it, the way Cancel and Escape do, and `Modal` then calls `onClose`.\n */\nfunction ReauthActions({\n formId,\n done,\n busy,\n canSubmit,\n danger,\n cancelLabel,\n submitLabel,\n}: {\n formId: string;\n done: boolean;\n busy: boolean;\n canSubmit: boolean;\n danger: boolean;\n cancelLabel: ReactNode;\n submitLabel: ReactNode;\n}) {\n const close = useContext(ModalCloseContext);\n useEffect(() => {\n if (done) close?.();\n }, [done, close]);\n return (\n <>\n <Button type=\"button\" variant=\"ghost\" disabled={busy} onClick={() => close?.()}>\n {cancelLabel}\n </Button>\n <Button\n type=\"submit\"\n form={formId}\n variant={danger ? \"danger\" : \"primary\"}\n disabled={!canSubmit || busy}\n aria-busy={busy || undefined}\n >\n {busy && <Spinner label={null} className=\"h-4 w-4\" />}\n {submitLabel}\n </Button>\n </>\n );\n}\n"],"mappings":"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","names":[]}
@@ -5,7 +5,7 @@ import { LegendEntry } from './toggle-legend.js';
5
5
  import { SeriesChartLabels } from './series-chart-labels.js';
6
6
  import { TimeTickUnit } from './series-chart-ticks.js';
7
7
  import { SeriesChartAxisBudget } from './series-chart-budget.js';
8
- import { w as ChartTooltipPlacement } from '../kit-labels-DE--LmCk.js';
8
+ import { x as ChartTooltipPlacement } from '../kit-labels-CPbsjlXr.js';
9
9
  import 'recharts';
10
10
  import './data-table-labels.js';
11
11
  import './mini-calendar.js';
@@ -56,6 +56,15 @@ import './authed-image.js';
56
56
  import '../hooks/use-authed-src.js';
57
57
  import './image-grid.js';
58
58
  import './lightbox.js';
59
+ import './write-lock.js';
60
+ import './account-chips.js';
61
+ import '../lib/format.js';
62
+ import '../data-table-3mi2R3so.js';
63
+ import './data-table-sort.js';
64
+ import './swipeable-row.js';
65
+ import './reauth-dialog.js';
66
+ import './server-wake.js';
67
+ import '../lib/server-wake.js';
59
68
 
60
69
  interface SeriesChartSeries {
61
70
  /** The row key this line reads — and the `--color-<key>` it is painted with, so it
@@ -0,0 +1,58 @@
1
+ import * as react from 'react';
2
+ import { ServerWakeWatcher, ServerWakeStage } from '../lib/server-wake.js';
3
+
4
+ /**
5
+ * The visible half of the cold-start watchdog (`lib/server-wake.ts`), keksdose's
6
+ * `app/server-wake-notice.tsx` lifted into the kit: after a couple of seconds of an
7
+ * unanswered read it says the app is still loading, and after seven it says WHY — the
8
+ * server sleeps when nobody is using it, and the first request has to start it again.
9
+ *
10
+ * Corner-anchored and non-blocking on purpose. The pages underneath already show their
11
+ * own skeletons; what was missing is the explanation, not another overlay. Start
12
+ * corner, above the phone's bottom nav, so it collides with neither the centred toasts
13
+ * nor the nav bar.
14
+ *
15
+ * Mount it next to the router, not inside the app layout, so it also covers the login
16
+ * screen and the landing page — a cold start is at its most confusing exactly there,
17
+ * before anything of the app is on screen.
18
+ */
19
+ interface ServerWakeLabels {
20
+ /** Past `slowMs` (2 s): a warm server would have answered by now. */
21
+ slow: string;
22
+ /** Past `wakingMs` (7 s): the explanation. `appName` is the notice's prop; without
23
+ * one the sentence says "the app". */
24
+ waking: (appName?: string) => string;
25
+ }
26
+ declare const DEFAULT_SERVER_WAKE_LABELS: ServerWakeLabels;
27
+ /** The watcher's current stage, re-rendering on every change. Default: the shared
28
+ * {@link serverWake} instance. */
29
+ declare function useServerWakeStage(watcher?: ServerWakeWatcher): ServerWakeStage;
30
+ interface ServerWakeNoticeProps {
31
+ /** Default: the shared {@link serverWake} instance. Pass the app's own when it was
32
+ * made with {@link createServerWake} (e.g. to watch the login POST too). */
33
+ watcher?: ServerWakeWatcher;
34
+ /** Named in the `waking` sentence ("…when nobody is using Keksdose…"). Default: the
35
+ * label says "the app". */
36
+ appName?: string;
37
+ labels?: Partial<ServerWakeLabels>;
38
+ /**
39
+ * The height to keep clear at the bottom — AppShell's bottom nav. Default: its
40
+ * measured `--app-nav-h` (0px from `md` up and on pages without a shell, such as the
41
+ * login screen), so nothing has to be passed under an AppShell. The safe area is
42
+ * respected either way, and a 1rem gap is added. Numbers are px.
43
+ */
44
+ navOffset?: string | number;
45
+ /** Extra classes on the fixed anchor — a different width or `start-*`. The bottom
46
+ * offset is an inline style, so move it vertically with {@link navOffset}. */
47
+ className?: string;
48
+ }
49
+ /**
50
+ * Renders nothing visible while idle. The LIVE REGION, though, is always mounted: a
51
+ * `role="status"` element inserted together with its text is announced unreliably
52
+ * (several screen readers only speak changes to a region they already knew about),
53
+ * so the region waits empty and the banner appears inside it. keksdose's notice
54
+ * mounted the region and the words at once.
55
+ */
56
+ declare function ServerWakeNotice({ watcher, appName, labels: labelsProp, navOffset, className }: ServerWakeNoticeProps): react.JSX.Element;
57
+
58
+ export { DEFAULT_SERVER_WAKE_LABELS, type ServerWakeLabels, ServerWakeNotice, type ServerWakeNoticeProps, useServerWakeStage };
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { useSyncExternalStore } from "react";
4
+ import { useKitLabels } from "../i18n/kit-labels.js";
5
+ import { cn } from "../lib/cn.js";
6
+ import { serverWake } from "../lib/server-wake.js";
7
+ import { AlertBanner } from "./alert-banner.js";
8
+ import { Spinner } from "./ui.js";
9
+ const DEFAULT_SERVER_WAKE_LABELS = {
10
+ slow: "Still loading \u2014 this is taking longer than usual.",
11
+ waking: (appName) => `The server goes to sleep when nobody is using ${appName ?? "the app"}, so the first request after a break has to start it again. That can take a moment \u2014 nothing is lost, the page fills in by itself.`
12
+ };
13
+ function useServerWakeStage(watcher = serverWake) {
14
+ return useSyncExternalStore(watcher.subscribe, watcher.getStage, () => "idle");
15
+ }
16
+ const px = (v) => typeof v === "number" ? `${v}px` : v;
17
+ function ServerWakeNotice({ watcher, appName, labels: labelsProp, navOffset, className }) {
18
+ const labels = useKitLabels("serverWake", DEFAULT_SERVER_WAKE_LABELS, labelsProp);
19
+ const stage = useServerWakeStage(watcher);
20
+ const waking = stage === "waking";
21
+ const style = {
22
+ bottom: `calc(max(${navOffset === void 0 ? "var(--app-nav-h, 0px)" : px(navOffset)}, env(safe-area-inset-bottom, 0px)) + 1rem)`
23
+ };
24
+ return /* @__PURE__ */ jsx(
25
+ "div",
26
+ {
27
+ role: "status",
28
+ "aria-live": "polite",
29
+ "data-stage": stage,
30
+ style,
31
+ className: cn(
32
+ "fixed start-4 z-50 max-w-[min(24rem,calc(100vw-2rem))]",
33
+ stage === "idle" && "pointer-events-none",
34
+ className
35
+ ),
36
+ children: stage !== "idle" && // `elevated`: OPAQUE in both themes (keksdose live #209) — the notice that
37
+ // explains a stall is read over whatever stalled, and a translucent dark tint
38
+ // let the page's own text show through it. A box banner is role-less, so the
39
+ // wrapper above stays the one live region.
40
+ /* @__PURE__ */ jsx(
41
+ AlertBanner,
42
+ {
43
+ tone: waking ? "warning" : "neutral",
44
+ size: "sm",
45
+ elevated: true,
46
+ icon: /* @__PURE__ */ jsx(Spinner, { label: null, className: "h-3.5 w-3.5" }),
47
+ children: waking ? labels.waking(appName) : labels.slow
48
+ }
49
+ )
50
+ }
51
+ );
52
+ }
53
+ export {
54
+ DEFAULT_SERVER_WAKE_LABELS,
55
+ ServerWakeNotice,
56
+ useServerWakeStage
57
+ };
58
+ //# sourceMappingURL=server-wake.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/server-wake.tsx"],"sourcesContent":["import { useSyncExternalStore } from \"react\";\nimport type { CSSProperties } from \"react\";\n\nimport { useKitLabels } from \"../i18n/kit-labels\";\nimport { cn } from \"../lib/cn\";\nimport { serverWake } from \"../lib/server-wake\";\nimport type { ServerWakeStage, ServerWakeWatcher } from \"../lib/server-wake\";\nimport { AlertBanner } from \"./alert-banner\";\nimport { Spinner } from \"./ui\";\n\n/**\n * The visible half of the cold-start watchdog (`lib/server-wake.ts`), keksdose's\n * `app/server-wake-notice.tsx` lifted into the kit: after a couple of seconds of an\n * unanswered read it says the app is still loading, and after seven it says WHY — the\n * server sleeps when nobody is using it, and the first request has to start it again.\n *\n * Corner-anchored and non-blocking on purpose. The pages underneath already show their\n * own skeletons; what was missing is the explanation, not another overlay. Start\n * corner, above the phone's bottom nav, so it collides with neither the centred toasts\n * nor the nav bar.\n *\n * Mount it next to the router, not inside the app layout, so it also covers the login\n * screen and the landing page — a cold start is at its most confusing exactly there,\n * before anything of the app is on screen.\n */\n\n// ── Labels ────────────────────────────────────────────────────────────────────\n\nexport interface ServerWakeLabels {\n /** Past `slowMs` (2 s): a warm server would have answered by now. */\n slow: string;\n /** Past `wakingMs` (7 s): the explanation. `appName` is the notice's prop; without\n * one the sentence says \"the app\". */\n waking: (appName?: string) => string;\n}\n\nexport const DEFAULT_SERVER_WAKE_LABELS: ServerWakeLabels = {\n slow: \"Still loading — this is taking longer than usual.\",\n waking: (appName) =>\n `The server goes to sleep when nobody is using ${appName ?? \"the app\"}, so the first request after a break has to start it again. That can take a moment — nothing is lost, the page fills in by itself.`,\n};\n\n// ── Hook ──────────────────────────────────────────────────────────────────────\n\n/** The watcher's current stage, re-rendering on every change. Default: the shared\n * {@link serverWake} instance. */\nexport function useServerWakeStage(watcher: ServerWakeWatcher = serverWake): ServerWakeStage {\n // The server snapshot is `idle`: nothing is in flight while the HTML is rendered.\n return useSyncExternalStore(watcher.subscribe, watcher.getStage, () => \"idle\");\n}\n\n// ── Notice ────────────────────────────────────────────────────────────────────\n\nexport interface ServerWakeNoticeProps {\n /** Default: the shared {@link serverWake} instance. Pass the app's own when it was\n * made with {@link createServerWake} (e.g. to watch the login POST too). */\n watcher?: ServerWakeWatcher;\n /** Named in the `waking` sentence (\"…when nobody is using Keksdose…\"). Default: the\n * label says \"the app\". */\n appName?: string;\n labels?: Partial<ServerWakeLabels>;\n /**\n * The height to keep clear at the bottom — AppShell's bottom nav. Default: its\n * measured `--app-nav-h` (0px from `md` up and on pages without a shell, such as the\n * login screen), so nothing has to be passed under an AppShell. The safe area is\n * respected either way, and a 1rem gap is added. Numbers are px.\n */\n navOffset?: string | number;\n /** Extra classes on the fixed anchor — a different width or `start-*`. The bottom\n * offset is an inline style, so move it vertically with {@link navOffset}. */\n className?: string;\n}\n\nconst px = (v: string | number) => (typeof v === \"number\" ? `${v}px` : v);\n\n/**\n * Renders nothing visible while idle. The LIVE REGION, though, is always mounted: a\n * `role=\"status\"` element inserted together with its text is announced unreliably\n * (several screen readers only speak changes to a region they already knew about),\n * so the region waits empty and the banner appears inside it. keksdose's notice\n * mounted the region and the words at once.\n */\nexport function ServerWakeNotice({ watcher, appName, labels: labelsProp, navOffset, className }: ServerWakeNoticeProps) {\n const labels = useKitLabels(\"serverWake\", DEFAULT_SERVER_WAKE_LABELS, labelsProp);\n const stage = useServerWakeStage(watcher);\n const waking = stage === \"waking\";\n const style: CSSProperties = {\n bottom: `calc(max(${navOffset === undefined ? \"var(--app-nav-h, 0px)\" : px(navOffset)}, env(safe-area-inset-bottom, 0px)) + 1rem)`,\n };\n\n return (\n <div\n role=\"status\"\n aria-live=\"polite\"\n data-stage={stage}\n style={style}\n // `pointer-events-none` on the empty anchor: a fixed box, even an empty one, is not\n // allowed to swallow a tap on what it sits over.\n className={cn(\n \"fixed start-4 z-50 max-w-[min(24rem,calc(100vw-2rem))]\",\n stage === \"idle\" && \"pointer-events-none\",\n className,\n )}\n >\n {stage !== \"idle\" && (\n // `elevated`: OPAQUE in both themes (keksdose live #209) — the notice that\n // explains a stall is read over whatever stalled, and a translucent dark tint\n // let the page's own text show through it. A box banner is role-less, so the\n // wrapper above stays the one live region.\n <AlertBanner\n tone={waking ? \"warning\" : \"neutral\"}\n size=\"sm\"\n elevated\n // `label={null}`: a Spinner is its own `role=\"status\"` saying \"Loading…\" —\n // nested here, a second live region and a second announcement ahead of the\n // words that actually explain the wait. Here it is decoration.\n icon={<Spinner label={null} className=\"h-3.5 w-3.5\" />}\n >\n {waking ? labels.waking(appName) : labels.slow}\n </AlertBanner>\n )}\n </div>\n );\n}\n"],"mappings":";AAoHgB;AApHhB,SAAS,4BAA4B;AAGrC,SAAS,oBAAoB;AAC7B,SAAS,UAAU;AACnB,SAAS,kBAAkB;AAE3B,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AA4BjB,MAAM,6BAA+C;AAAA,EAC1D,MAAM;AAAA,EACN,QAAQ,CAAC,YACP,iDAAiD,WAAW,SAAS;AACzE;AAMO,SAAS,mBAAmB,UAA6B,YAA6B;AAE3F,SAAO,qBAAqB,QAAQ,WAAW,QAAQ,UAAU,MAAM,MAAM;AAC/E;AAwBA,MAAM,KAAK,CAAC,MAAwB,OAAO,MAAM,WAAW,GAAG,CAAC,OAAO;AAShE,SAAS,iBAAiB,EAAE,SAAS,SAAS,QAAQ,YAAY,WAAW,UAAU,GAA0B;AACtH,QAAM,SAAS,aAAa,cAAc,4BAA4B,UAAU;AAChF,QAAM,QAAQ,mBAAmB,OAAO;AACxC,QAAM,SAAS,UAAU;AACzB,QAAM,QAAuB;AAAA,IAC3B,QAAQ,YAAY,cAAc,SAAY,0BAA0B,GAAG,SAAS,CAAC;AAAA,EACvF;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,aAAU;AAAA,MACV,cAAY;AAAA,MACZ;AAAA,MAGA,WAAW;AAAA,QACT;AAAA,QACA,UAAU,UAAU;AAAA,QACpB;AAAA,MACF;AAAA,MAEC,oBAAU;AAAA;AAAA;AAAA;AAAA,MAKT;AAAA,QAAC;AAAA;AAAA,UACC,MAAM,SAAS,YAAY;AAAA,UAC3B,MAAK;AAAA,UACL,UAAQ;AAAA,UAIR,MAAM,oBAAC,WAAQ,OAAO,MAAM,WAAU,eAAc;AAAA,UAEnD,mBAAS,OAAO,OAAO,OAAO,IAAI,OAAO;AAAA;AAAA,MAC5C;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { aN as SelectProps } from '../kit-labels-DE--LmCk.js';
3
+ import { aQ as SelectProps } from '../kit-labels-CPbsjlXr.js';
4
4
  import { ThemePreference } from '../theme/theme-store.js';
5
5
  import './data-table-labels.js';
6
6
  import './mini-calendar.js';
@@ -52,6 +52,15 @@ import './authed-image.js';
52
52
  import '../hooks/use-authed-src.js';
53
53
  import './image-grid.js';
54
54
  import './lightbox.js';
55
+ import './write-lock.js';
56
+ import './account-chips.js';
57
+ import '../lib/format.js';
58
+ import '../data-table-3mi2R3so.js';
59
+ import './data-table-sort.js';
60
+ import './swipeable-row.js';
61
+ import './reauth-dialog.js';
62
+ import './server-wake.js';
63
+ import '../lib/server-wake.js';
55
64
  import 'zustand/middleware';
56
65
  import 'zustand';
57
66
 
@@ -0,0 +1,61 @@
1
+ import 'react';
2
+ import './account-chips.js';
3
+ import './dialog-frame.js';
4
+ export { U as DEFAULT_SHARE_CARD_LABELS, aR as ShareAddRequest, aS as ShareCandidate, aT as ShareCard, aU as ShareCardLabels, aV as ShareCardProps, aW as ShareDialog, aX as ShareDialogProps, aY as ShareGrantee, aZ as SharePanel, a_ as SharePanelProps, a$ as SharePendingGrant, b0 as ShareRole } from '../kit-labels-CPbsjlXr.js';
5
+ import 'lucide-react';
6
+ import '../lib/format.js';
7
+ import './chip.js';
8
+ import '../data-table-3mi2R3so.js';
9
+ import './data-table-sort.js';
10
+ import './swipeable-row.js';
11
+ import './data-table-labels.js';
12
+ import './modal.js';
13
+ import '../hooks/use-search-param-state.js';
14
+ import './mini-calendar.js';
15
+ import './calendar-heatmap.js';
16
+ import './popover.js';
17
+ import './field-sync.js';
18
+ import './tooltip.js';
19
+ import '../hooks/use-anchored-rect.js';
20
+ import '../lib/clipping.js';
21
+ import '../wizard/types.js';
22
+ import '../tour/tour.js';
23
+ import '../search/command-palette.js';
24
+ import '../search/global-search.js';
25
+ import '../search/search-index.js';
26
+ import './month-picker.js';
27
+ import './page-contents.js';
28
+ import './series-chart-labels.js';
29
+ import './pie-chart-labels.js';
30
+ import './sparkline.js';
31
+ import './stat-tile.js';
32
+ import './signature-pad.js';
33
+ import './password-strength.js';
34
+ import './danger-confirm.js';
35
+ import './swatch-picker.js';
36
+ import './tile-radio.js';
37
+ import './icon-picker.js';
38
+ import './measured-grid.js';
39
+ import '../feedback-attachment-WFiXJ8We.js';
40
+ import '../feedback/feedback-thread.js';
41
+ import '../feedback/feedback-inbox.js';
42
+ import './account-settings-labels.js';
43
+ import './confirm-dialog.js';
44
+ import './floating-panel.js';
45
+ import './bulk-action-bar.js';
46
+ import './list.js';
47
+ import './signed-amount.js';
48
+ import './breadcrumbs.js';
49
+ import './toast.js';
50
+ import './description-list.js';
51
+ import './line-items.js';
52
+ import './progress-bar.js';
53
+ import './error-boundary.js';
54
+ import './authed-image.js';
55
+ import '../hooks/use-authed-src.js';
56
+ import './image-grid.js';
57
+ import './lightbox.js';
58
+ import './write-lock.js';
59
+ import './reauth-dialog.js';
60
+ import './server-wake.js';
61
+ import '../lib/server-wake.js';