@saasmakers/ui 1.4.11 → 1.4.13
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.
|
@@ -30,7 +30,7 @@ function onClose(event: KeyboardEvent | MouseEvent) {
|
|
|
30
30
|
|
|
31
31
|
<template>
|
|
32
32
|
<div
|
|
33
|
-
class="group flex select-none items-center border border-gray-
|
|
33
|
+
class="group flex select-none items-center border border-gray-200 rounded-full bg-white px-3 py-2 text-base text-gray-900 font-normal dark:border-gray-700 dark:bg-gray-800 dark:text-gray-100"
|
|
34
34
|
:class="{ 'cursor-pointer': hasClose }"
|
|
35
35
|
role="button"
|
|
36
36
|
tabindex="0"
|
|
@@ -46,31 +46,31 @@ function onClose(event: KeyboardEvent | MouseEvent) {
|
|
|
46
46
|
|
|
47
47
|
<button
|
|
48
48
|
v-if="action"
|
|
49
|
-
class="ml-1.5 rounded-md px-
|
|
49
|
+
class="ml-1.5 min-h-6 inline-flex items-center justify-center rounded-md px-2 py-0.5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-800"
|
|
50
50
|
:class="{
|
|
51
|
-
'bg-red-
|
|
52
|
-
'bg-indigo-
|
|
53
|
-
'bg-green-
|
|
54
|
-
'bg-orange-
|
|
51
|
+
'bg-red-50 text-red-700 hover:bg-red-100 focus-visible:ring-red-500 dark:bg-red-400/15 dark:text-red-400 dark:hover:bg-red-400/25': status === 'error',
|
|
52
|
+
'bg-indigo-50 text-indigo-700 hover:bg-indigo-100 focus-visible:ring-indigo-500 dark:bg-indigo-400/15 dark:text-indigo-400 dark:hover:bg-indigo-400/25': status === 'info',
|
|
53
|
+
'bg-green-50 text-green-700 hover:bg-green-100 focus-visible:ring-green-500 dark:bg-green-400/15 dark:text-green-400 dark:hover:bg-green-400/25': status === 'success',
|
|
54
|
+
'bg-orange-50 text-orange-700 hover:bg-orange-100 focus-visible:ring-orange-500 dark:bg-orange-400/15 dark:text-orange-400 dark:hover:bg-orange-400/25': status === 'warning',
|
|
55
55
|
}"
|
|
56
56
|
type="button"
|
|
57
57
|
@click.stop="onAction"
|
|
58
58
|
>
|
|
59
59
|
<BaseText
|
|
60
60
|
bold
|
|
61
|
-
class="pointer-events-none"
|
|
61
|
+
class="pointer-events-none leading-none"
|
|
62
62
|
no-wrap
|
|
63
|
-
size="
|
|
63
|
+
size="sm"
|
|
64
64
|
:text="action.label"
|
|
65
65
|
uppercase
|
|
66
66
|
/>
|
|
67
67
|
</button>
|
|
68
68
|
|
|
69
69
|
<template v-if="hasClose">
|
|
70
|
-
<div class="ml-2 mr-1.5 h-5 border-l border-gray-
|
|
70
|
+
<div class="ml-2 mr-1.5 h-5 border-l border-gray-200 flex-initial dark:border-gray-600" />
|
|
71
71
|
|
|
72
72
|
<BaseIcon
|
|
73
|
-
class="text-gray-
|
|
73
|
+
class="text-gray-400 flex-initial dark:text-gray-500"
|
|
74
74
|
:class="{
|
|
75
75
|
'group-hover:text-red-600 dark:group-hover:text-red-400': status === 'error',
|
|
76
76
|
'group-hover:text-indigo-600 dark:group-hover:text-indigo-400': status === 'info',
|