@saasmakers/ui 1.4.14 → 1.4.16

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,8 +30,8 @@ function onClose(event: KeyboardEvent | MouseEvent) {
30
30
 
31
31
  <template>
32
32
  <div
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
- :class="{ 'cursor-pointer': hasClose }"
33
+ class="group flex select-none items-center border border-gray-200 rounded-full bg-white px-3 py-2 text-base text-gray-800 font-normal shadow-sm transition-colors dark:border-gray-700 dark:bg-gray-800 dark:text-gray-100"
34
+ :class="{ 'cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700/50': hasClose }"
35
35
  role="button"
36
36
  tabindex="0"
37
37
  @click="onClose"
@@ -39,19 +39,19 @@ function onClose(event: KeyboardEvent | MouseEvent) {
39
39
  @keydown.space.prevent="onClose"
40
40
  >
41
41
  <BaseIcon
42
- class="pointer-events-none flex-initial"
42
+ class="pointer-events-none text-lg flex-initial"
43
43
  :status="status"
44
44
  :text="text"
45
45
  />
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-gray-900 dark:focus-visible:ring-offset-gray-800"
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-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',
51
+ 'bg-red-100 text-red-700 hover:bg-red-200 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-100 text-indigo-700 hover:bg-indigo-200 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-100 text-green-700 hover:bg-green-200 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-100 text-orange-700 hover:bg-orange-200 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-700 flex-initial dark:border-gray-600" />
70
+ <div class="ml-2 mr-1.5 h-5 border-l border-gray-200 flex-initial dark:border-gray-700" />
71
71
 
72
72
  <BaseIcon
73
- class="text-gray-500 flex-initial dark:text-gray-500"
73
+ class="text-lg text-gray-400 transition-colors 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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "1.4.14",
3
+ "version": "1.4.16",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "license": "MIT",