wally-ui 1.12.1 → 1.13.1

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 (67) hide show
  1. package/dist/cli.js +8 -5
  2. package/dist/cli.js.map +1 -1
  3. package/package.json +1 -1
  4. package/playground/showcase/src/app/app.routes.server.ts +4 -0
  5. package/playground/showcase/src/app/components/ai/ai-composer/ai-composer.html +164 -31
  6. package/playground/showcase/src/app/components/ai/ai-composer/ai-composer.ts +25 -3
  7. package/playground/showcase/src/app/components/ai/ai-prompt-input/ai-prompt-input.html +1 -1
  8. package/playground/showcase/src/app/components/badge/badge.css +0 -0
  9. package/playground/showcase/src/app/components/badge/badge.html +3 -0
  10. package/playground/showcase/src/app/components/badge/badge.ts +24 -0
  11. package/playground/showcase/src/app/components/button/button.html +1 -3
  12. package/playground/showcase/src/app/components/button/button.ts +4 -4
  13. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-content/dropdown-menu-content.css +0 -0
  14. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-content/dropdown-menu-content.html +9 -0
  15. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-content/dropdown-menu-content.spec.ts +23 -0
  16. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-content/dropdown-menu-content.ts +167 -0
  17. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.css +0 -0
  18. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.html +5 -0
  19. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.spec.ts +23 -0
  20. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.ts +10 -0
  21. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.css +0 -0
  22. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.html +6 -0
  23. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.spec.ts +23 -0
  24. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.ts +37 -0
  25. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-label/dropdown-menu-label.css +0 -0
  26. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-label/dropdown-menu-label.html +3 -0
  27. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-label/dropdown-menu-label.spec.ts +23 -0
  28. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-label/dropdown-menu-label.ts +11 -0
  29. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-portal/dropdown-menu-portal.css +0 -0
  30. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-portal/dropdown-menu-portal.html +1 -0
  31. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-portal/dropdown-menu-portal.spec.ts +23 -0
  32. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-portal/dropdown-menu-portal.ts +11 -0
  33. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-separator/dropdown-menu-separator.css +0 -0
  34. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-separator/dropdown-menu-separator.html +1 -0
  35. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-separator/dropdown-menu-separator.spec.ts +23 -0
  36. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-separator/dropdown-menu-separator.ts +11 -0
  37. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub/dropdown-menu-sub.css +0 -0
  38. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub/dropdown-menu-sub.html +3 -0
  39. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub/dropdown-menu-sub.spec.ts +23 -0
  40. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub/dropdown-menu-sub.ts +16 -0
  41. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub-content/dropdown-menu-sub-content.css +0 -0
  42. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub-content/dropdown-menu-sub-content.html +9 -0
  43. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub-content/dropdown-menu-sub-content.spec.ts +23 -0
  44. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub-content/dropdown-menu-sub-content.ts +140 -0
  45. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.css +0 -0
  46. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.html +13 -0
  47. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.spec.ts +23 -0
  48. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.ts +40 -0
  49. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub.service.spec.ts +16 -0
  50. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-sub.service.ts +23 -0
  51. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-trigger/dropdown-menu-trigger.css +0 -0
  52. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-trigger/dropdown-menu-trigger.html +8 -0
  53. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-trigger/dropdown-menu-trigger.spec.ts +23 -0
  54. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu-trigger/dropdown-menu-trigger.ts +55 -0
  55. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu.css +0 -0
  56. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu.html +3 -0
  57. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu.service.spec.ts +16 -0
  58. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu.service.ts +31 -0
  59. package/playground/showcase/src/app/components/dropdown-menu/dropdown-menu.ts +69 -0
  60. package/playground/showcase/src/app/components/tooltip/tooltip.ts +195 -80
  61. package/playground/showcase/src/app/pages/documentation/components/components.html +110 -51
  62. package/playground/showcase/src/app/pages/documentation/components/components.routes.ts +4 -0
  63. package/playground/showcase/src/app/pages/documentation/components/dropdown-menu-docs/dropdown-menu-docs.css +1 -0
  64. package/playground/showcase/src/app/pages/documentation/components/dropdown-menu-docs/dropdown-menu-docs.examples.ts +404 -0
  65. package/playground/showcase/src/app/pages/documentation/components/dropdown-menu-docs/dropdown-menu-docs.html +612 -0
  66. package/playground/showcase/src/app/pages/documentation/components/dropdown-menu-docs/dropdown-menu-docs.ts +127 -0
  67. package/playground/showcase/src/app/pages/home/home.html +10 -6
@@ -0,0 +1,127 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ import { AiPromptService } from '../../../../core/services/ai-prompt.service';
4
+ import { getFormattedCode } from '../../../../core/utils/prism';
5
+
6
+ import { DropdownMenuCodeExamples } from './dropdown-menu-docs.examples';
7
+
8
+ import { Breadcrumb, BreadcrumbItem } from '../../../../components/breadcrumb/breadcrumb';
9
+ import { Button } from '../../../../components/button/button';
10
+ import { DropdownMenu } from '../../../../components/dropdown-menu/dropdown-menu';
11
+ import { DropdownMenuTrigger } from '../../../../components/dropdown-menu/dropdown-menu-trigger/dropdown-menu-trigger';
12
+ import { DropdownMenuContent } from '../../../../components/dropdown-menu/dropdown-menu-content/dropdown-menu-content';
13
+ import { DropdownMenuItem } from '../../../../components/dropdown-menu/dropdown-menu-item/dropdown-menu-item';
14
+ import { DropdownMenuLabel } from '../../../../components/dropdown-menu/dropdown-menu-label/dropdown-menu-label';
15
+ import { DropdownMenuSeparator } from '../../../../components/dropdown-menu/dropdown-menu-separator/dropdown-menu-separator';
16
+ import { DropdownMenuGroup } from '../../../../components/dropdown-menu/dropdown-menu-group/dropdown-menu-group';
17
+ import { DropdownMenuSub } from '../../../../components/dropdown-menu/dropdown-menu-sub/dropdown-menu-sub';
18
+ import { DropdownMenuSubTrigger } from '../../../../components/dropdown-menu/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger';
19
+ import { DropdownMenuSubContent } from '../../../../components/dropdown-menu/dropdown-menu-sub-content/dropdown-menu-sub-content';
20
+
21
+ @Component({
22
+ selector: 'app-dropdown-menu-docs',
23
+ imports: [
24
+ Button,
25
+ Breadcrumb,
26
+ DropdownMenu,
27
+ DropdownMenuTrigger,
28
+ DropdownMenuContent,
29
+ DropdownMenuItem,
30
+ DropdownMenuLabel,
31
+ DropdownMenuSeparator,
32
+ DropdownMenuGroup,
33
+ DropdownMenuSub,
34
+ DropdownMenuSubTrigger,
35
+ DropdownMenuSubContent
36
+ ],
37
+ templateUrl: './dropdown-menu-docs.html'
38
+ })
39
+ export class DropdownMenuDocs {
40
+ breadcrumbItems: BreadcrumbItem[] = [
41
+ { label: 'Home', url: '/' },
42
+ { label: 'Documentation', url: '/documentation' },
43
+ { label: 'Components', url: '/documentation/components' },
44
+ { label: 'Dropdown Menu' }
45
+ ];
46
+
47
+ installationCode = getFormattedCode(DropdownMenuCodeExamples.installation, 'bash');
48
+ importCode = getFormattedCode(DropdownMenuCodeExamples.import, 'typescript');
49
+ componentImportCode = getFormattedCode(DropdownMenuCodeExamples.componentImport, 'typescript');
50
+
51
+ basicUsageCode = getFormattedCode(DropdownMenuCodeExamples.basicUsage, 'html');
52
+ withLabelCode = getFormattedCode(DropdownMenuCodeExamples.withLabel, 'html');
53
+ withGroupsCode = getFormattedCode(DropdownMenuCodeExamples.withGroups, 'html');
54
+ withSubmenusCode = getFormattedCode(DropdownMenuCodeExamples.withSubmenus, 'html');
55
+ withIconsCode = getFormattedCode(DropdownMenuCodeExamples.withIcons, 'html');
56
+ hoverModeCode = getFormattedCode(DropdownMenuCodeExamples.hoverMode, 'html');
57
+ positioningCode = getFormattedCode(DropdownMenuCodeExamples.positioning, 'html');
58
+ disabledItemsCode = getFormattedCode(DropdownMenuCodeExamples.disabledItems, 'html');
59
+ destructiveActionCode = getFormattedCode(DropdownMenuCodeExamples.destructiveAction, 'html');
60
+ componentTsCode = getFormattedCode(DropdownMenuCodeExamples.componentTs, 'typescript');
61
+ realWorldExampleCode = getFormattedCode(DropdownMenuCodeExamples.realWorldExample, 'html');
62
+ nestedSubmenuExampleCode = getFormattedCode(DropdownMenuCodeExamples.nestedSubmenuExample, 'html');
63
+
64
+ constructor(
65
+ private aiPromptService: AiPromptService
66
+ ) { }
67
+
68
+ onProfile(): void {
69
+ console.log('Navigate to profile');
70
+ }
71
+
72
+ onSettings(): void {
73
+ console.log('Navigate to settings');
74
+ }
75
+
76
+ onBilling(): void {
77
+ console.log('Navigate to billing');
78
+ }
79
+
80
+ onLogout(): void {
81
+ console.log('User logged out');
82
+ }
83
+
84
+ onNew(): void {
85
+ console.log('New action');
86
+ }
87
+
88
+ onOpen(): void {
89
+ console.log('Open action');
90
+ }
91
+
92
+ onEdit(): void {
93
+ console.log('Edit action');
94
+ }
95
+
96
+ onDuplicate(): void {
97
+ console.log('Duplicate action');
98
+ }
99
+
100
+ onArchive(): void {
101
+ console.log('Archive action');
102
+ }
103
+
104
+ onDelete(): void {
105
+ console.log('Delete action');
106
+ }
107
+
108
+ onShareEmail(): void {
109
+ console.log('Share via email');
110
+ }
111
+
112
+ onShareLink(): void {
113
+ console.log('Copy share link');
114
+ }
115
+
116
+ onShareSocial(): void {
117
+ console.log('Share on social media');
118
+ }
119
+
120
+ get claudeUrl(): string {
121
+ return this.aiPromptService.generateClaudeUrl();
122
+ }
123
+
124
+ get chatGptUrl(): string {
125
+ return this.aiPromptService.generateChatGptUrl();
126
+ }
127
+ }
@@ -1,8 +1,8 @@
1
1
  <main class="min-h-dvh subpixel-antialiased font-mono bg-white dark:bg-[#0a0a0a]" role="main">
2
2
  <div class="w-full min-h-dvh flex flex-col items-center justify-center px-4 py-12 sm:px-6 md:px-8 lg:px-12">
3
- <!-- <div class="w-full max-w-4xl">
3
+ <div class="w-full max-w-4xl">
4
4
  <wally-ai-chat></wally-ai-chat>
5
- </div> -->
5
+ </div>
6
6
 
7
7
  <article class="w-full max-w-3xl">
8
8
  <header class="w-full mb-10 sm:mb-12 space-y-6">
@@ -23,8 +23,9 @@
23
23
  <div class="space-y-3 text-xs sm:text-sm leading-relaxed text-neutral-700 dark:text-neutral-300">
24
24
  <p>
25
25
  <span class="text-neutral-500 dark:text-neutral-500">01: </span>
26
- <strong class="text-[#0a0a0a] dark:text-white">Stop searching for the perfect Angular
27
- components.</strong>
26
+ <strong class="text-[#0a0a0a] dark:text-white">
27
+ Stop searching for the perfect Angular components.
28
+ </strong>
28
29
  Wally UI is a <strong>free, open source design system</strong> built for modern developers and
29
30
  <strong>AI coding assistants</strong>.
30
31
  </p>
@@ -135,13 +136,16 @@
135
136
  class="text-sm sm:text-base font-bold text-[#0a0a0a] dark:text-white group-hover:text-white dark:group-hover:text-[#0a0a0a] uppercase tracking-wide transition-colors duration-150">
136
137
  <span aria-hidden="true">&gt;_ </span>Chat SDK
137
138
  </h4>
138
- <span class="text-[10px] font-bold bg-blue-500 text-white px-2 py-1 uppercase tracking-wider" aria-label="Status: Coming Soon">
139
+ <span
140
+ class="text-[10px] font-bold bg-blue-500 text-white px-2 py-1 uppercase tracking-wider"
141
+ aria-label="Status: Coming Soon">
139
142
  COMING SOON
140
143
  </span>
141
144
  </div>
142
145
  <p
143
146
  class="text-xs sm:text-sm text-neutral-600 dark:text-neutral-400 group-hover:text-neutral-300 dark:group-hover:text-neutral-600 transition-colors duration-150">
144
- Complete chat development SDK: AI interface with message matrix (ai: 1/2, me: 1/1), streaming data service, and full visual customization using Wally UI components
147
+ Complete chat development SDK: AI interface with message matrix (ai: 1/2, me: 1/1),
148
+ streaming data service, and full visual customization using Wally UI components
145
149
  </p>
146
150
  </div>
147
151
  </div>