@hardimpactdev/craft-ui 0.0.6 → 0.0.8

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 (36) hide show
  1. package/dist/craft-ui.css +1 -1
  2. package/dist/craft-ui.js +11928 -10977
  3. package/dist/index.d.ts +5 -1
  4. package/dist/src/components/InputError.vue.d.ts +5 -0
  5. package/dist/src/components/TextLink.vue.d.ts +27 -0
  6. package/dist/src/components/native-select/NativeSelectOptGroup.vue.d.ts +4 -4
  7. package/dist/src/components/native-select/NativeSelectOption.vue.d.ts +4 -4
  8. package/dist/src/layouts/auth/AuthCardLayout.vue.d.ts +28 -0
  9. package/dist/src/layouts/auth/AuthLayout.vue.d.ts +27 -0
  10. package/dist/src/layouts/auth/AuthSimpleLayout.vue.d.ts +2 -1
  11. package/dist/src/layouts/auth/AuthSplitLayout.vue.d.ts +29 -0
  12. package/dist/src/pages/auth/ConfirmPassword.vue.d.ts +38 -0
  13. package/dist/src/pages/auth/ForgotPassword.vue.d.ts +47 -0
  14. package/dist/src/pages/auth/Login.vue.d.ts +59 -0
  15. package/dist/src/pages/auth/Register.vue.d.ts +51 -0
  16. package/dist/src/pages/auth/ResetPassword.vue.d.ts +47 -0
  17. package/dist/src/pages/auth/TwoFactorChallenge.vue.d.ts +44 -0
  18. package/dist/src/pages/auth/VerifyEmail.vue.d.ts +37 -0
  19. package/dist/src/pages/auth/index.d.ts +8 -0
  20. package/dist/src/pages/auth/types.d.ts +54 -0
  21. package/dist/src/vite/aliases.d.ts +13 -0
  22. package/dist/src/vite/defineCraftConfig.d.ts +6 -21
  23. package/dist/src/vite/plugins.d.ts +17 -0
  24. package/dist/src/vite/server.d.ts +10 -0
  25. package/dist/src/vite/types.d.ts +64 -0
  26. package/dist/vite/aliases.js +62 -0
  27. package/dist/vite/defineCraftConfig.js +18 -161
  28. package/dist/vite/plugins.js +59 -0
  29. package/dist/vite/server.js +30 -0
  30. package/dist/vite/ts/aliases.ts +132 -0
  31. package/dist/vite/ts/defineCraftConfig.ts +23 -212
  32. package/dist/vite/ts/plugins.ts +86 -0
  33. package/dist/vite/ts/server.ts +42 -0
  34. package/dist/vite/ts/types.ts +73 -0
  35. package/dist/vite/types.js +0 -0
  36. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
+ import { default as AuthLayout } from './src/layouts/auth/AuthLayout.vue';
1
2
  import { default as AuthSimpleLayout } from './src/layouts/auth/AuthSimpleLayout.vue';
3
+ import { default as AuthCardLayout } from './src/layouts/auth/AuthCardLayout.vue';
4
+ import { default as AuthSplitLayout } from './src/layouts/auth/AuthSplitLayout.vue';
2
5
  import { default as SettingsLayout } from './src/layouts/settings/SettingsLayout.vue';
3
6
  import { default as i18n } from './src/plugins/i18n.ts';
4
7
  import { useAppearance } from './src/composables/useAppearance.ts';
@@ -69,4 +72,5 @@ export * from './src/components/textarea';
69
72
  export * from './src/components/toggle';
70
73
  export * from './src/components/toggle-group';
71
74
  export * from './src/components/tooltip';
72
- export { i18n, cn, __, can, AuthSimpleLayout, SettingsLayout, useAppearance, useInitials, useLanguage, };
75
+ export * from './src/pages/auth';
76
+ export { i18n, cn, __, can, AuthLayout, AuthSimpleLayout, AuthCardLayout, AuthSplitLayout, SettingsLayout, useAppearance, useInitials, useLanguage, };
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ message?: string;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { Method } from '@inertiajs/core';
2
+ interface Props {
3
+ href: string | {
4
+ url: string;
5
+ method: Method;
6
+ };
7
+ tabindex?: number;
8
+ method?: Method;
9
+ as?: string;
10
+ }
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: any;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -20,7 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
20
20
  draggable?: (boolean | "true" | "false") | undefined;
21
21
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
22
22
  enterKeyHint?: "done" | "search" | "enter" | "go" | "next" | "previous" | "send" | undefined;
23
- hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
23
+ hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
24
24
  id?: string | undefined | undefined;
25
25
  inert?: (boolean | "true" | "false") | undefined;
26
26
  lang?: string | undefined | undefined;
@@ -73,7 +73,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
73
73
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
74
74
  'aria-flowto'?: string | undefined | undefined;
75
75
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
76
- 'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | "tree" | "grid" | undefined;
76
+ 'aria-haspopup'?: "dialog" | "menu" | "grid" | (boolean | "true" | "false") | "listbox" | "tree" | undefined;
77
77
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
78
78
  'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
79
79
  'aria-keyshortcuts'?: string | undefined | undefined;
@@ -214,7 +214,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
214
214
  draggable?: (boolean | "true" | "false") | undefined;
215
215
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
216
216
  enterKeyHint?: "done" | "search" | "enter" | "go" | "next" | "previous" | "send" | undefined;
217
- hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
217
+ hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
218
218
  id?: string | undefined | undefined;
219
219
  inert?: (boolean | "true" | "false") | undefined;
220
220
  lang?: string | undefined | undefined;
@@ -267,7 +267,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
267
267
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
268
268
  'aria-flowto'?: string | undefined | undefined;
269
269
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
270
- 'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | "tree" | "grid" | undefined;
270
+ 'aria-haspopup'?: "dialog" | "menu" | "grid" | (boolean | "true" | "false") | "listbox" | "tree" | undefined;
271
271
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
272
272
  'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
273
273
  'aria-keyshortcuts'?: string | undefined | undefined;
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
22
22
  draggable?: (boolean | "true" | "false") | undefined;
23
23
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
24
24
  enterKeyHint?: "done" | "search" | "enter" | "go" | "next" | "previous" | "send" | undefined;
25
- hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
25
+ hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
26
26
  id?: string | undefined | undefined;
27
27
  inert?: (boolean | "true" | "false") | undefined;
28
28
  lang?: string | undefined | undefined;
@@ -75,7 +75,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
75
75
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
76
76
  'aria-flowto'?: string | undefined | undefined;
77
77
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
78
- 'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | "tree" | "grid" | undefined;
78
+ 'aria-haspopup'?: "dialog" | "menu" | "grid" | (boolean | "true" | "false") | "listbox" | "tree" | undefined;
79
79
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
80
80
  'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
81
81
  'aria-keyshortcuts'?: string | undefined | undefined;
@@ -218,7 +218,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
218
218
  draggable?: (boolean | "true" | "false") | undefined;
219
219
  enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
220
220
  enterKeyHint?: "done" | "search" | "enter" | "go" | "next" | "previous" | "send" | undefined;
221
- hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
221
+ hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
222
222
  id?: string | undefined | undefined;
223
223
  inert?: (boolean | "true" | "false") | undefined;
224
224
  lang?: string | undefined | undefined;
@@ -271,7 +271,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
271
271
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
272
272
  'aria-flowto'?: string | undefined | undefined;
273
273
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
274
- 'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | "tree" | "grid" | undefined;
274
+ 'aria-haspopup'?: "dialog" | "menu" | "grid" | (boolean | "true" | "false") | "listbox" | "tree" | undefined;
275
275
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
276
276
  'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
277
277
  'aria-keyshortcuts'?: string | undefined | undefined;
@@ -0,0 +1,28 @@
1
+ import { Method } from '@inertiajs/core';
2
+ type __VLS_Props = {
3
+ title?: string;
4
+ description?: string;
5
+ logoLink?: string | {
6
+ url: string;
7
+ method: Method;
8
+ };
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ logo?(_: {}): any;
14
+ logo?(_: {}): any;
15
+ default?(_: {}): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLDivElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,27 @@
1
+ import { Method } from '@inertiajs/core';
2
+ type __VLS_Props = {
3
+ title?: string;
4
+ description?: string;
5
+ logoLink?: string | {
6
+ url: string;
7
+ method: Method;
8
+ };
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ logo?(_: {}): any;
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -2,7 +2,7 @@ import { Method } from '@inertiajs/core';
2
2
  type __VLS_Props = {
3
3
  title?: string;
4
4
  description?: string;
5
- logoLink: string | {
5
+ logoLink?: string | {
6
6
  url: string;
7
7
  method: Method;
8
8
  };
@@ -10,6 +10,7 @@ type __VLS_Props = {
10
10
  declare function __VLS_template(): {
11
11
  attrs: Partial<{}>;
12
12
  slots: {
13
+ logo?(_: {}): any;
13
14
  logo?(_: {}): any;
14
15
  default?(_: {}): any;
15
16
  };
@@ -0,0 +1,29 @@
1
+ import { Method } from '@inertiajs/core';
2
+ type __VLS_Props = {
3
+ title?: string;
4
+ description?: string;
5
+ name?: string;
6
+ logoLink?: string | {
7
+ url: string;
8
+ method: Method;
9
+ };
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ logo?(_: {}): any;
15
+ logo?(_: {}): any;
16
+ default?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,38 @@
1
+ export interface ConfirmPasswordForm {
2
+ password: string;
3
+ }
4
+ export interface ConfirmPasswordErrors {
5
+ password?: string;
6
+ }
7
+ type __VLS_Props = {
8
+ /** URL for home/logo link */
9
+ logoLink?: string;
10
+ /** Form validation errors */
11
+ errors?: ConfirmPasswordErrors;
12
+ /** Whether form is submitting */
13
+ processing?: boolean;
14
+ };
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ logo?(_: {}): any;
19
+ };
20
+ refs: {};
21
+ rootEl: HTMLDivElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ submit: (form: ConfirmPasswordForm) => any;
26
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ onSubmit?: ((form: ConfirmPasswordForm) => any) | undefined;
28
+ }>, {
29
+ logoLink: string;
30
+ processing: boolean;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,47 @@
1
+ export interface ForgotPasswordForm {
2
+ email: string;
3
+ }
4
+ export interface ForgotPasswordErrors {
5
+ email?: string;
6
+ }
7
+ type __VLS_Props = {
8
+ /** Status message (e.g., "Password reset link sent") */
9
+ status?: string;
10
+ /** URL for login page */
11
+ loginUrl?: string;
12
+ /** URL for home/logo link */
13
+ logoLink?: string;
14
+ /** Form validation errors */
15
+ errors?: ForgotPasswordErrors;
16
+ /** Whether form is submitting */
17
+ processing?: boolean;
18
+ /** Initial form values */
19
+ modelValue?: Partial<ForgotPasswordForm>;
20
+ };
21
+ declare function __VLS_template(): {
22
+ attrs: Partial<{}>;
23
+ slots: {
24
+ logo?(_: {}): any;
25
+ };
26
+ refs: {};
27
+ rootEl: HTMLDivElement;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ submit: (form: ForgotPasswordForm) => any;
32
+ "update:modelValue": (form: ForgotPasswordForm) => any;
33
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
34
+ onSubmit?: ((form: ForgotPasswordForm) => any) | undefined;
35
+ "onUpdate:modelValue"?: ((form: ForgotPasswordForm) => any) | undefined;
36
+ }>, {
37
+ logoLink: string;
38
+ processing: boolean;
39
+ loginUrl: string;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,59 @@
1
+ export interface LoginForm {
2
+ email: string;
3
+ password: string;
4
+ remember: boolean;
5
+ }
6
+ export interface LoginErrors {
7
+ email?: string;
8
+ password?: string;
9
+ }
10
+ type __VLS_Props = {
11
+ /** Status message (e.g., "Password reset link sent") */
12
+ status?: string;
13
+ /** Show "Forgot password?" link */
14
+ canResetPassword?: boolean;
15
+ /** Show "Sign up" link */
16
+ canRegister?: boolean;
17
+ /** URL for forgot password page */
18
+ forgotPasswordUrl?: string;
19
+ /** URL for register page */
20
+ registerUrl?: string;
21
+ /** URL for home/logo link */
22
+ logoLink?: string;
23
+ /** Form validation errors */
24
+ errors?: LoginErrors;
25
+ /** Whether form is submitting */
26
+ processing?: boolean;
27
+ /** Initial form values */
28
+ modelValue?: Partial<LoginForm>;
29
+ };
30
+ declare function __VLS_template(): {
31
+ attrs: Partial<{}>;
32
+ slots: {
33
+ logo?(_: {}): any;
34
+ };
35
+ refs: {};
36
+ rootEl: HTMLDivElement;
37
+ };
38
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
39
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
40
+ submit: (form: LoginForm) => any;
41
+ "update:modelValue": (form: LoginForm) => any;
42
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
43
+ onSubmit?: ((form: LoginForm) => any) | undefined;
44
+ "onUpdate:modelValue"?: ((form: LoginForm) => any) | undefined;
45
+ }>, {
46
+ logoLink: string;
47
+ canResetPassword: boolean;
48
+ canRegister: boolean;
49
+ forgotPasswordUrl: string;
50
+ registerUrl: string;
51
+ processing: boolean;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
53
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
+ export default _default;
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,51 @@
1
+ export interface RegisterForm {
2
+ name: string;
3
+ email: string;
4
+ password: string;
5
+ password_confirmation: string;
6
+ }
7
+ export interface RegisterErrors {
8
+ name?: string;
9
+ email?: string;
10
+ password?: string;
11
+ password_confirmation?: string;
12
+ }
13
+ type __VLS_Props = {
14
+ /** URL for login page */
15
+ loginUrl?: string;
16
+ /** URL for home/logo link */
17
+ logoLink?: string;
18
+ /** Form validation errors */
19
+ errors?: RegisterErrors;
20
+ /** Whether form is submitting */
21
+ processing?: boolean;
22
+ /** Initial form values */
23
+ modelValue?: Partial<RegisterForm>;
24
+ };
25
+ declare function __VLS_template(): {
26
+ attrs: Partial<{}>;
27
+ slots: {
28
+ logo?(_: {}): any;
29
+ };
30
+ refs: {};
31
+ rootEl: HTMLDivElement;
32
+ };
33
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
+ submit: (form: RegisterForm) => any;
36
+ "update:modelValue": (form: RegisterForm) => any;
37
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
38
+ onSubmit?: ((form: RegisterForm) => any) | undefined;
39
+ "onUpdate:modelValue"?: ((form: RegisterForm) => any) | undefined;
40
+ }>, {
41
+ logoLink: string;
42
+ processing: boolean;
43
+ loginUrl: string;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
+ export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,47 @@
1
+ export interface ResetPasswordForm {
2
+ email: string;
3
+ password: string;
4
+ password_confirmation: string;
5
+ token: string;
6
+ }
7
+ export interface ResetPasswordErrors {
8
+ email?: string;
9
+ password?: string;
10
+ password_confirmation?: string;
11
+ }
12
+ type __VLS_Props = {
13
+ /** Reset token from email */
14
+ token: string;
15
+ /** User's email address */
16
+ email: string;
17
+ /** URL for home/logo link */
18
+ logoLink?: string;
19
+ /** Form validation errors */
20
+ errors?: ResetPasswordErrors;
21
+ /** Whether form is submitting */
22
+ processing?: boolean;
23
+ };
24
+ declare function __VLS_template(): {
25
+ attrs: Partial<{}>;
26
+ slots: {
27
+ logo?(_: {}): any;
28
+ };
29
+ refs: {};
30
+ rootEl: HTMLDivElement;
31
+ };
32
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ submit: (form: ResetPasswordForm) => any;
35
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ onSubmit?: ((form: ResetPasswordForm) => any) | undefined;
37
+ }>, {
38
+ logoLink: string;
39
+ processing: boolean;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,44 @@
1
+ export interface TwoFactorForm {
2
+ code: string;
3
+ }
4
+ export interface TwoFactorRecoveryForm {
5
+ recovery_code: string;
6
+ }
7
+ export interface TwoFactorErrors {
8
+ code?: string;
9
+ recovery_code?: string;
10
+ }
11
+ type __VLS_Props = {
12
+ /** URL for home/logo link */
13
+ logoLink?: string;
14
+ /** Form validation errors */
15
+ errors?: TwoFactorErrors;
16
+ /** Whether form is submitting */
17
+ processing?: boolean;
18
+ };
19
+ declare function __VLS_template(): {
20
+ attrs: Partial<{}>;
21
+ slots: {
22
+ logo?(_: {}): any;
23
+ };
24
+ refs: {};
25
+ rootEl: HTMLDivElement;
26
+ };
27
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
+ submit: (form: TwoFactorForm) => any;
30
+ "submit:recovery": (form: TwoFactorRecoveryForm) => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onSubmit?: ((form: TwoFactorForm) => any) | undefined;
33
+ "onSubmit:recovery"?: ((form: TwoFactorRecoveryForm) => any) | undefined;
34
+ }>, {
35
+ logoLink: string;
36
+ processing: boolean;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
+ export default _default;
40
+ type __VLS_WithTemplateSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,37 @@
1
+ type __VLS_Props = {
2
+ /** Status message (e.g., "verification-link-sent") */
3
+ status?: string;
4
+ /** URL for logout */
5
+ logoutUrl?: string;
6
+ /** URL for home/logo link */
7
+ logoLink?: string;
8
+ /** Whether form is submitting */
9
+ processing?: boolean;
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ logo?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ resend: () => any;
22
+ logout: () => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onResend?: (() => any) | undefined;
25
+ onLogout?: (() => any) | undefined;
26
+ }>, {
27
+ logoLink: string;
28
+ processing: boolean;
29
+ logoutUrl: string;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,8 @@
1
+ export { default as LoginPage } from './Login.vue';
2
+ export { default as RegisterPage } from './Register.vue';
3
+ export { default as ForgotPasswordPage } from './ForgotPassword.vue';
4
+ export { default as ResetPasswordPage } from './ResetPassword.vue';
5
+ export { default as ConfirmPasswordPage } from './ConfirmPassword.vue';
6
+ export { default as VerifyEmailPage } from './VerifyEmail.vue';
7
+ export { default as TwoFactorChallengePage } from './TwoFactorChallenge.vue';
8
+ export * from './types';
@@ -0,0 +1,54 @@
1
+ export interface LoginForm {
2
+ email: string;
3
+ password: string;
4
+ remember: boolean;
5
+ }
6
+ export interface LoginErrors {
7
+ email?: string;
8
+ password?: string;
9
+ }
10
+ export interface RegisterForm {
11
+ name: string;
12
+ email: string;
13
+ password: string;
14
+ password_confirmation: string;
15
+ }
16
+ export interface RegisterErrors {
17
+ name?: string;
18
+ email?: string;
19
+ password?: string;
20
+ password_confirmation?: string;
21
+ }
22
+ export interface ForgotPasswordForm {
23
+ email: string;
24
+ }
25
+ export interface ForgotPasswordErrors {
26
+ email?: string;
27
+ }
28
+ export interface ResetPasswordForm {
29
+ email: string;
30
+ password: string;
31
+ password_confirmation: string;
32
+ token: string;
33
+ }
34
+ export interface ResetPasswordErrors {
35
+ email?: string;
36
+ password?: string;
37
+ password_confirmation?: string;
38
+ }
39
+ export interface ConfirmPasswordForm {
40
+ password: string;
41
+ }
42
+ export interface ConfirmPasswordErrors {
43
+ password?: string;
44
+ }
45
+ export interface TwoFactorForm {
46
+ code: string;
47
+ }
48
+ export interface TwoFactorRecoveryForm {
49
+ recovery_code: string;
50
+ }
51
+ export interface TwoFactorErrors {
52
+ code?: string;
53
+ recovery_code?: string;
54
+ }
@@ -0,0 +1,13 @@
1
+ import { Alias } from 'vite';
2
+ import { CraftConfigOptions } from './types.js';
3
+ /**
4
+ * Configure Vite resolve options for the Craft stack
5
+ *
6
+ * Handles two scenarios:
7
+ * 1. Normal: Just returns dedupe config and any custom aliases
8
+ * 2. Local development: Adds aliases for symlinked craft-ui to enable HMR
9
+ */
10
+ export declare function getResolveConfig(options: CraftConfigOptions): {
11
+ dedupe: string[];
12
+ alias: Alias[];
13
+ };