@stoa-dev/kit 0.1.4 → 1.0.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/CHANGELOG.md +64 -0
- package/README.md +23 -2
- package/dist/display/BarChart/index.js +70 -0
- package/dist/display/BarChart/index.js.map +1 -0
- package/dist/display/Marginalia/index.js +16 -0
- package/dist/display/Marginalia/index.js.map +1 -0
- package/dist/display/MarginaliaFramed/index.js +19 -0
- package/dist/display/MarginaliaFramed/index.js.map +1 -0
- package/dist/display/MarginaliaPair/index.js +32 -0
- package/dist/display/MarginaliaPair/index.js.map +1 -0
- package/dist/display/ProgressBar/index.js +72 -0
- package/dist/display/ProgressBar/index.js.map +1 -0
- package/dist/display/TimeMeasured/index.js +38 -0
- package/dist/display/TimeMeasured/index.js.map +1 -0
- package/dist/display/index.js +16 -0
- package/dist/display/index.js.map +1 -0
- package/dist/i18n/locales/at.json.js +8 -4
- package/dist/i18n/locales/at.json.js.map +1 -1
- package/dist/i18n/locales/de.json.js +8 -4
- package/dist/i18n/locales/de.json.js.map +1 -1
- package/dist/i18n/locales/en.json.js +8 -4
- package/dist/i18n/locales/en.json.js.map +1 -1
- package/dist/i18n/locales/it.json.js +10 -6
- package/dist/i18n/locales/it.json.js.map +1 -1
- package/dist/shell/AnimatedSwap/index.js +61 -0
- package/dist/shell/AnimatedSwap/index.js.map +1 -0
- package/dist/shell/AppNavigation/index.js +62 -43
- package/dist/shell/AppNavigation/index.js.map +1 -1
- package/dist/shell/BrandLines/index.js +14 -12
- package/dist/shell/BrandLines/index.js.map +1 -1
- package/dist/shell/DatePicker/index.js +16 -15
- package/dist/shell/DatePicker/index.js.map +1 -1
- package/dist/shell/ExternalLink/index.js +30 -0
- package/dist/shell/ExternalLink/index.js.map +1 -0
- package/dist/shell/PageHeading/index.js +15 -8
- package/dist/shell/PageHeading/index.js.map +1 -1
- package/dist/shell/SaveStatus/index.js +61 -0
- package/dist/shell/SaveStatus/index.js.map +1 -0
- package/dist/shell/SectionNavigation/index.js +29 -27
- package/dist/shell/SectionNavigation/index.js.map +1 -1
- package/dist/shell/StartupAnimation/index.js +88 -0
- package/dist/shell/StartupAnimation/index.js.map +1 -0
- package/dist/shell/StartupProvider/index.js +37 -0
- package/dist/shell/StartupProvider/index.js.map +1 -0
- package/dist/shell/TagInput/index.js +93 -0
- package/dist/shell/TagInput/index.js.map +1 -0
- package/dist/shell/ValidatedInput/index.js +31 -0
- package/dist/shell/ValidatedInput/index.js.map +1 -0
- package/dist/shell/index.js +41 -24
- package/dist/shell/index.js.map +1 -1
- package/dist/types/display/BarChart/index.d.ts +25 -0
- package/dist/types/display/BarChart/index.d.ts.map +1 -0
- package/dist/types/display/Marginalia/index.d.ts +8 -0
- package/dist/types/display/Marginalia/index.d.ts.map +1 -0
- package/dist/types/display/MarginaliaFramed/index.d.ts +8 -0
- package/dist/types/display/MarginaliaFramed/index.d.ts.map +1 -0
- package/dist/types/display/MarginaliaPair/index.d.ts +9 -0
- package/dist/types/display/MarginaliaPair/index.d.ts.map +1 -0
- package/dist/types/display/ProgressBar/index.d.ts +19 -0
- package/dist/types/display/ProgressBar/index.d.ts.map +1 -0
- package/dist/types/display/TimeMeasured/index.d.ts +16 -0
- package/dist/types/display/TimeMeasured/index.d.ts.map +1 -0
- package/dist/types/display/index.d.ts +7 -0
- package/dist/types/display/index.d.ts.map +1 -0
- package/dist/types/i18n/index.d.ts +44 -0
- package/dist/types/i18n/index.d.ts.map +1 -1
- package/dist/types/shell/AnimatedSwap/index.d.ts +13 -0
- package/dist/types/shell/AnimatedSwap/index.d.ts.map +1 -0
- package/dist/types/shell/AppNavigation/index.d.ts.map +1 -1
- package/dist/types/shell/BrandLines/index.d.ts.map +1 -1
- package/dist/types/shell/DatePicker/index.d.ts.map +1 -1
- package/dist/types/shell/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/shell/ExternalLink/index.d.ts +10 -0
- package/dist/types/shell/ExternalLink/index.d.ts.map +1 -0
- package/dist/types/shell/PageHeading/index.d.ts.map +1 -1
- package/dist/types/shell/SaveStatus/index.d.ts +15 -0
- package/dist/types/shell/SaveStatus/index.d.ts.map +1 -0
- package/dist/types/shell/SectionNavigation/index.d.ts.map +1 -1
- package/dist/types/shell/StartupAnimation/index.d.ts +26 -0
- package/dist/types/shell/StartupAnimation/index.d.ts.map +1 -0
- package/dist/types/shell/StartupProvider/index.d.ts +22 -0
- package/dist/types/shell/StartupProvider/index.d.ts.map +1 -0
- package/dist/types/shell/TagInput/index.d.ts +20 -0
- package/dist/types/shell/TagInput/index.d.ts.map +1 -0
- package/dist/types/shell/ValidatedInput/index.d.ts +17 -0
- package/dist/types/shell/ValidatedInput/index.d.ts.map +1 -0
- package/dist/types/shell/index.d.ts +7 -0
- package/dist/types/shell/index.d.ts.map +1 -1
- package/dist/types/ui/field/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/saveFeedback.d.ts +35 -0
- package/dist/types/utils/saveFeedback.d.ts.map +1 -0
- package/dist/utils/index.js +5 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/saveFeedback.js +54 -0
- package/dist/utils/saveFeedback.js.map +1 -0
- package/package.json +8 -2
- package/styles/instrument.css +705 -0
- package/styles/theme.css +1 -0
package/dist/shell/index.js
CHANGED
|
@@ -1,29 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { AnimatedSwap as t } from "./AnimatedSwap/index.js";
|
|
2
|
+
import { AppNavigation as p, AppNavigationButton as a, AppNavigationDivider as i, AppNavigationItem as n, AppNavigationThemeToggle as m } from "./AppNavigation/index.js";
|
|
3
|
+
import { BackHomeButton as x } from "./BackHomeButton/index.js";
|
|
4
|
+
import { BrandLines as u } from "./BrandLines/index.js";
|
|
4
5
|
import { ConfirmDialog as v } from "./ConfirmDialog/index.js";
|
|
5
|
-
import { DatePickerInput as
|
|
6
|
-
import { ErrorBoundary as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { DatePickerInput as l } from "./DatePicker/index.js";
|
|
7
|
+
import { ErrorBoundary as N } from "./ErrorBoundary/index.js";
|
|
8
|
+
import { ExternalLink as c } from "./ExternalLink/index.js";
|
|
9
|
+
import { NativeSelect as s } from "./NativeSelect/index.js";
|
|
10
|
+
import { PageHeading as T } from "./PageHeading/index.js";
|
|
11
|
+
import { SaveStatus as P } from "./SaveStatus/index.js";
|
|
12
|
+
import { SectionNavigation as H } from "./SectionNavigation/index.js";
|
|
13
|
+
import { Spinner as b } from "./Spinner/index.js";
|
|
14
|
+
import { StartupAnimation as w } from "./StartupAnimation/index.js";
|
|
15
|
+
import { StartupProvider as z, useStartup as C } from "./StartupProvider/index.js";
|
|
16
|
+
import { TagInput as U, normalizeTags as V } from "./TagInput/index.js";
|
|
17
|
+
import { UploadButton as q } from "./UploadButton/index.js";
|
|
18
|
+
import { ValidatedInput as J, fieldFeedback as K } from "./ValidatedInput/index.js";
|
|
12
19
|
export {
|
|
13
|
-
t as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
i as
|
|
17
|
-
|
|
18
|
-
m as
|
|
19
|
-
|
|
20
|
+
t as AnimatedSwap,
|
|
21
|
+
p as AppNavigation,
|
|
22
|
+
a as AppNavigationButton,
|
|
23
|
+
i as AppNavigationDivider,
|
|
24
|
+
n as AppNavigationItem,
|
|
25
|
+
m as AppNavigationThemeToggle,
|
|
26
|
+
x as BackHomeButton,
|
|
27
|
+
u as BrandLines,
|
|
20
28
|
v as ConfirmDialog,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
c as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
l as DatePickerInput,
|
|
30
|
+
N as ErrorBoundary,
|
|
31
|
+
c as ExternalLink,
|
|
32
|
+
s as NativeSelect,
|
|
33
|
+
T as PageHeading,
|
|
34
|
+
P as SaveStatus,
|
|
35
|
+
H as SectionNavigation,
|
|
36
|
+
b as Spinner,
|
|
37
|
+
w as StartupAnimation,
|
|
38
|
+
z as StartupProvider,
|
|
39
|
+
U as TagInput,
|
|
40
|
+
q as UploadButton,
|
|
41
|
+
J as ValidatedInput,
|
|
42
|
+
K as fieldFeedback,
|
|
43
|
+
V as normalizeTags,
|
|
44
|
+
C as useStartup
|
|
28
45
|
};
|
|
29
46
|
//# sourceMappingURL=index.js.map
|
package/dist/shell/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
type Variant = 'vertical' | 'horizontal';
|
|
3
|
+
export interface BarChartItemProps {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
value: number;
|
|
6
|
+
/** Text for the figure; defaults to the value. */
|
|
7
|
+
display?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface BarChartProps {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
variant?: Variant;
|
|
12
|
+
/** Scale maximum; defaults to the largest item value. */
|
|
13
|
+
max?: number;
|
|
14
|
+
/** Accessible name of the chart. */
|
|
15
|
+
label?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Bars as firm rounded strokes. `vertical`: columns with figure and label
|
|
20
|
+
* below; `horizontal`: rows with label, bar and figure.
|
|
21
|
+
*/
|
|
22
|
+
export declare function BarChart({ children, variant, max, label, className, }: BarChartProps): import("react").JSX.Element;
|
|
23
|
+
export declare function BarChartItem({ label, value, display }: BarChartItemProps): import("react").JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/BarChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,SAAS,EAEd,MAAM,OAAO,CAAA;AAGd,KAAK,OAAO,GAAG,UAAU,GAAG,YAAY,CAAA;AAOxC,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,OAAO,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,MAAM,WAAW,aAAa;IAC7B,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yDAAyD;IACzD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAQD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACxB,QAAQ,EACR,OAAoB,EACpB,GAAG,EACH,KAAK,EACL,SAAS,GACT,EAAE,aAAa,+BAoBf;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,iBAAiB,+BAwCxE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface MarginaliaProps {
|
|
3
|
+
value: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/** A single margin note in the same type as MarginaliaPair, e.g. the year. */
|
|
7
|
+
export declare function Marginalia({ value, className }: MarginaliaProps): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/Marginalia/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,eAAe,+BAS/D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface MarginaliaFramedProps {
|
|
3
|
+
value: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/** A short code or index in a thin frame, e.g. a page number like "013". */
|
|
7
|
+
export declare function MarginaliaFramed({ value, className }: MarginaliaFramedProps): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/MarginaliaFramed/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,WAAW,qBAAqB;IACrC,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,qBAAqB,+BAY3E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface MarginaliaPairProps {
|
|
3
|
+
left: ReactNode;
|
|
4
|
+
right: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/** Margin note of two values joined by a long rule, e.g. weekday —— date. */
|
|
8
|
+
export declare function MarginaliaPair({ left, right, className, }: MarginaliaPairProps): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/MarginaliaPair/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,EAC9B,IAAI,EACJ,KAAK,EACL,SAAS,GACT,EAAE,mBAAmB,+BAgBrB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface ProgressBarProps {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
/** Count shown on the right, e.g. the number of items in this state. */
|
|
5
|
+
value?: number;
|
|
6
|
+
/** With `value`: progress becomes `value / total`. */
|
|
7
|
+
total?: number;
|
|
8
|
+
/** Share from 0 to 1. Shown as a percentage when no `value` is given. */
|
|
9
|
+
progress?: number;
|
|
10
|
+
/** Full bar. Combines with `value`, e.g. the number of finished items. */
|
|
11
|
+
completed?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A captioned progress line: label left, figure right, thin bar below.
|
|
16
|
+
* The share comes from `completed`, `value / total` or `progress`, in this order.
|
|
17
|
+
*/
|
|
18
|
+
export declare function ProgressBar({ label, value, total, progress, completed, className, }: ProgressBarProps): import("react").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/ProgressBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,SAAS,CAAA;IAChB,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAMD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,KAAK,EACL,QAAQ,EACR,SAAiB,EACjB,SAAS,GACT,EAAE,gBAAgB,+BAuDlB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type TimeMeasuredProps = {
|
|
2
|
+
/** Unit shown after the figure. Defaults to `H`. */
|
|
3
|
+
unit?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
} & ({
|
|
6
|
+
hours?: number;
|
|
7
|
+
minutes?: number;
|
|
8
|
+
value?: never;
|
|
9
|
+
} | {
|
|
10
|
+
/** Total duration in minutes. */ value: number;
|
|
11
|
+
hours?: never;
|
|
12
|
+
minutes?: never;
|
|
13
|
+
});
|
|
14
|
+
/** A large readout of a duration as `HH:MM`, e.g. practice time. */
|
|
15
|
+
export declare function TimeMeasured(props: TimeMeasuredProps): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/TimeMeasured/index.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG;IAC/B,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,CACD;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACnD;IACA,iCAAiC,CAAC,KAAK,EAAE,MAAM,CAAA;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,OAAO,CAAC,EAAE,KAAK,CAAA;CACd,CACH,CAAA;AAID,oEAAoE;AACpE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BA4BpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/display/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA"}
|
|
@@ -6,6 +6,7 @@ export declare const stoaResources: {
|
|
|
6
6
|
actions: {
|
|
7
7
|
cancel: string;
|
|
8
8
|
close: string;
|
|
9
|
+
retry: string;
|
|
9
10
|
};
|
|
10
11
|
app: {
|
|
11
12
|
back: string;
|
|
@@ -15,6 +16,7 @@ export declare const stoaResources: {
|
|
|
15
16
|
navigation: string;
|
|
16
17
|
restart: string;
|
|
17
18
|
switchTheme: string;
|
|
19
|
+
loadingSettings: string;
|
|
18
20
|
};
|
|
19
21
|
datePicker: {
|
|
20
22
|
selectDate: string;
|
|
@@ -140,11 +142,21 @@ export declare const stoaResources: {
|
|
|
140
142
|
core: string;
|
|
141
143
|
};
|
|
142
144
|
};
|
|
145
|
+
autosave: {
|
|
146
|
+
saving: string;
|
|
147
|
+
saved: string;
|
|
148
|
+
error: string;
|
|
149
|
+
};
|
|
150
|
+
tags: {
|
|
151
|
+
placeholder: string;
|
|
152
|
+
remove: string;
|
|
153
|
+
};
|
|
143
154
|
};
|
|
144
155
|
readonly en: {
|
|
145
156
|
actions: {
|
|
146
157
|
cancel: string;
|
|
147
158
|
close: string;
|
|
159
|
+
retry: string;
|
|
148
160
|
};
|
|
149
161
|
app: {
|
|
150
162
|
back: string;
|
|
@@ -154,6 +166,7 @@ export declare const stoaResources: {
|
|
|
154
166
|
navigation: string;
|
|
155
167
|
restart: string;
|
|
156
168
|
switchTheme: string;
|
|
169
|
+
loadingSettings: string;
|
|
157
170
|
};
|
|
158
171
|
datePicker: {
|
|
159
172
|
selectDate: string;
|
|
@@ -279,11 +292,21 @@ export declare const stoaResources: {
|
|
|
279
292
|
core: string;
|
|
280
293
|
};
|
|
281
294
|
};
|
|
295
|
+
autosave: {
|
|
296
|
+
saving: string;
|
|
297
|
+
saved: string;
|
|
298
|
+
error: string;
|
|
299
|
+
};
|
|
300
|
+
tags: {
|
|
301
|
+
placeholder: string;
|
|
302
|
+
remove: string;
|
|
303
|
+
};
|
|
282
304
|
};
|
|
283
305
|
readonly 'de-AT': {
|
|
284
306
|
actions: {
|
|
285
307
|
cancel: string;
|
|
286
308
|
close: string;
|
|
309
|
+
retry: string;
|
|
287
310
|
};
|
|
288
311
|
app: {
|
|
289
312
|
back: string;
|
|
@@ -293,6 +316,7 @@ export declare const stoaResources: {
|
|
|
293
316
|
navigation: string;
|
|
294
317
|
restart: string;
|
|
295
318
|
switchTheme: string;
|
|
319
|
+
loadingSettings: string;
|
|
296
320
|
};
|
|
297
321
|
datePicker: {
|
|
298
322
|
selectDate: string;
|
|
@@ -418,11 +442,21 @@ export declare const stoaResources: {
|
|
|
418
442
|
core: string;
|
|
419
443
|
};
|
|
420
444
|
};
|
|
445
|
+
autosave: {
|
|
446
|
+
saving: string;
|
|
447
|
+
saved: string;
|
|
448
|
+
error: string;
|
|
449
|
+
};
|
|
450
|
+
tags: {
|
|
451
|
+
placeholder: string;
|
|
452
|
+
remove: string;
|
|
453
|
+
};
|
|
421
454
|
};
|
|
422
455
|
readonly it: {
|
|
423
456
|
actions: {
|
|
424
457
|
cancel: string;
|
|
425
458
|
close: string;
|
|
459
|
+
retry: string;
|
|
426
460
|
};
|
|
427
461
|
app: {
|
|
428
462
|
back: string;
|
|
@@ -432,6 +466,7 @@ export declare const stoaResources: {
|
|
|
432
466
|
navigation: string;
|
|
433
467
|
restart: string;
|
|
434
468
|
switchTheme: string;
|
|
469
|
+
loadingSettings: string;
|
|
435
470
|
};
|
|
436
471
|
datePicker: {
|
|
437
472
|
selectDate: string;
|
|
@@ -557,6 +592,15 @@ export declare const stoaResources: {
|
|
|
557
592
|
core: string;
|
|
558
593
|
};
|
|
559
594
|
};
|
|
595
|
+
autosave: {
|
|
596
|
+
saving: string;
|
|
597
|
+
saved: string;
|
|
598
|
+
error: string;
|
|
599
|
+
};
|
|
600
|
+
tags: {
|
|
601
|
+
placeholder: string;
|
|
602
|
+
remove: string;
|
|
603
|
+
};
|
|
560
604
|
};
|
|
561
605
|
};
|
|
562
606
|
export declare const supportedLanguages: readonly [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,SAAS,CAAA;AAK3C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,SAAS,CAAA;AAK3C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhB,CAAA;AAEV,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAKrB,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE5E;;;;GAIG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,IAAI,EACV,SAAS,GAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAM,QAQ3E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Key, type ReactNode } from 'react';
|
|
2
|
+
export interface AnimatedSwapProps {
|
|
3
|
+
/** Changing the key cross-fades to the new children. */
|
|
4
|
+
swapKey: Key;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Cross-fades between contents and animates its height in between, e.g. a
|
|
10
|
+
* toolbar that changes with the selection.
|
|
11
|
+
*/
|
|
12
|
+
export declare function AnimatedSwap({ swapKey, children, className, }: AnimatedSwapProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/AnimatedSwap/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EACN,KAAK,GAAG,EACR,KAAK,SAAS,EAId,MAAM,OAAO,CAAA;AA4Cd,MAAM,WAAW,iBAAiB;IACjC,wDAAwD;IACxD,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC5B,OAAO,EACP,QAAQ,EACR,SAAS,GACT,EAAE,iBAAiB,+BAqBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/AppNavigation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAEvD,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAShD,KAAK,QAAQ,GAAG;IACf,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAA;CACxC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,kBAAkB,GAC3B,iBAAiB,GACjB,mBAAmB,GACnB,SAAS,CAAA;AAEZ,mEAAmE;AACnE,MAAM,MAAM,kBAAkB,GAAG,SAAS,kBAAkB,EAAE,CAAA;AAE9D,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACrC,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAA;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAmCD,wBAAgB,iBAAiB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,QAAQ,GACR,EAAE,iBAAiB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/AppNavigation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAEvD,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAShD,KAAK,QAAQ,GAAG;IACf,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAA;CACxC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,kBAAkB,GAC3B,iBAAiB,GACjB,mBAAmB,GACnB,SAAS,CAAA;AAEZ,mEAAmE;AACnE,MAAM,MAAM,kBAAkB,GAAG,SAAS,kBAAkB,EAAE,CAAA;AAE9D,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACrC,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAA;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAmCD,wBAAgB,iBAAiB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,QAAQ,GACR,EAAE,iBAAiB,+BA4BnB;AAED,wBAAgB,mBAAmB,CAAC,EACnC,KAAK,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,GACR,EAAE,mBAAmB,+BAgBrB;AAED,MAAM,WAAW,6BAA6B;IAC7C,+FAA+F;IAC/F,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3D,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,wBAAwB,CAAC,EACxC,QAAQ,EACR,KAAgB,EAChB,QAAQ,EACR,KAAK,GACL,EAAE,6BAA6B,+BAa/B;AAED,wBAAgB,oBAAoB,gCAQnC;AAwBD,wBAAgB,aAAa,CAAC,EAC7B,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,SAAS,GACT,EAAE,kBAAkB,+BA6BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/BrandLines/index.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAe,EAAE,SAAS,EAAE,EAAE,eAAe,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/BrandLines/index.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,wBAAgB,UAAU,CAAC,EAAE,OAAe,EAAE,SAAS,EAAE,EAAE,eAAe,+BAiBzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/DatePicker/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,KAAK,oBAAoB,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iFAAiF;IACjF,UAAU,CAAC,EAAE,IAAI,CAAA;IACjB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,IAAI,CAAA;CACf,CAAA;AAyJD,wBAAgB,eAAe,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,SAAiB,EACjB,KAAK,EACL,QAAQ,EACR,OAAe,EACf,QAAgB,EAChB,QAAgB,EAChB,UAAU,EACV,QAAQ,GACR,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/DatePicker/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,KAAK,oBAAoB,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iFAAiF;IACjF,UAAU,CAAC,EAAE,IAAI,CAAA;IACjB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,IAAI,CAAA;CACf,CAAA;AAyJD,wBAAgB,eAAe,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,SAAiB,EACjB,KAAK,EACL,QAAQ,EACR,OAAe,EACf,QAAgB,EAChB,QAAgB,EAChB,UAAU,EACV,QAAQ,GACR,EAAE,oBAAoB,qBA+KtB"}
|
|
@@ -15,6 +15,6 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, {
|
|
|
15
15
|
failed: boolean;
|
|
16
16
|
};
|
|
17
17
|
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
18
|
-
render(): string | number | bigint | boolean |
|
|
18
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type ExternalLinkProps = ComponentProps<'a'> & {
|
|
3
|
+
href: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Opens http(s) links in the system browser inside Tauri (needs the opener
|
|
7
|
+
* plugin on the Rust side) and in a new tab in the browser preview.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ExternalLink({ href, className, onClick, children, ...props }: ExternalLinkProps): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/ExternalLink/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtE;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC5B,IAAI,EACJ,SAAS,EACT,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,iBAAiB,+BAmBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/PageHeading/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;CACf;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,gBAAgB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/PageHeading/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;CACf;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,gBAAgB,+BAU3E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { VisibleSaveStatus } from '../../utils/saveFeedback';
|
|
3
|
+
export interface SaveStatusProps {
|
|
4
|
+
status: VisibleSaveStatus;
|
|
5
|
+
/** Replaces the status text, e.g. a validation hint. Shown as an alert. */
|
|
6
|
+
message?: ReactNode;
|
|
7
|
+
/** Shows a retry button next to an error. */
|
|
8
|
+
onRetry?: () => void;
|
|
9
|
+
/** Floating pill at the bottom centre (default) or inline text. */
|
|
10
|
+
floating?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Autosave feedback: "Saving …", "Changes saved" or an error with retry. */
|
|
14
|
+
export declare function SaveStatus({ status, message, onRetry, floating, className, }: SaveStatusProps): import("react").JSX.Element | null;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/SaveStatus/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,iBAAiB,CAAA;IACzB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,EAC1B,MAAM,EACN,OAAO,EACP,OAAO,EACP,QAAe,EACf,SAAS,GACT,EAAE,eAAe,sCA4CjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/SectionNavigation/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAKhF,MAAM,MAAM,iBAAiB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAc7D,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CACpD;AAED,wBAAgB,iBAAiB,CAAC,EACjC,kBAAkB,EAClB,QAAQ,EACR,KAAK,GACL,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/SectionNavigation/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAKhF,MAAM,MAAM,iBAAiB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAc7D,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CACpD;AAED,wBAAgB,iBAAiB,CAAC,EACjC,kBAAkB,EAClB,QAAQ,EACR,KAAK,GACL,EAAE,sBAAsB,sCA4JxB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export type StartupPhase = 'license' | 'settings' | 'app';
|
|
3
|
+
export interface StartupAnimationProps {
|
|
4
|
+
ready: boolean;
|
|
5
|
+
phase: StartupPhase;
|
|
6
|
+
onComplete: () => void;
|
|
7
|
+
/** App name shown under the logo. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Image URL or a custom (e.g. animated inline SVG) logo. */
|
|
10
|
+
logo?: string | ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Already translated setting names that flicker by while settings load,
|
|
13
|
+
* e.g. `['Sprache', 'Darstellung']` or deeper paths like `'Einstellungen/E-Mail/Server'`.
|
|
14
|
+
*/
|
|
15
|
+
settingsPaths?: readonly string[];
|
|
16
|
+
/** Milliseconds per setting name. */
|
|
17
|
+
settingsInterval?: number;
|
|
18
|
+
/** Keeps the final message visible a moment before the overlay fades. */
|
|
19
|
+
finalMessageDelay?: number;
|
|
20
|
+
/** Per-phase status text; defaults come from the kit locales. */
|
|
21
|
+
messages?: Partial<Record<StartupPhase, string>>;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/** Startup overlay: logo, app name, brand lines and the current loading step. */
|
|
25
|
+
export declare function StartupAnimation({ ready, phase, onComplete, name, logo, settingsPaths, settingsInterval, finalMessageDelay, messages, className, }: StartupAnimationProps): import("react").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/StartupAnimation/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAM3D,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,KAAK,CAAA;AAEzD,MAAM,WAAW,qBAAqB;IACrC,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,YAAY,CAAA;IACnB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAA;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,EAChC,KAAK,EACL,KAAK,EACL,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,aAAkB,EAClB,gBAAsB,EACtB,iBAAqB,EACrB,QAAQ,EACR,SAAS,GACT,EAAE,qBAAqB,+BAqGvB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Dispatch, type ReactNode, type SetStateAction } from 'react';
|
|
2
|
+
import { type StartupAnimationProps, type StartupPhase } from '../StartupAnimation';
|
|
3
|
+
type StartupContextValue = {
|
|
4
|
+
finished: boolean;
|
|
5
|
+
setPhase: Dispatch<SetStateAction<StartupPhase>>;
|
|
6
|
+
setReady: Dispatch<SetStateAction<boolean>>;
|
|
7
|
+
finish: () => void;
|
|
8
|
+
beginDataLoading: () => void;
|
|
9
|
+
};
|
|
10
|
+
export interface StartupProviderProps {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/** Everything the overlay shows: name, logo, setting names, messages. */
|
|
13
|
+
animation: Omit<StartupAnimationProps, 'ready' | 'phase' | 'onComplete'>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Shows the startup overlay above the app until `finish()` is called or the
|
|
17
|
+
* data reports ready. Phases: license → settings → app.
|
|
18
|
+
*/
|
|
19
|
+
export declare function StartupProvider({ children, animation }: StartupProviderProps): import("react").JSX.Element;
|
|
20
|
+
export declare function useStartup(): StartupContextValue;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/StartupProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EAInB,MAAM,OAAO,CAAA;AACd,OAAO,EAEN,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,MAAM,qBAAqB,CAAA;AAE5B,KAAK,mBAAmB,GAAG;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAA;IAChD,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,gBAAgB,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAA;AAID,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,SAAS,CAAA;IACnB,yEAAyE;IACzE,SAAS,EAAE,IAAI,CAAC,qBAAqB,EAAE,OAAO,GAAG,OAAO,GAAG,YAAY,CAAC,CAAA;CACxE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,oBAAoB,+BA4B5E;AAED,wBAAgB,UAAU,wBAIzB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface TagInputProps {
|
|
2
|
+
id?: string;
|
|
3
|
+
value: string[];
|
|
4
|
+
onChange: (tags: string[]) => void;
|
|
5
|
+
/** Existing tags offered as suggestions. */
|
|
6
|
+
suggestions?: string[];
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
/** Shown before each tag, e.g. `#`. */
|
|
10
|
+
prefix?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Trims, collapses whitespace and drops empty or case-insensitive duplicates. */
|
|
14
|
+
export declare function normalizeTags(value: readonly string[]): string[];
|
|
15
|
+
/**
|
|
16
|
+
* Free-form tag list: Enter, comma or Tab adds the typed tag, Backspace in the
|
|
17
|
+
* empty field removes the last one; suggestions come from a datalist.
|
|
18
|
+
*/
|
|
19
|
+
export declare function TagInput({ id, value, onChange, suggestions, disabled, placeholder, prefix, className, }: TagInputProps): import("react").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/TagInput/index.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,aAAa;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAClC,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,kFAAkF;AAClF,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,YAWrD;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACxB,EAAE,EACF,KAAK,EACL,QAAQ,EACR,WAAgB,EAChB,QAAQ,EACR,WAAW,EACX,MAAY,EACZ,SAAS,GACT,EAAE,aAAa,+BAgFf"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { Input } from '../../ui/input';
|
|
3
|
+
export type FieldFeedback = 'required' | 'warning' | 'error' | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* How loudly a field problem is shown: quietly before the first blur,
|
|
6
|
+
* as a warning once touched, as an error after a submit attempt.
|
|
7
|
+
*/
|
|
8
|
+
export declare function fieldFeedback(problem: boolean, touched: boolean, submitted: boolean): FieldFeedback;
|
|
9
|
+
export type ValidatedInputProps = ComponentProps<typeof Input> & {
|
|
10
|
+
/** The current value is invalid or missing. */
|
|
11
|
+
problem: boolean;
|
|
12
|
+
/** A submit was attempted; problems are shown as errors. */
|
|
13
|
+
submitted?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/** Input that only flags a problem once the user has left the field. */
|
|
16
|
+
export declare function ValidatedInput({ problem, submitted, onBlur, ...props }: ValidatedInputProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shell/ValidatedInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAY,MAAM,OAAO,CAAA;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;AAExE;;;GAGG;AACH,wBAAgB,aAAa,CAC5B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,OAAO,GAChB,aAAa,CAGf;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,KAAK,CAAC,GAAG;IAChE,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAA;IAChB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAAC,EAC9B,OAAO,EACP,SAAiB,EACjB,MAAM,EACN,GAAG,KAAK,EACR,EAAE,mBAAmB,+BAcrB"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
export * from './AnimatedSwap';
|
|
1
2
|
export * from './AppNavigation';
|
|
2
3
|
export { BackHomeButton, type BackHomeButtonProps } from './BackHomeButton';
|
|
3
4
|
export { BrandLines, type BrandLinesProps } from './BrandLines';
|
|
4
5
|
export { ConfirmDialog, type ConfirmDialogProps } from './ConfirmDialog';
|
|
5
6
|
export * from './DatePicker';
|
|
6
7
|
export { ErrorBoundary, type ErrorBoundaryProps } from './ErrorBoundary';
|
|
8
|
+
export * from './ExternalLink';
|
|
7
9
|
export * from './NativeSelect';
|
|
8
10
|
export { PageHeading, type PageHeadingProps } from './PageHeading';
|
|
11
|
+
export * from './SaveStatus';
|
|
9
12
|
export * from './SectionNavigation';
|
|
10
13
|
export { Spinner, type SpinnerProps } from './Spinner';
|
|
14
|
+
export * from './StartupAnimation';
|
|
15
|
+
export * from './StartupProvider';
|
|
16
|
+
export * from './TagInput';
|
|
11
17
|
export { UploadButton } from './UploadButton';
|
|
18
|
+
export * from './ValidatedInput';
|
|
12
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shell/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3E,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACxE,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACxE,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAClE,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shell/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3E,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACxE,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACxE,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAClE,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AACtD,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,cAAc,kBAAkB,CAAA"}
|
|
@@ -6,7 +6,7 @@ declare function FieldLegend({ className, variant, ...props }: React.ComponentPr
|
|
|
6
6
|
}): import("react").JSX.Element;
|
|
7
7
|
declare function FieldGroup({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
8
8
|
declare const fieldVariants: (props?: ({
|
|
9
|
-
orientation?: "
|
|
9
|
+
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
declare function Field({ className, orientation, ...props }: React.ComponentProps<'fieldset'> & VariantProps<typeof fieldVariants>): import("react").JSX.Element;
|
|
12
12
|
declare function FieldContent({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { cn } from './cn';
|
|
2
2
|
export { parseHexColor } from './colors';
|
|
3
3
|
export { formatDate, formatTimestamp, getRuntimeLocale, isValidDate, } from './dates';
|
|
4
|
+
export { type FeedbackSource, SaveFeedback, type VisibleSaveStatus, } from './saveFeedback';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EACN,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,WAAW,GACX,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EACN,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,WAAW,GACX,MAAM,SAAS,CAAA;AAChB,OAAO,EACN,KAAK,cAAc,EACnB,YAAY,EACZ,KAAK,iBAAiB,GACtB,MAAM,gBAAgB,CAAA"}
|