@hardimpactdev/craft-ui 0.0.25 → 0.0.26

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 (51) hide show
  1. package/dist/craft-ui.css +1 -1
  2. package/dist/craft-ui.js +19274 -17560
  3. package/dist/src/components/AppContent.vue.d.ts +3 -2
  4. package/dist/src/components/NavFooter.vue.d.ts +3 -6
  5. package/dist/src/components/NavMain.vue.d.ts +1 -3
  6. package/dist/src/components/ai/chat-conversation/ChatConversation.vue.d.ts +7 -1
  7. package/dist/src/components/ai/chat-conversation/ChatConversationLoadMore.vue.d.ts +8 -0
  8. package/dist/src/components/ai/chat-conversation/__tests__/ChatConversation.test.d.ts +1 -0
  9. package/dist/src/components/ai/chat-conversation/index.d.ts +1 -0
  10. package/dist/src/components/ai/chat-conversation/types.d.ts +9 -1
  11. package/dist/src/components/ai/prompt-input/PromptInputAddAttachment.vue.d.ts +1 -1
  12. package/dist/src/components/ai/prompt-input/PromptInputButton.vue.d.ts +1 -1
  13. package/dist/src/components/ai/prompt-input/PromptInputSubmit.vue.d.ts +1 -1
  14. package/dist/src/components/alert-dialog/AlertDialogContent.vue.d.ts +2 -2
  15. package/dist/src/components/badge/index.d.ts +1 -1
  16. package/dist/src/components/button/buttonVariants.d.ts +2 -2
  17. package/dist/src/components/carousel/CarouselNext.vue.d.ts +2 -2
  18. package/dist/src/components/carousel/CarouselPrevious.vue.d.ts +2 -2
  19. package/dist/src/components/context-menu/ContextMenuRadioGroup.vue.d.ts +2 -2
  20. package/dist/src/components/context-menu/ContextMenuSubContent.vue.d.ts +4 -4
  21. package/dist/src/components/dialog/DialogContent.vue.d.ts +2 -2
  22. package/dist/src/components/dialog/DialogScrollContent.vue.d.ts +2 -2
  23. package/dist/src/components/drawer/DrawerContent.vue.d.ts +2 -2
  24. package/dist/src/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +2 -2
  25. package/dist/src/components/dropdown-menu/DropdownMenuSubContent.vue.d.ts +4 -4
  26. package/dist/src/components/editor/Editor.vue.d.ts +1 -1
  27. package/dist/src/components/input-group/InputGroupButton.vue.d.ts +1 -1
  28. package/dist/src/components/menubar/MenubarRadioGroup.vue.d.ts +2 -2
  29. package/dist/src/components/menubar/MenubarSubContent.vue.d.ts +4 -4
  30. package/dist/src/components/native-select/NativeSelectOptGroup.vue.d.ts +2 -2
  31. package/dist/src/components/native-select/NativeSelectOption.vue.d.ts +2 -2
  32. package/dist/src/components/pagination/PaginationFirst.vue.d.ts +1 -1
  33. package/dist/src/components/pagination/PaginationItem.vue.d.ts +1 -1
  34. package/dist/src/components/pagination/PaginationLast.vue.d.ts +1 -1
  35. package/dist/src/components/pagination/PaginationLink.vue.d.ts +1 -1
  36. package/dist/src/components/pagination/PaginationNext.vue.d.ts +1 -1
  37. package/dist/src/components/pagination/PaginationPrevious.vue.d.ts +1 -1
  38. package/dist/src/components/popover/PopoverContent.vue.d.ts +2 -2
  39. package/dist/src/components/radio-group/RadioGroup.vue.d.ts +2 -2
  40. package/dist/src/components/sheet/SheetContent.vue.d.ts +2 -2
  41. package/dist/src/components/sidebar/SidebarProvider.vue.d.ts +1 -1
  42. package/dist/src/layouts/auth/AuthLayout.vue.d.ts +6 -1
  43. package/dist/src/pages/auth/ConfirmPassword.vue.d.ts +5 -0
  44. package/dist/src/pages/auth/ForgotPassword.vue.d.ts +5 -0
  45. package/dist/src/pages/auth/Login.vue.d.ts +5 -0
  46. package/dist/src/pages/auth/Register.vue.d.ts +5 -0
  47. package/dist/src/pages/auth/ResetPassword.vue.d.ts +5 -0
  48. package/dist/src/pages/auth/TwoFactorChallenge.vue.d.ts +5 -0
  49. package/dist/src/pages/auth/VerifyEmail.vue.d.ts +5 -0
  50. package/dist/src/pages/auth/types.d.ts +1 -0
  51. package/package.json +41 -40
@@ -1,7 +1,10 @@
1
1
  import { Method } from '@inertiajs/core';
2
+ import { AuthLayoutVariant } from '../../pages/auth/types';
2
3
  type __VLS_Props = {
3
4
  title?: string;
4
5
  description?: string;
6
+ name?: string;
7
+ variant?: AuthLayoutVariant;
5
8
  logoLink?: string | {
6
9
  url: string;
7
10
  method: Method;
@@ -17,7 +20,9 @@ declare function __VLS_template(): {
17
20
  rootEl: HTMLDivElement;
18
21
  };
19
22
  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>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
+ variant: AuthLayoutVariant;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
27
  export default _default;
23
28
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,3 +1,4 @@
1
+ import { AuthLayoutVariant } from './types';
1
2
  export interface ConfirmPasswordForm {
2
3
  password: string;
3
4
  }
@@ -11,6 +12,10 @@ type __VLS_Props = {
11
12
  errors?: ConfirmPasswordErrors;
12
13
  /** Whether form is submitting */
13
14
  processing?: boolean;
15
+ /** Layout variant */
16
+ variant?: AuthLayoutVariant;
17
+ /** App name (shown in split layout) */
18
+ name?: string;
14
19
  };
15
20
  declare function __VLS_template(): {
16
21
  attrs: Partial<{}>;
@@ -1,3 +1,4 @@
1
+ import { AuthLayoutVariant } from './types';
1
2
  export interface ForgotPasswordForm {
2
3
  email: string;
3
4
  }
@@ -17,6 +18,10 @@ type __VLS_Props = {
17
18
  processing?: boolean;
18
19
  /** Initial form values */
19
20
  modelValue?: Partial<ForgotPasswordForm>;
21
+ /** Layout variant */
22
+ variant?: AuthLayoutVariant;
23
+ /** App name (shown in split layout) */
24
+ name?: string;
20
25
  };
21
26
  declare function __VLS_template(): {
22
27
  attrs: Partial<{}>;
@@ -1,3 +1,4 @@
1
+ import { AuthLayoutVariant } from './types';
1
2
  export interface LoginForm {
2
3
  email: string;
3
4
  password: string;
@@ -26,6 +27,10 @@ type __VLS_Props = {
26
27
  processing?: boolean;
27
28
  /** Initial form values */
28
29
  modelValue?: Partial<LoginForm>;
30
+ /** Layout variant */
31
+ variant?: AuthLayoutVariant;
32
+ /** App name (shown in split layout) */
33
+ name?: string;
29
34
  };
30
35
  declare function __VLS_template(): {
31
36
  attrs: Partial<{}>;
@@ -1,3 +1,4 @@
1
+ import { AuthLayoutVariant } from './types';
1
2
  export interface RegisterForm {
2
3
  name: string;
3
4
  email: string;
@@ -21,6 +22,10 @@ type __VLS_Props = {
21
22
  processing?: boolean;
22
23
  /** Initial form values */
23
24
  modelValue?: Partial<RegisterForm>;
25
+ /** Layout variant */
26
+ variant?: AuthLayoutVariant;
27
+ /** App name (shown in split layout) */
28
+ name?: string;
24
29
  };
25
30
  declare function __VLS_template(): {
26
31
  attrs: Partial<{}>;
@@ -1,3 +1,4 @@
1
+ import { AuthLayoutVariant } from './types';
1
2
  export interface ResetPasswordForm {
2
3
  email: string;
3
4
  password: string;
@@ -20,6 +21,10 @@ type __VLS_Props = {
20
21
  errors?: ResetPasswordErrors;
21
22
  /** Whether form is submitting */
22
23
  processing?: boolean;
24
+ /** Layout variant */
25
+ variant?: AuthLayoutVariant;
26
+ /** App name (shown in split layout) */
27
+ name?: string;
23
28
  };
24
29
  declare function __VLS_template(): {
25
30
  attrs: Partial<{}>;
@@ -1,3 +1,4 @@
1
+ import { AuthLayoutVariant } from './types';
1
2
  export interface TwoFactorForm {
2
3
  code: string;
3
4
  }
@@ -15,6 +16,10 @@ type __VLS_Props = {
15
16
  errors?: TwoFactorErrors;
16
17
  /** Whether form is submitting */
17
18
  processing?: boolean;
19
+ /** Layout variant */
20
+ variant?: AuthLayoutVariant;
21
+ /** App name (shown in split layout) */
22
+ name?: string;
18
23
  };
19
24
  declare function __VLS_template(): {
20
25
  attrs: Partial<{}>;
@@ -1,3 +1,4 @@
1
+ import { AuthLayoutVariant } from './types';
1
2
  type __VLS_Props = {
2
3
  /** Status message (e.g., "verification-link-sent") */
3
4
  status?: string;
@@ -7,6 +8,10 @@ type __VLS_Props = {
7
8
  logoLink?: string;
8
9
  /** Whether form is submitting */
9
10
  processing?: boolean;
11
+ /** Layout variant */
12
+ variant?: AuthLayoutVariant;
13
+ /** App name (shown in split layout) */
14
+ name?: string;
10
15
  };
11
16
  declare function __VLS_template(): {
12
17
  attrs: Partial<{}>;
@@ -52,3 +52,4 @@ export interface TwoFactorErrors {
52
52
  code?: string;
53
53
  recovery_code?: string;
54
54
  }
55
+ export type AuthLayoutVariant = 'simple' | 'split';
package/package.json CHANGED
@@ -57,7 +57,7 @@
57
57
  "types": "./dist/src/vite/defineCraftConfig.d.ts"
58
58
  }
59
59
  },
60
- "version": "0.0.25",
60
+ "version": "0.0.26",
61
61
  "type": "module",
62
62
  "scripts": {
63
63
  "dev": "vite",
@@ -74,44 +74,45 @@
74
74
  "test": "vitest --project=unit --run",
75
75
  "test:watch": "vitest --project=unit",
76
76
  "test:storybook": "vitest --project=storybook --run",
77
- "test:all": "vitest --run"
77
+ "test:all": "vitest --run",
78
+ "style-watch": "npx @tailwindcss/cli -i ./src/style.css -o ./dist/craft-ui.css --watch"
78
79
  },
79
80
  "dependencies": {
80
81
  "@iconify/vue": "^5.0.0",
81
- "@inertiajs/core": "^2.3.6",
82
- "@inertiajs/vue3": "^2.0.0",
83
- "@tailwindcss/vite": "^4.0.0",
82
+ "@inertiajs/core": "^2.3.16",
83
+ "@inertiajs/vue3": "^2.3.16",
84
+ "@tailwindcss/vite": "^4.2.1",
84
85
  "@tanstack/vue-table": "^8.21.3",
85
- "@tiptap/extension-bubble-menu": "^3.18.0",
86
- "@tiptap/extension-link": "^3.18.0",
87
- "@tiptap/extension-placeholder": "^3.18.0",
88
- "@tiptap/starter-kit": "^3.18.0",
89
- "@tiptap/vue-3": "^3.18.0",
90
- "@types/node": "^25.0.3",
91
- "@unovis/ts": "^1.6.2",
92
- "@unovis/vue": "^1.6.2",
86
+ "@tiptap/extension-bubble-menu": "^3.20.0",
87
+ "@tiptap/extension-link": "^3.20.0",
88
+ "@tiptap/extension-placeholder": "^3.20.0",
89
+ "@tiptap/starter-kit": "^3.20.0",
90
+ "@tiptap/vue-3": "^3.20.0",
91
+ "@types/node": "^25.3.0",
92
+ "@unovis/ts": "^1.6.4",
93
+ "@unovis/vue": "^1.6.4",
93
94
  "@vee-validate/zod": "^4.15.1",
94
- "@vitejs/plugin-vue": "^6.0.3",
95
- "@vueuse/core": "^14.1.0",
95
+ "@vitejs/plugin-vue": "^6.0.4",
96
+ "@vueuse/core": "^14.2.1",
96
97
  "chart.js": "^4.5.1",
97
98
  "class-variance-authority": "^0.7.1",
98
99
  "clsx": "^2.1.1",
99
100
  "embla-carousel-vue": "^8.6.0",
100
- "laravel-vite-plugin": "^2.0.1",
101
+ "laravel-vite-plugin": "^2.1.0",
101
102
  "laravel-vue-i18n": "^2.8.0",
102
- "lucide-vue-next": "^0.562.0",
103
- "marked": "^17.0.2",
103
+ "lucide-vue-next": "^0.575.0",
104
+ "marked": "^17.0.3",
104
105
  "nanoid": "^5.1.6",
105
- "oxlint": "^1.39.0",
106
- "reka-ui": "^2.7.0",
107
- "tailwind-merge": "^3.4.0",
108
- "tailwindcss": "^4.1.18",
106
+ "oxlint": "^1.50.0",
107
+ "reka-ui": "^2.8.2",
108
+ "tailwind-merge": "^3.5.0",
109
+ "tailwindcss": "^4.2.1",
109
110
  "tw-animate-css": "^1.4.0",
110
111
  "vaul-vue": "^0.4.1",
111
112
  "vee-validate": "^4.15.1",
112
113
  "vite-plugin-run": "^0.6.1",
113
- "vite-plugin-vue-devtools": "^8.0.5",
114
- "vue": "^3.5.0",
114
+ "vite-plugin-vue-devtools": "^8.0.6",
115
+ "vue": "^3.5.29",
115
116
  "vue-chartjs": "^5.3.3",
116
117
  "vue-input-otp": "^0.3.2",
117
118
  "vue-sonner": "^2.0.9",
@@ -120,27 +121,27 @@
120
121
  },
121
122
  "devDependencies": {
122
123
  "@chromatic-com/storybook": "^4.1.3",
123
- "@storybook/addon-docs": "^10.1.11",
124
- "@storybook/addon-themes": "^10.1.11",
125
- "@storybook/addon-vitest": "10.1.11",
126
- "@storybook/vue3-vite": "^10.1.11",
127
- "@vitest/browser": "^4.0.16",
128
- "@vitest/browser-playwright": "^4.0.16",
129
- "@vitest/coverage-v8": "^4.0.16",
124
+ "@storybook/addon-docs": "^10.2.12",
125
+ "@storybook/addon-themes": "^10.2.12",
126
+ "@storybook/addon-vitest": "^10.2.12",
127
+ "@storybook/vue3-vite": "^10.2.12",
128
+ "@vitest/browser": "^4.0.18",
129
+ "@vitest/browser-playwright": "^4.0.18",
130
+ "@vitest/coverage-v8": "^4.0.18",
130
131
  "@vue/test-utils": "^2.4.6",
131
132
  "@vue/tsconfig": "^0.8.1",
132
- "glob": "^13.0.0",
133
- "happy-dom": "^20.3.3",
134
- "oxfmt": "^0.24.0",
135
- "playwright": "^1.57.0",
136
- "storybook": "^10.1.11",
133
+ "glob": "^13.0.6",
134
+ "happy-dom": "^20.7.0",
135
+ "oxfmt": "^0.35.0",
136
+ "playwright": "^1.58.2",
137
+ "storybook": "^10.2.12",
137
138
  "typescript": "~5.9.3",
138
- "vite": "^7.3.0",
139
+ "vite": "^7.3.1",
139
140
  "vite-plugin-dts": "^4.5.4",
140
- "vitest": "^4.0.16",
141
- "vue-draggable-plus": "^0.6.0",
141
+ "vitest": "^4.0.18",
142
+ "vue-draggable-plus": "^0.6.1",
142
143
  "vue-router": "^4.6.4",
143
- "vue-tsc": "^3.2.1"
144
+ "vue-tsc": "^3.2.5"
144
145
  },
145
146
  "peerDependencies": {
146
147
  "@inertiajs/vue3": "^2.0.0",