@alfadocs/ui-kit-debug 1.54.1 → 1.54.2
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/dist/_chunks/error-page-C15GfNEj.js +312 -0
- package/dist/_chunks/error-page-C15GfNEj.js.map +1 -0
- package/dist/_chunks/{error-page-illustration-QGJAvuFB.js → error-page-illustration-bFti0VEc.js} +73 -56
- package/dist/_chunks/error-page-illustration-bFti0VEc.js.map +1 -0
- package/dist/_chunks/{login-dev-card-C7wo-Hv1.js → login-dev-card-q7iTojvV.js} +2 -2
- package/dist/_chunks/{login-dev-card-C7wo-Hv1.js.map → login-dev-card-q7iTojvV.js.map} +1 -1
- package/dist/agent-catalog.json +5 -1
- package/dist/index.js +134 -132
- package/dist/index.js.map +1 -1
- package/dist/patterns/error-page/error-page-illustration.d.ts +3 -1
- package/dist/patterns/error-page/error-page-illustration.d.ts.map +1 -1
- package/dist/patterns/error-page/error-page.d.ts +34 -2
- package/dist/patterns/error-page/error-page.d.ts.map +1 -1
- package/dist/patterns/error-page/index.d.ts +2 -1
- package/dist/patterns/error-page/index.d.ts.map +1 -1
- package/dist/patterns/error-page/index.js +7 -5
- package/dist/patterns/error-page/index.js.map +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/error-page-CKFJlekz.js +0 -275
- package/dist/_chunks/error-page-CKFJlekz.js.map +0 -1
- package/dist/_chunks/error-page-illustration-QGJAvuFB.js.map +0 -1
package/dist/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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
/** Every mood the mark can show, in the order of the status table. */
|
|
3
|
+
export declare const ERROR_PAGE_MOODS: readonly ["jumbled", "locked", "roped", "lost", "wrong-way", "vanished", "asleep", "patched", "melt", "unplugged", "rebuild", "snail", "adrift", "puzzled"];
|
|
4
|
+
export type ErrorPageMood = (typeof ERROR_PAGE_MOODS)[number];
|
|
3
5
|
export declare function ErrorPageIllustration({ mood, }: {
|
|
4
6
|
mood: ErrorPageMood;
|
|
5
7
|
}): ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-page-illustration.d.ts","sourceRoot":"","sources":["../../../src/patterns/error-page/error-page-illustration.tsx"],"names":[],"mappings":"AAWA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AASpE,
|
|
1
|
+
{"version":3,"file":"error-page-illustration.d.ts","sourceRoot":"","sources":["../../../src/patterns/error-page/error-page-illustration.tsx"],"names":[],"mappings":"AAWA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AASpE,sEAAsE;AACtE,eAAO,MAAM,gBAAgB,6JAenB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAggB9D,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,GACL,EAAE;IACD,IAAI,EAAE,aAAa,CAAC;CACrB,GAAG,SAAS,CA8CZ"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import { type HTMLAttributes } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { type ErrorPageMood } from './error-page-illustration';
|
|
3
4
|
declare const errorPageVariants: (props?: ({
|
|
4
5
|
layout?: "page" | "embedded" | null | undefined;
|
|
6
|
+
surface?: "background" | "card" | null | undefined;
|
|
5
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
/** A host's own main action: a link (`href`) or a button (`onClick`).
|
|
9
|
+
* The label is shown as given, so pass it already translated. */
|
|
10
|
+
export type ErrorPageCustomAction = {
|
|
11
|
+
label: string;
|
|
12
|
+
href: string;
|
|
13
|
+
onClick?: never;
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
} | {
|
|
16
|
+
label: string;
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
href?: never;
|
|
19
|
+
icon?: ReactNode;
|
|
20
|
+
};
|
|
6
21
|
export interface ErrorPageProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, VariantProps<typeof errorPageVariants> {
|
|
7
22
|
/** HTTP status, `'offline'` for a network error in the browser, or
|
|
8
23
|
* `'maintenance'` for planned downtime with no HTTP error behind it.
|
|
@@ -35,13 +50,30 @@ export interface ErrorPageProps extends Omit<HTMLAttributes<HTMLElement>, 'title
|
|
|
35
50
|
title?: string;
|
|
36
51
|
/** Replaces the status message. Pass it already translated. */
|
|
37
52
|
message?: string;
|
|
53
|
+
/** Replaces the status's main button with the host's own, e.g. "Book
|
|
54
|
+
* an appointment". Where the main button was Home (400, 403, 404,
|
|
55
|
+
* 405, 410 and any status without its own copy), the home link goes
|
|
56
|
+
* with it; where it was "Try again" or "Log in", the home link
|
|
57
|
+
* stays as the second button. */
|
|
58
|
+
primaryAction?: ErrorPageCustomAction;
|
|
59
|
+
/** Picks the mark's mood whatever the status, e.g. for a status
|
|
60
|
+
* without its own copy. */
|
|
61
|
+
mood?: ErrorPageMood;
|
|
62
|
+
/** Shows "Error 404" above the title. Default true. Turn it off when
|
|
63
|
+
* the page reports an outcome inside an app rather than an HTTP
|
|
64
|
+
* error. */
|
|
65
|
+
showStatusLabel?: boolean;
|
|
38
66
|
/** Signs the page with the Alfadocs wordmark. Default true. */
|
|
39
67
|
showLogo?: boolean;
|
|
40
68
|
/** Renders as `<main>` (default) or `<div>` when the host already has
|
|
41
69
|
* a main landmark. */
|
|
42
70
|
as?: 'main' | 'div';
|
|
43
|
-
/** Moves focus to the heading once shown
|
|
71
|
+
/** Moves focus to the heading once shown, and again when the status
|
|
72
|
+
* changes. Default true. */
|
|
44
73
|
focusHeading?: boolean;
|
|
74
|
+
/** The heading's level. Default 1; pass 2 inside an app page that
|
|
75
|
+
* already has its own `h1`. */
|
|
76
|
+
headingLevel?: 1 | 2 | 3;
|
|
45
77
|
}
|
|
46
78
|
export declare const ErrorPage: import("react").ForwardRefExoticComponent<ErrorPageProps & import("react").RefAttributes<HTMLElement>>;
|
|
47
79
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-page.d.ts","sourceRoot":"","sources":["../../../src/patterns/error-page/error-page.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error-page.d.ts","sourceRoot":"","sources":["../../../src/patterns/error-page/error-page.tsx"],"names":[],"mappings":"AAUA,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,2BAA2B,CAAC;AAMnC,QAAA,MAAM,iBAAiB;;;8EAoBtB,CAAC;AA+CF;kEACkE;AAClE,MAAM,MAAM,qBAAqB,GAC7B;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;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IAChC,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC1B;AAED,eAAO,MAAM,SAAS,wGA8PrB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ErrorPage } from './error-page';
|
|
2
|
-
export type { ErrorPageProps } from './error-page';
|
|
2
|
+
export type { ErrorPageCustomAction, ErrorPageProps } from './error-page';
|
|
3
|
+
export { ERROR_PAGE_MOODS, type ErrorPageMood, } from './error-page-illustration';
|
|
3
4
|
export { ERROR_PAGE_STATUSES, errorPageStatusSpec, type ErrorPageKnownStatus, type ErrorPagePrimaryAction, type ErrorPageStatusSpec, } from './error-page-statuses';
|
|
4
5
|
export { resolveErrorPageLocale, ERROR_PAGE_FALLBACK_LOCALE, type ErrorPageLocaleSources, } from './error-page-locale';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/error-page/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/error-page/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EACL,gBAAgB,EAChB,KAAK,aAAa,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,sBAAsB,GAC5B,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { E
|
|
1
|
+
import { E, a as e, b as o, e as R, r as s } from "../../_chunks/error-page-C15GfNEj.js";
|
|
2
|
+
import { E as _ } from "../../_chunks/error-page-illustration-bFti0VEc.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
E as ERROR_PAGE_FALLBACK_LOCALE,
|
|
5
|
+
_ as ERROR_PAGE_MOODS,
|
|
6
|
+
e as ERROR_PAGE_STATUSES,
|
|
5
7
|
o as ErrorPage,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
R as errorPageStatusSpec,
|
|
9
|
+
s as resolveErrorPageLocale
|
|
8
10
|
};
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|