@molecule/app-auth-shell-vue 0.0.0-stage → 0.0.1-stage

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.
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Vue provide/inject wiring for {@link useAuthFormState}.
3
+ *
4
+ * `<AuthShell>` wraps its content in `<AuthFormStateProvider>` so any auth form
5
+ * rendered inside inherits cross-view email persistence — call
6
+ * `useAuthFormStateContext()` from the form to bind the shared `email` (and
7
+ * other shared fields) and to `clear()` on successful auth. Apps that compose
8
+ * the lower-level AuthShell primitives can wrap manually with
9
+ * `<AuthFormStateProvider>`.
10
+ *
11
+ * @module
12
+ */
13
+ import type { AuthFormState } from './types.js';
14
+ /**
15
+ * Provides a single {@link useAuthFormState} instance to all descendants via
16
+ * provide/inject, so sibling/child auth forms share the same email.
17
+ *
18
+ * @param props - Children plus optional storage provider, key, and seed fields.
19
+ * @returns The provider component.
20
+ */
21
+ export declare const AuthFormStateProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
22
+ children: null;
23
+ storage: null;
24
+ storageKey: StringConstructor;
25
+ initialFields: null;
26
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
+ children: null;
30
+ storage: null;
31
+ storageKey: StringConstructor;
32
+ initialFields: null;
33
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
34
+ /**
35
+ * Reads the shared auth form state from the nearest
36
+ * {@link AuthFormStateProvider} (which `<AuthShell>` renders by default).
37
+ *
38
+ * @returns The shared {@link AuthFormState}.
39
+ * @throws {Error} If called outside an `<AuthFormStateProvider>`/`<AuthShell>`.
40
+ */
41
+ export declare function useAuthFormStateContext(): AuthFormState;
42
+ //# sourceMappingURL=AuthFormStateProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthFormStateProvider.d.ts","sourceRoot":"","sources":["../src/AuthFormStateProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAM/C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iGAiBhC,CAAA;AAEF;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,aAAa,CAQvD"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Vue provide/inject wiring for {@link useAuthFormState}.
3
+ *
4
+ * `<AuthShell>` wraps its content in `<AuthFormStateProvider>` so any auth form
5
+ * rendered inside inherits cross-view email persistence — call
6
+ * `useAuthFormStateContext()` from the form to bind the shared `email` (and
7
+ * other shared fields) and to `clear()` on successful auth. Apps that compose
8
+ * the lower-level AuthShell primitives can wrap manually with
9
+ * `<AuthFormStateProvider>`.
10
+ *
11
+ * @module
12
+ */
13
+ import { defineComponent, inject, provide } from 'vue';
14
+ import { useAuthFormState } from './useAuthFormState.js';
15
+ /** The injection key under which {@link AuthFormStateProvider} publishes the shared state. */
16
+ const AuthFormStateKey = Symbol('molecule-auth-form-state');
17
+ /**
18
+ * Provides a single {@link useAuthFormState} instance to all descendants via
19
+ * provide/inject, so sibling/child auth forms share the same email.
20
+ *
21
+ * @param props - Children plus optional storage provider, key, and seed fields.
22
+ * @returns The provider component.
23
+ */
24
+ export const AuthFormStateProvider = defineComponent({
25
+ name: 'AuthFormStateProvider',
26
+ props: {
27
+ children: null,
28
+ storage: null,
29
+ storageKey: String,
30
+ initialFields: null,
31
+ },
32
+ setup(props, { slots }) {
33
+ const state = useAuthFormState({
34
+ storage: props.storage,
35
+ storageKey: props.storageKey,
36
+ initialFields: props.initialFields,
37
+ });
38
+ provide(AuthFormStateKey, state);
39
+ return () => (slots.default ? slots.default() : []);
40
+ },
41
+ });
42
+ /**
43
+ * Reads the shared auth form state from the nearest
44
+ * {@link AuthFormStateProvider} (which `<AuthShell>` renders by default).
45
+ *
46
+ * @returns The shared {@link AuthFormState}.
47
+ * @throws {Error} If called outside an `<AuthFormStateProvider>`/`<AuthShell>`.
48
+ */
49
+ export function useAuthFormStateContext() {
50
+ const state = inject(AuthFormStateKey, undefined);
51
+ if (!state) {
52
+ throw new Error('useAuthFormStateContext must be used within an <AuthFormStateProvider> (or <AuthShell>, which renders one).');
53
+ }
54
+ return state;
55
+ }
56
+ //# sourceMappingURL=AuthFormStateProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthFormStateProvider.js","sourceRoot":"","sources":["../src/AuthFormStateProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,EAAqB,OAAO,EAAE,MAAM,KAAK,CAAA;AAGzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,8FAA8F;AAC9F,MAAM,gBAAgB,GAAgC,MAAM,CAAC,0BAA0B,CAAC,CAAA;AAExF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC;IACnD,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EAAE;QACL,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,MAAM;QAClB,aAAa,EAAE,IAAI;KACpB;IACD,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE;QACpB,MAAM,KAAK,GAAG,gBAAgB,CAAC;YAC7B,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,aAAa,EAAE,KAAK,CAAC,aAAa;SACnC,CAAC,CAAA;QACF,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAA;QAChC,OAAO,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACrD,CAAC;CACF,CAAC,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB;IACrC,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAA;IACjD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,6GAA6G,CAC9G,CAAA;IACH,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
@@ -0,0 +1,236 @@
1
+ /**
2
+ * Vue auth-page layout shell — the Vue counterpart of
3
+ * `@molecule/app-auth-shell-react`. Same exports, same props (React names),
4
+ * same DOM for the same input.
5
+ *
6
+ * @module
7
+ */
8
+ import { type VNode } from 'vue';
9
+ /**
10
+ * Outer full-screen container — centered flex, padded, with optional
11
+ * absolute-positioned background decoration child.
12
+ *
13
+ * @param props - Component props (see the exported `AuthShellContainerProps`).
14
+ * @param context - The setup context (default slot = children).
15
+ * @returns The container component.
16
+ */
17
+ export declare const AuthShellContainer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
+ className: StringConstructor;
19
+ layout: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ className: StringConstructor;
25
+ layout: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }>> & Readonly<{}>, {
30
+ layout: string;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
+ /**
33
+ * Absolute-positioned background decoration layer — orbs, mesh gradients,
34
+ * radial glows.
35
+ *
36
+ * @param props - Component props (no data props; the default slot is the content).
37
+ * @param context - The setup context (default slot = children).
38
+ * @returns The decoration component.
39
+ */
40
+ export declare const AuthShellDecoration: import("vue").DefineComponent<{}, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
+ /**
42
+ * The centered glassmorphic card surface.
43
+ *
44
+ * @param props - Component props (see the exported `AuthShellCardProps`).
45
+ * @param context - The setup context (default slot = children; `style` is an attr).
46
+ * @returns The card component.
47
+ */
48
+ export declare const AuthShellCard: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
49
+ surfaceClassName: StringConstructor;
50
+ className: StringConstructor;
51
+ outerClassName: StringConstructor;
52
+ dataMolId: StringConstructor;
53
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
54
+ surfaceClassName: StringConstructor;
55
+ className: StringConstructor;
56
+ outerClassName: StringConstructor;
57
+ dataMolId: StringConstructor;
58
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
59
+ /**
60
+ * Centered heading block: optional eyebrow + h1 + optional subheading.
61
+ *
62
+ * @param props - Component props (see the exported `AuthShellHeadingProps`).
63
+ * @param context - The setup context (no slots).
64
+ * @returns The heading component.
65
+ */
66
+ export declare const AuthShellHeading: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
67
+ heading: {
68
+ type: StringConstructor;
69
+ required: true;
70
+ };
71
+ subheading: StringConstructor;
72
+ eyebrow: StringConstructor;
73
+ headingClassName: StringConstructor;
74
+ headingStyle: null;
75
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
76
+ heading: {
77
+ type: StringConstructor;
78
+ required: true;
79
+ };
80
+ subheading: StringConstructor;
81
+ eyebrow: StringConstructor;
82
+ headingClassName: StringConstructor;
83
+ headingStyle: null;
84
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
85
+ /**
86
+ * Footer inside the card — small text with a top border.
87
+ *
88
+ * @param props - Component props (no data props; the default slot is the content).
89
+ * @param context - The setup context (default slot = children).
90
+ * @returns The footer component.
91
+ */
92
+ export declare const AuthShellFooter: import("vue").DefineComponent<{}, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
93
+ /**
94
+ * "Back to home" link (or custom destination) rendered below the card.
95
+ *
96
+ * The arrow's Material Symbols glyph span is `aria-hidden="true"`, so the
97
+ * link's accessible name is its `t()` label alone.
98
+ *
99
+ * @param props - Component props (see the exported `AuthShellBackLinkProps`).
100
+ * @returns The back-link component.
101
+ */
102
+ export declare const AuthShellBackLink: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
103
+ to: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ label: StringConstructor;
108
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
109
+ to: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ };
113
+ label: StringConstructor;
114
+ }>> & Readonly<{}>, {
115
+ to: string;
116
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
117
+ /**
118
+ * Outer frame for the two-column "decorated brand panel + card" auth layout.
119
+ *
120
+ * @param props - Component props (see the exported `AuthShellSplitProps`).
121
+ * @param context - The setup context (default slot = children; extra attrs fall through).
122
+ * @returns The split component.
123
+ */
124
+ export declare const AuthShellSplit: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
125
+ className: StringConstructor;
126
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
127
+ className: StringConstructor;
128
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
129
+ /**
130
+ * The vertically-flexed two-column row inside `<AuthShellSplit>`.
131
+ *
132
+ * @param props - Component props (see the exported `AuthShellSplitRowProps`).
133
+ * @param context - The setup context (default slot = children; extra attrs fall through).
134
+ * @returns The split-row component.
135
+ */
136
+ export declare const AuthShellSplitRow: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
137
+ className: StringConstructor;
138
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
139
+ className: StringConstructor;
140
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
141
+ /**
142
+ * A decorative `<aside>` that collapses on mobile (the brand-panel half).
143
+ *
144
+ * @param props - Component props (see the exported `AuthShellPanelProps`).
145
+ * @param context - The setup context (default slot = children; extra attrs fall through).
146
+ * @returns The panel component.
147
+ */
148
+ export declare const AuthShellPanel: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
149
+ className: StringConstructor;
150
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
151
+ className: StringConstructor;
152
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
153
+ /**
154
+ * A `<section>` (or `<main>`, via `as`) that centers its children on both axes.
155
+ *
156
+ * @param props - Component props (see the exported `AuthShellCardColumnProps`).
157
+ * @param context - The setup context (default slot = children; extra attrs fall through).
158
+ * @returns The card-column component.
159
+ */
160
+ export declare const AuthShellCardColumn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
161
+ className: StringConstructor;
162
+ as: {
163
+ type: StringConstructor;
164
+ default: string;
165
+ };
166
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
167
+ className: StringConstructor;
168
+ as: {
169
+ type: StringConstructor;
170
+ default: string;
171
+ };
172
+ }>> & Readonly<{}>, {
173
+ as: string;
174
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
175
+ /**
176
+ * Convenience preset for the most common layout: centered glass card with
177
+ * optional decoration, brand, heading, body, footer, and a "Back to home" link.
178
+ *
179
+ * Wraps its content in an `<AuthFormStateProvider>` so every form rendered
180
+ * inside inherits cross-view email persistence via
181
+ * `useAuthFormStateContext()`.
182
+ *
183
+ * @param props - Component props (see the exported `AuthShellProps`).
184
+ * @param context - The setup context (default/brand/decoration/footer slots).
185
+ * @returns The preset shell component.
186
+ */
187
+ export declare const AuthShell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
188
+ heading: {
189
+ type: StringConstructor;
190
+ required: true;
191
+ };
192
+ subheading: {
193
+ type: StringConstructor;
194
+ required: true;
195
+ };
196
+ footer: null;
197
+ brand: null;
198
+ decoration: null;
199
+ backTo: {
200
+ type: StringConstructor;
201
+ default: string;
202
+ };
203
+ showBackLink: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ formStateStorage: null;
208
+ formStateKey: StringConstructor;
209
+ }>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
210
+ heading: {
211
+ type: StringConstructor;
212
+ required: true;
213
+ };
214
+ subheading: {
215
+ type: StringConstructor;
216
+ required: true;
217
+ };
218
+ footer: null;
219
+ brand: null;
220
+ decoration: null;
221
+ backTo: {
222
+ type: StringConstructor;
223
+ default: string;
224
+ };
225
+ showBackLink: {
226
+ type: BooleanConstructor;
227
+ default: boolean;
228
+ };
229
+ formStateStorage: null;
230
+ formStateKey: StringConstructor;
231
+ }>> & Readonly<{}>, {
232
+ backTo: string;
233
+ showBackLink: boolean;
234
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
235
+ export default AuthShell;
236
+ //# sourceMappingURL=AuthShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthShell.d.ts","sourceRoot":"","sources":["../src/AuthShell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAsB,KAAK,KAAK,EAAmB,MAAM,KAAK,CAAA;AAyBrE;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;;;;UAQhB,KAAK;;;;;;;;4EAmBlB,CAAA;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,0CAIjB,KAAK,yOAElB,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;;;;;UAWX,KAAK;;;;;iGAkBlB,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;UAWd,KAAK;;;;;;;;;iGA6BlB,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,0CAIb,KAAK,yOAOlB,CAAA;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB;;;;;;UASf,KAAK;;;;;;;;4EA8BlB,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;UAKZ,KAAK;;iGAOlB,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;UAKf,KAAK;;iGAGlB,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;UAKZ,KAAK;;iGAGlB,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;UAQjB,KAAK;;;;;;;;4EAalB,CAAA;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;UAcP,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;4EAsClB,CAAA;AAEF,eAAe,SAAS,CAAA"}
@@ -0,0 +1,303 @@
1
+ /**
2
+ * Vue auth-page layout shell — the Vue counterpart of
3
+ * `@molecule/app-auth-shell-react`. Same exports, same props (React names),
4
+ * same DOM for the same input.
5
+ *
6
+ * @module
7
+ */
8
+ import { defineComponent, h } from 'vue';
9
+ import { getClassMap } from '@molecule/app-ui';
10
+ import { Link, useTranslation } from '@molecule/app-vue';
11
+ import { AuthFormStateProvider } from './AuthFormStateProvider.js';
12
+ /**
13
+ * Resolves a node-valued prop that may also arrive as a same-named slot: the
14
+ * prop wins when given (a `null` prop contributes nothing), otherwise the slot,
15
+ * otherwise nothing.
16
+ *
17
+ * @param prop - The prop value, when the caller passed the prop.
18
+ * @param slot - The same-named slot's render function, when provided.
19
+ * @returns The children to render.
20
+ */
21
+ const nodeOrSlot = (prop, slot) => {
22
+ if (prop !== undefined && prop !== null)
23
+ return [prop];
24
+ if (slot)
25
+ return slot();
26
+ return [];
27
+ };
28
+ /**
29
+ * Outer full-screen container — centered flex, padded, with optional
30
+ * absolute-positioned background decoration child.
31
+ *
32
+ * @param props - Component props (see the exported `AuthShellContainerProps`).
33
+ * @param context - The setup context (default slot = children).
34
+ * @returns The container component.
35
+ */
36
+ export const AuthShellContainer = defineComponent({
37
+ name: 'AuthShellContainer',
38
+ props: {
39
+ className: String,
40
+ layout: { type: String, default: 'centered' },
41
+ },
42
+ setup(props, { slots }) {
43
+ const cm = getClassMap();
44
+ return () => h('div', {
45
+ class: cm.cn(props.layout === 'column'
46
+ ? cm.cn(cm.flex({ direction: 'col' }), cm.minH('screen'), cm.authShellContainer)
47
+ : cm.cn(cm.flex({ align: 'center', justify: 'center' }), cm.minH('screen'), cm.sp('p', 6), cm.authShellContainer), props.className),
48
+ }, slots.default?.() ?? []);
49
+ },
50
+ });
51
+ /**
52
+ * Absolute-positioned background decoration layer — orbs, mesh gradients,
53
+ * radial glows.
54
+ *
55
+ * @param props - Component props (no data props; the default slot is the content).
56
+ * @param context - The setup context (default slot = children).
57
+ * @returns The decoration component.
58
+ */
59
+ export const AuthShellDecoration = defineComponent({
60
+ name: 'AuthShellDecoration',
61
+ setup(_props, { slots }) {
62
+ const cm = getClassMap();
63
+ return () => h('div', { class: cm.cn(cm.authShellDecoration) }, slots.default?.() ?? []);
64
+ },
65
+ });
66
+ /**
67
+ * The centered glassmorphic card surface.
68
+ *
69
+ * @param props - Component props (see the exported `AuthShellCardProps`).
70
+ * @param context - The setup context (default slot = children; `style` is an attr).
71
+ * @returns The card component.
72
+ */
73
+ export const AuthShellCard = defineComponent({
74
+ name: 'AuthShellCard',
75
+ inheritAttrs: false,
76
+ props: {
77
+ surfaceClassName: String,
78
+ className: String,
79
+ outerClassName: String,
80
+ dataMolId: String,
81
+ },
82
+ setup(props, { slots, attrs }) {
83
+ const cm = getClassMap();
84
+ return () => h('main', { class: props.outerClassName ?? cm.cn(cm.w('full'), cm.authShellCardOuter) }, [
85
+ h('div', {
86
+ class: cm.cn(cm.flex({ direction: 'col', gap: 'lg' }), cm.sp('p', 8), props.surfaceClassName ?? cm.authShellCardSurface, props.className),
87
+ style: attrs.style,
88
+ 'data-mol-id': props.dataMolId,
89
+ }, slots.default?.() ?? []),
90
+ ]);
91
+ },
92
+ });
93
+ /**
94
+ * Centered heading block: optional eyebrow + h1 + optional subheading.
95
+ *
96
+ * @param props - Component props (see the exported `AuthShellHeadingProps`).
97
+ * @param context - The setup context (no slots).
98
+ * @returns The heading component.
99
+ */
100
+ export const AuthShellHeading = defineComponent({
101
+ name: 'AuthShellHeading',
102
+ props: {
103
+ heading: { type: String, required: true },
104
+ subheading: String,
105
+ eyebrow: String,
106
+ headingClassName: String,
107
+ headingStyle: null,
108
+ },
109
+ setup(props) {
110
+ const cm = getClassMap();
111
+ return () => h('header', { class: cm.flex({ direction: 'col', align: 'center', gap: 'xs' }) }, [
112
+ props.eyebrow
113
+ ? h('span', {
114
+ class: cm.cn(cm.textSize('xs'), cm.fontWeight('bold'), cm.authShellHeadingEyebrow),
115
+ }, props.eyebrow)
116
+ : null,
117
+ h('h1', {
118
+ class: cm.cn(cm.textSize('2xl'), cm.fontWeight('bold'), cm.authShellHeadingTitle, props.headingClassName),
119
+ style: props.headingStyle,
120
+ }, props.heading),
121
+ props.subheading
122
+ ? h('p', { class: cm.cn(cm.textSize('sm'), cm.authShellHeadingSub) }, props.subheading)
123
+ : null,
124
+ ]);
125
+ },
126
+ });
127
+ /**
128
+ * Footer inside the card — small text with a top border.
129
+ *
130
+ * @param props - Component props (no data props; the default slot is the content).
131
+ * @param context - The setup context (default slot = children).
132
+ * @returns The footer component.
133
+ */
134
+ export const AuthShellFooter = defineComponent({
135
+ name: 'AuthShellFooter',
136
+ setup(_props, { slots }) {
137
+ const cm = getClassMap();
138
+ return () => h('footer', { class: cm.cn(cm.textCenter, cm.textSize('sm'), cm.authShellFooter) }, slots.default?.() ?? []);
139
+ },
140
+ });
141
+ /**
142
+ * "Back to home" link (or custom destination) rendered below the card.
143
+ *
144
+ * The arrow's Material Symbols glyph span is `aria-hidden="true"`, so the
145
+ * link's accessible name is its `t()` label alone.
146
+ *
147
+ * @param props - Component props (see the exported `AuthShellBackLinkProps`).
148
+ * @returns The back-link component.
149
+ */
150
+ export const AuthShellBackLink = defineComponent({
151
+ name: 'AuthShellBackLink',
152
+ props: {
153
+ to: { type: String, default: '/' },
154
+ label: String,
155
+ },
156
+ setup(props) {
157
+ const cm = getClassMap();
158
+ const { t } = useTranslation();
159
+ return () => h('p', { class: cm.cn(cm.textCenter, cm.textSize('xs'), cm.sp('mt', 6), cm.authShellBackLink) }, [
160
+ h(Link, {
161
+ to: props.to,
162
+ class: cm.cn(cm.flex({ align: 'center', gap: 'xs' }), cm.authShellBackLinkAnchor),
163
+ }, {
164
+ default: () => [
165
+ // The Material Symbols ligature name paints a glyph, not text —
166
+ // hidden from the accessibility tree so the link's accessible
167
+ // name is its t() label alone.
168
+ h('span', { class: cm.iconGlyphFont, style: { fontSize: '14px' }, 'aria-hidden': 'true' }, 'arrow_back'),
169
+ props.label?.trim()
170
+ ? props.label
171
+ : t('auth.backHome', undefined, { defaultValue: 'Back to home' }),
172
+ ],
173
+ }),
174
+ ]);
175
+ },
176
+ });
177
+ /**
178
+ * Outer frame for the two-column "decorated brand panel + card" auth layout.
179
+ *
180
+ * @param props - Component props (see the exported `AuthShellSplitProps`).
181
+ * @param context - The setup context (default slot = children; extra attrs fall through).
182
+ * @returns The split component.
183
+ */
184
+ export const AuthShellSplit = defineComponent({
185
+ name: 'AuthShellSplit',
186
+ props: { className: String },
187
+ setup(props, { slots }) {
188
+ const cm = getClassMap();
189
+ return () => h('div', { class: cm.cn(cm.flex({ direction: 'col' }), cm.minH('screen'), props.className) }, slots.default?.() ?? []);
190
+ },
191
+ });
192
+ /**
193
+ * The vertically-flexed two-column row inside `<AuthShellSplit>`.
194
+ *
195
+ * @param props - Component props (see the exported `AuthShellSplitRowProps`).
196
+ * @param context - The setup context (default slot = children; extra attrs fall through).
197
+ * @returns The split-row component.
198
+ */
199
+ export const AuthShellSplitRow = defineComponent({
200
+ name: 'AuthShellSplitRow',
201
+ props: { className: String },
202
+ setup(props, { slots }) {
203
+ const cm = getClassMap();
204
+ return () => h('main', { class: cm.cn(cm.flex1, props.className) }, slots.default?.() ?? []);
205
+ },
206
+ });
207
+ /**
208
+ * A decorative `<aside>` that collapses on mobile (the brand-panel half).
209
+ *
210
+ * @param props - Component props (see the exported `AuthShellPanelProps`).
211
+ * @param context - The setup context (default slot = children; extra attrs fall through).
212
+ * @returns The panel component.
213
+ */
214
+ export const AuthShellPanel = defineComponent({
215
+ name: 'AuthShellPanel',
216
+ props: { className: String },
217
+ setup(props, { slots }) {
218
+ const cm = getClassMap();
219
+ return () => h('aside', { class: cm.cn(cm.authShellPanel, props.className) }, slots.default?.() ?? []);
220
+ },
221
+ });
222
+ /**
223
+ * A `<section>` (or `<main>`, via `as`) that centers its children on both axes.
224
+ *
225
+ * @param props - Component props (see the exported `AuthShellCardColumnProps`).
226
+ * @param context - The setup context (default slot = children; extra attrs fall through).
227
+ * @returns The card-column component.
228
+ */
229
+ export const AuthShellCardColumn = defineComponent({
230
+ name: 'AuthShellCardColumn',
231
+ props: {
232
+ className: String,
233
+ as: { type: String, default: 'section' },
234
+ },
235
+ setup(props, { slots }) {
236
+ const cm = getClassMap();
237
+ return () => h(props.as ?? 'section', {
238
+ class: cm.cn(cm.flex({ direction: 'col', align: 'center', justify: 'center' }), cm.minW(0), props.className),
239
+ }, slots.default?.() ?? []);
240
+ },
241
+ });
242
+ /**
243
+ * Convenience preset for the most common layout: centered glass card with
244
+ * optional decoration, brand, heading, body, footer, and a "Back to home" link.
245
+ *
246
+ * Wraps its content in an `<AuthFormStateProvider>` so every form rendered
247
+ * inside inherits cross-view email persistence via
248
+ * `useAuthFormStateContext()`.
249
+ *
250
+ * @param props - Component props (see the exported `AuthShellProps`).
251
+ * @param context - The setup context (default/brand/decoration/footer slots).
252
+ * @returns The preset shell component.
253
+ */
254
+ export const AuthShell = defineComponent({
255
+ name: 'AuthShell',
256
+ props: {
257
+ heading: { type: String, required: true },
258
+ subheading: { type: String, required: true },
259
+ footer: null,
260
+ brand: null,
261
+ decoration: null,
262
+ backTo: { type: String, default: '/' },
263
+ showBackLink: { type: Boolean, default: true },
264
+ formStateStorage: null,
265
+ formStateKey: String,
266
+ },
267
+ setup(props, { slots }) {
268
+ return () => h(AuthFormStateProvider, { storage: props.formStateStorage, storageKey: props.formStateKey }, {
269
+ default: () => [
270
+ h(AuthShellContainer, null, {
271
+ default: () => {
272
+ const decoration = nodeOrSlot(props.decoration, slots.decoration);
273
+ const brand = nodeOrSlot(props.brand, slots.brand);
274
+ const footer = nodeOrSlot(props.footer, slots.footer);
275
+ return [
276
+ decoration.length > 0
277
+ ? h(AuthShellDecoration, null, { default: () => decoration })
278
+ : null,
279
+ h('div', null, [
280
+ h(AuthShellCard, null, {
281
+ default: () => [
282
+ ...brand,
283
+ h(AuthShellHeading, {
284
+ heading: props.heading,
285
+ subheading: props.subheading,
286
+ }),
287
+ ...(slots.default?.() ?? []),
288
+ footer.length > 0
289
+ ? h(AuthShellFooter, null, { default: () => footer })
290
+ : null,
291
+ ],
292
+ }),
293
+ props.showBackLink ? h(AuthShellBackLink, { to: props.backTo }) : null,
294
+ ]),
295
+ ];
296
+ },
297
+ }),
298
+ ],
299
+ });
300
+ },
301
+ });
302
+ export default AuthShell;
303
+ //# sourceMappingURL=AuthShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthShell.js","sourceRoot":"","sources":["../src/AuthShell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC,EAA+B,MAAM,KAAK,CAAA;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAExD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE;;;;;;;;GAQG;AACH,MAAM,UAAU,GAAG,CACjB,IAAmC,EACnC,IAAsC,EACxB,EAAE;IAChB,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IACtD,IAAI,IAAI;QAAE,OAAO,IAAI,EAAE,CAAA;IACvB,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IAChD,IAAI,EAAE,oBAAoB;IAC1B,KAAK,EAAE;QACL,SAAS,EAAE,MAAM;QACjB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE;KAC9C;IACD,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE;QACpB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;QACxB,OAAO,GAAU,EAAE,CACjB,CAAC,CACC,KAAK,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