wally-ui 1.0.11 → 1.0.12
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/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<button [type]="buttonType()" [disabled]="buttonDisabled() || buttonLoading()" class="
|
|
2
2
|
group
|
|
3
|
+
relative
|
|
3
4
|
w-full
|
|
4
5
|
flex items-center justify-center
|
|
5
6
|
bg-[#0a0a0a] hover:bg-[#0a0a0a]/85
|
|
@@ -14,6 +15,15 @@
|
|
|
14
15
|
cursor-pointer
|
|
15
16
|
">
|
|
16
17
|
|
|
18
|
+
@if (buttonNotification()) {
|
|
19
|
+
<span class="absolute top-0 right-0 -mt-1 -mr-1 flex size-3">
|
|
20
|
+
<span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-sky-400 opacity-75">
|
|
21
|
+
</span>
|
|
22
|
+
<span class="relative inline-flex size-3 rounded-full bg-sky-500">
|
|
23
|
+
</span>
|
|
24
|
+
</span>
|
|
25
|
+
}
|
|
26
|
+
|
|
17
27
|
@if (buttonLoading()) {
|
|
18
28
|
<svg class="mr-3 -ml-1 size-4 animate-spin dark:text-[#0a0a0a]" xmlns="http://www.w3.org/2000/svg" fill="none"
|
|
19
29
|
viewBox="0 0 24 24">
|
|
@@ -10,8 +10,9 @@ import { CommonModule } from '@angular/common';
|
|
|
10
10
|
templateUrl: './button.html',
|
|
11
11
|
})
|
|
12
12
|
export class Button {
|
|
13
|
-
buttonText: InputSignal<string> = input<string>('
|
|
13
|
+
buttonText: InputSignal<string> = input<string>('Wally Button');
|
|
14
14
|
buttonType: InputSignal<string> = input<string>('button');
|
|
15
15
|
buttonDisabled: InputSignal<boolean> = input<boolean>(false);
|
|
16
16
|
buttonLoading: InputSignal<boolean> = input<boolean>(false);
|
|
17
|
+
buttonNotification: InputSignal<boolean> = input<boolean>(false);
|
|
17
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="h-dvh antialiased font-mono">
|
|
2
|
-
<div class="w-full h-full flex flex-col items-center justify-center">
|
|
2
|
+
<div class="w-full h-full flex flex-col items-center justify-center p-4">
|
|
3
3
|
<div class="max-w-md">
|
|
4
4
|
<h1 class="text-2xl font-bold text-[#0a0a0a] dark:text-white">
|
|
5
5
|
Wally UI
|
|
@@ -13,11 +13,15 @@
|
|
|
13
13
|
seamlessly with your projects.
|
|
14
14
|
</p>
|
|
15
15
|
</div>
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
|
|
17
|
+
<div class="w-full max-w-md">
|
|
18
|
+
<code
|
|
19
|
+
class="w-full 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"
|
|
20
|
+
onclick="navigator.clipboard.writeText('npx wally-ui add button')">
|
|
21
|
+
<pre class="m-0">$ npx wally-ui add button</pre>
|
|
22
|
+
</code>
|
|
23
|
+
</div>
|
|
24
|
+
<wally-button></wally-button>
|
|
22
25
|
</div>
|
|
26
|
+
|
|
23
27
|
</div>
|