@saasmakers/ui 1.3.2 → 1.3.3
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.
|
@@ -76,7 +76,8 @@ function onOpenFilePicker() {
|
|
|
76
76
|
:class="{
|
|
77
77
|
'cursor-pointer': !disabled && !loading,
|
|
78
78
|
'field-disabled': disabled,
|
|
79
|
-
'pointer-events-none opacity-50': disabled
|
|
79
|
+
'pointer-events-none opacity-50': disabled,
|
|
80
|
+
'pointer-events-none': loading,
|
|
80
81
|
'hover:border-gray-300 focus:border-gray-400 dark:hover:border-gray-700 dark:focus:border-gray-600': border === 'full' && !disabled && !loading,
|
|
81
82
|
'bg-gray-100 dark:bg-gray-900': background === 'gray',
|
|
82
83
|
'bg-white dark:bg-gray-900': background === 'white',
|
|
@@ -96,11 +97,20 @@ function onOpenFilePicker() {
|
|
|
96
97
|
@keydown.space.prevent="onOpenFilePicker"
|
|
97
98
|
>
|
|
98
99
|
<div class="pointer-events-none min-w-0 flex flex-1 items-center gap-2">
|
|
99
|
-
<
|
|
100
|
+
<div
|
|
100
101
|
v-if="loading"
|
|
101
|
-
class="shrink-0"
|
|
102
|
-
:
|
|
103
|
-
|
|
102
|
+
class="shrink-0 flex items-center justify-center"
|
|
103
|
+
:class="{
|
|
104
|
+
'h-7 w-7': size === 'xs',
|
|
105
|
+
'h-8 w-8': size === 'sm',
|
|
106
|
+
'h-9 w-9': size === 'base',
|
|
107
|
+
'h-10 w-10': size === 'lg',
|
|
108
|
+
}"
|
|
109
|
+
>
|
|
110
|
+
<BaseSpinner
|
|
111
|
+
:size="size === 'xs' ? 'sm' : size === 'sm' ? 'base' : size === 'base' ? 'lg' : 'xl'"
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
104
114
|
|
|
105
115
|
<BaseAvatar
|
|
106
116
|
v-else
|