@saasmakers/ui 1.4.13 → 1.4.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.
|
@@ -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-700 rounded-full bg-gray-900 px-3 py-2 text-base text-white 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,12 +46,12 @@ function onClose(event: KeyboardEvent | MouseEvent) {
|
|
|
46
46
|
|
|
47
47
|
<button
|
|
48
48
|
v-if="action"
|
|
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-
|
|
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-gray-900 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-600/20 text-red-400 hover:bg-red-600/30 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-600/20 text-indigo-400 hover:bg-indigo-600/30 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-600/20 text-green-400 hover:bg-green-600/30 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-600/20 text-orange-400 hover:bg-orange-600/30 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"
|
|
@@ -67,10 +67,10 @@ function onClose(event: KeyboardEvent | MouseEvent) {
|
|
|
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-700 flex-initial dark:border-gray-600" />
|
|
71
71
|
|
|
72
72
|
<BaseIcon
|
|
73
|
-
class="text-gray-
|
|
73
|
+
class="text-gray-500 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',
|