wally-ui 1.0.12 → 1.0.14
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,4 +1,4 @@
|
|
|
1
|
-
<button [type]="
|
|
1
|
+
<button [type]="type()" [disabled]="disabled() || loading()" class="
|
|
2
2
|
group
|
|
3
3
|
relative
|
|
4
4
|
w-full
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
cursor-pointer
|
|
16
16
|
">
|
|
17
17
|
|
|
18
|
-
@if (
|
|
18
|
+
@if (showNotification()) {
|
|
19
19
|
<span class="absolute top-0 right-0 -mt-1 -mr-1 flex size-3">
|
|
20
20
|
<span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-sky-400 opacity-75">
|
|
21
21
|
</span>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</span>
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
@if (
|
|
27
|
+
@if (loading()) {
|
|
28
28
|
<svg class="mr-3 -ml-1 size-4 animate-spin dark:text-[#0a0a0a]" xmlns="http://www.w3.org/2000/svg" fill="none"
|
|
29
29
|
viewBox="0 0 24 24">
|
|
30
30
|
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
font-medium
|
|
41
41
|
dark:text-[#0a0a0a]
|
|
42
42
|
">
|
|
43
|
-
{{
|
|
43
|
+
{{ text() }}
|
|
44
44
|
</span>
|
|
45
45
|
</button>
|
|
@@ -10,9 +10,9 @@ import { CommonModule } from '@angular/common';
|
|
|
10
10
|
templateUrl: './button.html',
|
|
11
11
|
})
|
|
12
12
|
export class Button {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
text: InputSignal<string> = input<string>('Wally Button');
|
|
14
|
+
type: InputSignal<string> = input<string>('button');
|
|
15
|
+
disabled: InputSignal<boolean> = input<boolean>(false);
|
|
16
|
+
loading: InputSignal<boolean> = input<boolean>(false);
|
|
17
|
+
showNotification: InputSignal<boolean> = input<boolean>(false);
|
|
18
18
|
}
|
|
@@ -20,8 +20,12 @@
|
|
|
20
20
|
onclick="navigator.clipboard.writeText('npx wally-ui add button')">
|
|
21
21
|
<pre class="m-0">$ npx wally-ui add button</pre>
|
|
22
22
|
</code>
|
|
23
|
+
|
|
24
|
+
<code
|
|
25
|
+
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"
|
|
26
|
+
onclick="navigator.clipboard.writeText('npx wally-ui add button')">
|
|
27
|
+
<pre class="m-0">$ npx wally-ui list</pre>
|
|
28
|
+
</code>
|
|
23
29
|
</div>
|
|
24
|
-
<wally-button></wally-button>
|
|
25
30
|
</div>
|
|
26
|
-
|
|
27
31
|
</div>
|