wally-ui 1.0.9 → 1.0.11

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/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Wally UI
2
2
 
3
- Angular component generator CLI
3
+ Where's Wally? Right here — bringing you ready-to-use Angular components.
4
+
5
+ **[Live Demo](https://walissoncf.github.io/wally-ui/)**
4
6
 
5
7
  ## Usage
6
8
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wally-ui",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "About Where’s Wally? Right here — bringing you ready-to-use Angular components with Wally-UI. Stop searching, start building.",
5
5
  "bin": {
6
6
  "wally": "dist/cli.js"
@@ -45,7 +45,7 @@
45
45
  "bugs": {
46
46
  "url": "https://github.com/WalissonCF/wally-ui/issues"
47
47
  },
48
- "homepage": "https://github.com/WalissonCF/wally-ui#readme",
48
+ "homepage": "https://walissoncf.github.io/wally-ui/",
49
49
  "devDependencies": {
50
50
  "@types/fs-extra": "^11.0.4",
51
51
  "@types/node": "^24.5.1",
@@ -1,12 +1,33 @@
1
- <button class="
1
+ <button [type]="buttonType()" [disabled]="buttonDisabled() || buttonLoading()" class="
2
+ group
2
3
  w-full
3
- bg-[#0a0a0a]
4
- dark:bg-white
4
+ flex items-center justify-center
5
+ bg-[#0a0a0a] hover:bg-[#0a0a0a]/85
6
+ disabled:bg-[#0a0a0a]/85
7
+ dark:bg-white dark:hover:bg-white/85
8
+ dark:disabled:bg-white/85
9
+ disabled:pointer-events-none
5
10
  p-2.5
6
11
  rounded-md
12
+ transition delay-150 duration-300 ease-in-out
13
+ antialiased
14
+ cursor-pointer
7
15
  ">
16
+
17
+ @if (buttonLoading()) {
18
+ <svg class="mr-3 -ml-1 size-4 animate-spin dark:text-[#0a0a0a]" xmlns="http://www.w3.org/2000/svg" fill="none"
19
+ viewBox="0 0 24 24">
20
+ <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
21
+ <path class="opacity-75" fill="currentColor"
22
+ d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
23
+ </path>
24
+ </svg>
25
+ }
26
+
8
27
  <span class="
9
28
  text-white
29
+ text-sm
30
+ font-medium
10
31
  dark:text-[#0a0a0a]
11
32
  ">
12
33
  {{ buttonText() }}
@@ -1,10 +1,17 @@
1
1
  import { Component, input, InputSignal } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
2
3
 
3
4
  @Component({
4
5
  selector: 'wally-button',
5
- imports: [],
6
+ imports: [
7
+ CommonModule
8
+ ],
9
+ // standalone: true, (If your application is lower than Angular 19, uncomment this line)
6
10
  templateUrl: './button.html',
7
11
  })
8
12
  export class Button {
9
13
  buttonText: InputSignal<string> = input<string>('Add your button text here');
14
+ buttonType: InputSignal<string> = input<string>('button');
15
+ buttonDisabled: InputSignal<boolean> = input<boolean>(false);
16
+ buttonLoading: InputSignal<boolean> = input<boolean>(false);
10
17
  }
@@ -1,4 +1,23 @@
1
- <p>home works!</p>
2
- <div class="p-4">
3
- <wally-button></wally-button>
4
- </div>
1
+ <div class="h-dvh antialiased font-mono">
2
+ <div class="w-full h-full flex flex-col items-center justify-center">
3
+ <div class="max-w-md">
4
+ <h1 class="text-2xl font-bold text-[#0a0a0a] dark:text-white">
5
+ Wally UI
6
+ </h1>
7
+ <h2 class="text-xl font-semibold text-[#0a0a0a] dark:text-white">
8
+ Where's Wally? Right here!
9
+ </h2>
10
+ <p class="mt-4 text-gray-700 dark:text-gray-400">
11
+ Stop searching for the perfect Angular components. Wally UI brings you a
12
+ collection of ready-to-use, beautifully crafted components that integrate
13
+ seamlessly with your projects.
14
+ </p>
15
+ </div>
16
+
17
+ <code
18
+ class="w-md max-w-md mt-6 block bg-gray-200 dark:bg-[#121212] dark:text-white text-[#0a0a0a] p-4 rounded-md text-sm cursor-pointer hover:opacity-85 transition-colorsselect-all"
19
+ onclick="navigator.clipboard.writeText('npx wally-ui add button')">
20
+ <pre class="m-0">$ npx wally-ui add button</pre>
21
+ </code>
22
+ </div>
23
+ </div>